test-update-copyright.sh: avoid false-positive failure
[gnulib.git] / ChangeLog
1 2011-11-25  Jim Meyering  <meyering@redhat.com>
2
3         test-update-copyright.sh: avoid false-positive failure
4         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5         around false positive failure on Cygwin/Windows.  The latter was
6         matching erroneously-created files with names like
7         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8
9 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10
11         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
12         * m4/valgrind-tests.m4: Check that the parameters that will be
13         used works, not just a subset of them.  Reported by Bruno Haible
14         <bruno@clisp.org>.
15
16 2011-11-24  Jim Meyering  <meyering@redhat.com>
17
18         test-stdalign.c: comment out long double tests
19         * tests/test-stdalign.c: Don't try to reduce alignment of long double
20         variables.  That provokes errors like this from gcc-4.7.0 20111124:
21         error: '_Alignas' specifiers cannot reduce alignment of \
22         'static_longdouble_alignas'.
23
24 2011-11-22  Jim Meyering  <meyering@redhat.com>
25
26         init.sh: make "compare /dev/null FILE" output more readable
27         * tests/init.sh (compare_): Document the preferred order of arguments.
28         (emit_diff_u_header_): New function.
29         (compare_dev_null_): Emit a simulated diff, rather than just the
30         contents of the unexpected file.  Suggestion from Bruno Haible.
31
32 2011-11-21  Jim Meyering  <meyering@redhat.com>
33             Eric Blake  <eblake@redhat.com>
34
35         init.sh: work around OSF/1 5.1's mishandling of /dev/null
36         * tests/init.sh: Make our compare function slightly more portable.
37         Reported by Bruno Haible in
38         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
39
40 2011-11-21  Simon Josefsson  <simon@josefsson.org>
41
42         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
43         before using it, in code that ends up in config.h.
44
45 2011-11-20  Bruno Haible  <bruno@clisp.org>
46
47         getcwd: Work around getcwd bug on AIX 5..7.
48         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
49         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
50         Use a different value for gl_cv_func_getcwd_path_max. Move the
51         definition of HAVE_PARTLY_WORKING_GETCWD from here...
52         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
53         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
54         Define HAVE_MINIMALLY_WORKING_GETCWD.
55         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
56         where it is not even minimally working, that is, on AIX.
57         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
58         m4/getcwd-path-max.m4.
59         (main): Update exit code computation.
60         * doc/posix-functions/getcwd.texi: Mention list of platforms where
61         getcwd does not handle long file names.
62
63 2011-11-20  Bruno Haible  <bruno@clisp.org>
64
65         getcwd: Fix bug from 2009-09-10.
66         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
67         like "no".
68
69 2011-11-20  Simon Josefsson  <simon@josefsson.org>
70
71         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
72
73 2011-11-20  Bruno Haible  <bruno@clisp.org>
74
75         fma tests: Avoid shadowing local variables.
76         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
77         expected.
78
79 2011-11-20  Bruno Haible  <bruno@clisp.org>
80
81         copysignf tests: Fix.
82         * tests/test-copysignf.c: Fix signature check.
83
84 2011-11-20  Bruno Haible  <bruno@clisp.org>
85
86         fma: Remove unused code.
87         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
88         unused macros.
89
90 2011-11-20  Bruno Haible  <bruno@clisp.org>
91
92         sethostname: Fix doc about AIX.
93         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
94         sethostname; it has it.
95
96         sethostname: Mention more portability problems.
97         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
98         problem.
99         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
100
101 2011-11-19  Bruno Haible  <bruno@clisp.org>
102
103         Depend on module fcntl-h when AT_FDCWD is used.
104         * modules/utimens (Depends-on): Add fcntl-h.
105         * modules/areadlinkat (Depends-on): Likewise.
106         * modules/areadlinkat-with-size (Depends-on): Likewise.
107         * modules/faccessat (Depends-on): Likewise.
108         * modules/fchmodat (Depends-on): Likewise.
109         * modules/fchownat (Depends-on): Likewise.
110         * modules/getcwd (Depends-on): Likewise.
111         * modules/mkdirat (Depends-on): Likewise.
112         * modules/mkfifoat (Depends-on): Likewise.
113         * modules/readlinkat (Depends-on): Likewise.
114         * modules/symlinkat (Depends-on): Likewise.
115         * modules/dup2-tests (Depends-on): Likewise.
116         * modules/fdutimensat-tests (Depends-on): Likewise.
117         * modules/futimens-tests (Depends-on): Likewise.
118
119 2011-11-19  Bruno Haible  <bruno@clisp.org>
120
121         euidaccess: Update a comment.
122         * lib/euidaccess.c: Update comment about platforms with faccessat.
123
124 2011-11-19  Bruno Haible  <bruno@clisp.org>
125
126         openat: Fix file list.
127         * modules/openat (Files): Remove lib/at-func.c.
128
129 2011-11-19  Bruno Haible  <bruno@clisp.org>
130
131         fstatat: Simplify.
132         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
133         gnulib should define rpl_fstatat, there is a
134         "#define fstatat rpl_fstatat" in <sys/stat.h>.
135
136 2011-11-19  Bruno Haible  <bruno@clisp.org>
137
138         Ensure 'inline' can be used in tests/test-utimens-common.h.
139         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
140         * modules/futimens-tests (configure.ac): Likewise.
141         * modules/utimens-tests (configure.ac): Likewise.
142         * modules/utimensat-tests (configure.ac): Likewise.
143
144 2011-11-19  Simon Josefsson  <simon@josefsson.org>
145
146         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
147         not hash_insert0.
148         (hash_insert_if_absent): Doc fix.
149
150 2011-11-19  Simon Josefsson  <simon@josefsson.org>
151
152         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
153
154 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
155
156         test-getcwd: disambiguate exit status
157         * tests/test-getcwd.c (test_long_name): Return 0..7.
158         (main): Exit with an unambiguous exit status.  The old
159         code yielded a mysterious mixture of two failure codes.
160
161         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
162         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
163         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
164         rpl_fstatat or fstatat.  This should fix the other problem
165         reported by Kai Habel in
166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
167         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
169         and I reproduced it on a Solaris 8 host we still have in production.
170
171 2011-11-18  Jim Meyering  <meyering@redhat.com>
172
173         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
174         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
175         Add a sentence to the comment.
176         (hash_insert0): New function that simply calls hash_insert_if_absent.
177         * lib/hash.h (hash_insert_if_absent): Declare it.
178         (hash_insert0): Add deprecation attribute.
179         (_GL_ATTRIBUTE_DEPRECATED): Define.
180         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
181         not hash_insert0.
182         * NEWS: Mention it, even though it's not really an incompatible change.
183
184 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
185
186         openat: avoid compilation failure due to lack of <errno.h> inclusion
187         * lib/openat.c: Include <errno.h>.
188
189 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
190
191         * modules/getcwd (Depends-on): Add fdopendir.
192         This fixes one of the two problems reported by Kai Habel in
193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
194
195         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
196         stdalign problem reported by Ian Beckwith in
197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
198         * modules/crypto/gc-arcfour (Depends-on):
199         Depend conditionally on crypto/arcfour.
200         * modules/crypto/gc-arctwo (Depends-on):
201         Depend conditionally on crypto/arctwo.
202         * modules/crypto/gc-des (Depends-on):
203         Depend conditionally on crypto/des.
204         * modules/crypto/gc-hmac-md5 (Depends-on):
205         Depend conditionally on crypto/hmac-md5.
206         * modules/crypto/gc-hmac-sha1 (Depends-on):
207         Depend conditionally on crypto/hmac-sha1.
208         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
209         * modules/crypto/gc-md4 (Depends-on):
210         Depend conditionally on crypto/md4.
211         * modules/crypto/gc-md5 (Depends-on):
212         Depend conditionally on crypto/md5.
213         * modules/crypto/gc-rijndael (Depends-on):
214         Depend conditionally on crypto/rijndael.
215         * modules/crypto/gc-sha1 (Depends-on):
216         Depend conditionally on crypto/sha1.
217         * modules/crypto/gc-arcfour:
218         * modules/crypto/gc-arctwo:
219         * modules/crypto/gc-des:
220         * modules/crypto/gc-hmac-md5:
221         * modules/crypto/gc-hmac-sha1:
222         * modules/crypto/gc-md2:
223         * modules/crypto/gc-md4:
224         * modules/crypto/gc-md5:
225         * modules/crypto/gc-rijndael:
226         * modules/crypto/gc-sha1:
227         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
228         now that the conditional dependencies do the work for us.
229
230 2011-11-17  Jim Meyering  <meyering@redhat.com>
231
232         tests: factor st_ctime-comparison out of two headers
233         * tests/test-utimens-common.h (ctime_compare): Define.
234         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
235         * tests/test-lutimens.h (test_lutimens): Likewise.
236         * tests/test-utimens.h (test_utimens): Likewise.
237
238         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
239         Invoke the test program via an init.sh-using wrapper.
240         * tests/test-getcwd.sh: New file.
241         * modules/getcwd-tests (Files): Add it.
242         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
243
244 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
245
246         gitlog-to-changelog: support multi-author commits.
247         The FSF cares about keeping track of all authors of patches to its
248         projects, but Git doesn't provide obvious support for multi-author
249         changesets. Consensus seems to be forming around the use of extra
250         Signed-off-by inspired lines in the log message formatted as
251         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
252         multi-author commits between version control systems.
253         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
254         log message and output in standard ChangeLog multi-author format.
255         Reported by Peter Rosin <peda@lysator.liu.se>
256
257 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
258             Bruno Haible  <bruno@clisp.org>
259
260         Fix some modules' file list.
261         * modules/fstatat (Files): Add m4/lstat.m4.
262         * modules/openat (Files): Likewise.
263         * modules/unlinkat (Files): Likewise.
264
265 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
266
267         maint.mk: fix tight-scope.mk generation in VPATH builds.
268         * top/maint.mk (tight-scope.mk): Make sure to prefix file
269         reference with $(srcdir) so that the file is found correctly even
270         when running `make syntax-check' in a VPATH build.
271
272 2011-11-13  Bruno Haible  <bruno@clisp.org>
273             Jim Meyering  <meyering@redhat.com>
274
275         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
276         * tests/init.sh (compare): Remove "No differences encountered" or
277         synonymous output from the 'diff' program.
278
279 2011-11-13  Bruno Haible  <bruno@clisp.org>
280
281         Makefile: Tweak indentation.
282         * Makefile: Use tab as first character in every line that contains rule
283         commands.
284
285 2011-11-13  Bruno Haible  <bruno@clisp.org>
286
287         Syntax check for copyright statements.
288         * check-copyright: New file.
289         * Makefile (sc_check_copyright): New rule.
290
291 2011-11-13  Simon Josefsson  <simon@josefsson.org>
292
293         * build-aux/git-version-gen: Add --prefix to configure the tag
294         match string.
295
296 2011-11-13  Simon Josefsson  <simon@josefsson.org>
297
298         * build-aux/git-version-gen: Add --help and --version.
299
300 2011-11-12  Jim Meyering  <meyering@redhat.com>
301
302         revamp the other test-exclude?.sh scripts to use init.sh, too
303         * tests/test-exclude1.sh: Use init.sh.
304         * tests/test-exclude2.sh: Likewise.
305         * tests/test-exclude3.sh: Likewise.
306         * tests/test-exclude4.sh: Likewise.
307         * tests/test-exclude5.sh: Likewise.
308         * tests/test-exclude6.sh: Likewise.
309         * tests/test-exclude7.sh: Likewise.
310         * tests/test-exclude8.sh: Likewise.
311         * modules/exclude-tests (Files): List init.sh.
312
313         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
314         These shell scripts ignored failure of the binary test-exclude,
315         so making the latter return 77 didn't cause them to be skipped.
316         * tests/test-exclude5.sh: Exit with test-exclude's error status
317         when that program fails.  Revamp to use init.sh.
318         * tests/test-exclude2.sh: Likewise.
319
320         test-exclude: fix a typo
321         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
322
323 2011-11-11  Bruno Haible  <bruno@clisp.org>
324
325         obstack: Fix compilation error on MSVC 9.
326         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
327
328 2011-11-11  Jim Meyering  <meyering@redhat.com>
329
330         test-exclude: skip tests rather than failing on deficient systems
331         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
332         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
333         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
334         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
335
336 2011-11-10  Bruno Haible  <bruno@clisp.org>
337
338         ptsname_r test: Avoid gcc warning on glibc systems.
339         * tests/test-ptsname_r.c (null_ptr): New function.
340         (test_errors): Use it.
341
342 2011-11-10  Bruno Haible  <bruno@clisp.org>
343
344         ptsname_r: Avoid compilation error on OSF/1 5.1.
345         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
347         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
348         function is not declared or incompatibly declared.
349         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
350         * modules/ptsname_r (Depends-on, configure.ac): Update.
351         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
352
353 2011-11-10  Bruno Haible  <bruno@clisp.org>
354
355         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
356         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
357         When cross-compiling, guess yes on all platforms except AIX.
358         Reported by Ludovic Courtès <ludo@gnu.org>.
359
360 2011-11-09  Bruno Haible  <bruno@clisp.org>
361
362         ptsname_r tests: Fix bugs.
363         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
364         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
365
366 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
367
368         fstatat: work with cross-compilation
369         Problem reported by Ludovic Courtès in
370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
371         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
372         "cross-compiling" and assume the bug is present.  Replace
373         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
374         an inverted sense, to be more conservative about our assumptions.
375         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
376
377 2011-11-09  Bruno Haible  <bruno@clisp.org>
378
379         Improve MODULES.html output.
380         * modules/mkfifoat (Description): Use the word "function".
381         * modules/readlinkat (Description): Likewise.
382         * modules/symlinkat (Description): Likewise.
383
384 2011-11-09  Eric Blake  <eblake@redhat.com>
385
386         ptsname_r-tests: new test module
387         * modules/ptsname_r-tests: New module.
388         * tests/test-ptsname_r.c: New file.
389
390         ptsname_r: new module
391         * modules/ptsname_r: New module.
392         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
393         * lib/ptsname.c (__ptsname_r): Split...
394         * lib/ptsname_r.c: ...into new file.
395         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
396         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
397         * modules/stdlib (Makefile.am): Substitute witnesses.
398         * lib/stdlib.in.h (ptsname_r): Declare it.
399         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
400         * MODULES.html.sh (Misc): Likewise.
401         * modules/ptsname (Depends-on): Alter dependency.
402         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
403
404 2011-11-09  Jim Meyering  <meyering@redhat.com>
405
406         announce-gen: be more concise when there's only one URL+tarball
407         * build-aux/announce-gen (get_tool_versions): When you distribute
408         only one type of tarball, combine the first two "Here are..."
409         sections and make the key-checking grammar independent of
410         how many tarballs there are.
411
412 2011-11-09  Eric Blake  <eblake@redhat.com>
413
414         openpty: provide a stub on mingw
415         * lib/pty.in.h (includes): Provide forward declarations.
416         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
417
418         raise: fix mingw handling of SIGPIPE
419         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
420
421 2011-11-08  Bruno Haible  <bruno@clisp.org>
422
423         More conditional dependencies.
424         * modules/faccessat (Depends-on): Add conditions.
425         * modules/fchmodat (Depends-on): Likewise.
426         * modules/fchownat (Depends-on): Likewise.
427         * modules/fstatat (Depends-on): Likewise.
428         * modules/mkfifoat (Depends-on): Likewise.
429         * modules/readlinkat (Depends-on): Likewise.
430         * modules/symlinkat (Depends-on): Likewise.
431         * modules/unlinkat (Depends-on): Likewise.
432         * modules/utimensat (Depends-on): Likewise.
433         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
434         * modules/linkat (Depends-on): Refine the conditions.
435         * modules/renameat (Depends-on): Likewise.
436
437 2011-11-08  Bruno Haible  <bruno@clisp.org>
438
439         faccessat: Move AC_LIBOBJ invocation to module description.
440         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
441         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
442         invocation from here...
443         * modules/faccessat (configure.ac): ... to here. Invoke
444         gl_PREREQ_FACCESSAT.
445
446 2011-11-08  Bruno Haible  <bruno@clisp.org>
447
448         faccessat: Simplify autoconf macro.
449         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
450         gl_FUNC_EUIDACCESS.
451
452 2011-11-08  Bruno Haible  <bruno@clisp.org>
453
454         renameat: Fix dependencies.
455         * modules/renameat (Depends-on): Add stdbool.
456
457 2011-11-08  Bruno Haible  <bruno@clisp.org>
458
459         mkfifoat: Fix module description.
460         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
461         not gl_UNISTD_MODULE_INDICATOR.
462
463 2011-11-08  Bruno Haible  <bruno@clisp.org>
464
465         fstatat: Remove unused dependency.
466         * modules/fstatat (Depends-on): Remove fstat.
467
468 2011-11-08  Simon Josefsson  <simon@josefsson.org>
469
470         GNUmakefile: behave when Makefile is missing.
471         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
472
473 2011-11-08  Bruno Haible  <bruno@clisp.org>
474
475         openat: Conditionalize dependencies.
476         * lib/openat.c: Reduce the scope of some #includes.
477         * modules/openat (Depends-on): Add conditions.
478
479 2011-11-07  Jim Meyering  <meyering@redhat.com>
480
481         maint.mk: extract GPG key ID without using a temporary file
482         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
483         without using a temporary file.  Based on a suggestion from Werner Koch
484         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
485
486 2011-11-07  Eric Blake  <eblake@redhat.com>
487
488         grantpt: fix typo
489         * lib/stdlib.in.h (grantpt): Check correct function.
490
491         maint.mk: silence new syntax check
492         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
493
494 2011-11-06  Bruno Haible  <bruno@clisp.org>
495
496         Doc about floating-point and math API.
497         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
498         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
499
500 2011-11-06  Bruno Haible  <bruno@clisp.org>
501
502         stdalign tests: Skip the test when compiled by Sun C.
503         * tests/test-stdalign.c (main): Skip the test on Sun C.
504
505 2011-11-06  Bruno Haible  <bruno@clisp.org>
506
507         ansi-c++-opt: Complete the 2011-06-05 change.
508         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
509         does not support namespaces, set the variable to "no", not to ":".
510
511 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
512
513         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
514
515 2011-11-06  Bruno Haible  <bruno@clisp.org>
516
517         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
518         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
519         (minus_zerol) [HP-UX]: New macro.
520         (unary_minus) [HP-UX]: New function.
521         (copysignl) [HP-UX]: Use unary_minus function.
522
523 2011-11-06  Bruno Haible  <bruno@clisp.org>
524
525         ldexp, ldexpf, ldexpl: Enhance tests.
526         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
527         and tests/test-ldexpl.c.
528         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
529         LDEXP, MIN_EXP, MAX_EXP): New macros.
530         Include test-ldexp.h.
531         (main): Just call test_function.
532         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
533         infinity.h, nan.h.
534         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
535         MAX_EXP): New macros.
536         Include test-ldexp.h.
537         (x, y): Remove variables.
538         (main): Just call test_function.
539         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
540         infinity.h, nan.h.
541         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
542         MAX_EXP): New macros.
543         Include test-ldexp.h.
544         (x, y): Remove variables.
545         (main): Just call test_function.
546         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
547         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
548         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
549         (Depends-on): Add isnand-nolibm, signbit, float.
550         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
551         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
552         (Depends-on): Add isnanf-nolibm, signbit, float.
553
554 2011-11-06  Bruno Haible  <bruno@clisp.org>
555
556         math tests: Cosmetics.
557         * tests/test-math-c++.cc: Reorder declarations.
558
559 2011-11-05  Bruno Haible  <bruno@clisp.org>
560
561         fma*: Simplify test.
562         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
563         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
564
565         Tests for module 'fmal'.
566         * modules/fmal-tests: New file.
567         * tests/test-fmal1.c: New file.
568         * tests/test-fmal2.c: New file.
569
570         New module 'fmal'.
571         * lib/math.in.h (fmal): New declaration.
572         * lib/fmal.c: New file.
573         * m4/fmal.m4: New file.
574         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
576         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
577         REPLACE_FMAL.
578         * modules/fmal: New file.
579         * doc/posix-functions/fmal.texi: Mention the new module and the various
580         bugs.
581
582         Tests for module 'fmaf'.
583         * modules/fmaf-tests: New file.
584         * tests/test-fmaf1.c: New file.
585         * tests/test-fmaf2.c: New file.
586
587         New module 'fmaf'.
588         * lib/math.in.h (fmaf): New declaration.
589         * lib/fmaf.c: New file.
590         * m4/fmaf.m4: New file.
591         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
593         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
594         REPLACE_FMAF.
595         * modules/fmaf: New file.
596         * doc/posix-functions/fmaf.texi: Mention the new module and the various
597         bugs.
598
599         Tests for module 'fma'.
600         * modules/fma-tests: New file.
601         * tests/test-fma1.c: New file.
602         * tests/test-fma1.h: New file.
603         * tests/test-fma2.c: New file.
604         * tests/test-fma2.h: New file.
605
606         New module 'fma'.
607         * lib/math.in.h (fma): New declaration.
608         * lib/fma.c: New file.
609         * m4/fma.m4: New file.
610         * m4/fegetround.m4: New file.
611         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
613         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
614         REPLACE_FMA.
615         * modules/fma: New file.
616         * doc/posix-functions/fma.texi: Mention the new module and the various
617         bugs.
618
619         Extend gl_MATHFUNC.
620         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
621         Support 'void' as argument type.
622         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
623
624 2011-11-05  Jim Meyering  <meyering@redhat.com>
625
626         maint.mk: also prohibit inclusion of dirent.h without use
627         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
628
629 2011-11-05  Bruno Haible  <bruno@clisp.org>
630
631         ldexpl tests: Avoid test failure on MSVC 9.
632         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
633         value. Needed in order to enforce the conversion from a value greater
634         than LDBL_MAX to Infinity.
635
636 2011-11-05  Bruno Haible  <bruno@clisp.org>
637
638         New modules 'at-internal', 'openat-h', split off from module 'openat'.
639         * modules/at-internal: New file, extracted from modules/openat.
640         * modules/openat-h: New file.
641         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
642         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
643         * modules/openat (Description): Add reference to POSIX function.
644         (Files): Remove lib/openat.h, lib/openat-proc.c.
645         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
646         intprops, unistd.
647         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
648         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
649         gl_FCNTL_MODULE_INDICATOR.
650         (Include): Remove unistd.h, openat.h.
651         * modules/areadlinkat (Files): Add lib/at-func.c.
652         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
653         openat-die, openat-h, save-cwd.
654         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
655         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
656         openat-die, openat-h, save-cwd, unistd.
657         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
658         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
659         openat-h, save-cwd. Remove fcntl-h, openat.
660         * modules/fchmodat (Files): Remove lib/openat.h.
661         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
662         openat, stdbool, unistd.
663         * modules/fchownat (Files): Remove lib/openat.h.
664         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
665         openat, stdbool, sys_stat.
666         * modules/fdopendir (Files): Remove lib/openat-priv.h,
667         lib/openat-proc.c.
668         (Depends-on): Add at-internal.
669         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
670         * modules/fstatat (Files): Remove lib/openat.h.
671         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
672         stdbool, unistd.
673         * modules/fts (Depends-on): Add openat-h.
674         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
675         openat.
676         * modules/mkdirat (Files): Remove lib/openat.h.
677         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
678         openat, stdbool, sys_stat.
679         * modules/mkfifoat (Files): Add lib/at-func.c.
680         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
681         openat-h, save-cwd. Remove fcntl-h, openat.
682         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
683         * modules/readlinkat (Files): Add lib/at-func.c.
684         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
685         openat-h, save-cwd. Remove fcntl-h, openat.
686         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
687         openat.
688         * modules/selinux-at (Files): Add lib/at-func.c.
689         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
690         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
691         * modules/symlinkat (Files): Add lib/at-func.c.
692         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
693         openat-h, save-cwd. Remove fcntl-h, openat.
694         * modules/unlinkat (Files): Remove lib/openat.h.
695         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
696         stdbool.
697         * modules/utimensat (Files): Add lib/at-func.c.
698         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
699         openat-die, openat-h, save-cwd.
700         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
701         * modules/fdutimensat-tests (Depends-on): Add openat.
702         * modules/fstatat-tests (Depends-on): Add openat-h.
703         * modules/readlinkat-tests (Depends-on): Add openat.
704         * modules/symlinkat-tests (Depends-on): Add openat.
705
706 2011-11-05  Bruno Haible  <bruno@clisp.org>
707
708         openat: Include <stdbool.h>.
709         * lib/openat.c: Include <stdbool.h>.
710
711 2011-11-04  Bruno Haible  <bruno@clisp.org>
712
713         fchownat, renameat, unlinkat: Fix dependencies.
714         * modules/fchownat (Depends-on): Add fstatat.
715         * modules/renameat (Depends-on): Likewise.
716         * modules/unlinkat (Depends-on): Likewise.
717
718 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
719
720         openat: remove direct dependency on dirent
721         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
722         and hasn't been needed ever since fdopendir was split into its own
723         module on 2009-08-31.
724         * modules/openat (Depends-on): Remove dirent.
725
726 2011-11-04  Bruno Haible  <bruno@clisp.org>
727
728         renameat: Optimize code size.
729         * modules/renameat (configure.ac): Don't compile at-func2.c if
730         REPLACE_RENAMEAT is 1.
731
732 2011-11-04  Bruno Haible  <bruno@clisp.org>
733
734         openat tests: Fix file list.
735         * modules/openat-tests (Files): Add tests/test-open.h.
736
737 2011-11-04  Bruno Haible  <bruno@clisp.org>
738
739         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
740         * modules/fchmodat (Depends-on): Add openat-die.
741         * modules/fchownat (Depends-on): Likewise.
742         * modules/linkat (Depends-on): Likewise.
743         * modules/renameat (Depends-on): Likewise.
744         * modules/openat (Depends-on): Add dirent.
745
746 2011-11-04  Jim Meyering  <meyering@redhat.com>
747
748         at-func*.c: fix comments
749         * lib/at-func2.c: Correct/improve first-line comment.
750         * lib/at-func.c: Correct grammar in first-line comment.
751
752 2011-11-04  Bruno Haible  <bruno@clisp.org>
753
754         New module 'mkdirat', split off from module 'openat'.
755         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
756         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
757         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
758         * modules/mkdirat: New file, extracted from modules/openat.
759         * modules/openat (Files): Remove lib/mkdirat.c.
760         (Depends-on): Remove mkdir.
761         (configure.ac): Remove AC_LIBOBJ of mkdirat.
762         (Include): Remove <sys/stat.h>.
763         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
764         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
765         tests/test-mkdir.h.
766         (Depends-on): Remove ignore-value.
767         (Makefile.am): Remove rules for test-mkdirat.
768         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
769         of module 'openat'.
770         * NEWS: Mention the change.
771
772 2011-11-04  Bruno Haible  <bruno@clisp.org>
773
774         closedir: Avoid warning on mingw.
775         * lib/closedir.c: Include <unistd.h>.
776
777 2011-11-04  Bruno Haible  <bruno@clisp.org>
778
779         New module 'fstatat', split off from module 'openat'.
780         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
781         defined.
782         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
783         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
784         gl_FUNC_FSTATAT.
785         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
786         * modules/fstatat: New file, extracted from modules/openat.
787         * modules/openat (Files): Remove lib/fstatat.c.
788         (Depends-on): Remove lstat.
789         (configure.ac): Remove AC_LIBOBJ of fstatat.
790         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
791         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
792         tests/test-lstat.h, tests/test-stat.h.
793         (Depends-on): Remove getcwd-lgpl.
794         (Makefile.am): Remove rules for test-fstatat.
795         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
796         of module 'openat'.
797         * NEWS: Mention the change.
798         * modules/getcwd (Depends-on): Add fstatat.
799         * modules/linkat (Depends-on): Likewise.
800         * modules/mkfifoat-tests (Depends-on): Likewise.
801         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
802
803 2011-11-03  Bruno Haible  <bruno@clisp.org>
804
805         New module 'unlinkat', split off from module 'openat'.
806         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
807         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
808         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
809         * modules/unlinkat: New file, extracted from modules/openat. Correct
810         the dependency conditions.
811         * modules/openat (Files): Remove lib/unlinkat.c.
812         (Depends-on): Remove rmdir, unlink.
813         (configure.ac): Remove AC_LIBOBJ of unlinkat.
814         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
815         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
816         tests/test-rmdir.h, tests/test-unlink.h.
817         (Depends-on): Remove unlinkdir.
818         (Makefile.am): Remove rules for test-unlinkat.
819         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
820         of module 'openat'.
821         * NEWS: Mention the change.
822         * modules/linkat-tests (Depends-on): Add unlinkat.
823         * modules/mkfifoat-tests (Depends-on): Likewise.
824         * modules/readlinkat-tests (Depends-on): Likewise.
825
826 2011-11-02  Bruno Haible  <bruno@clisp.org>
827
828         New module 'fchmodat', split off from module 'openat'.
829         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
830         defined.
831         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
832         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
833         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
834         * modules/fchmodat: New file, extracted from modules/openat.
835         * modules/openat (Files): Remove lib/fchmodat.c.
836         (configure.ac): Remove AC_LIBOBJ of fchmodat.
837         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
838         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
839         (Makefile.am): Remove rules for test-fchmodat.
840         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
841         of module 'openat'.
842         * NEWS: Mention the change.
843
844 2011-11-02  Jim Meyering  <meyering@redhat.com>
845
846         putenv: indent #definition of "environ" to placate cppi
847         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
848
849         gitlog-to-changelog: provide a ChangeLog-repair mechanism
850         Git logs are often treated as immutable, because editing them
851         changes the SHA1 checksums of all descendants.  Thus, errors in
852         git logs tend to stay there forever.  However, when we generate
853         a ChangeLog file -- typically for distribution -- from that git log,
854         we can actually make corrections in the generated file.  The key
855         lies in recording in machine-readable/applicable form the desired
856         corrections.  See --help for description and an example.
857         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
858         (usage): Describe it; alphabetize option descriptions.
859         (main): Honor the new option, carefully.
860
861 2011-11-01  Jim Meyering  <meyering@redhat.com>
862
863         gitlog-to-changelog: avoid an infloop
864         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
865         that ends up being empty.
866
867 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
868
869         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
870         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
871         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
872         contains (possibly-quoted) backslashes.  This should avoid
873         all-too-common shell bugs if COMPLICATED contains backslashes in
874         the "wrong" places.  Reported by David Evans in
875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
876         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
877         because we want ASCII ranges.  Is there some reason we don't use
878         the C locale everywhere in this script?
879         (func_module, top level): Avoid unwanted pathname expansion when
880         $repo_url_prefix or $repo_url_suffix_repl contain shell
881         metacharacters like '?' and '*'.
882
883 2011-11-01  Bruno Haible  <bruno@clisp.org>
884
885         fchownat: Improve description.
886         * modules/fchownat (Description): Add link to function.
887
888 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
889
890         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
891         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
892         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
893         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
894
895 2011-11-01  Bruno Haible  <bruno@clisp.org>
896
897         alignof: Avoid collision with stdalign module.
898         * lib/alignof.h (alignof): Remove macro.
899         * NEWS: Mention the change.
900         Reported by Paul Eggert.
901
902 2011-11-01  Bruno Haible  <bruno@clisp.org>
903
904         New module 'fchownat', split off from module 'openat'.
905         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
906         defined.
907         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
908         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
909         invoke gl_FUNC_FCHOWNAT.
910         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
911         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
912         * modules/fchownat: New file, extracted from modules/openat.
913         * modules/openat (Files): Remove lib/fchownat.c.
914         (Depends-on): Remove lchown.
915         (configure.ac): Remove AC_LIBOBJ of fchownat.
916         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
917         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
918         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
919         (Depends-on): Remove mgetgroups, usleep, stat-time.
920         (configure.ac): Remove test for getegid.
921         (Makefile.am): Remove rules for test-fchownat.
922         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
923         of module 'openat'.
924         * NEWS: Mention the change.
925
926 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
927
928         stdalign: port better to MSVC and to Sun C 5.11
929         This fixes some of the problems reported by Bruno Haible in
930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
931         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
932         shortcomings of MSVC and of Sun C 5.11.
933         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
934         around __declspec arg.
935         * modules/stdalign-tests (Files): Add tests/macros.h.
936         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
937         Include macros.h, for ASSERT.
938         (DECLARE_ALIGNED): Remove.
939         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
940         to catch bug), and to 1 if not (simplifies the rest of the code).
941         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
942         (CHECK_AUTO): Remove.
943         (CHECK_ALIGNED): Check only the alignment of the static vars,
944         since auto var alignment isn't supported by Sun C 5.11.
945         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
946         ASSERT failures are easier to diagnose.
947
948 2011-10-31  Bruno Haible  <bruno@clisp.org>
949
950         doc about some IRIX 5.3 problems.
951         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
952         on IRIX 5.3.
953         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
954         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
955         5.3.
956         * doc/posix-functions/grantpt.texi: Likewise.
957         * doc/posix-functions/unlockpt.texi: Likewise.
958         * doc/posix-functions/lgamma.texi: Likewise.
959         * doc/posix-functions/nextafter.texi: Likewise.
960         * doc/posix-functions/remainder.texi: Likewise.
961         * doc/posix-functions/select.texi: Mention misplaced declaration on
962         IRIX 5.3.
963         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
964
965 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
966
967         gitlog-to-changelog: fix git-log invocation.
968         git-log mishandles date strings before 1970-01-01 UTC, and there is
969         no use to specify --since=1970-01-01 by default anyway.
970         * build-aux/gitlog-to-changelog: By default, when no --since option
971         was given, do not specify explicit --since option to git-log.
972
973 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
974
975         gitlog-to-changelog: new option --append-dot.
976         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
977         first non-blank line of each commit message terminated with a dot.
978
979 2011-10-30  Bruno Haible  <bruno@clisp.org>
980
981         ffsl, ffsll: Avoid compilation error due to 'restrict'.
982         * lib/ffsl.h: Include <config.h>.
983         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
984
985 2011-10-30  Jim Meyering  <meyering@redhat.com>
986
987         GNUmakefile: reenable "make syntax-check" for most projects
988         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
989         build-aux variable", "syntax-check" would do nothing but succeed with
990         the "No version control files detected..." diagnostic (unless you
991         happened to override _build-aux via cfg.mk).
992         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
993         to precede inclusion of maint.mk.  Otherwise, these variables would
994         be used undefined in any project that does not override the default.
995
996 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
997
998         gitlog-to-changelog: treat a message with only blank lines as empty.
999         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1000         trailing blank lines before the code that issues a warning about an
1001         empty commit message.
1002
1003 2011-10-30  Jim Meyering  <meyering@redhat.com>
1004
1005         test-parse-datetime.c: avoid new DST-related false positive test failure
1006         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1007         based on the time/date we'll convert, not the current time.
1008         Otherwise, the moment we cross a DST boundary like today's in
1009         Europe, (CEST to CET), that offset ends up being one hour off.
1010
1011 2011-10-27  Bruno Haible  <bruno@clisp.org>
1012
1013         fstat: Tweak documentation.
1014         * modules/fstat (Description): More precise description.
1015
1016 2011-10-27  Bruno Haible  <bruno@clisp.org>
1017
1018         Update documentation regarding 'largefile' module.
1019         * doc/posix-functions/fstat.texi: Tweak wording.
1020         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1021         problems with huge directories and/or small ino_t types.
1022         * doc/posix-functions/readdir.texi: Likewise.
1023         * doc/posix-functions/rewinddir.texi: Likewise.
1024
1025 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1026
1027         maint.mk: don't maintain a second build-aux variable.
1028         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1029         depends on GNUmakefile, which already maintains a cfg.mk
1030         overridable $(_build-aux) for projects with a non-standard
1031         build-aux directory location, although without the $(srcdir)
1032         prefix.  Use that variable consistently instead of introducing a
1033         second one.  Adjust all call sites.
1034
1035 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1036
1037         Add stdalign module and use it in other modules.
1038         This is based on a previous proposal by Bruno Haible
1039         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1040
1041         stdalign: new module
1042         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1043         * modules/stdalign: New files.
1044         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1045         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1046
1047         stdalign-tests: new module
1048         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1049
1050         argp: use stdalign
1051         * lib/argp-parse.c: Include <stdalign.h>.
1052         (alignof): Remove.
1053         * modules/argp (Depends-on): Add stdalign.
1054
1055         crypto libraries: use stdalign
1056         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1057         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1058         Do not include <stdlib.h> twice, in md4.c.
1059         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1060         because we are accessing a pointer's bit-pattern, not a size.
1061         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1062         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1063         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1064         * modules/crypto/sha512: Likewise.
1065
1066         sys_socket: use stdalign, not alignof
1067         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1068         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1069
1070 2011-10-27  Bruno Haible  <bruno@clisp.org>
1071
1072         raise test: Avoid a test failure on Linux/MIPS.
1073         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1074         because 99 is a valid signal on Linux/MIPS.
1075
1076 2011-10-27  Bruno Haible  <bruno@clisp.org>
1077
1078         nonblocking tests: Fix test failure on Linux/MIPS.
1079         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1080         Set to 270000.
1081
1082 2011-10-27  Bruno Haible  <bruno@clisp.org>
1083
1084         utimensat: Work around problem on Linux/hppa.
1085         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1086         values.
1087         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1088
1089 2011-10-25  Jim Meyering  <meyering@redhat.com>
1090
1091         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1092         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1093         after symbols like NULL, size_t, etc.
1094         Reported by Alfred M. Szmidt.
1095
1096         maint.mk: exempt ENODATA from a syntax-check rule
1097         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1098         from the sc_prohibit_always-defined_macros syntax-check rule.
1099         Add a comment.  See this for more details:
1100         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1101
1102 2011-10-23  Jim Meyering  <meyering@redhat.com>
1103
1104         fts: close parent dir FD before returning from post-traversal fts_read
1105         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1106         unlink A, even though an FD open on A remained.  This is suboptimal
1107         (holding a file descriptor open longer than needed), but otherwise not
1108         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1109         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1110         that represents a real problem: it causes the removal of A to fail
1111         with e.g., "rm: cannot remove `A': Device or resource busy"
1112
1113         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1114         directory file descriptors.  After completing the final, FTS_DP,
1115         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1116         cache, but then proceeded to add a new FD to it via the subsequent
1117         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1118         final file descriptor would be closed only via fts_close's call to
1119         fd_ring_clear.  Now, it is usually closed earlier, via the final
1120         FTS_DP-returning fts_read call.
1121         * lib/fts.c (restore_initial_cwd): New function, converted from
1122         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1123         Update callers.
1124         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1125         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1126
1127 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1128             Bruno Haible  <bruno@clisp.org>
1129             Jim Meyering  <jim@meyering.net>
1130
1131         readme-release: improve safety of release prep instructions.
1132         * README-release: Don't git pull all branches when only master
1133         is needed for the release process.
1134         Run make maintainer-clean before changing trees and merging.
1135         Don't try to run ./configure right after git pull in case files
1136         that influence the bootstrap process have changed, move the
1137         ./configure step to after running ./bootstrap.
1138         Don't bootstrap "one last time"... it's the first time!
1139
1140 2011-10-22  Bruno Haible  <bruno@clisp.org>
1141
1142         errno, strerror-override: Support for MSVC 10.
1143         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1144         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1145         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1146         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1147         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1148         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1149         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1150         Assign values compatible with MSVC 10.
1151         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1152         New macros.
1153         (GNULIB_defined_EWINSOCK): New macro.
1154         * lib/strerror-override.c (strerror_override): Update accordingly.
1155         * lib/strerror-override.h: Likewise.
1156         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1157         longer equal to the corresponding errno value.
1158         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1159
1160 2011-10-22  Bruno Haible  <bruno@clisp.org>
1161
1162         perror: Recognize when test program crashes.
1163         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1164         strerror, set gl_cv_func_perror_works to no.
1165         Reported by Daniel Richard G. <skunk@iskunk.org>.
1166
1167         perror: Fix indentation.
1168         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1169
1170 2011-10-22  Bruno Haible  <bruno@clisp.org>
1171
1172         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1173         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1174         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1175         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1176         functions, not as a macro.
1177         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1178         macros.
1179         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1180         absence of macro.
1181         Suggested by Eric Blake.
1182         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1183
1184 2011-10-21  Bruno Haible  <bruno@clisp.org>
1185
1186         relocatable-prog-wrapper: Don't leave object files behind.
1187         * build-aux/install-reloc: Re-synchronize list of .o files to be
1188         removed with list of compilation units.
1189
1190 2011-10-20  Bruno Haible  <bruno@clisp.org>
1191
1192         openpty, posix_openpt: Remove code duplication.
1193         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1194         * lib/openpty.c: Include <stdlib.h>.
1195         (openpty): Use posix_openpt on all platforms except IRIX.
1196         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1197
1198 2011-10-20  Bruno Haible  <bruno@clisp.org>
1199
1200         unlockpt: Detect invalid argument.
1201         * lib/unlockpt.c: Include <fcntl.h>.
1202         (unlockpt): Check whether fd is valid, using fcntl().
1203         * modules/unlockpt (Depends-on): Add fcntl-h.
1204
1205 2011-10-20  Bruno Haible  <bruno@clisp.org>
1206
1207         openpty: Avoid compilation error on AIX 6.1.
1208         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1209
1210 2011-10-20  Bruno Haible  <bruno@clisp.org>
1211
1212         posix_openpt: Support for OpenBSD.
1213         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1214         (posix_openpt) [OpenBSD]: New code.
1215         * lib/grantpt.c: Include <fcntl.h>.
1216         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1217         * modules/grantpt (Depends-on): Add fcntl-h.
1218
1219 2011-10-20  Bruno Haible  <bruno@clisp.org>
1220
1221         posix_openpt test: Coding style.
1222         * tests/test-posix_openpt.c: Use GNU coding style.
1223
1224 2011-10-20  Bruno Haible  <bruno@clisp.org>
1225
1226         grantpt: Support --avoid=pt_chown.
1227         * modules/grantpt (Files): Add lib/pty-private.h.
1228
1229 2011-10-20  Bruno Haible  <bruno@clisp.org>
1230
1231         posix_openpt: Fix autoconf macro.
1232         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1233         unneeded check for _getpty.
1234
1235 2011-10-20  Bruno Haible  <bruno@clisp.org>
1236
1237         openpty: Update comments.
1238         * lib/openpty.c: Add comments about Minix.
1239
1240 2011-10-19  Eric Blake  <eblake@redhat.com>
1241
1242         openpty: relax license
1243         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1244
1245         pt_chown: use configmake to simplify build
1246         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1247
1248         ptsname and others: relax license
1249         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1250         * modules/unlockpt (License): Likewise.
1251         * modules/pt_chown (License): Likewise.
1252         * modules/ptsname (License): Likewise.
1253         * modules/ttyname_r (License): Likewise.
1254
1255 2011-10-19  Jim Meyering  <meyering@redhat.com>
1256
1257         posix_openpt: remove spurious #endif
1258         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1259
1260 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1261
1262         maint.mk: Respect $(build_aux) in web-manual rule.
1263         * top/maint.mk (web-manual): Find gen-announce script in user's
1264         $(build_aux) directory instead of hard-coding 'build-aux'.
1265
1266 2011-10-19  Bruno Haible  <bruno@clisp.org>
1267
1268         posix_openpt: Fix compilation error.
1269         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1270         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1271         Mention the openpty module as an alternative.
1272
1273 2011-10-19  Bruno Haible  <bruno@clisp.org>
1274
1275         Support for old NeXTstep 3.3 frexp().
1276         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1277         execution time of the test to 5 seconds.
1278         Reported by Daniel Richard G. <skunk@iskunk.org>.
1279
1280 2011-10-19  Bruno Haible  <bruno@clisp.org>
1281
1282         Support for old NeXTstep 3.3 sed.
1283         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1284         part, use /.../, not \|...|. Escape periods in the header file name.
1285         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1286         Reported by Daniel Richard G. <skunk@iskunk.org>.
1287
1288 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1289
1290         Support for old NeXTstep 3.3 gcc.
1291         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1292         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1293         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1294         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1295         * lib/regex.h (_Restrict_arr_): Likewise.
1296         * lib/regex_internal.h (re_token_t): Likewise.
1297         * lib/regexec.c (check_node_accept_bytes): Likewise.
1298         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1299
1300 2011-10-18  Eric Blake  <eblake@redhat.com>
1301
1302         posix_openpt: new module
1303         * modules/posix_openpt: New module.
1304         * m4/posix_openpt.m4: New file.
1305         * lib/posix_openpt.c: Likewise.
1306         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1307         (gl_STDLIB_H_DEFAULTS): Set defaults.
1308         * modules/stdlib (Makefile.am): Substitute macros.
1309         * lib/stdlib.in.h (posix_openpt): Declare.
1310         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1311         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1312         * modules/posix_openpt-tests: New test module.
1313         * tests/test-posix_openpt.c: New test.
1314
1315 2011-10-15  Bruno Haible  <bruno@clisp.org>
1316
1317         xstrtoll: Fix compilation failure.
1318         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1319         from lib/strtol.c.
1320         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1321         some platforms.
1322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1323
1324 2011-10-15  Bruno Haible  <bruno@clisp.org>
1325
1326         vasnprintf: Optimize bit search operation.
1327         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1329         gl_DOUBLE_EXPONENT_LOCATION.
1330         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1331         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1332         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1333         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1334         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1335         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1336         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1337         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1338         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1339
1340 2011-10-15  Bruno Haible  <bruno@clisp.org>
1341
1342         vasnprintf: Fix comments.
1343         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1344
1345 2011-10-14  Bruno Haible  <bruno@clisp.org>
1346
1347         Tests for module 'integer_length_ll'.
1348         * modules/integer_length_ll-tests: New file.
1349         * tests/test-integer_length_ll.c: New file.
1350
1351         New module 'integer_length_ll'.
1352         * lib/integer_length_ll.c: New file.
1353         * modules/integer_length_ll: New file.
1354
1355 2011-10-14  Bruno Haible  <bruno@clisp.org>
1356
1357         Tests for module 'integer_length_l'.
1358         * modules/integer_length_l-tests: New file.
1359         * tests/test-integer_length_l.c: New file.
1360
1361         New module 'integer_length_l'.
1362         * lib/integer_length_l.c: New file.
1363         * modules/integer_length_l: New file.
1364
1365 2011-10-14  Bruno Haible  <bruno@clisp.org>
1366
1367         Tests for module 'integer_length'.
1368         * modules/integer_length-tests: New file.
1369         * tests/test-integer_length.c: New file.
1370
1371         New module 'integer_length'.
1372         * lib/integer_length.h: New file.
1373         * lib/integer_length.c: New file.
1374         * modules/integer_length: New file.
1375
1376 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1377
1378         popen: Fix dependency conditions.
1379         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1380
1381 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1382
1383         perror: Fix autoconf test.
1384         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1385         <stdlib.h> and <string.h>.
1386
1387 2011-10-14  Bruno Haible  <bruno@clisp.org>
1388
1389         ffsl: Optimize on 64-bit platforms.
1390         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1391         unrolling.
1392
1393 2011-10-13  Bruno Haible  <bruno@clisp.org>
1394
1395         ffsl: Optimize on 32-bit platforms.
1396         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1397         use ffs() without a loop.
1398
1399         ffsl, ffsll: Optimize for GCC.
1400         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1401         * lib/ffsl.c (GCC_BUILTIN): New macro.
1402         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1403
1404 2011-10-13  Bruno Haible  <bruno@clisp.org>
1405
1406         ffs, bcopy, memset: Support symbol renaming via config.h.
1407         * lib/ffs.c: Include <config.h>.
1408         * lib/bcopy.c: Likewise.
1409         * lib/memset.c: Likewise.
1410
1411 2011-10-10  Bruno Haible  <bruno@clisp.org>
1412
1413         atanl: Simplify for platforms where 'long double' == 'double'.
1414         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1415         alternative implementation.
1416         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1417         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1418         * modules/atanl (Depends-on): Add atan. Update conditions.
1419
1420 2011-10-10  Bruno Haible  <bruno@clisp.org>
1421
1422         acosl: Simplify for platforms where 'long double' == 'double'.
1423         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1424         alternative implementation.
1425         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1426         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1427         * modules/acosl (Depends-on): Add acos. Update conditions.
1428
1429 2011-10-10  Bruno Haible  <bruno@clisp.org>
1430
1431         asinl: Simplify for platforms where 'long double' == 'double'.
1432         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1433         alternative implementation.
1434         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1435         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1436         * modules/asinl (Depends-on): Add asin. Update conditions.
1437
1438 2011-10-10  Bruno Haible  <bruno@clisp.org>
1439
1440         tanl: Simplify for platforms where 'long double' == 'double'.
1441         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1442         implementation.
1443         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1444         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1445         * modules/tanl (Depends-on): Add tan. Update conditions.
1446         (configure.ac): Don't compile trigl.c if
1447         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1448
1449 2011-10-10  Bruno Haible  <bruno@clisp.org>
1450
1451         cosl: Simplify for platforms where 'long double' == 'double'.
1452         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1453         implementation.
1454         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1455         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1456         * modules/cosl (Depends-on): Add cos. Update conditions.
1457         (configure.ac): Don't compile sincosl.c and trigl.c if
1458         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1459
1460 2011-10-10  Bruno Haible  <bruno@clisp.org>
1461
1462         sinl: Simplify for platforms where 'long double' == 'double'.
1463         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1464         implementation.
1465         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1466         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1467         * modules/sinl (Depends-on): Add sin. Update conditions.
1468         (configure.ac): Don't compile sincosl.c and trigl.c if
1469         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1470
1471 2011-10-10  Bruno Haible  <bruno@clisp.org>
1472
1473         logl: Simplify for platforms where 'long double' == 'double'.
1474         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1475         implementation.
1476         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1477         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1478         * modules/logl (Depends-on): Add log. Update conditions.
1479
1480 2011-10-10  Bruno Haible  <bruno@clisp.org>
1481
1482         expl: Simplify for platforms where 'long double' == 'double'.
1483         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1484         implementation.
1485         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1486         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1487         * modules/expl (Depends-on): Add exp. Update conditions.
1488
1489 2011-10-10  Bruno Haible  <bruno@clisp.org>
1490
1491         sqrtl: Simplify for platforms where 'long double' == 'double'.
1492         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1493         alternative implementation.
1494         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1495         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1496         * modules/sqrtl (Depends-on): Update conditions.
1497
1498 2011-10-10  Bruno Haible  <bruno@clisp.org>
1499
1500         ldexpl: Simplify for platforms where 'long double' == 'double'.
1501         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1502         alternative implementation.
1503         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1504         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1505         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1506
1507 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1508
1509         ffsll: set correct witness
1510         * modules/ffsll (configure.ac): Fix typo.
1511
1512 2011-10-10  Bruno Haible  <bruno@clisp.org>
1513
1514         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1515         * lib/printf-frexpl.c: Include <config.h>.
1516         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1517         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1518         second time.
1519         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1520         gl_LONG_DOUBLE_VS_DOUBLE.
1521         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1522         conditions.
1523
1524 2011-10-10  Bruno Haible  <bruno@clisp.org>
1525
1526         frexpl: Simplify for platforms where 'long double' == 'double'.
1527         * lib/frexpl.c: Include <config.h>.
1528         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1529         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1530         time.
1531         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1532         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1533         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1534         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1535         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1536         conditions.
1537
1538 2011-10-10  Jim Meyering  <meyering@redhat.com>
1539
1540         test-renameat: don't leave behind a temporary file
1541         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1542           ERROR: files left in build directory after distclean:
1543           ./gltests/test-renameat.too
1544           make[1]: *** [distcleancheck] Error 1
1545         Reported by Tom G. Christensen.
1546
1547 2011-10-09  Bruno Haible  <bruno@clisp.org>
1548
1549         rint: Determine RINT_LIBM correctly on AIX 7.
1550         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1551         directly, not only through a function pointer. Also accept an optional
1552         4th argument with extra code.
1553         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1554         rintf() call by gcc when optimizing.
1555
1556         mathfunc.m4: Refactor.
1557         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1558         m4 variable.
1559
1560 2011-10-09  Bruno Haible  <bruno@clisp.org>
1561
1562         rintl: Simplify for platforms where 'long double' == 'double'.
1563         * lib/rintl.c: Include <config.h>.
1564         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1565         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1566         time.
1567         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1568         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1569         * modules/rintl (Depends-on): Add rint. Update conditions.
1570
1571 2011-10-09  Bruno Haible  <bruno@clisp.org>
1572
1573         roundl: Simplify for platforms where 'long double' == 'double'.
1574         * lib/roundl.c: Include <config.h>.
1575         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1576         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1577         time.
1578         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1579         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1580         * modules/roundl (Depends-on): Add round. Update conditions.
1581
1582 2011-10-09  Bruno Haible  <bruno@clisp.org>
1583
1584         truncl: Simplify for platforms where 'long double' == 'double'.
1585         * lib/truncl.c: Include <config.h>.
1586         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1587         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1588         time.
1589         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1590         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1591         * modules/truncl (Depends-on): Add trunc. Update conditions.
1592
1593 2011-10-09  Bruno Haible  <bruno@clisp.org>
1594
1595         ceill: Simplify for platforms where 'long double' == 'double'.
1596         * lib/ceill.c: Include <config.h>.
1597         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1598         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1599         time.
1600         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1601         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1602         * modules/ceill (Depends-on): Add ceil. Update conditions.
1603
1604 2011-10-09  Bruno Haible  <bruno@clisp.org>
1605
1606         floorl: Simplify for platforms where 'long double' == 'double'.
1607         * lib/floorl.c: Include <config.h>.
1608         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1609         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1610         time.
1611         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1612         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1613         * modules/floorl (Depends-on): Add floor. Update conditions.
1614
1615 2011-10-09  Bruno Haible  <bruno@clisp.org>
1616
1617         rint: Fix ordering constraints.
1618         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1619         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1620         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1621
1622 2011-10-09  Bruno Haible  <bruno@clisp.org>
1623
1624         copysignl: Simplify for platforms where 'long double' == 'double'.
1625         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1626         alternative.
1627         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1628         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1629         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1630
1631 2011-10-09  Bruno Haible  <bruno@clisp.org>
1632
1633         Tests for module 'rintl'.
1634         * modules/rintl-tests: New file.
1635         * tests/test-rintl.c: New file.
1636
1637         New module 'rintl'.
1638         * lib/math.in.h (rintl): New declaration.
1639         * lib/rintl.c: New file.
1640         * m4/rintl.m4: New file.
1641         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1643         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1644         * modules/rintl: New file.
1645         * tests/test-math-c++.cc: Check the declaration of rintl.
1646         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1647         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1648         * doc/posix-functions/rintl.texi: Mention the new module.
1649
1650 2011-10-09  Bruno Haible  <bruno@clisp.org>
1651
1652         Tests for module 'rintf'.
1653         * modules/rintf-tests: New file.
1654         * tests/test-rintf.c: New file.
1655
1656         New module 'rintf'.
1657         * lib/math.in.h (rintf): New declaration.
1658         * lib/rintf.c: New file.
1659         * m4/rintf.m4: New file.
1660         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1662         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1663         * modules/rintf: New file.
1664         * tests/test-math-c++.cc: Check the declaration of rintf.
1665         * doc/posix-functions/rintf.texi: Mention the new module.
1666
1667 2011-10-09  Bruno Haible  <bruno@clisp.org>
1668
1669         rint: Support for MSVC.
1670         * lib/math.in.h (rint): New declaration.
1671         * lib/rint.c: New file.
1672         * m4/rint.m4: New file.
1673         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1675         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1676         * modules/rint (Description): Fix.
1677         (Files): Add lib/rint.c, m4/rint.m4.
1678         (Depends-on): Add math.
1679         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1680         gl_MATH_MODULE_INDICATOR.
1681         * tests/test-math-c++.cc: Check the declaration of rint.
1682         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1683         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1684         * doc/posix-functions/rint.texi: Mention the replacement provided by
1685         the module.
1686
1687         rint tests: More tests.
1688         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1689         minus-zero.h, infinity.h, nan.h.
1690         (main): Skip the test if the current rounding mode is not standard. Add
1691         tests for negative numbers, minus zero, infinity, NaN.
1692         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1693         tests/nan.h.
1694         (Depends-on): Add isnand-nolibm.
1695
1696 2011-10-09  Bruno Haible  <bruno@clisp.org>
1697
1698         Tests for module 'copysignl'.
1699         * modules/copysignl-tests: New file.
1700         * tests/test-copysignl.c: New file.
1701
1702         New module 'copysignl'.
1703         * lib/math.in.h (copysignl): New declaration.
1704         * lib/copysignl.c: New file.
1705         * m4/copysignl.m4: New file.
1706         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1708         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1709         HAVE_COPYSIGNL.
1710         * modules/copysignl: New file.
1711         * tests/test-math-c++.cc: Check the declaration of copysignl.
1712         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1713         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1714         * doc/posix-functions/copysignl.texi: Mention the new module.
1715
1716 2011-10-09  Bruno Haible  <bruno@clisp.org>
1717
1718         Tests for module 'copysignf'.
1719         * modules/copysignf-tests: New file.
1720         * tests/test-copysignf.c: New file.
1721
1722         New module 'copysignf'.
1723         * lib/math.in.h (copysignf): New declaration.
1724         * lib/copysignf.c: New file.
1725         * m4/copysignf.m4: New file.
1726         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1728         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1729         HAVE_COPYSIGNF.
1730         * modules/copysignf: New file.
1731         * tests/test-math-c++.cc: Check the declaration of copysignf.
1732         * doc/posix-functions/copysignf.texi: Mention the new module.
1733
1734 2011-10-09  Bruno Haible  <bruno@clisp.org>
1735
1736         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1737         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1738         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1739         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1740         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1741         gl_SIGNAL_H_DEFAULTS.
1742
1743 2011-10-09  Bruno Haible  <bruno@clisp.org>
1744
1745         poll: Make macro safer.
1746         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1747         ac_cv_header_poll_h is not set.
1748
1749 2011-10-09  Bruno Haible  <bruno@clisp.org>
1750
1751         copysign: Provide replacement.
1752         * lib/math.in.h (copysign): New declaration.
1753         * lib/copysign.c: New file.
1754         * m4/copysign.m4: New file.
1755         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1756         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1757         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1758         HAVE_COPYSIGN.
1759         * modules/copysign (Description): Clarify.
1760         (Files): Add lib/copysign.c, m4/copysign.m4.
1761         (Depends-on): Add math, signbit.
1762         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1763         gl_MATH_MODULE_INDICATOR.
1764         * tests/test-math-c++.cc: Check the declaration of copysign.
1765         * doc/posix-functions/copysign.texi: Mention the effects of the module
1766         on Minix and MSVC.
1767
1768 2011-10-09  Bruno Haible  <bruno@clisp.org>
1769
1770         isinf: Ensure macro on AIX 5.1.
1771         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1772         macro.
1773         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1774
1775 2011-10-09  Bruno Haible  <bruno@clisp.org>
1776
1777         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1778         * modules/snprintf-posix-tests (configure.ac): Require
1779         gl_LONG_DOUBLE_VS_DOUBLE.
1780         * modules/sprintf-posix-tests (configure.ac): Likewise.
1781         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1782         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1783         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1784         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1785         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1786         tests on platforms where 'long double' is the same as 'double'.
1787         * tests/test-sprintf-posix.h (test_function): Likewise.
1788         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1789         * tests/test-vasprintf-posix.c (test_function): Likewise.
1790
1791         *printf: Fix for platforms where 'long double' == 'double'.
1792         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1793         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1794         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1795         * modules/fprintf-posix (Files): Likewise.
1796         * modules/obstack-printf-posix (Files): Likewise.
1797         * modules/snprintf-posix (Files): Likewise.
1798         * modules/sprintf-posix (Files): Likewise.
1799         * modules/vasnprintf (Files): Likewise.
1800         * modules/vasnprintf-posix (Files): Likewise.
1801         * modules/vasprintf-posix (Files): Likewise.
1802         * modules/vdprintf-posix (Files): Likewise.
1803         * modules/vfprintf-posix (Files): Likewise.
1804         * modules/vsnprintf-posix (Files): Likewise.
1805         * modules/vsprintf-posix (Files): Likewise.
1806         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1807         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1808         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1809         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1810         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1811         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1812         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1813
1814         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1815         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1816         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1817         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1818         'long double'.
1819         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1820
1821         isinf: Fix for platforms where 'long double' == 'double'.
1822         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1823         Don't blindly assume 80-bit 'long double'.
1824
1825         isfinite: Fix for platforms where 'long double' == 'double'.
1826         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1827         Don't blindly assume 80-bit 'long double'.
1828
1829         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1830         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1831         * modules/isfinite-tests (configure.ac): Require
1832         gl_LONG_DOUBLE_VS_DOUBLE.
1833         * modules/isinf-tests (configure.ac): Likewise.
1834         * modules/isnan-tests (configure.ac): Likewise.
1835         * modules/isnanl-tests (configure.ac): Likewise.
1836         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1837         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1838         tests on platforms where 'long double' is the same as 'double'.
1839         * tests/test-isinf.c (test_isinfl): Likewise.
1840         * tests/test-isnan.c (test_long_double): Likewise.
1841         * tests/test-isnanl.h (main): Likewise.
1842
1843 2011-10-08  Bruno Haible  <bruno@clisp.org>
1844
1845         Tests for module 'tanhf'.
1846         * modules/tanhf-tests: New file.
1847         * tests/test-tanhf.c: New file.
1848
1849         New module 'tanhf'.
1850         * lib/math.in.h (tanhf): New declaration.
1851         * lib/tanhf.c: New file.
1852         * m4/tanhf.m4: New file.
1853         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1855         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1856         * modules/tanhf: New file.
1857         * tests/test-math-c++.cc: Check the declaration of tanhf.
1858         * doc/posix-functions/tanhf.texi: Mention the new module.
1859
1860         tanh: Use a .m4 file.
1861         * m4/tanh.m4: New file.
1862         * modules/tanh (Files): Add it.
1863         (configure.ac): Just invoke gl_FUNC_TANH.
1864
1865 2011-10-08  Bruno Haible  <bruno@clisp.org>
1866
1867         Tests for module 'coshf'.
1868         * modules/coshf-tests: New file.
1869         * tests/test-coshf.c: New file.
1870
1871         New module 'coshf'.
1872         * lib/math.in.h (coshf): New declaration.
1873         * lib/coshf.c: New file.
1874         * m4/coshf.m4: New file.
1875         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1877         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1878         * modules/coshf: New file.
1879         * tests/test-math-c++.cc: Check the declaration of coshf.
1880         * doc/posix-functions/coshf.texi: Mention the new module.
1881
1882         cosh: Use a .m4 file.
1883         * m4/cosh.m4: New file.
1884         * modules/cosh (Files): Add it.
1885         (configure.ac): Just invoke gl_FUNC_COSH.
1886
1887 2011-10-08  Bruno Haible  <bruno@clisp.org>
1888
1889         Tests for module 'sinhf'.
1890         * modules/sinhf-tests: New file.
1891         * tests/test-sinhf.c: New file.
1892
1893         New module 'sinhf'.
1894         * lib/math.in.h (sinhf): New declaration.
1895         * lib/sinhf.c: New file.
1896         * m4/sinhf.m4: New file.
1897         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1899         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1900         * modules/sinhf: New file.
1901         * tests/test-math-c++.cc: Check the declaration of sinhf.
1902         * doc/posix-functions/sinhf.texi: Mention the new module.
1903
1904         sinh: Use a .m4 file.
1905         * m4/sinh.m4: New file.
1906         * modules/sinh (Files): Add it.
1907         (configure.ac): Just invoke gl_FUNC_SINH.
1908
1909 2011-10-08  Bruno Haible  <bruno@clisp.org>
1910
1911         Tests for module 'atan2f'.
1912         * modules/atan2f-tests: New file.
1913         * tests/test-atan2f.c: New file.
1914
1915         New module 'atan2f'.
1916         * lib/math.in.h (atan2f): New declaration.
1917         * lib/atan2f.c: New file.
1918         * m4/atan2f.m4: New file.
1919         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1921         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1922         * modules/atan2f: New file.
1923         * tests/test-math-c++.cc: Check the declaration of atan2f.
1924         * doc/posix-functions/atan2f.texi: Mention the new module.
1925
1926         atan2: Use a .m4 file.
1927         * m4/atan2.m4: New file.
1928         * modules/atan2 (Files): Add it.
1929         (configure.ac): Just invoke gl_FUNC_ATAN2.
1930
1931 2011-10-08  Bruno Haible  <bruno@clisp.org>
1932
1933         Tests for module 'atanf'.
1934         * modules/atanf-tests: New file.
1935         * tests/test-atanf.c: New file.
1936
1937         New module 'atanf'.
1938         * lib/math.in.h (atanf): New declaration.
1939         * lib/atanf.c: New file.
1940         * m4/atanf.m4: New file.
1941         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1943         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1944         * modules/atanf: New file.
1945         * tests/test-math-c++.cc: Check the declaration of atanf.
1946         * doc/posix-functions/atanf.texi: Mention the new module.
1947
1948         atan: Use a .m4 file.
1949         * m4/atan.m4: New file.
1950         * modules/atan (Files): Add it.
1951         (configure.ac): Just invoke gl_FUNC_ATAN.
1952
1953 2011-10-08  Bruno Haible  <bruno@clisp.org>
1954
1955         Tests for module 'acosf'.
1956         * modules/acosf-tests: New file.
1957         * tests/test-acosf.c: New file.
1958
1959         New module 'acosf'.
1960         * lib/math.in.h (acosf): New declaration.
1961         * lib/acosf.c: New file.
1962         * m4/acosf.m4: New file.
1963         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1965         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1966         * modules/acosf: New file.
1967         * tests/test-math-c++.cc: Check the declaration of acosf.
1968         * doc/posix-functions/acosf.texi: Mention the new module.
1969
1970         acos: Use a .m4 file.
1971         * m4/acos.m4: New file.
1972         * modules/acos (Files): Add it.
1973         (configure.ac): Just invoke gl_FUNC_ACOS.
1974
1975 2011-10-08  Bruno Haible  <bruno@clisp.org>
1976
1977         Tests for module 'asinf'.
1978         * modules/asinf-tests: New file.
1979         * tests/test-asinf.c: New file.
1980
1981         New module 'asinf'.
1982         * lib/math.in.h (asinf): New declaration.
1983         * lib/asinf.c: New file.
1984         * m4/asinf.m4: New file.
1985         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1987         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1988         * modules/asinf: New file.
1989         * tests/test-math-c++.cc: Check the declaration of asinf.
1990         * doc/posix-functions/asinf.texi: Mention the new module.
1991
1992         asin: Use a .m4 file.
1993         * m4/asin.m4: New file.
1994         * modules/asin (Files): Add it.
1995         (configure.ac): Just invoke gl_FUNC_ASIN.
1996
1997 2011-10-08  Bruno Haible  <bruno@clisp.org>
1998
1999         Tests for module 'tanf'.
2000         * modules/tanf-tests: New file.
2001         * tests/test-tanf.c: New file.
2002
2003         New module 'tanf'.
2004         * lib/math.in.h (tanf): New declaration.
2005         * lib/tanf.c: New file.
2006         * m4/tanf.m4: New file.
2007         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2009         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2010         * modules/tanf: New file.
2011         * tests/test-math-c++.cc: Check the declaration of tanf.
2012         * doc/posix-functions/tanf.texi: Mention the new module.
2013
2014         tan: Use a .m4 file.
2015         * m4/tan.m4: New file.
2016         * modules/tan (Files): Add it.
2017         (configure.ac): Just invoke gl_FUNC_TAN.
2018
2019 2011-10-08  Bruno Haible  <bruno@clisp.org>
2020
2021         Tests for module 'cosf'.
2022         * modules/cosf-tests: New file.
2023         * tests/test-cosf.c: New file.
2024
2025         New module 'cosf'.
2026         * lib/math.in.h (cosf): New declaration.
2027         * lib/cosf.c: New file.
2028         * m4/cosf.m4: New file.
2029         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2031         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2032         * modules/cosf: New file.
2033         * tests/test-math-c++.cc: Check the declaration of cosf.
2034         * doc/posix-functions/cosf.texi: Mention the new module.
2035
2036         cos: Use a .m4 file.
2037         * m4/cos.m4: New file.
2038         * modules/cos (Files): Add it.
2039         (configure.ac): Just invoke gl_FUNC_COS.
2040
2041 2011-10-08  Bruno Haible  <bruno@clisp.org>
2042
2043         Tests for module 'sinf'.
2044         * modules/sinf-tests: New file.
2045         * tests/test-sinf.c: New file.
2046
2047         New module 'sinf'.
2048         * lib/math.in.h (sinf): New declaration.
2049         * lib/sinf.c: New file.
2050         * m4/sinf.m4: New file.
2051         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2053         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2054         * modules/sinf: New file.
2055         * tests/test-math-c++.cc: Check the declaration of sinf.
2056         * doc/posix-functions/sinf.texi: Mention the new module.
2057
2058         sin: Use a .m4 file.
2059         * m4/sin.m4: New file.
2060         * modules/sin (Files): Add it.
2061         (configure.ac): Just invoke gl_FUNC_SIN.
2062
2063 2011-10-08  Bruno Haible  <bruno@clisp.org>
2064
2065         Tests for module 'powf'.
2066         * modules/powf-tests: New file.
2067         * tests/test-powf.c: New file.
2068
2069         New module 'powf'.
2070         * lib/math.in.h (powf): New declaration.
2071         * lib/powf.c: New file.
2072         * m4/powf.m4: New file.
2073         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2075         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2076         * modules/powf: New file.
2077         * tests/test-math-c++.cc: Check the declaration of powf.
2078         * doc/posix-functions/powf.texi: Mention the new module.
2079
2080         pow: Use a .m4 file.
2081         * m4/pow.m4: New file.
2082         * modules/pow (Files): Add it.
2083         (configure.ac): Just invoke gl_FUNC_POW.
2084
2085 2011-10-08  Bruno Haible  <bruno@clisp.org>
2086
2087         Tests for module 'log10f'.
2088         * modules/log10f-tests: New file.
2089         * tests/test-log10f.c: New file.
2090
2091         New module 'log10f'.
2092         * lib/math.in.h (log10f): New declaration.
2093         * lib/log10f.c: New file.
2094         * m4/log10f.m4: New file.
2095         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2097         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2098         * modules/log10f: New file.
2099         * tests/test-math-c++.cc: Check the declaration of log10f.
2100         * doc/posix-functions/log10f.texi: Mention the new module.
2101
2102         log10: Use a .m4 file.
2103         * m4/log10.m4: New file.
2104         * modules/log10 (Files): Add it.
2105         (configure.ac): Just invoke gl_FUNC_LOG10.
2106
2107 2011-10-08  Bruno Haible  <bruno@clisp.org>
2108
2109         Tests for module 'logf'.
2110         * modules/logf-tests: New file.
2111         * tests/test-logf.c: New file.
2112
2113         New module 'logf'.
2114         * lib/math.in.h (logf): New declaration.
2115         * lib/logf.c: New file.
2116         * m4/logf.m4: New file.
2117         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2119         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2120         * modules/logf: New file.
2121         * tests/test-math-c++.cc: Check the declaration of logf.
2122         * doc/posix-functions/logf.texi: Mention the new module.
2123
2124         log: Use a .m4 file.
2125         * m4/log.m4: New file.
2126         * modules/log (Files): Add it.
2127         (configure.ac): Just invoke gl_FUNC_LOG.
2128
2129 2011-10-08  Bruno Haible  <bruno@clisp.org>
2130
2131         Tests for module 'expf'.
2132         * modules/expf-tests: New file.
2133         * tests/test-expf.c: New file.
2134
2135         New module 'expf'.
2136         * lib/math.in.h (expf): New declaration.
2137         * lib/expf.c: New file.
2138         * m4/expf.m4: New file.
2139         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2141         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2142         * modules/expf: New file.
2143         * tests/test-math-c++.cc: Check the declaration of expf.
2144         * doc/posix-functions/expf.texi: Mention the new module.
2145
2146         exp: Use a .m4 file.
2147         * m4/exp.m4: New file.
2148         * modules/exp (Files): Add it.
2149         (configure.ac): Just invoke gl_FUNC_EXP.
2150
2151 2011-10-08  Bruno Haible  <bruno@clisp.org>
2152
2153         Tests for module 'sqrtf'.
2154         * modules/sqrtf-tests: New file.
2155         * tests/test-sqrtf.c: New file.
2156
2157         New module 'sqrtf'.
2158         * lib/math.in.h (sqrtf): New declaration.
2159         * lib/sqrtf.c: New file.
2160         * m4/sqrtf.m4: New file.
2161         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2163         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2164         * modules/sqrtf: New file.
2165         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2166         * doc/posix-functions/sqrtf.texi: Mention the new module.
2167
2168 2011-10-08  Bruno Haible  <bruno@clisp.org>
2169
2170         Tests: Avoid link failures w.r.t. libintl.
2171         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2172         $(LIBINTL).
2173         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2174         $(LIBINTL).
2175         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2176         against $(LIBINTL).
2177         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2178         $(LIBINTL).
2179         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2180         $(LIBINTL).
2181         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2182
2183 2011-10-08  Bruno Haible  <bruno@clisp.org>
2184
2185         pow tests: Defeat compiler optimizations.
2186         * tests/test-pow.c (main): Assign arguments to x and y before use.
2187
2188 2011-10-08  Bruno Haible  <bruno@clisp.org>
2189
2190         gnulib-tool: Improve last commit.
2191         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2192         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2193         ignore dependencies that are not among the modules list.
2194
2195 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2196
2197         gnulib-tool: don't follow dependencies to avoided modules
2198         This fixes a bug that is related to the previous one.
2199         * gnulib-tool (func_modules_transitive_closure)
2200         (func_emit_autoconf_snippets):
2201         Check whether a dependency is acceptable before using it.
2202         (--extract-dependencies): Report an error if --avoid is also used,
2203         since this combination of options is not yet supported.
2204
2205         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2206         Problem reported by Peter Dyballa in
2207         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2208         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2209         when echoing "$condition".
2210
2211 2011-10-07  Bruno Haible  <bruno@clisp.org>
2212
2213         Fix documentation about math functions on MacOS X.
2214         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2215         MacOS X 10.5.
2216         * doc/posix-functions/fdim.texi: Likewise.
2217         * doc/posix-functions/feclearexcept.texi: Likewise.
2218         * doc/posix-functions/fegetenv.texi: Likewise.
2219         * doc/posix-functions/fegetround.texi: Likewise.
2220         * doc/posix-functions/feholdexcept.texi: Likewise.
2221         * doc/posix-functions/feraiseexcept.texi: Likewise.
2222         * doc/posix-functions/fesetenv.texi: Likewise.
2223         * doc/posix-functions/fesetround.texi: Likewise.
2224         * doc/posix-functions/fetestexcept.texi: Likewise.
2225         * doc/posix-functions/feupdateenv.texi: Likewise.
2226         * doc/posix-functions/fmax.texi: Likewise.
2227         * doc/posix-functions/fmin.texi: Likewise.
2228         * doc/posix-functions/log2.texi: Likewise.
2229         * doc/posix-functions/modff.texi: Likewise.
2230         * doc/posix-functions/nan.texi: Likewise.
2231         * doc/posix-functions/nanf.texi: Likewise.
2232         * doc/posix-functions/nextafterf.texi: Likewise.
2233         * doc/posix-functions/remquo.texi: Likewise.
2234
2235 2011-10-07  Bruno Haible  <bruno@clisp.org>
2236
2237         modff: Drop assumption about library that defines modff.
2238         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2239         AC_CHECK_FUNCS.
2240         * modules/modff (Files): Add m4/mathfunc.m4.
2241
2242 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2243
2244         raise tests: Avoid a GCC warning.
2245         * tests/test-raise.c (handler): Use _Noreturn.
2246
2247 2011-10-07  Bruno Haible  <bruno@clisp.org>
2248
2249         Tests for module 'ldexpf'.
2250         * modules/ldexpf-tests: New file.
2251         * tests/test-ldexpf.c: New file.
2252
2253         New module 'ldexpf'.
2254         * lib/math.in.h (ldexpf): New declaration.
2255         * lib/ldexpf.c: New file.
2256         * m4/ldexpf.m4: New file.
2257         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2259         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2260         * modules/ldexpf: New file.
2261         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2262         * doc/posix-functions/ldexpf.texi: Mention the new module.
2263
2264 2011-10-06  Bruno Haible  <bruno@clisp.org>
2265
2266         frexpf: Work around problems on IRIX and mingw.
2267         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2269         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2270         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2271         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2272         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2273         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2274
2275 2011-10-06  Bruno Haible  <bruno@clisp.org>
2276
2277         fabsf: Drop assumption about library that defines fabsf.
2278         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2279         AC_CHECK_FUNCS.
2280         * modules/fabsf (Files): Add m4/mathfunc.m4.
2281
2282 2011-10-06  Bruno Haible  <bruno@clisp.org>
2283
2284         frexpf: Drop assumption about library that defines frexpf.
2285         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2286         'int *', 'float *', 'long double *', 'float', 'long double'.
2287         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2288         AC_CHECK_FUNCS.
2289         * modules/frexpf (Files): Add m4/mathfunc.m4.
2290
2291         Tests for module 'frexpf'.
2292         * modules/frexpf-tests: New file.
2293         * tests/test-frexpf.c: New file.
2294
2295         New module 'frexpf'.
2296         * lib/math.in.h (frexpf): New declaration.
2297         * lib/frexpf.c: New file.
2298         * m4/frexpf.m4: New file.
2299         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2301         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2302         * modules/frexpf: New file.
2303         * tests/test-math-c++.cc: Check the declaration of frexpf.
2304         * doc/posix-functions/frexpf.texi: Mention the new module.
2305
2306 2011-10-06  Bruno Haible  <bruno@clisp.org>
2307
2308         math: Sort function declarations of math.in.h.
2309         * lib/math.in.h (frexp, logb): Move declarations.
2310
2311 2011-10-05  Bruno Haible  <bruno@clisp.org>
2312
2313         Tests for module 'modff'.
2314         * modules/modff-tests: New file.
2315         * tests/test-modff.c: New file.
2316
2317         New module 'modff'.
2318         * lib/math.in.h (modff): New declaration.
2319         * lib/modff.c: New file.
2320         * m4/modff.m4: New file.
2321         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2323         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2324         * modules/modff: New file.
2325         * tests/test-math-c++.cc: Check the declaration of modff.
2326         * doc/posix-functions/modff.texi: Mention the new module.
2327
2328         modf tests: Make test sharper.
2329         * tests/test-modf.c (main): Strengthen upper bound.
2330
2331         modf: Use a .m4 file.
2332         * m4/modf.m4: New file.
2333         * modules/modf (Files): Add it.
2334         (configure.ac): Just invoke gl_FUNC_MODF.
2335
2336 2011-10-05  Bruno Haible  <bruno@clisp.org>
2337
2338         Tests for module 'fmodf'.
2339         * modules/fmodf-tests: New file.
2340         * tests/test-fmodf.c: New file.
2341
2342         New module 'fmodf'.
2343         * lib/math.in.h (fmodf): New declaration.
2344         * lib/fmodf.c: New file.
2345         * m4/fmodf.m4: New file.
2346         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2348         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2349         * modules/fmodf: New file.
2350         * tests/test-math-c++.cc: Check the declaration of fmodf.
2351         * doc/posix-functions/fmodf.texi: Mention the new module.
2352
2353         fmod: Use a .m4 file.
2354         * m4/fmod.m4: New file.
2355         * modules/fmod (Files): Add it.
2356         (configure.ac): Just invoke gl_FUNC_FMOD.
2357
2358 2011-10-05  Bruno Haible  <bruno@clisp.org>
2359
2360         Tests for module 'fabsf'.
2361         * modules/fabsf-tests: New file.
2362         * tests/test-fabsf.c: New file.
2363
2364         New module 'fabsf'.
2365         * lib/math.in.h (fabsf): New declaration.
2366         * lib/fabsf.c: New file.
2367         * m4/fabsf.m4: New file.
2368         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2370         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2371         * modules/fabsf: New file.
2372         * tests/test-math-c++.cc: Check the declaration of fabsf.
2373         * doc/posix-functions/fabsf.texi: Mention the new module.
2374
2375         fabs: Use a .m4 file.
2376         * m4/fabs.m4: New file.
2377         * modules/fabs (Files): Add it.
2378         (configure.ac): Just invoke gl_FUNC_FABS.
2379
2380 2011-10-05  Jim Meyering  <meyering@redhat.com>
2381
2382         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2383         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2384         ls -lL regression introduced in coreutils-8.12, it does so at the
2385         cost of an additional stat call in the common case.  Besides, now
2386         that the kernel change that prompted commit 95f7c57f has been reverted
2387         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2388         we have no use for commit 95f7c57f, "file-has-acl: use
2389         acl_extended_file_nofollow if available".
2390
2391 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2392
2393         file-has-acl: revert unintended change in behavior of ls -L
2394         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2395         derived from...
2396         (file_has_acl): ...code here.  Call it.
2397         This problem was introduced with 2011-07-22 commit 95f7c57f,
2398         "file-has-acl: use acl_extended_file_nofollow if available".
2399         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2400
2401 2011-10-03  Bruno Haible  <bruno@clisp.org>
2402
2403         poll: Avoid link errors on MSVC.
2404         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2405         * modules/poll (Depends-on): Add sockets.
2406         (Link): New section.
2407         * NEWS: Mention the change.
2408         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2409         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2410         $(LIB_POLL) instead of $(LIBSOCKET).
2411
2412 2011-10-03  Bruno Haible  <bruno@clisp.org>
2413
2414         sys_select tests: Fix link error on MSVC 9.
2415         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2416         with $(LIB_SELECT) instead of $(LIBSOCKET).
2417
2418 2011-10-03  Bruno Haible  <bruno@clisp.org>
2419
2420         sys_select: Fix compilation error on mingw.
2421         * lib/sys_select.in.h: On native Windows, include <io.h>.
2422
2423 2011-10-03  Bruno Haible  <bruno@clisp.org>
2424
2425         wmemset: Support for MSVC.
2426         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2427         whether wmemset() exists.
2428
2429 2011-10-03  Bruno Haible  <bruno@clisp.org>
2430
2431         wmemmove: Support for MSVC.
2432         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2433         whether wmemmove() exists.
2434
2435 2011-10-03  Bruno Haible  <bruno@clisp.org>
2436
2437         wmemcpy: Support for MSVC.
2438         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2439         whether wmemcpy() exists.
2440
2441 2011-10-03  Bruno Haible  <bruno@clisp.org>
2442
2443         wmemcmp: Support for MSVC.
2444         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2445         whether wmemcmp() exists.
2446
2447 2011-10-03  Bruno Haible  <bruno@clisp.org>
2448
2449         wmemchr: Support for MSVC.
2450         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2451         whether wmemchr() exists.
2452
2453 2011-10-03  Bruno Haible  <bruno@clisp.org>
2454
2455         glthread/*, strsignal: Support for MSVC.
2456         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2457         including <winsock.h> on MSVC 9.
2458         * lib/glthread/lock.h: Likewise.
2459         * lib/glthread/thread.h: Likewise.
2460         * lib/glthread/tls.h: Likewise.
2461         * lib/glthread/yield.h: Likewise.
2462         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2463         if HAVE_UNISTD_H is false.
2464         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2465
2466 2011-10-03  Bruno Haible  <bruno@clisp.org>
2467
2468         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2469         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2470         Set to 100000.
2471
2472 2011-10-03  Bruno Haible  <bruno@clisp.org>
2473
2474         acl: Fix specification.
2475         * lib/file-has-acl.c (file_has_acl): Fix specification.
2476
2477 2011-10-03  Bruno Haible  <bruno@clisp.org>
2478
2479         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2480         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2481         (compute_curr_prefix, shared_library_fullname,
2482         find_shared_library_fullname, get_shared_library_fullname, relocate):
2483         Use it together with PIC && INSTALLDIR.
2484         Reported by <jojelino@gmail.com>
2485         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2486
2487 2011-10-01  Jim Meyering  <meyering@redhat.com>
2488
2489         maint.mk: adjust a release-related rule not to require use of gzip
2490         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2491         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2492         projects that build only .tar.xz files.  Also fix an erroneous test.
2493
2494         test-linkat: don't leave behind a temporary file
2495         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2496         Otherwise, coreutils' "make distcheck" would fail with this:
2497           Only in /c/cu/tests/torture/coreutils/test/\
2498             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2499           make[2]: *** [my-distcheck] Error 1
2500
2501         float, math: add omitted file
2502         * lib/itold.c: Add file, required for yesterday's float change.
2503
2504 2011-10-01  Bruno Haible  <bruno@clisp.org>
2505
2506         isinf: Fix for OpenBSD/x86.
2507         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2508         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2509         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2510
2511 2011-10-01  Bruno Haible  <bruno@clisp.org>
2512
2513         isfinite: Fix syntax error in configure test.
2514         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2515
2516         isfinite: Fix typo.
2517         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2518         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2519
2520 2011-10-01  Bruno Haible  <bruno@clisp.org>
2521
2522         nonblocking tests: Fix test failure on Linux/IA-64.
2523         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2524         Set to 270000.
2525
2526 2011-10-01  Bruno Haible  <bruno@clisp.org>
2527
2528         mkfifoat tests: Fix a test failure on mingw.
2529         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2530         with error ENOSYS.
2531
2532 2011-09-30  Bruno Haible  <bruno@clisp.org>
2533
2534         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2535         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2536         'long double'. Set REPLACE_ITOLD.
2537         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2538         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2539         * lib/itold.c: New file.
2540         * modules/float (Files): Add lib/itold.c.
2541         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2542         (Makefile.am): Substitute REPLACE_ITOLD.
2543         * modules/math (Depends-on): Add float.
2544         (Makefile.am): Substitute REPLACE_ITOLD.
2545         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2546         * doc/posix-headers/math.texi: Likewise.
2547         * doc/posix-functions/logl.texi: Likewise.
2548
2549 2011-09-30  Bruno Haible  <bruno@clisp.org>
2550
2551         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2552         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2553         Set to 140000.
2554
2555 2011-09-30  Bruno Haible  <bruno@clisp.org>
2556
2557         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2558         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2559         invocation, say "right after AC_PROG_CC_STDC", not "right after
2560         AC_PROG_CC".
2561         Reported by Gary V. Vaughan <gary@gnu.org>.
2562
2563 2011-09-30  Bruno Haible  <bruno@clisp.org>
2564
2565         Centralize C99 requirement.
2566         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2567         * modules/stdarg (configure.ac-early): Invoke it instead of
2568         AC_PROG_CC_STDC.
2569         Reported by Gary V. Vaughan and Paul Eggert.
2570
2571 2011-09-29  Bruno Haible  <bruno@clisp.org>
2572
2573         float: Fix LDBL_MAX value on Linux/PowerPC.
2574         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2575         on Linux/PowerPC.
2576         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2577         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2578         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2579         platform.
2580         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2581
2582 2011-09-29  Bruno Haible  <bruno@clisp.org>
2583
2584         doc: Improve doc about gl_EARLY.
2585         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2586         AC_PROG_CC_STDC invocation.
2587         Reported by Gary V. Vaughan <gary@gnu.org>.
2588
2589 2011-09-28  Bruno Haible  <bruno@clisp.org>
2590
2591         fgetc, fputc, fread, fwrite tests: Fix link error.
2592         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2593         on non-MSVC platforms.
2594         * tests/test-fputc.c (main): Likewise.
2595         * tests/test-fread.c (main): Likewise.
2596         * tests/test-fwrite.c (main): Likewise.
2597         Reported by Jim Meyering.
2598
2599 2011-09-27  Bruno Haible  <bruno@clisp.org>
2600
2601         fputc, fwrite tests: Avoid test failure on MSVC.
2602         * tests/test-fgetc.c: Include msvc-inval.h.
2603         (main): Invoke gl_msvc_inval_ensure_handler.
2604         * tests/test-fputc.c: Include msvc-inval.h.
2605         (main): Invoke gl_msvc_inval_ensure_handler.
2606         * tests/test-fread.c: Include msvc-inval.h.
2607         (main): Invoke gl_msvc_inval_ensure_handler.
2608         * tests/test-fwrite.c: Include msvc-inval.h.
2609         (main): Invoke gl_msvc_inval_ensure_handler.
2610         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2611         * modules/fputc-tests (Depends-on): Likewise.
2612         * modules/fread-tests (Depends-on): Likewise.
2613         * modules/fwrite-tests (Depends-on): Likewise.
2614
2615 2011-09-27  Bruno Haible  <bruno@clisp.org>
2616
2617         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2618         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2619         (raise): Remove older, duplicated declaration.
2620         (_gl_raise_SIGPIPE): New declaration.
2621         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2622         (rpl_raise): Remove function.
2623         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2624         a gnulib-defined SIGPIPE here.
2625         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2626         'sigprocmask' has detected missing signal-blocking and the module
2627         'sigpipe' is enabled.
2628         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2629
2630 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2631
2632         base64-tests: avoid memory leak
2633         * tests/test-base64.c (main): Plug memory leak.
2634
2635         base32: new module
2636         * modules/base32: New module.
2637         * lib/base32.c: New file.
2638         * lib/base32.h: Likewise.
2639         * m4/base32.m4: Likewise.
2640         * modules/base32-tests: New test.
2641         * tests/test-base32.c: Likewise.
2642         * MODULES.html.sh (Misc): Mention it.
2643
2644 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2645
2646         gnulib: use more-standard license notice wording
2647         * gnulib-tool (func_emit_copyright_notice): When emitting a
2648         license notice into a file, use the standard wording as suggested
2649         by the current information for GNU maintainers, except say "file"
2650         rather than "program".  The new wording gives a license version
2651         number, which addresses an issue raised by Glenn Morris in
2652         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2653         * m4/onceonly.m4: Use that same wording here, too.
2654
2655         dup2: minor simplification
2656         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2657         as lib/dup2.c no longer uses 'inline'.
2658
2659 2011-09-25  Bruno Haible  <bruno@clisp.org>
2660
2661         strings: Fix compilation error on MSVC.
2662         * lib/strings.in.h: Include <stddef.h> for size_t.
2663
2664 2011-09-25  Bruno Haible  <bruno@clisp.org>
2665
2666         fflush et al.: Document limitation on MSVC.
2667         * doc/posix-functions/fflush.texi: Document possible crash in handling
2668         mode other than DEFAULT_HANDLING.
2669         * doc/posix-functions/fgetc.texi: Likewise.
2670         * doc/posix-functions/fputc.texi: Likewise.
2671         * doc/posix-functions/fread.texi: Likewise.
2672         * doc/posix-functions/fwrite.texi: Likewise.
2673
2674 2011-09-25  Bruno Haible  <bruno@clisp.org>
2675
2676         msvc-inval: Allow three invalid parameter handling modes.
2677         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2678         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2679         macros.
2680         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2681         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2682         SANE_LIBRARY_HANDLING as a no-op.
2683         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2684         <stdlib.h>.
2685         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2686
2687 2011-09-25  Bruno Haible  <bruno@clisp.org>
2688
2689         msvc-inval: Make handler multithread-safe.
2690         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2691         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2692         declarations.
2693         (gl_msvc_inval_current): New declaration.
2694         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2695         Operate on the structure returned by gl_msvc_inval_current().
2696         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2697         Remove varaiables.
2698         (tls_index, tls_initialized): New variables.
2699         (not_per_thread): New variable.
2700         (gl_msvc_inval_current): New function.
2701         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2702         returned by gl_msvc_inval_current().
2703
2704 2011-09-25  Bruno Haible  <bruno@clisp.org>
2705
2706         msvc-inval: Install handler globally.
2707         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2708         !_MSC_VER.
2709         (gl_msvc_invalid_parameter_handler): Remove declaration.
2710         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2711         declarations.
2712         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2713         Install the handler globally, don't uninstall it.
2714         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2715         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2716         currently valid, call RaiseException instead.
2717         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2718         for !_MSC_VER.
2719
2720 2011-09-25  Bruno Haible  <bruno@clisp.org>
2721
2722         strerror_r-posix: Fix for MSVC 9.
2723         * lib/strerror_r.c (local_snprintf): New function.
2724         (snprintf): Define to local_snprintf, not to _snprintf.
2725
2726 2011-09-25  Bruno Haible  <bruno@clisp.org>
2727
2728         ftruncate: Support for MSVC 9.
2729         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2730         (chsize_nothrow): New function.
2731         (chsize): Redefine as a macro.
2732         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2733         * modules/ftruncate (Depends-on): Add msvc-inval.
2734
2735 2011-09-25  Bruno Haible  <bruno@clisp.org>
2736
2737         New module 'fstat'.
2738         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2739         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2740         * lib/fchdir.c (rpl_fstat): Remove function.
2741         * m4/fstat.m4: New file.
2742         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2743         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2744         declared.
2745         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2746         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2747         * modules/fstat: New file.
2748         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2749         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2750         is set.
2751         * doc/posix-functions/fstat.texi: Mention the new module and the
2752         problem on MSVC.
2753         * NEWS: Mention the change.
2754         * modules/acl (Depends-on): Add fstat.
2755         * modules/chdir-safer (Depends-on): Likewise.
2756         * modules/chown (Depends-on): Likewise.
2757         * modules/copy-file (Depends-on): Likewise.
2758         * modules/fchdir (Depends-on): Likewise.
2759         * modules/fdopendir (Depends-on): Likewise.
2760         * modules/fopen (Depends-on): Likewise.
2761         * modules/fts (Depends-on): Likewise.
2762         * modules/getcwd (Depends-on): Likewise.
2763         * modules/isapipe (Depends-on): Likewise.
2764         * modules/linkat (Depends-on): Likewise.
2765         * modules/lseek (Depends-on): Likewise.
2766         * modules/mkdir-p (Depends-on): Likewise.
2767         * modules/open (Depends-on): Likewise.
2768         * modules/openat (Depends-on): Likewise.
2769         * modules/read-file (Depends-on): Likewise.
2770         * modules/renameat (Depends-on): Likewise.
2771         * modules/utimens (Depends-on): Likewise.
2772
2773 2011-09-25  Bruno Haible  <bruno@clisp.org>
2774
2775         linkat: Fix compilation on MSVC 9.
2776         * lib/linkat.c: Don't include <stdint.h>.
2777
2778 2011-09-25  Bruno Haible  <bruno@clisp.org>
2779
2780         fclose: Support for MSVC 9.
2781         * lib/fclose.c: Include msvc-inval.h.
2782         (fclose_nothrow): New function.
2783         (rpl_fclose): Use it.
2784         * modules/fclose (Depends-on): Add msvc-inval.
2785         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2786
2787 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2788
2789         dup2: minor simplifications
2790         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2791         that it's a performance win.
2792         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2793         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2794
2795 2011-09-24  Jim Meyering  <meyering@redhat.com>
2796
2797         test-futimens: avoid a warning from gcc -Wshadow
2798         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2799         to avoid a shadowing warning.
2800
2801 2011-09-24  Bruno Haible  <bruno@clisp.org>
2802
2803         fdopen: Support for MSVC 9.
2804         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2805         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2806         * lib/fdopen.c: Include msvc-inval.h.
2807         (fdopen_nothrow): New function.
2808         (rpl_fdopen): Use it.
2809         * modules/fdopen (Depends-on): Add msvc-inval.
2810         * modules/fclose-tests (Depends-on): Add fdopen.
2811         * modules/fflush-tests (Depends-on): Likewise.
2812         * modules/fgetc-tests (Depends-on): Likewise.
2813         * modules/fputc-tests (Depends-on): Likewise.
2814         * modules/fread-tests (Depends-on): Likewise.
2815         * modules/freopen-tests (Depends-on): Likewise.
2816         * modules/fseeko-tests (Depends-on): Likewise.
2817         * modules/ftello-tests (Depends-on): Likewise.
2818         * modules/fwrite-tests  (Depends-on): Likewise.
2819         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2820
2821 2011-09-24  Bruno Haible  <bruno@clisp.org>
2822
2823         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2824         * modules/fgetc-tests (Depends-on): Add unistd.
2825         * modules/fputc-tests (Depends-on): Likewise.
2826         * modules/fread-tests (Depends-on): Likewise.
2827         * modules/fwrite-tests (Depends-on): Likewise.
2828
2829 2011-09-24  Bruno Haible  <bruno@clisp.org>
2830
2831         dup: Simplify autoconf test.
2832         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2833         on gl_MSVC_INVAL's result.
2834
2835 2011-09-24  Bruno Haible  <bruno@clisp.org>
2836
2837         Tests for function fwrite().
2838         * modules/fwrite-tests: New file.
2839         * tests/test-fwrite.c: New file.
2840         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2841
2842         Tests for function fread().
2843         * modules/fread-tests: New file.
2844         * tests/test-fread.c: New file.
2845         * modules/stdio-tests (Depends-on): Add fread-tests.
2846
2847         Activate fputc tests.
2848         * modules/stdio-tests (Depends-on): Add fputc-tests.
2849
2850         Enhance fgetc, fputc tests.
2851         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2852         * tests/test-fputc.c (main): Likewise.
2853
2854 2011-09-24  Bruno Haible  <bruno@clisp.org>
2855
2856         write: Support for MSVC 9.
2857         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2858         is not 1.
2859         * lib/write.c (write_nothrow): New function.
2860         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2861         not 1. Use write_nothrow.
2862         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2863         invalid parameter handler.
2864         (gl_PREREQ_WRITE): New macro.
2865         * modules/write (Depends-on): Add msvc-inval.
2866         (configure.ac): Invoke gl_PREREQ_WRITE.
2867         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2868
2869 2011-09-24  Bruno Haible  <bruno@clisp.org>
2870
2871         read: Fix last commit.
2872         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2873
2874 2011-09-24  Bruno Haible  <bruno@clisp.org>
2875
2876         dup2: Fix last commit.
2877         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2878         (rpl_dup2): Disable fcntl workaround on native Windows.
2879
2880         sigprocmask: Make code safer.
2881         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2882         section that changes macro definitions for this compilation unit.
2883
2884 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2885
2886         dup2: clarify by coalescing Windows-specific material
2887         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2888         "msvc-nothrow.h"' to the Windows-specific section, so that the
2889         Emacs source need not contain these include files.
2890         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2891         Windows-specific fixes into this function rather than just the
2892         nothrow fix, as this shortens and clarifies the code.  Always
2893         define as a function, as that's a bit cleaner than having it be
2894         sometimes a function and sometimes a macro.
2895         (rpl_dup2): Move the Windows-specific stuff out of here and into
2896         ms_windows_dup2.  Don't protect the Haiku-related fix with
2897         "#if !defined __linux__", as the same code also works around
2898         a Linux kernel bug, and it doesn't add any system calls on any
2899         platform.  Add comment about FreeBSD 6.1.
2900
2901         sigprocmask: move #include directive
2902         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2903         Windows-specific section, so that the Emacs source need not
2904         contain msvc-inval.h.
2905
2906 2011-09-23  Bruno Haible  <bruno@clisp.org>
2907
2908         read: Support for MSVC 9.
2909         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2910         is not 1.
2911         * lib/read.c (read_nothrow): New function.
2912         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2913         read_nothrow.
2914         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2915         invalid parameter handler.
2916         (gl_PREREQ_READ): New macro.
2917         * modules/read (Depends-on): Add msvc-inval.
2918         (configure.ac): Invoke gl_PREREQ_READ.
2919         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2920
2921 2011-09-23  Bruno Haible  <bruno@clisp.org>
2922
2923         close: Support for MSVC 9.
2924         * lib/close.c: Include <errno.h>, msvc-inval.h.
2925         (close_nothrow): New function.
2926         (rpl_close): Use it.
2927         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2928         invalid parameter handler.
2929         * modules/close (Depends-on): Add msvc-inval.
2930         * modules/dup2-tests (Depends-on): Add close.
2931         * modules/dup3-tests (Depends-on): Likewise.
2932         * modules/fcntl-tests (Depends-on): Likewise.
2933         * modules/spawn-pipe-tests (Depends-on): Likewise.
2934         * modules/unistd-safer-tests (Depends-on): Likewise.
2935         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2936
2937 2011-09-23  Bruno Haible  <bruno@clisp.org>
2938
2939         New module 'dup'.
2940         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2941         Allow replacement.
2942         * lib/dup.c: New file.
2943         * lib/fchdir.c (rpl_dup): Remove function.
2944         * m4/dup.m4: New file.
2945         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2946         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2947         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2948         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2949         * modules/dup: New file.
2950         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2951         'dup' module is in use.
2952         * modules/fdopendir (Depends-on): Add dup.
2953         * modules/fdutimensat-tests (Depends-on): Likewise.
2954         * modules/fts (Depends-on): Likewise.
2955         * modules/futimens-tests (Depends-on): Likewise.
2956         * modules/posix_spawnp-tests (Depends-on): Likewise.
2957         * modules/unistd-safer-tests (Depends-on): Likewise.
2958         * modules/utimens-tests (Depends-on): Likewise.
2959         * doc/posix-functions/dup.texi: Mention the new module and the problem
2960         on MSVC.
2961
2962 2011-09-23  Bruno Haible  <bruno@clisp.org>
2963
2964         getdtablesize: Support for MSVC 9.
2965         * lib/getdtablesize.c: Include msvc-inval.h.
2966         (_setmaxstdio_nothrow): New function.
2967         (_setmaxstdio): Redefine it.
2968         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2969         * modules/getdtablesize (Depends-on): Add msvc-inval.
2970         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2971
2972 2011-09-23  Bruno Haible  <bruno@clisp.org>
2973
2974         signal-h: Rename from signal.
2975         * modules/signal-h: Renamed from modules/signal.
2976         * modules/pthread_sigmask (Depends-on): Update.
2977         * modules/raise (Depends-on): Likewise.
2978         * modules/sigaction (Depends-on): Likewise.
2979         * modules/sigpipe (Depends-on): Likewise.
2980         * modules/sigprocmask (Depends-on): Likewise.
2981         * modules/sys_select (Depends-on): Likewise.
2982         * modules/signal-h-tests: Renamed from modules/signal-tests.
2983         (Files, Depends-on, Makefile.am): Update.
2984         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2985         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2986         (Files, Makefile.am): Update.
2987         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2988         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2989         * modules/signal: New placeholder file.
2990         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2991         * doc/posix-headers/signal.texi: Update.
2992         * NEWS: Mention the change.
2993
2994 2011-09-23  Bruno Haible  <bruno@clisp.org>
2995
2996         sigprocmask: Avoid crashes through signal() on MSVC 9.
2997         * lib/sigprocmask.c: Include msvc-inval.h.
2998         (signal_nothrow): New function.
2999         (signal): Redefine it.
3000         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3001         * modules/sigprocmask (Depends-on): Add msvc-inval.
3002         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3003
3004 2011-09-23  Bruno Haible  <bruno@clisp.org>
3005
3006         Tests for module 'raise'.
3007         * modules/raise-tests: New file.
3008         * tests/test-raise.c: New file.
3009
3010         raise: Support for MSVC.
3011         * lib/signal.in.h (raise): New declaration.
3012         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3013         for native Windows platforms.
3014         * m4/raise.m4: New file.
3015         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3016         HAVE_RAISE, REPLACE_RAISE.
3017         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3018         REPLACE_RAISE.
3019         * modules/raise (Status, Notice): Remove fields.
3020         (Files): Add m4/raise.m4.
3021         (Depends-on): Add signal, msvc-inval.
3022         (configure.ac): Use the common idioms.
3023         (Maintainer): Add me.
3024         * tests/test-signal-c++.cc: Check the signature of raise.
3025         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3026
3027 2011-09-23  Bruno Haible  <bruno@clisp.org>
3028
3029         pipe2: Fix compilation on pre-C99 compilers.
3030         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3031
3032 2011-09-23  Bruno Haible  <bruno@clisp.org>
3033
3034         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3035         * lib/msvc-nothrow.h: New file.
3036         * lib/msvc-nothrow.c: New file.
3037         * m4/msvc-nothrow.m4: New file.
3038         * modules/msvc-nothrow: New file.
3039         * lib/dup2.c: Include msvc-nothrow.h.
3040         (rpl_dup2): No need to protect _get_osfhandle call here.
3041         * lib/accept4.c: Include msvc-nothrow.h.
3042         * lib/error.c: Likewise.
3043         * lib/fcntl.c: Likewise.
3044         * lib/lseek.c: Likewise.
3045         * lib/nonblocking.c: Likewise.
3046         * lib/poll.c: Likewise.
3047         * lib/read.c: Likewise.
3048         * lib/select.c: Likewise.
3049         * lib/sockets.h: Likewise.
3050         * lib/sockets.c: Likewise.
3051         * lib/stdio-read.c: Likewise.
3052         * lib/stdio-write.c: Likewise.
3053         * lib/write.c: Likewise.
3054         * lib/w32sock.h: Likewise.
3055         * lib/w32spawn.h: Likewise.
3056         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3057         * lib/fsync.c: Likewise.
3058         * lib/isapipe.c: Likewise.
3059         * modules/dup2 (Depends-on): Add msvc-nothrow.
3060         * modules/accept4 (Depends-on): Likewise.
3061         * modules/error (Depends-on): Likewise.
3062         * modules/fcntl (Depends-on): Likewise.
3063         * modules/lseek (Depends-on): Likewise.
3064         * modules/nonblocking (Depends-on): Likewise.
3065         * modules/poll (Depends-on): Likewise.
3066         * modules/read (Depends-on): Likewise.
3067         * modules/select (Depends-on): Likewise.
3068         * modules/sockets (Depends-on): Likewise.
3069         * modules/sigpipe (Depends-on): Likewise.
3070         * modules/write (Depends-on): Likewise.
3071         * modules/accept (Depends-on): Likewise.
3072         * modules/bind (Depends-on): Likewise.
3073         * modules/connect (Depends-on): Likewise.
3074         * modules/gethostname (Depends-on): Likewise.
3075         * modules/getpeername (Depends-on): Likewise.
3076         * modules/getsockname (Depends-on): Likewise.
3077         * modules/getsockopt (Depends-on): Likewise.
3078         * modules/ioctl (Depends-on): Likewise.
3079         * modules/listen (Depends-on): Likewise.
3080         * modules/recv (Depends-on): Likewise.
3081         * modules/recvfrom (Depends-on): Likewise.
3082         * modules/send (Depends-on): Likewise.
3083         * modules/sendto (Depends-on): Likewise.
3084         * modules/setsockopt (Depends-on): Likewise.
3085         * modules/shutdown (Depends-on): Likewise.
3086         * modules/socket (Depends-on): Likewise.
3087         * modules/execute (Depends-on): Likewise.
3088         * modules/spawn-pipe (Depends-on): Likewise.
3089         * modules/flock (Depends-on): Likewise.
3090         * modules/fsync (Depends-on): Likewise.
3091         * modules/isapipe (Depends-on): Likewise.
3092         * tests/test-cloexec.c: Include msvc-nothrow.h.
3093         * tests/test-dup-safer.c: Likewise.
3094         * tests/test-dup2.c: Likewise.
3095         * tests/test-dup3.c: Likewise.
3096         * tests/test-fcntl.c: Likewise.
3097         * tests/test-pipe.c: Likewise.
3098         * tests/test-pipe2.c: Likewise.
3099         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3100         * modules/unistd-safer-tests (Depends-on): Likewise.
3101         * modules/dup2-tests (Depends-on): Likewise.
3102         * modules/dup3-tests (Depends-on): Likewise.
3103         * modules/fcntl-tests (Depends-on): Likewise.
3104         * modules/pipe-posix-tests (Depends-on): Likewise.
3105         * modules/pipe2-tests (Depends-on): Likewise.
3106
3107 2011-09-23  Bruno Haible  <bruno@clisp.org>
3108
3109         dup2: Make code more maintainable.
3110         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3111         (rpl_dup2): Use it.
3112         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3113         * modules/dup2 (configure.ac): Invoke it.
3114         Reported by Paul Eggert.
3115
3116 2011-09-23  Bruno Haible  <bruno@clisp.org>
3117
3118         msvc-inval: Fix compilation error.
3119         * lib/msvc-inval.h: Include <excpt.h>.
3120
3121 2011-09-23  Bruno Haible  <bruno@clisp.org>
3122
3123         mkdir: Tweak for MSVC 9.
3124         * lib/sys_stat.in.h: Update comments.
3125         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3126
3127         Tests for module 'chdir'.
3128         * modules/chdir-tests: New file.
3129         * tests/test-chdir.c: New file.
3130
3131         New module 'chdir'.
3132         * modules/chdir: New file.
3133         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3134         (chdir): New declaration.
3135         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3136         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3137         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3138         * tests/test-unistd-c++.cc: Check signature of chdir.
3139         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3140         * modules/chdir-long (Depends-on): Add chdir.
3141         * modules/fchdir (Depends-on): Likewise.
3142         * modules/rename (Depends-on): Likewise.
3143         * modules/savewd (Depends-on): Likewise.
3144
3145         rmdir: Support for mingw, MSVC 9.
3146         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3147         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3148
3149         getcwd: Tweak for MSVC 9.
3150         * lib/unistd.in.h: Update comments.
3151         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3152
3153 2011-09-22  Bruno Haible  <bruno@clisp.org>
3154
3155         strerror_r-posix: Avoid a link error on MSVC.
3156         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3157         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3158
3159 2011-09-22  Bruno Haible  <bruno@clisp.org>
3160
3161         select: Avoid link errors on MSVC.
3162         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3163         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3164         * modules/pselect (Link): Likewise.
3165         * NEWS: Mention the change.
3166         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3167         test-select-stdin against $(LIB_SELECT).
3168         * modules/pselect-tests (Makefile.am): Link test-pselect against
3169         $(LIB_SELECT).
3170
3171 2011-09-22  Bruno Haible  <bruno@clisp.org>
3172
3173         select: Avoid compilation error on MSVC.
3174         * lib/select.c: Don't include <stdbool.h>.
3175
3176 2011-09-21  Bruno Haible  <bruno@clisp.org>
3177
3178         Consolidate all uses of PATH_MAX in *.m4 files.
3179         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3180         macros.
3181         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3182         and gl_PATHMAX_SNIPPET.
3183         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3184         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3185         * modules/chdir-long (Files): Add m4/pathmax.m4.
3186         * modules/getcwd (Files): Likewise.
3187
3188 2011-09-21  Bruno Haible  <bruno@clisp.org>
3189
3190         ftruncate: Un-deprecate, concentrate on Win32 support.
3191         * modules/ftruncate (Status, Notice): Remove sections.
3192         (Depends-on): Add largefile.
3193         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3194         non-mingw platforms.
3195         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3196         include <io.h>.
3197         * modules/perror-tests (Depends-on): Add ftruncate.
3198         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3199         'ftruncate' module.
3200
3201 2011-09-21  Bruno Haible  <bruno@clisp.org>
3202
3203         Add dependencies to new dirent related modules.
3204         * modules/opendir (Depends-on): Add closedir.
3205         * modules/getcwd (Depends-on): Add opendir, closedir.
3206         * modules/dirent-safer-tests (Depends-on): Likewise.
3207         * modules/fdopendir-tests (Depends-on): Likewise.
3208         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3209         * modules/renameat-tests (Depends-on): Likewise.
3210
3211 2011-09-21  Bruno Haible  <bruno@clisp.org>
3212
3213         opendir: Avoid compilation error on mingw.
3214         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3215         * modules/opendir (Depends-on): Add unistd.
3216
3217 2011-09-21  Bruno Haible  <bruno@clisp.org>
3218
3219         ftruncate tests: Avoid a test failure on mingw.
3220         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3221
3222 2011-09-21  Bruno Haible  <bruno@clisp.org>
3223
3224         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3225         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3226         native Windows.
3227
3228 2011-09-21  Bruno Haible  <bruno@clisp.org>
3229
3230         New module 'fdopen'.
3231         * lib/stdio.in.h (fdopen): New declaration.
3232         * lib/fdopen.c: New file.
3233         * m4/fdopen.m4: New file.
3234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3235         REPLACE_FDOPEN.
3236         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3237         REPLACE_FDOPEN.
3238         * modules/fdopen: New file.
3239         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3240         * tests/test-stdio-c++.cc: Check signature of fdopen.
3241         * doc/posix-functions/fdopen.texi: Mention the new module.
3242
3243 2011-09-21  Bruno Haible  <bruno@clisp.org>
3244
3245         unlockpt tests: Avoid test failure on NetBSD 5.1.
3246         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3247         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3248
3249 2011-09-21  Bruno Haible  <bruno@clisp.org>
3250
3251         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3252         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3253         * tests/test-getlogin_r.c (main): Likewise.
3254
3255 2011-09-20  Bruno Haible  <bruno@clisp.org>
3256
3257         time tests: Don't require pid_t.
3258         * doc/posix-headers/time.texi: Revert last change.
3259         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3260         * tests/test-time.c: Comment out the check for pid_t.
3261
3262 2011-09-20  Bruno Haible  <bruno@clisp.org>
3263
3264         fsync tests: Avoid a test failure on mingw.
3265         * tests/test-fsync.c (main): Allow a failure with EIO.
3266
3267 2011-09-20  Bruno Haible  <bruno@clisp.org>
3268
3269         euidaccess: Update comments.
3270         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3271
3272 2011-09-20  Bruno Haible  <bruno@clisp.org>
3273
3274         Ensure EBADF returns for socket functions on mingw.
3275         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3276         descriptor is invalid.
3277         * lib/bind.c (rpl_bind): Likewise.
3278         * lib/connect.c (rpl_connect): Likewise.
3279         * lib/getpeername.c (rpl_getpeername): Likewise.
3280         * lib/getsockname.c (rpl_getsockname): Likewise.
3281         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3282         * lib/listen.c (rpl_listen): Likewise.
3283         * lib/recv.c (rpl_recv): Likewise.
3284         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3285         * lib/send.c (rpl_send): Likewise.
3286         * lib/sendto.c (rpl_sendto): Likewise.
3287         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3288         * lib/shutdown.c (rpl_shutdown): Likewise.
3289
3290 2011-09-20  Bruno Haible  <bruno@clisp.org>
3291
3292         select tests: EBADF tests.
3293         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3294         test_bad_fd): New functions.
3295         (test_function): Invoke also test_bad_fd.
3296
3297 2011-09-20  Bruno Haible  <bruno@clisp.org>
3298
3299         Tests for module 'posix_spawn_file_actions_addopen.
3300         * modules/posix_spawn_file_actions_addopen-tests: New file.
3301         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3302
3303         Tests for module 'posix_spawn_file_actions_adddup2'.
3304         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3305         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3306
3307         Tests for module 'posix_spawn_file_actions_addclose'.
3308         * modules/posix_spawn_file_actions_addclose-tests: New file.
3309         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3310
3311 2011-09-20  Bruno Haible  <bruno@clisp.org>
3312
3313         Tests for module 'unlockpt'.
3314         * modules/unlockpt-tests: New file.
3315         * tests/test-unlockpt.c: New file.
3316         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3317
3318         Tests for module 'grantpt'.
3319         * modules/grantpt-tests: New file.
3320         * tests/test-grantpt.c: New file.
3321         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3322
3323 2011-09-20  Bruno Haible  <bruno@clisp.org>
3324
3325         freopen tests: EBADF tests.
3326         * tests/test-freopen.c: Include errno.h, unistd.h.
3327         (main): Add tests for EBADF, commented out for the moment.
3328
3329         fclose tests: EBADF tests.
3330         * tests/test-fclose.c (main): Add tests for EBADF.
3331
3332         fflush tests: EBADF tests.
3333         * tests/test-fflush.c: Include errno.h, macros.h.
3334         (main): Add tests for EBADF.
3335
3336         ftello tests: EBADF tests.
3337         * tests/test-ftello4.sh: New file.
3338         * tests/test-ftello4.c: New file.
3339         * modules/ftello-tests (Files): Add them.
3340         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3341
3342         fseeko tests: EBADF tests.
3343         * tests/test-fseeko4.sh: New file.
3344         * tests/test-fseeko4.c: New file.
3345         * modules/fseeko-tests (Files): Add them.
3346         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3347
3348         Tests for function fputc().
3349         * modules/fputc-tests: New file.
3350         * tests/test-fputc.c: New file.
3351         * modules/stdio-tests (Depends-on): Add fputc-tests.
3352
3353         Tests for function fgetc().
3354         * modules/fgetc-tests: New file.
3355         * tests/test-fgetc.c: New file.
3356         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3357
3358         Tests for function fdopen().
3359         * modules/fdopen-tests: New file.
3360         * tests/test-fdopen.c: New file.
3361         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3362
3363         Tests for module 'vdprintf'.
3364         * modules/vdprintf-tests: New file.
3365         * tests/test-vdprintf.c: New file.
3366
3367         Tests for module 'dprintf'.
3368         * modules/dprintf-tests: New file.
3369         * tests/test-dprintf.c: New file.
3370
3371 2011-09-20  Bruno Haible  <bruno@clisp.org>
3372
3373         Tests for module 'ioctl'.
3374         * modules/ioctl-tests: New file.
3375         * tests/test-ioctl.c: New file.
3376
3377 2011-09-20  Bruno Haible  <bruno@clisp.org>
3378
3379         fcntl tests: EBADF tests.
3380         * tests/test-fcntl.c (main): Add more tests for EBADF.
3381
3382 2011-09-20  Bruno Haible  <bruno@clisp.org>
3383
3384         utimensat tests: EBADF tests.
3385         * tests/test-utimensat.c (main): Add tests for EBADF.
3386
3387         renameat tests: EBADF tests.
3388         * tests/test-renameat.c (main): Add tests for EBADF.
3389
3390         mkfifoat tests: EBADF tests.
3391         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3392
3393         readlinkat tests: EBADF tests.
3394         * tests/test-readlinkat.c (main): Add tests for EBADF.
3395
3396         symlinkat tests: EBADF tests.
3397         * tests/test-symlinkat.c (main): Add tests for EBADF.
3398
3399         linkat tests: EBADF tests.
3400         * tests/test-linkat.c (main): Add tests for EBADF.
3401
3402         Tests for module 'faccessat'.
3403         * modules/faccessat-tests: New file.
3404         * tests/test-faccessat.c: New file.
3405
3406         fdopendir tests: EBADF tests.
3407         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3408
3409         openat tests: EBADF tests.
3410         * tests/test-fchownat.c (main): Add tests for EBADF.
3411         * tests/test-fstatat.c (main): Likewise.
3412         * tests/test-mkdirat.c (main): Likewise.
3413         * tests/test-openat.c (main): Likewise.
3414         * tests/test-unlinkat.c (main): Likewise.
3415         * tests/test-fchmodat.c: New file.
3416         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3417         (Makefile.am): Also run 'test-fchmodat'.
3418
3419 2011-09-20  Bruno Haible  <bruno@clisp.org>
3420
3421         utimens, futimens, fdutimensat tests: EBADF tests.
3422         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3423
3424         Tests for function fstat().
3425         * modules/fstat-tests: New file.
3426         * tests/test-fstat.c: New file.
3427         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3428
3429 2011-09-20  Bruno Haible  <bruno@clisp.org>
3430
3431         test-ttyname_r tests: EBADF tests.
3432         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3433
3434         Tests for module 'isatty'.
3435         * modules/isatty-tests: New file.
3436         * tests/test-isatty.c: New file.
3437
3438         Tests for module 'write'.
3439         * modules/write-tests: New file.
3440         * tests/test-write.c: New file.
3441
3442         Tests for module 'read'.
3443         * modules/read-tests: New file.
3444         * tests/test-read.c: New file.
3445
3446         pwrite tests: EBADF tests.
3447         * tests/test-pwrite.c (main): Add tests for EBADF.
3448
3449         pread tests: EBADF tests.
3450         * tests/test-pread.c (main): Add tests for EBADF.
3451
3452         lseek tests: EBADF tests.
3453         * tests/test-lseek.c (main): Add more tests for EBADF.
3454
3455         Tests for module 'ftruncate'.
3456         * modules/ftruncate-tests: New file.
3457         * tests/test-ftruncate.sh: New file.
3458         * tests/test-ftruncate.c: New file.
3459
3460         fsync tests: EBADF tests.
3461         * tests/test-fsync.c (main): Add more tests for EBADF.
3462
3463         fdatasync tests: EBADF tests.
3464         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3465
3466         Tests for module 'fchown'.
3467         * modules/fchown-tests: New file.
3468         * tests/test-fchown.c: New file.
3469
3470         Tests for module 'fchmod'.
3471         * modules/fchmod-tests: New file.
3472         * tests/test-fchmod.c: New file.
3473
3474         fchdir tests: EBADF tests.
3475         * tests/test-fchdir.c (main): Add more tests for EBADF.
3476
3477         dup2 tests: EBADF tests.
3478         * tests/test-dup2.c (main): Add more tests for EBADF.
3479
3480         Tests for module 'dup'.
3481         * modules/dup-tests: New file.
3482         * tests/test-dup.c: New file.
3483
3484         Tests for module 'close'.
3485         * modules/close-tests: New file.
3486         * tests/test-close.c: New file.
3487
3488 2011-09-20  Bruno Haible  <bruno@clisp.org>
3489
3490         Tests for module 'shutdown'.
3491         * modules/shutdown-tests: New file.
3492         * tests/test-shutdown.c: New file.
3493
3494         Tests for module 'setsockopt'.
3495         * modules/setsockopt-tests: New file.
3496         * tests/test-setsockopt.c: New file.
3497
3498         Tests for module 'sendto'.
3499         * modules/sendto-tests: New file.
3500         * tests/test-sendto.c: New file.
3501
3502         Tests for module 'send'.
3503         * modules/send-tests: New file.
3504         * tests/test-send.c: New file.
3505
3506         Tests for module 'recvfrom'.
3507         * modules/recvfrom-tests: New file.
3508         * tests/test-recvfrom.c: New file.
3509
3510         Tests for module 'recv'.
3511         * modules/recv-tests: New file.
3512         * tests/test-recv.c: New file.
3513
3514         Tests for module 'listen'.
3515         * modules/listen-tests: New file.
3516         * tests/test-listen.c: New file.
3517
3518         Tests for module 'getsockopt'.
3519         * modules/getsockopt-tests: New file.
3520         * tests/test-getsockopt.c: New file.
3521
3522         Tests for module 'getsockname'.
3523         * modules/getsockname-tests: New file.
3524         * tests/test-getsockname.c: New file.
3525
3526         Tests for module 'getpeername'.
3527         * modules/getpeername-tests: New file.
3528         * tests/test-getpeername.c: New file.
3529
3530         Tests for module 'connect'.
3531         * modules/connect-tests: New file.
3532         * tests/test-connect.c: New file.
3533
3534         Tests for module 'bind'.
3535         * modules/bind-tests: New file.
3536         * tests/test-bind.c: New file.
3537
3538         accept4 tests: Fix for native Windows.
3539         * tests/test-accept4.c: Include sockets.h.
3540         (main): Invoke gl_sockets_startup.
3541         * modules/accept4-tests (Depends-on): Add sockets.
3542
3543         accept tests: Fix for native Windows.
3544         * tests/test-accept.c: Include sockets.h.
3545         (main): Invoke gl_sockets_startup.
3546         * modules/accept-tests (Depends-on): Add sockets.
3547
3548 2011-09-19  Bruno Haible  <bruno@clisp.org>
3549
3550         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3551         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3552         do...while(0).
3553         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3554         Suggested by Paul Eggert.
3555
3556 2011-09-19  Bruno Haible  <bruno@clisp.org>
3557
3558         sched: Ensure pid_t is defined.
3559         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3560         not define pid_t.
3561         * lib/sched.in.h: Include <sys/types.h>.
3562         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3564
3565 2011-09-19  Bruno Haible  <bruno@clisp.org>
3566
3567         msvc-inval: Ensure the entire expansion is a single statement.
3568         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3569         of braces.
3570
3571 2011-09-19  Jim Meyering  <meyering@redhat.com>
3572
3573         tests: use printf, not echo in init.sh's warn_ function
3574         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3575         misbehave when given strings containing a backslash or starting
3576         with e.g., -n.  James Youngman suggested setting IFS.
3577
3578 2011-09-19  Eric Blake  <eblake@redhat.com>
3579
3580         futimens: enhance test
3581         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3582         closed non-negative fd.
3583
3584         date: accept 'hence' as opposite of 'ago'
3585         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3586         * tests/test-parse-datetime.c (main): Enhance test.
3587         Suggested by Jesse Wilson.
3588
3589 2011-09-19  Jim Meyering  <meyering@redhat.com>
3590
3591         getcwd: don't fail in a deep directory on a system without openat
3592         Before this change, getcwd would fail when called from a directory
3593         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3594         the non-openat implementation used "..", "../..", "../../..", etc.
3595         to access ancestor directories.  With too many, that string would
3596         be longer than PATH_MAX.
3597         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3598         using gnulib's openat replacement.
3599         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3600         we're using the replacement function.
3601
3602 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3603
3604         maint.mk: avoid warnings from perl about missing files
3605         * top/maint.mk (def_sym_regex): Ignore files listed in
3606         $(gl_other_headers_) that do not exist, say because a project
3607         does not use a corresponding module.
3608
3609 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3610
3611         stat: use pathmax.h only if needed
3612         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3613         This is better for Emacs, which does not have a mingw port and
3614         therefore can avoid the pathmax module.
3615
3616         utimens: remove dependency on dup2
3617         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3618         to work around the Linux kernel bug.
3619         * modules/utimens (Depends-on): Remove dup2.
3620
3621 2011-09-18  Bruno Haible  <bruno@clisp.org>
3622
3623         inet_ntop, inet_pton: Look for it also in libresolv.
3624         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3625         libnsl, search for it in libresolv.
3626         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3627         Needed on Solaris 7.
3628
3629 2011-09-18  Bruno Haible  <bruno@clisp.org>
3630
3631         accept, accept4 tests: Avoid link error on Solaris.
3632         * modules/accept-tests (Makefile.am): Link test-accept against
3633         $(LIBSOCKET).
3634         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3635         $(LIBSOCKET).
3636
3637         accept4: Avoid link error on Solaris.
3638         * modules/accept4 (Link): New section.
3639
3640         socket functions: Avoid link errors on Solaris.
3641         * modules/accept (Depends-on): Add socketlib.
3642         (Link): New section.
3643         * modules/bind (Depends-on): Add socketlib.
3644         (Link): New section.
3645         * modules/connect (Depends-on): Add socketlib.
3646         (Link): New section.
3647         * modules/getpeername (Depends-on): Add socketlib.
3648         (Link): New section.
3649         * modules/getsockname (Depends-on): Add socketlib.
3650         (Link): New section.
3651         * modules/getsockopt (Depends-on): Add socketlib.
3652         (Link): New section.
3653         * modules/listen (Depends-on): Add socketlib.
3654         (Link): New section.
3655         * modules/recv (Depends-on): Add socketlib.
3656         (Link): New section.
3657         * modules/recvfrom (Depends-on): Add socketlib.
3658         (Link): New section.
3659         * modules/send (Depends-on): Add socketlib.
3660         (Link): New section.
3661         * modules/sendto (Depends-on): Add socketlib.
3662         (Link): New section.
3663         * modules/setsockopt (Depends-on): Add socketlib.
3664         (Link): New section.
3665         * modules/shutdown (Depends-on): Add socketlib.
3666         (Link): New section.
3667         * modules/socket (Depends-on): Add socketlib.
3668         (Link): New section.
3669
3670 2011-09-18  Bruno Haible  <bruno@clisp.org>
3671
3672         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3673         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3674         than 5 seconds.
3675         * modules/ptsname-tests (configure.ac): Test for alarm.
3676
3677 2011-09-18  Bruno Haible  <bruno@clisp.org>
3678
3679         posix_spawn_file_actions_add*: Fix module dependencies.
3680         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3681         posix_spawn_file_actions_init.
3682         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3683         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3684
3685 2011-09-18  Bruno Haible  <bruno@clisp.org>
3686
3687         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3688         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3689         * tests/test-renameat.c (main): Likewise.
3690
3691 2011-09-18  Bruno Haible  <bruno@clisp.org>
3692
3693         Tests for module 'accept4'.
3694         * modules/accept4-tests: New file.
3695         * tests/test-accept4.c: New file.
3696
3697 2011-09-18  Bruno Haible  <bruno@clisp.org>
3698
3699         Tests for module 'accept'.
3700         * modules/accept-tests: New file.
3701         * tests/test-accept.c: New file.
3702
3703 2011-09-18  Bruno Haible  <bruno@clisp.org>
3704
3705         dup2: Support for MSVC.
3706         * lib/dup2.c: Include msvc-inval.h.
3707         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3708         _get_osfhandle calls.
3709         * modules/dup2 (Depends-on): Add msvc-inval.
3710         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3711
3712         New module 'msvc-inval'.
3713         * lib/msvc-inval.h: New file.
3714         * lib/msvc-inval.c: New file.
3715         * m4/msvc-inval.m4: New file.
3716         * modules/msvc-inval: New file.
3717
3718 2011-09-17  Bruno Haible  <bruno@clisp.org>
3719
3720         Tests for module 'pclose'.
3721         * modules/pclose-tests: New file.
3722
3723         New module 'pclose'.
3724         * lib/stdio.in.h (pclose): New declaration.
3725         * lib/pclose.c: New file.
3726         * m4/pclose.m4: New file.
3727         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3728         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3729         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3730         * modules/pclose: New file.
3731         * modules/popen-tests (Depends-on): Add pclose.
3732         * modules/popen-safer-tests (Depends-on): Likewise.
3733         * doc/posix-functions/pclose.texi: Mention the new module.
3734
3735 2011-09-17  Bruno Haible  <bruno@clisp.org>
3736
3737         popen: Support for MSVC.
3738         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3739         * lib/popen.c (popen): Provide alternate definition for native Windows.
3740         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3742         * modules/popen (Depends-on, configure.ac): Update condition.
3743         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3744         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3745         fixed.
3746
3747 2011-09-17  Bruno Haible  <bruno@clisp.org>
3748
3749         isnanl, isnand, isnanf: Work around MSVC bug.
3750         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3751
3752 2011-09-17  Bruno Haible  <bruno@clisp.org>
3753
3754         sys_socket tests: Fix recent mistake.
3755         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3756
3757 2011-09-17  Bruno Haible  <bruno@clisp.org>
3758
3759         putenv: Support for MSVC.
3760         * modules/putenv (Depends-on): Add environ.
3761         * lib/putenv.c (environ): Disable declaration.
3762         * lib/unistd.in.h: Update comment.
3763
3764 2011-09-17  Bruno Haible  <bruno@clisp.org>
3765
3766         math: Avoid macro redefinition warnings on MSVC.
3767         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3768         Undefine before redefining.
3769
3770 2011-09-17  Bruno Haible  <bruno@clisp.org>
3771
3772         doc: Mention functions which are declared as macros.
3773         * doc/posix-functions/*[fl].texi: Mention that some functions are
3774         defined as macros with arguments only.
3775
3776 2011-09-17  Bruno Haible  <bruno@clisp.org>
3777
3778         Add dependencies to new dirent related modules.
3779         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3780         * modules/fts (Depends-on): Likewise.
3781         * modules/glob (Depends-on): Likewise.
3782         * modules/savedir (Depends-on): Likewise.
3783         * modules/scandir (Depends-on): Likewise.
3784         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3785         * modules/fdopendir (Depends-on): Add opendir.
3786
3787 2011-09-17  Bruno Haible  <bruno@clisp.org>
3788
3789         inet_pton: Support for MSVC on Windows Vista or newer.
3790         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3791         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3792         HAVE_DECL_INET_PTON is defined.
3793         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3794         On platforms with <winsock2.h>, test whether inet_pton is declared in
3795         <ws2tcpip.h>. If so, arrange to replace it.
3796         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3797         REPLACE_INET_PTON.
3798         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3799         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3800         (Depends-on, configure.ac): Update condition.
3801         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3802
3803 2011-09-17  Bruno Haible  <bruno@clisp.org>
3804
3805         inet_ntop: Support for MSVC on Windows Vista or newer.
3806         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3807         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3808         HAVE_DECL_INET_NTOP is defined.
3809         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3810         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3811         <ws2tcpip.h>. If so, arrange to replace it.
3812         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3813         REPLACE_INET_NTOP.
3814         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3815         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3816         (Depends-on, configure.ac): Update condition.
3817         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3818
3819 2011-09-16  Eric Blake  <eblake@redhat.com>
3820
3821         test-fsync: yet another enhancement
3822         * tests/test-fsync.c (main): Also test behavior on read-only text
3823         file.
3824
3825 2011-09-16  Bruno Haible  <bruno@clisp.org>
3826
3827         Enhance fsync, fdatasync tests.
3828         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3829         * tests/test-fdatasync.c (main): Likewise.
3830
3831 2011-09-16  Bruno Haible  <bruno@clisp.org>
3832
3833         Support for MSVC compiler: Ensure mode_t gets defined.
3834         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3835         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3836         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3837         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3838         * tests/test-fcntl-h.c: Check that mode_t is defined.
3839         * tests/test-sys_stat.c: Likewise.
3840         * tests/test-sys_types.c: Likewise.
3841         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3842         * doc/posix-headers/sys_stat.texi: Likewise.
3843         * doc/posix-headers/sys_types.texi: Likewise.
3844
3845 2011-09-16  Bruno Haible  <bruno@clisp.org>
3846
3847         sys_stat: Support for MSVC.
3848         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3849         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3850         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3851         MSVC.
3852
3853 2011-09-16  Bruno Haible  <bruno@clisp.org>
3854
3855         Support for MSVC compiler: Ensure off_t gets defined.
3856         * lib/unistd.in.h: Include <sys/types.h>.
3857         * tests/test-fcntl-h.c: Check that off_t is defined.
3858         * tests/test-sys_stat.c: Likewise.
3859         * tests/test-sys_types.c: Likewise.
3860
3861 2011-09-16  Eric Blake  <eblake@redhat.com>
3862
3863         fdatasync: port to Solaris
3864         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3865         * modules/fdatasync (Link): Document it.
3866         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3867
3868         fdatasync: port to MacOS X 10.7
3869         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3870         declared.
3871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3872         * modules/unistd (Makefile.am): Substitute it.
3873         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3874         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3875
3876         fdatasync: minor improvements
3877         * modules/fdatasync (Depends-on): Add condition for fsync.
3878         * lib/fdatasync.c (fdatasync): Add comment.
3879         * tests/test-unistd-c++.cc: Test fdatasync.
3880
3881         unistd: update refs to newer POSIX
3882         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3883         Suggested by Bruno Haible.
3884
3885         fdatasync: new module
3886         * modules/fsync (Description): Document difference to fdatasync.
3887         * modules/fdatasync: New module.
3888         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3889         * lib/fdatasync.c (fdatasync): Likewise.
3890         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3891         defaults.
3892         * modules/unistd (Makefile.am): Set witnesses.
3893         * lib/unistd.in.h (fdatasync): Declare.
3894         * MODULES.html.sh: Document it.
3895         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3896         * modules/fdatasync-tests: New test.
3897         * tests/test-fdatasync.c: Likewise.
3898
3899 2011-09-16  Eric Blake  <eblake@redhat.com>
3900
3901         test-fsync: enhance tests
3902         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3903         * tests/test-fsync.c (main): Enhance test.
3904
3905 2011-09-15  Bruno Haible  <bruno@clisp.org>
3906
3907         Support for MSVC compiler: Ensure ssize_t gets defined.
3908         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3909         * doc/posix-headers/stdio.texi: Likewise.
3910         * modules/stdio (Depends-on): Add ssize_t.
3911         * modules/sys_socket (Depends-on): Likewise.
3912         * modules/sys_types (Depends-on): Likewise.
3913         * modules/sys_uio (Depends-on): Likewise.
3914         * modules/unistd (Depends-on): Likewise.
3915         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3916         * tests/test-sys_types.c: Check that ssize_t is defined.
3917
3918 2011-09-14  Bruno Haible  <bruno@clisp.org>
3919
3920         Avoid using #, the m4 comment starter character, near brackets.
3921         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3922         delimiter character in sed expressions.
3923         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3924         Suggested by Eric Blake.
3925
3926         Properly quote AC_CHECK_DECLS' 4th argument.
3927         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3928         argument.
3929         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3930         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3931         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3932         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3933         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3934         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3935         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3936         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3937         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3938         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3939         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3940         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3941         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3942         * m4/isinf.m4 (gl_ISINF): Likewise.
3943         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3944         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3945         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3946         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3947         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3948         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3949         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3950         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3951         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3952         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3953         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3954         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3955         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3956         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3958         Reported by Eric Blake.
3959
3960         Properly quote AC_CHECK_DECL's 4th argument.
3961         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3962         argument.
3963         * m4/argp.m4 (gl_ARGP): Likewise.
3964         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3965         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3966         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3967         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3968         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3969         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3970         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3971         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3972         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3973         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3974         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3975         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3976         Reported by Eric Blake.
3977
3978 2011-09-14  Eric Blake  <eblake@redhat.com>
3979
3980         opendir: avoid compile warning
3981         * lib/opendir.c (includes): Always include errno.h.
3982         Reported by Tatsuro MATSUOKA.
3983
3984 2011-09-14  Jim Meyering  <meyering@redhat.com>
3985
3986         maint.mk: sc_tight_scope: propagate failure from sub-make
3987         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3988         Reported by Martin von Gagern.
3989
3990 2011-09-13  Bruno Haible  <bruno@clisp.org>
3991
3992         tempname: Support for MSVC.
3993         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3994         MSVC.
3995         * modules/tempname (Depends-on): Add fcntl-h.
3996
3997 2011-09-13  Bruno Haible  <bruno@clisp.org>
3998
3999         sys_time: Support for MSVC.
4000         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4001         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4002         include <winsock2.h>.
4003         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4004         function declarations that collide with POSIX.
4005         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4006         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4007
4008 2011-09-13  Bruno Haible  <bruno@clisp.org>
4009
4010         stat: Support for MSVC.
4011         * lib/stat.c: Include pathmax.h.
4012         * modules/stat (Depends-on): Add pathmax.
4013
4014         pathmax: Support for native Windows.
4015         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4016
4017 2011-09-12  Bruno Haible  <bruno@clisp.org>
4018
4019         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4020         * lib/dirent.in.h (struct dirent): New type.
4021         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4022         DT_WHT): New macros.
4023         (DIR): New type.
4024         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4025         (readdir, rewinddir): New declarations.
4026         * lib/dirent-private.h: New file.
4027         * lib/opendir.c: New file.
4028         * lib/readdir.c: New file.
4029         * lib/rewinddir.c: New file.
4030         * lib/closedir.c: New file.
4031         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4032         * m4/opendir.m4: New file.
4033         * m4/readdir.m4: New file.
4034         * m4/rewinddir.m4: New file.
4035         * m4/closedir.m4: New file.
4036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4037         REPLACE_CLOSEDIR here.
4038         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4039         readdir, rewinddir are declared.
4040         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4041         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4042         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4043         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4044         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4045         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4046         * modules/opendir: New file.
4047         * modules/readdir: New file.
4048         * modules/rewinddir: New file.
4049         * modules/closedir: New file.
4050         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4051         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4052         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4053         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4054         * NEWS: Mention the 'fchdir' change.
4055
4056 2011-09-11  Bruno Haible  <bruno@clisp.org>
4057
4058         asm-underscore.m4: Support for MSVC.
4059         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4060         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4061
4062 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4063
4064         Doc about crypt functions.
4065         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4066         needing for _GNU_SOURCE to get crypt.
4067         * doc/posix-functions/encrypt.texi: Likewise.
4068         * doc/posix-functions/setkey.texi: Likewise.
4069
4070 2011-09-11  Bruno Haible  <bruno@clisp.org>
4071
4072         doc: Update regarding MSVC 9.
4073         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4074         tested".
4075         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4076         * doc/posix-headers/*.texi: Likewise.
4077         * doc/pastposix-functions/*.texi: Likewise.
4078         * doc/glibc-functions/*.texi: Likewise.
4079         * doc/glibc-headers/*.texi: Likewise.
4080
4081 2011-09-11  Bruno Haible  <bruno@clisp.org>
4082
4083         unistd et al.: Don't assume <unistd.h> exists.
4084         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4085         does not exist.
4086         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4087         exist. But include <stdlib.h>.
4088         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4089         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4090         symlink() does not exist.
4091         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4092         include <io.h> instead.
4093         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4094         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4095         include <direct.h> instead.
4096         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4097         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4098         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4099         <io.h> instead.
4100         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4101         correctly if the system does not have hard links.
4102         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4103         <direct.h> instead.
4104         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4105         it when looking for function declarations.
4106         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4107         <direct.h> and <io.h> instead.
4108         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4109
4110 2011-09-11  Bruno Haible  <bruno@clisp.org>
4111
4112         strcase: Support for MSVC.
4113         * modules/strcase (Status, Notice): Remove obsoletion mark.
4114         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4115         * doc/posix-functions/strncasecmp.texi: Likewise.
4116
4117         strings: Don't assume <strings.h> exists.
4118         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4119         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4120         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4121         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4122
4123 2011-09-11  Bruno Haible  <bruno@clisp.org>
4124
4125         dirent: Don't assume <dirent.h> exists.
4126         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4127         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4128         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4129         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4130
4131 2011-09-11  Bruno Haible  <bruno@clisp.org>
4132
4133         Fix wint_t on MSVC.
4134         * lib/wchar.in.h (wint_t): On MSVC, override it.
4135         * lib/wctype.in.h (wint_t): Likewise.
4136         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4137         MSVC.
4138         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4139         * doc/posix-headers/wctype.texi: Likewise.
4140
4141 2011-09-11  Bruno Haible  <bruno@clisp.org>
4142
4143         sys_types: Fix typo.
4144         * lib/sys_types.in.h: Fix typo in comment.
4145         Reported by Paul Eggert.
4146
4147         Support for MSVC compiler: Ensure size_t gets defined.
4148         * modules/strings (Depends-on): Add 'sys_types'.
4149         * modules/sys_uio (Depends-on): Likewise.
4150         * lib/sys_uio.in.h: Update comment.
4151
4152         C++ tests for module 'sys_types'.
4153         * modules/sys_types-c++-tests: New file.
4154         * tests/test-sys_types-c++.cc: New file.
4155
4156         Tests for module 'sys_types'.
4157         * modules/sys_types-tests: New file.
4158         * tests/test-sys_types.c: New file.
4159
4160         New module 'sys_types'.
4161         * lib/sys_types.in.h: New file.
4162         * m4/sys_types_h.m4: New file.
4163         * modules/sys_types: New file.
4164         * doc/posix-headers/sys_types.texi: Mention the new module and the
4165         size_t problem on MSVC 9.
4166
4167 2011-09-11  Bruno Haible  <bruno@clisp.org>
4168
4169         Support for MSVC compiler: Avoid division by a literal 0.
4170         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4171         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4172         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4173         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4174         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4175         * tests/infinity.h: New file.
4176         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4177         on MSVC.
4178         * tests/test-ceilf1.c: Include infinity.h.
4179         (main): Use Infinityf.
4180         * tests/test-ceil1.c: Include infinity.h.
4181         (main): Use Infinityd.
4182         * tests/test-ceill.c: Include infinity.h.
4183         (main): Use Infinityl.
4184         * tests/test-dprintf-posix.c: Include infinity.h.
4185         (test_function): Use Infinityd.
4186         * tests/test-floorf1.c: Include infinity.h.
4187         (main): Use Infinityf.
4188         * tests/test-floor1.c: Include infinity.h.
4189         (main): Use Infinityd.
4190         * tests/test-floorl.c: Include infinity.h.
4191         (main): Use Infinityl.
4192         * tests/test-fprintf-posix.c: Include infinity.h.
4193         (test_function): Use Infinityd.
4194         * tests/test-frexp.c: Include infinity.h.
4195         (main): Use Infinityd.
4196         * tests/test-frexpl.c: Include infinity.h.
4197         (main): Use Infinityl.
4198         * tests/test-isfinite.c: Include infinity.h.
4199         (test_isfinitef): Use Infinityf.
4200         (test_isfinited): Use Infinityd.
4201         (test_isfinitel): Use Infinityl.
4202         * tests/test-isinf.c: Include infinity.h.
4203         (test_isinff): Use Infinityf.
4204         (test_isinfd): Use Infinityd.
4205         (test_isinfl): Use Infinityl.
4206         * tests/test-isnan.c: Include infinity.h.
4207         (test_float): Use Infinityf.
4208         (test_double): Use Infinityd.
4209         (test_long_double): Use Infinityl.
4210         * tests/test-isnanf.h: Include infinity.h.
4211         (main): Use Infinityf.
4212         * tests/test-isnand.h: Include infinity.h.
4213         (main): Use Infinityd.
4214         * tests/test-isnanl.h: Include infinity.h.
4215         (main): Use Infinityl.
4216         * tests/test-ldexpl.c: Include infinity.h.
4217         (main): Use Infinityl.
4218         * tests/test-printf-posix.h: Include infinity.h.
4219         (test_function): Use Infinityd.
4220         * tests/test-roundf1.c: Include infinity.h.
4221         (main): Use Infinityf.
4222         * tests/test-round1.c: Include infinity.h.
4223         (main): Use Infinityd.
4224         * tests/test-roundl.c: Include infinity.h.
4225         (main): Use Infinityl.
4226         * tests/test-signbit.c: Include infinity.h.
4227         (test_signbitf): Use Infinityf.
4228         (test_signbitd): Use Infinityd.
4229         (test_signbitl): Use Infinityl.
4230         * tests/test-snprintf-posix.h: Include infinity.h.
4231         (test_function): Use Infinityd, Infinityl.
4232         * tests/test-sprintf-posix.h: Include infinity.h.
4233         (test_function): Use Infinityd, Infinityl.
4234         * tests/test-truncf1.c: Include infinity.h.
4235         (main): Use Infinityf.
4236         * tests/test-trunc1.c: Include infinity.h.
4237         (main): Use Infinityd.
4238         * tests/test-truncl.c: Include infinity.h.
4239         (main): Use Infinityl.
4240         * tests/test-vasnprintf-posix.c: Include infinity.h.
4241         (test_function): Use Infinityd, Infinityl.
4242         * tests/test-vasprintf-posix.c: Include infinity.h.
4243         (test_function): Use Infinityd, Infinityl.
4244         * modules/ceilf-tests (Files): Add tests/infinity.h.
4245         * modules/ceil-tests (Files): Likewise.
4246         * modules/ceill-tests (Files): Likewise.
4247         * modules/dprintf-posix-tests (Files): Likewise.
4248         * modules/floorf-tests (Files): Likewise.
4249         * modules/floor-tests (Files): Likewise.
4250         * modules/floorl-tests (Files): Likewise.
4251         * modules/fprintf-posix-tests (Files): Likewise.
4252         * modules/frexp-tests (Files): Likewise.
4253         * modules/frexp-nolibm-tests (Files): Likewise.
4254         * modules/frexpl-tests (Files): Likewise.
4255         * modules/frexpl-nolibm-tests (Files): Likewise.
4256         * modules/isfinite-tests (Files): Likewise.
4257         * modules/isinf-tests (Files): Likewise.
4258         * modules/isnan-tests (Files): Likewise.
4259         * modules/isnanf-tests (Files): Likewise.
4260         * modules/isnanf-nolibm-tests (Files): Likewise.
4261         * modules/isnand-tests (Files): Likewise.
4262         * modules/isnand-nolibm-tests (Files): Likewise.
4263         * modules/isnanl-tests (Files): Likewise.
4264         * modules/isnanl-nolibm-tests (Files): Likewise.
4265         * modules/ldexpl-tests (Files): Likewise.
4266         * modules/printf-posix-tests (Files): Likewise.
4267         * modules/roundf-tests (Files): Likewise.
4268         * modules/round-tests (Files): Likewise.
4269         * modules/roundl-tests (Files): Likewise.
4270         * modules/signbit-tests (Files): Likewise.
4271         * modules/snprintf-posix-tests (Files): Likewise.
4272         * modules/sprintf-posix-tests (Files): Likewise.
4273         * modules/truncf-tests (Files): Likewise.
4274         * modules/trunc-tests (Files): Likewise.
4275         * modules/truncl-tests (Files): Likewise.
4276         * modules/vasnprintf-posix-tests (Files): Likewise.
4277         * modules/vasprintf-posix-tests (Files): Likewise.
4278         * modules/vdprintf-posix-tests (Files): Likewise.
4279         * modules/vfprintf-posix-tests (Files): Likewise.
4280         * modules/vprintf-posix-tests (Files): Likewise.
4281         * modules/vsnprintf-posix-tests (Files): Likewise.
4282         * modules/vsprintf-posix-tests (Files): Likewise.
4283         * modules/xprintf-posix-tests (Files): Likewise.
4284
4285 2011-09-11  Bruno Haible  <bruno@clisp.org>
4286
4287         Ensure pid_t gets defined.
4288         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4289         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4290         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4291         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4292         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4293         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4294         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4295         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4296         * tests/test-fcntl-h.c: Check that pid_t is defined.
4297         * tests/test-sched.c: Likewise.
4298         * tests/test-termios.c: Likewise.
4299         * tests/test-time.c: Likewise.
4300         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4301         * doc/posix-headers/signal.texi: Likewise.
4302         * doc/posix-headers/sys_types.texi: Likewise.
4303         * doc/posix-headers/time.texi: Likewise.
4304
4305 2011-09-11  Bruno Haible  <bruno@clisp.org>
4306
4307         acl: Fix compilation on Solaris 10 (older version).
4308         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4309         of ACE_EVERYONE.
4310         * lib/set-mode-acl.c (qset_acl): Likewise.
4311         Reported by Christian Jullien <eligis@orange.fr>.
4312
4313 2011-09-10  Bruno Haible  <bruno@clisp.org>
4314
4315         iconv, unsetenv: Add support for MSVC compiler.
4316         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4317         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4318
4319 2011-09-10  Bruno Haible  <bruno@clisp.org>
4320
4321         *printf: Add support for MSVC compiler.
4322         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4323         handles the exception caused by the %n directive. When cross-compiling,
4324         guess no on native Windows.
4325         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4326         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4327         emulate it through vsnprintf.
4328         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4329         * doc/posix-functions/dprintf.texi: Update documentation regarding
4330         MSVC 9.
4331         * doc/posix-functions/fprintf.texi: Likewise.
4332         * doc/posix-functions/printf.texi: Likewise.
4333         * doc/posix-functions/snprintf.texi: Likewise.
4334         * doc/posix-functions/sprintf.texi: Likewise.
4335         * doc/posix-functions/swprintf.texi: Likewise.
4336         * doc/posix-functions/vdprintf.texi: Likewise.
4337         * doc/posix-functions/vfprintf.texi: Likewise.
4338         * doc/posix-functions/vprintf.texi: Likewise.
4339         * doc/posix-functions/vsnprintf.texi: Likewise.
4340         * doc/posix-functions/vsprintf.texi: Likewise.
4341         * doc/glibc-functions/asprintf.texi: Likewise.
4342         * doc/glibc-functions/obstack_printf.texi: Likewise.
4343         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4344         * doc/glibc-functions/vasprintf.texi: Likewise.
4345
4346 2011-09-10  Bruno Haible  <bruno@clisp.org>
4347
4348         nocrash: Add support for native Windows.
4349         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4350
4351 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4352             Bruno Haible  <bruno@clisp.org>
4353
4354         absolute-header, include-next: Add support for MSVC compiler.
4355         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4356         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4357         directory separator in #line directives.
4358         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4359         recognize also backslash as directory separator in #line directives.
4360
4361 2011-09-08  Jim Meyering  <meyering@redhat.com>
4362
4363         maint.mk: mark the post-release commit log with "maint: " prefix
4364         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4365         one-line commit-log summary.
4366
4367 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4368             Bruno Haible  <bruno@clisp.org>
4369
4370         Doc about crypt functions.
4371         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4372         systems.
4373         * doc/posix-functions/encrypt.texi: Likewise.
4374         * doc/posix-functions/setkey.texi: Likewise.
4375
4376 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4377
4378         * lib/gc.h: Fix copyright header.
4379
4380 2011-09-07  Bruno Haible  <bruno@clisp.org>
4381
4382         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4383         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4384         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4385
4386 2011-09-07  Bruno Haible  <bruno@clisp.org>
4387
4388         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4389         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4390         * lib/freopen.c: Likewise.
4391         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4392         * lib/lstat.c: Likewise.
4393         * lib/stat.c: Likewise.
4394         * lib/open.c: Use different syntax for include of <fcntl.h>.
4395         * lib/openat.c: Include fcntl.h again, explicitly.
4396
4397 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4398
4399         parse-datetime: document the newly accepted format
4400         * doc/parse-datetime.texi (Combined date and time of day items):
4401         New section.
4402
4403 2011-09-06  Bruno Haible  <bruno@clisp.org>
4404
4405         acl: Fix a test failure on newer Solaris 10 with ZFS.
4406         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4407         ENOSYS as no ACL.
4408         Reported by Jim Meyering.
4409
4410 2011-09-06  Bruno Haible  <bruno@clisp.org>
4411
4412         acl: Update for AIX >= 5.3 with NFS.
4413         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4414         ENOSYS as no ACL.
4415
4416         acl: Fix a test failure on AIX >= 5.3 with NFS.
4417         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4418         as no ACL.
4419
4420 2011-09-06  Bruno Haible  <bruno@clisp.org>
4421
4422         acl: Fix a test failure on IRIX 6.5 with NFS.
4423         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4424         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4425         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4426         * lib/copy-acl.c (qcopy_acl): Likewise.
4427
4428 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4429
4430         openat: port to AIX 7.1 with large files
4431         AIX 7.1 does a "#define openat open64at" if large files are in use,
4432         so we can't simply #undef openat.  Use the orig_openat trick (similar
4433         to orig_open in lib/open.c) to work around the problem.  Problem
4434         reported by Kevin Brott for GNU tar, in the thread containing
4435         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4436         * lib/openat.c (__need_system_fcntl_h): Define first.
4437         Include <fcntl.h> and <sys/types.h> before undefining.
4438         (orig_openat) [HAVE_OPENAT]: New inline function.
4439         (openat) [HAVE_OPENAT]: Do not undef.
4440         (rpl_openat): Use orig_openat, not openat.
4441
4442 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4443             Bruno Haible  <bruno@clisp.org>
4444
4445         acl: Avoid errors on NonStop Kernel.
4446         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4447         ENOTSUP errors.
4448
4449 2011-09-05  Bruno Haible  <bruno@clisp.org>
4450
4451         acl: Clean up Solaris code.
4452         * lib/acl-internal.h: Remove no-op #if.
4453         * lib/file-has-acl.c: Likewise.
4454         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4455         * lib/copy-acl.c (qcopy_acl): Likewise.
4456
4457 2011-09-05  Bruno Haible  <bruno@clisp.org>
4458
4459         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4460         binaries built on the original Solaris 10.
4461         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4462         trivial.
4463
4464 2011-09-05  Bruno Haible  <bruno@clisp.org>
4465
4466         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4467         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4468         10.
4469         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4470         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4471         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4472         instead of acl_get, facl_get, acl_set, facl_set.
4473
4474 2011-09-05  Bruno Haible  <bruno@clisp.org>
4475
4476         copy-file: Try unit tests on more file systems.
4477         * tests/test-copy-file-1.sh: New file.
4478         * tests/test-copy-file-2.sh: New file.
4479         * modules/copy-file-tests (Files): Add them.
4480         (Makefile.am): Add them to TESTS.
4481
4482         acl: Try unit tests on more file systems.
4483         * tests/test-file-has-acl-1.sh: New file.
4484         * tests/test-file-has-acl-2.sh: New file.
4485         * tests/test-set-mode-acl-1.sh: New file.
4486         * tests/test-set-mode-acl-2.sh: New file.
4487         * tests/test-copy-acl-1.sh: New file.
4488         * tests/test-copy-acl-2.sh: New file.
4489         * modules/acl-tests (Files): Add them.
4490         (Makefile.am): Add them to TESTS.
4491
4492 2011-09-04  Bruno Haible  <bruno@clisp.org>
4493
4494         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4495         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4496         10.
4497         (OLD_ALLOW, OLD_DENY): New macros.
4498         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4499         ACE_ACCESS_ALLOWED_ACE_TYPE.
4500         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4501         ACE_ACCESS_DENIED_ACE_TYPE.
4502         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4503         (NEW_ACE_EXECUTE): Fix value.
4504         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4505         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4506         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4507         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4508         NEW_ACE_SYNCHRONIZE): New macros.
4509         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4510         instead of acl_fromtext, acl_set, facl_set.
4511         Fixes a coreutils/tests/cp/perm failure.
4512
4513 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4514
4515         openat: test for fstatat (..., 0) bug
4516         Further testing with tar suggests that fstatat (..., 0)
4517         does not work in general, on AIX 7.1; see
4518         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4519         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4520         replacement fstatat (which is what older AIX releases were using
4521         anyway).
4522         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4523         use is now changed to orig_fstatat.  This was probably the right
4524         thing to do anyway.
4525         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4526         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4527         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4528         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4529         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4530         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4531         if the bug is found.
4532
4533         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4534         This tests for another fstatat bug on AIX 7.1:
4535         fstatat (AT_FDCWD, ..., 0) does not work.  See
4536         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4537         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4538         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4539         (rpl_fstatat): Adjust so that it works around either (or both)
4540         bugs if present.
4541         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4542
4543 2011-09-03  Karl Berry  <karl@gnu.org>
4544
4545         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4546         in index entries.
4547
4548 2011-09-02  Bruno Haible  <bruno@clisp.org>
4549
4550         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4551         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4552         values of AR, ARFLAGS, RANLIB.
4553         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4554
4555 2011-09-02  Bruno Haible  <bruno@clisp.org>
4556
4557         Find 'ar' program that fits with --host argument.
4558         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4559
4560 2011-09-02  Bruno Haible  <bruno@clisp.org>
4561
4562         tests: init.sh: Support any non-GNU diff.
4563         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4564         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4565         Solaris 8.
4566
4567 2011-09-02  Bruno Haible  <bruno@clisp.org>
4568
4569         tests: init.sh: work also with any non-GNU diff that supports -u
4570         * tests/init.sh: Relax check for diff -u support.
4571         Rather than checking for GNU diff via --version, simply check
4572         for support for -u itself.  Useful at least on OpenBSD 4.9,
4573         AIX 7.1, IRIX 6.5, and Solaris 10.
4574
4575 2011-09-01  Bruno Haible  <bruno@clisp.org>
4576
4577         strtoimax, strtoumax: Document problem on HP-UX 11.
4578         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4579         * doc/posix-functions/strtoumax.texi: Likewise.
4580
4581 2011-09-01  Bruno Haible  <bruno@clisp.org>
4582
4583         strtoumax: Avoid link error on OSF/1 with DTK cc.
4584         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4585         defined as a function.
4586         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4587         strtoumax is defined, not whether it is declared.
4588
4589 2011-09-01  Bruno Haible  <bruno@clisp.org>
4590
4591         strtoimax: Avoid link error on OSF/1 with DTK cc.
4592         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4593         defined as a function.
4594         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4595         strtoimax is defined, not whether it is declared.
4596
4597 2011-09-01  Bruno Haible  <bruno@clisp.org>
4598
4599         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4600         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4601         as a function.
4602         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4603         whether it is declared.
4604
4605 2011-09-01  Bruno Haible  <bruno@clisp.org>
4606
4607         imaxabs: Avoid link error on OSF/1 with DTK cc.
4608         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4609         as a function.
4610         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4611         whether it is declared.
4612
4613 2011-09-01  Bruno Haible  <bruno@clisp.org>
4614
4615         Tests for module 'strtoumax'.
4616         * modules/strtoumax-tests: New file.
4617         * tests/test-strtoumax.c: New file.
4618
4619         Tests for module 'strtoimax'.
4620         * modules/strtoimax-tests: New file.
4621         * tests/test-strtoimax.c: New file.
4622
4623         Tests for module 'imaxdiv'.
4624         * modules/imaxdiv-tests: New file.
4625         * tests/test-imaxdiv.c: New file.
4626
4627         Tests for module 'imaxabs'.
4628         * modules/imaxabs-tests: New file.
4629         * tests/test-imaxabs.c: New file.
4630
4631 2011-09-01  Bruno Haible  <bruno@clisp.org>
4632
4633         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4634         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4635         pthread_create.
4636
4637 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4638
4639         openat: work around AIX 7.1 fstatat issue
4640         This should fix the problem that was not properly fixed
4641         in the previous change, dated 2011-08-30.
4642         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4643         __need_system_stat_h defined.
4644         (orig_fstatat) [HAVE_FSTATAT]: New function.
4645         (rpl_fstatat): Go back to the old way of doing things,
4646         except call orig_fstatat instead of fstatat.
4647         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4648         Remove unnecessary check whether fstatat fills in st_size etc.
4649
4650 2011-09-01  Bruno Haible  <bruno@clisp.org>
4651
4652         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4653         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4654         just include the system's header.
4655
4656 2011-08-31  Jim Meyering  <meyering@redhat.com>
4657
4658         tests: avoid spurious assertion failure in test-float.c on ppc64
4659         * tests/test-float.c (test_long_double): Comment out an assertion,
4660         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4661         with gcc-4.4.4.
4662
4663         maint: indent with spaces, not TABs
4664         I need to get in the habit of running gnulib's "make check".
4665         Both of these would have been caught.
4666         * m4/largefile.m4: Indent with spaces, not TABs.
4667         * lib/parse-datetime.y (iso_8601_time): Likewise.
4668         Spotted by Pádraig Brady.
4669
4670         test-parse-datetime.c: accommodate a relatively strict gcc warning
4671         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4672         to avoid a warning from gcc's -Werror=missing-declarations.
4673         Insert a few spaces-before-funcall-parenthesis.
4674
4675 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4676
4677         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4678         The parser now accepts ISO 8601 date-time strings with "T" as the
4679         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4680         with a space between the date and time strings.  Now it also parses
4681         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4682         variants like "2004-02-29T16:21:42.333-07:00"
4683         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4684         of day representation using the 'T' separator character.
4685         * doc/parse-datetime.texi (General date syntax): replace use of
4686         deprecated --iso-8601 option with --rfc-3339 in example of date
4687         command output formats that can be parsed.
4688         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4689         lib/parse-datetime.y.
4690         (gmt_offset): New function.
4691         (main): Add additional test cases to validate ISO8601 extended
4692         date and time of day parsing.
4693
4694 2011-08-31  Bruno Haible  <bruno@clisp.org>
4695
4696         freopen: Documentation.
4697         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4698         name.
4699         Reported by Claudio Bley <claudio.bley@gmail.com>.
4700
4701 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4702
4703         freopen: Don't crash if the filename argument is NULL.
4704         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4705         NULL.
4706
4707 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4708
4709         openat: work around AIX 7.1 fstatat bug
4710         Problem reported by Kevin Brott for GNU tar, in the thread containing
4711         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4712         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4713         FSTATAT_ST_SIZE_ETC_BROKEN.
4714         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4715         rpl_fstatat.
4716         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4717         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4718         AC_CHECK_FUNCS_ONCE for fstatat.
4719         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4720         fchmodat, mkdirat, openat and unlinkat.
4721
4722 2011-08-30  Bruno Haible  <bruno@clisp.org>
4723
4724         Avoid endless recursions if config.h includes some header files.
4725         * lib/fopen.c (__need_FILE): Define already before including config.h.
4726         * lib/freopen.c (__need_FILE): Likewise.
4727         * lib/open.c (__need_system_fcntl_h): Likewise.
4728         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4729         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4730         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4731
4732 2011-08-25  Karl Berry  <karl@gnu.org>
4733
4734         * config/srclist.txt (ylwrap): new try.
4735         * build-aux/ylwrap: new file.
4736
4737 2011-08-23  Bruno Haible  <bruno@clisp.org>
4738
4739         tmpdir: Use a good default directory on native Windows.
4740         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4741         (P_tmpdir): Default to _P_tmpdir on native Windows.
4742         (path_search): On native Windows, try the value returned by GetTempPath
4743         before trying P_tmpdir.
4744         * modules/tmpdir (Depends-on): Add pathmax.
4745         Suggested by John Darrington <john@darrington.wattle.id.au>.
4746
4747 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4748
4749         doc: fix typo in README-release
4750         * top/README-release: Capitalize first word of a sentence.
4751
4752 2011-08-19  Jim Meyering  <meyering@redhat.com>
4753
4754         fts: do not exhaust memory when processing million-entry directories
4755         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4756         directory would require about 256*N bytes of memory.  Thus, it was
4757         easy to construct a directory too large to be processed by any of
4758         those tools.  With this change, fts' maximum memory utilization is
4759         now limited to around 30MB.
4760         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4761         (fts_read): When we've processed the final entry (i.e., when
4762         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4763         using the parent entry to read any remaining entries.  Dispatch
4764         depending on what fts_build returns:
4765         - NULL+stop, aka failure: stop
4766         - NULL otherwise: move up in the dir hierarchy
4767         - non-NULL: handle this new entry
4768         (fts_build): Declare and use new local, continue_readdir.
4769         Prepare to be called from fts_read, when the entries
4770         from a partially-read directory have just been exhausted.
4771         In that case, we'll skip the opendir and instead use the parent's
4772         fts_dirp and derive dir_fd from that.
4773         Finally, in the readdir loop, if we read max_entries entries,
4774         exit the loop ensuring *not* to call closedir.  This is required
4775         so that fts_dirp can be reused on a subsequent call.
4776         Prompted by Ben England's report of memory exhaustion in find
4777         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4778
4779         maint: fts: move decl of `dp' down into while loop; split a long line
4780         * lib/fts.c (fts_build): No semantic change.
4781
4782         fts: add/use new struct member, fts_dirp
4783         We are about to use this to manage any directory with
4784         too many entries to read all of them into memory at once.
4785         To do that, we'll need to save the DIR* pointer in each
4786         affected FTSENT struct.
4787         * lib/fts_.h: Include <dirent.h>.
4788         (struct FTSENT) [fts_dirp]: New member.
4789         * lib/fts.c (closedir_and_clear): Define.
4790         Use it in place of closedir so that we are sure to
4791         clear the new fts_dirp member when done with it.
4792         (fts_alloc): Initialize the new member.
4793         (fts_lfree): Free, if needed.
4794
4795         maint: fts: give __opendir2 a new parameter and rename
4796         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4797         than surreptitiously using sole caller's "dir_fd".
4798         (fts_opendir): Rename from __opendir2.
4799
4800         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4801         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4802
4803         maint: fts.c: correct off-by-one indentation
4804         * lib/fts.c (fts_build): Correct indentation, change style
4805         of a couple of block comments, and bracing style.
4806
4807         maint: fts.c: move __opendir2 #define "up" out of function body
4808         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4809
4810         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4811         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4812         out for a long time and besides was useful only on BSD systems.
4813
4814 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4815
4816         regex: port to Stratus OpenVOS
4817         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4818         define to empty, rather than attempting nonportable optimizations.
4819         Problem reported by Paul Green in:
4820         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4821         and fix suggested by Eric Blake in:
4822         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4823
4824 2011-08-17  Eric Blake  <eblake@redhat.com>
4825
4826         getcwd: fix test failures on mingw
4827         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4828         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4829         test if long directory cannot be created, and allow mingw errno.
4830
4831         getcwd-lgpl: fix m4 to match relaxed test for BSD
4832         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4833         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4834         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4835         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4836         signature problem.
4837
4838         getcwd: fix compilation on mingw64
4839         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4840         getcwd.
4841         Reported by Marc-André Lureau.
4842
4843         pipe2: silence compiler warning
4844         * lib/pipe2.c (pipe2): Hide label if it is not used.
4845
4846 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4847
4848         relocatable-prog: fix link error
4849         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4850         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4851         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4852         into modules/relocatable-lib without noticing that
4853         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4854         also needs to build relocatable.c.
4855
4856 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4857
4858         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4859         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4860         shell code: it contained a 'break' that was not in a loop.
4861         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4862         via a shell-language loop; this may have been true in old Autoconf
4863         versions, but it's not true in Autoconf 2.68.  I found this bug
4864         when testing coreutils git on Solaris 8, whose shell complains
4865         about the syntax error.
4866
4867 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4868
4869         * lib/base64.c: Fix comment to reference RFC 4648.
4870         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4871         <gvtulder@gmail.com>.
4872
4873 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4874
4875         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4876
4877         po/Makefile.in.in: fix make -q problem
4878         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4879         rule, since there's no file named 'check-macro-version' and its
4880         use as a file breaks make -q.
4881         (all): Don't depend on check-macro-version.
4882         (CHECK_MACRO_VERSION): New macro.
4883         (stamp-po): Use it.
4884
4885         configmake: fix make -q problem
4886         * modules/configmake (configmake.h): Update configmake.h's time stamp
4887         even if the file does not change.  Otherwise, 'make -q' fails.
4888         Problem reported by Simon Josefsson in
4889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4890
4891 2011-08-11  Jim Meyering  <meyering@redhat.com>
4892
4893         git-version-gen: correct the advice in a comment
4894         * build-aux/git-version-gen: Correct comment.
4895         Don't recommend to list .tarball-version in .gitignore.
4896
4897 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4898
4899         base64: fix off-by-one buffer size bug
4900         Problem and (trivial) fix reported by Gijs van Tulder in
4901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4902         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4903         * tests/test-base64.c (main): Catch the bug.
4904
4905 2011-08-10  Eric Blake  <eblake@redhat.com>
4906
4907         closein: correct comments
4908         * lib/closein.c (close_stdin): Improve comments.
4909
4910 2011-08-09  Bruno Haible  <bruno@clisp.org>
4911
4912         More tests for 'fseeko'.
4913         * tests/test-fseeko3.c: New file, from Eric Blake.
4914         * tests/test-fseeko3.sh: New file.
4915         * modules/fseeko-tests (Files): Add them.
4916         (TESTS): Add test-fseeko3.sh.
4917         (check_PROGRAMS): Add test-fseeko3.
4918
4919 2011-08-09  Eric Blake  <eblake@redhat.com>
4920
4921         fseeko: remove unneeded hack
4922         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4923
4924         fseeko: fix bug on glibc
4925         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4926         Reported by John W. Eaton.
4927
4928 2011-08-08  Bruno Haible  <bruno@clisp.org>
4929
4930         unictype/base: Fix interoperability with preinstalled libunistring.
4931         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4932         Reported by Simon Josefsson.
4933
4934 2011-08-08  Bruno Haible  <bruno@clisp.org>
4935
4936         iswblank: Detect declaration correctly.
4937         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4938         AC_CHECK_DECLS invocation.
4939
4940 2011-08-08  Bruno Haible  <bruno@clisp.org>
4941
4942         tcgetsid: Detect declaration correctly.
4943         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4944         AC_CHECK_DECLS invocation.
4945         Reported by Simon Josefsson.
4946
4947 2011-08-08  Eric Blake  <eblake@redhat.com>
4948
4949         largefile: fix typo that regressed large file support
4950         * modules/largefile (configure.ac-early): Fix section name.
4951
4952 2011-08-06  Karl Berry  <karl@gnu.org>
4953
4954         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4955         a separate module.
4956
4957 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4958
4959         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4960         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4961         get prototype for free.
4962
4963 2011-08-04  Bruno Haible  <bruno@clisp.org>
4964
4965         Tests for module 'pathmax'.
4966         * modules/pathmax-tests: New file.
4967         * tests/test-pathmax.c: New file.
4968
4969         canonicalize-lgpl: Support larger filenames on the Hurd.
4970         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4971         Reported by Paul Eggert.
4972
4973         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4974         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4975         * lib/chdir-long.h: Include pathmax.h.
4976         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4977         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4978         (PATH_MAX): Remove code that is done by pathmax.h.
4979         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4980         * lib/tmpfile.c: Add a comment.
4981         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4982         * modules/chdir-long (Depends-on): Add pathmax.
4983         * modules/getcwd (Depends-on): Add pathmax.
4984         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4985         is not defined.
4986         * doc/posix-headers/limits.texi: Mention the pathmax module.
4987         * NEWS: Mention the change.
4988
4989 2011-08-02  Bruno Haible  <bruno@clisp.org>
4990
4991         pthread_sigmask: Actually use results of gl_THREADLIB.
4992         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4993         gl_THREADLIB, not gl_[]THREADLIB.
4994         Reported by Eric Blake.
4995
4996 2011-08-02  Jim Meyering  <meyering@redhat.com>
4997
4998         maint.mk: relax the default _gl_TS_function_match regexp
4999         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5000         space between function name and "(" in an "extern" declaration.
5001         That would fail to match a decl with no space there: extern void foo();
5002
5003 2011-07-31  Iain Nicol  <iain@thenicols.net>
5004
5005         git-version-gen: document that EXTRA_DIST must include .version
5006         * build-aux/git-version-gen: In the how-to-use comment, document
5007         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5008         will fail when run from an unpacked distribution tarball.
5009
5010 2011-08-01  Bruno Haible  <bruno@clisp.org>
5011
5012         wctype-h: Fix last change.
5013         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5014         REPLACE_TOWLOWER to 0.
5015         Reported by Sam Steingold <sds@gnu.org>.
5016
5017 2011-07-31  Bruno Haible  <bruno@clisp.org>
5018
5019         frexpl: Update autoconf test.
5020         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5021         according to changes of 2011-06-20.
5022
5023 2011-07-31  Bruno Haible  <bruno@clisp.org>
5024
5025         sys_utsname: Add support for Minix.
5026         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5027         <sys/utsname.h>.
5028         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5029         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5030
5031 2011-07-31  Bruno Haible  <bruno@clisp.org>
5032
5033         strings: Add support for Minix.
5034         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5035         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5036         * doc/posix-headers/strings.texi: Document the Minix problem.
5037
5038 2011-07-31  Bruno Haible  <bruno@clisp.org>
5039
5040         wctype-h: Add support for Minix.
5041         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5042         REPLACE_TOWLOWER.
5043         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5044         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5045         REPLACE_ISWCNTRL.
5046
5047 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5048
5049         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5050         This is a performance improvement for 64-bit hosts: it causes the
5051         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5052
5053 2011-07-31  Bruno Haible  <bruno@clisp.org>
5054
5055         stdioext: Add support for Minix.
5056         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5057         * lib/fpurge.c (fpurge): Likewise.
5058         * lib/freadahead.c (freadahead): Likewise.
5059         * lib/freadable.c (freadable): Likewise.
5060         * lib/freading.c (freading): Likewise.
5061         * lib/freadptr.c (freadptr): Likewise.
5062         * lib/freadseek.c (freadptrinc): Likewise.
5063         * lib/fseeko.c (rpl_fseeko): Likewise.
5064         * lib/fseterr.c (fseterr): Likewise.
5065         * lib/fwritable.c (fwritable): Likewise.
5066         * lib/fwriting.c (fwriting): Likewise.
5067         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5068         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5069
5070 2011-07-31  Bruno Haible  <bruno@clisp.org>
5071
5072         errno: Port to Minix.
5073         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5074         ECONNABORTED are defined.
5075         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5076         GNULIB_defined_ECONNABORTED): New macros.
5077         * lib/strerror-override.h (strerror_override): Test also
5078         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5079         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5080         ECONNABORTED.
5081         * doc/posix-headers/errno.texi: Mention the Minix problem.
5082
5083 2011-07-31  Bruno Haible  <bruno@clisp.org>
5084
5085         Work around declaration collisions on Minix.
5086         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5087         defined, set REPLACE_MBSINIT.
5088         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5089         defined, set REPLACE_MBRTOWC.
5090         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5091         set REPLACE_MBRLEN.
5092         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5093         defined, set REPLACE_MBSRTOWCS.
5094         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5095         defined, set REPLACE_WCRTOMB.
5096         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5097         defined, set REPLACE_WCSRTOMBS.
5098
5099 2011-07-31  Bruno Haible  <bruno@clisp.org>
5100
5101         Add support for Minix with ACK compiler.
5102         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5103         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5104         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5105
5106 2011-07-31  Bruno Haible  <bruno@clisp.org>
5107
5108         Documentation about Minix.
5109         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5110         * doc/glibc-headers/*.texi: Likewise.
5111         * doc/posix-functions/*.texi: Likewise.
5112         * doc/glibc-functions/*.texi: Likewise.
5113
5114 2011-07-31  Bruno Haible  <bruno@clisp.org>
5115
5116         snippet/warn-on-use: Fix indentation.
5117         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5118
5119 2011-07-25  Jim Meyering  <meyering@redhat.com>
5120
5121         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5122         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5123         commands.
5124
5125 2011-07-27  Jim Meyering  <meyering@redhat.com>
5126
5127         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5128         * top/maint.mk (gl_extract_significant_defines_): Now that
5129         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5130         gnulib/lib/signal.in.h, and now that we recommend to
5131         define-if-undefined those two symbols in application code,
5132         we must filter them out of the "significant" list.
5133         This avoids a "make syntax-check" failure in coreutils.
5134
5135 2011-07-26  Eric Blake  <eblake@redhat.com>
5136
5137         warnings: add comments about previous patch
5138         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5139         * m4/include_next.m4: Likewise.
5140         * m4/warn-on-use.m4: Likewise.
5141         * m4/warnings.m4: Likewise, and simplify use.
5142         Suggested by Stefano Lattarini.
5143
5144         include-next, warnings: support older autoconf
5145         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5146         AS_VAR_PUSHDEF in a way that works with older autoconf.
5147         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5148         Reported by Daniel P. Berrange.
5149
5150 2011-07-25  Bruno Haible  <bruno@clisp.org>
5151
5152         fseek, ftell: Fix doc.
5153         * doc/posix-functions/fseek.texi: Reword statement about
5154         AC_SYS_LARGEFILE.
5155         * doc/posix-functions/ftell.texi: Likewise.
5156
5157 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5158             Bruno Haible  <bruno@clisp.org>
5159
5160         Add dependencies to the 'largefile' module.
5161         * modules/fopen (Depends-on): Add 'largefile'.
5162         * modules/freopen (Depends-on): Likewise.
5163         * modules/fseeko (Depends-on): Likewise.
5164         * modules/ftello (Depends-on): Likewise.
5165         * modules/glob (Depends-on): Likewise.
5166         * modules/lseek (Depends-on): Likewise.
5167         * modules/lstat (Depends-on): Likewise.
5168         * modules/mkostemp (Depends-on): Likewise.
5169         * modules/mkostemps (Depends-on): Likewise.
5170         * modules/mkstemp (Depends-on): Likewise.
5171         * modules/mkstemps (Depends-on): Likewise.
5172         * modules/open (Depends-on): Likewise.
5173         * modules/openat (Depends-on): Likewise.
5174         * modules/pread (Depends-on): Likewise.
5175         * modules/pwrite (Depends-on): Likewise.
5176         * modules/scandir (Depends-on): Likewise.
5177         * modules/stat (Depends-on): Likewise.
5178         * modules/tmpfile (Depends-on): Likewise.
5179         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5180         since the containing module now depends on the largefile module.
5181         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5182         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5183         off_t is fixed by gnulib.
5184         * doc/posix-functions/freopen.texi: Likewise.
5185         * doc/posix-functions/fseeko.texi: Likewise.
5186         * doc/posix-functions/fstatat.texi: Likewise.
5187         * doc/posix-functions/ftello.texi: Likewise.
5188         * doc/posix-functions/glob.texi: Likewise.
5189         * doc/posix-functions/lseek.texi: Likewise.
5190         * doc/posix-functions/lstat.texi: Likewise.
5191         * doc/posix-functions/mkstemp.texi: Likewise.
5192         * doc/posix-functions/open.texi: Likewise.
5193         * doc/posix-functions/openat.texi: Likewise.
5194         * doc/posix-functions/pread.texi: Likewise.
5195         * doc/posix-functions/pwrite.texi: Likewise.
5196         * doc/posix-functions/scandir.texi: Likewise.
5197         * doc/posix-functions/stat.texi: Likewise.
5198         * doc/posix-functions/tmpfile.texi: Likewise.
5199         * doc/glibc-functions/mkostemp.texi: Likewise.
5200         * doc/glibc-functions/mkostemps.texi: Likewise.
5201         * doc/glibc-functions/mkstemps.texi: Likewise.
5202
5203 2011-07-25  Bruno Haible  <bruno@clisp.org>
5204
5205         fcntl: Move AC_LIBOBJ invocation to module description.
5206         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5207         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5208
5209         fcntl: Remove call-in from fchdir.m4.
5210         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5211         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5212
5213         dup3: Remove potential call-in from fchdir.m4.
5214         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5216
5217         dup2: Move AC_LIBOBJ invocation to module description.
5218         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5219         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5220         Don't invoke AC_LIBOBJ.
5221         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5222
5223         dup2: Remove call-in from fchdir.m4.
5224         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5225         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5226
5227         fclose: Move AC_LIBOBJ invocation to module description.
5228         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5229         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5230         to 1.
5231         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5232
5233         fclose: Remove call-in from close.m4.
5234         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5235         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5236
5237         close: Move AC_LIBOBJ invocation to module description.
5238         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5239         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5240         1.
5241         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5242
5243         close: Remove call-in from fchdir.m4.
5244         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5246
5247         open: Move AC_LIBOBJ invocation to module description.
5248         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5249         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5250         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5251
5252         open: Remove call-in from fchdir.m4.
5253         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5254         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5255
5256         fchdir: Start to remove gl_REPLACE_* idiom.
5257         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5258         (gl_FUNC_FCHDIR): Invoke it.
5259
5260 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5261
5262         * lib/ftell.c (ftell): Comment out cast.
5263
5264         close: use gl_REPLACE_FCLOSE only if defined
5265         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5266         is defined.  The close module doesn't depend on the fclose module
5267         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5269         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5270
5271 2011-07-24  Jim Meyering  <meyering@redhat.com>
5272
5273         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5274         * tests/test-select.h (test_function): Declare as "static".
5275
5276 2011-07-24  Bruno Haible  <bruno@clisp.org>
5277
5278         doc: Mention the effects of AC_SYS_LARGEFILE.
5279         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5280         on this function.
5281         * doc/posix-functions/aio_error.texi: Likewise.
5282         * doc/posix-functions/aio_fsync.texi: Likewise.
5283         * doc/posix-functions/aio_read.texi: Likewise.
5284         * doc/posix-functions/aio_return.texi: Likewise.
5285         * doc/posix-functions/aio_suspend.texi: Likewise.
5286         * doc/posix-functions/aio_write.texi: Likewise.
5287         * doc/posix-functions/fgetpos.texi: Likewise.
5288         * doc/posix-functions/fopen.texi: Likewise.
5289         * doc/posix-functions/freopen.texi: Likewise.
5290         * doc/posix-functions/fsetpos.texi: Likewise.
5291         * doc/posix-functions/fstatvfs.texi: Likewise.
5292         * doc/posix-functions/ftruncate.texi: Likewise.
5293         * doc/posix-functions/ftw.texi: Likewise.
5294         * doc/posix-functions/getrlimit.texi: Likewise.
5295         * doc/posix-functions/glob.texi: Likewise.
5296         * doc/posix-functions/lio_listio.texi: Likewise.
5297         * doc/posix-functions/lockf.texi: Likewise.
5298         * doc/posix-functions/mkstemp.texi: Likewise.
5299         * doc/posix-functions/mmap.texi: Likewise.
5300         * doc/posix-functions/nftw.texi: Likewise.
5301         * doc/posix-functions/openat.texi: Likewise.
5302         * doc/posix-functions/opendir.texi: Likewise.
5303         * doc/posix-functions/posix_fadvise.texi: Likewise.
5304         * doc/posix-functions/posix_fallocate.texi: Likewise.
5305         * doc/posix-functions/pread.texi: Likewise.
5306         * doc/posix-functions/pwrite.texi: Likewise.
5307         * doc/posix-functions/readdir.texi: Likewise.
5308         * doc/posix-functions/readdir_r.texi: Likewise.
5309         * doc/posix-functions/rewinddir.texi: Likewise.
5310         * doc/posix-functions/scandir.texi: Likewise.
5311         * doc/posix-functions/seekdir.texi: Likewise.
5312         * doc/posix-functions/setrlimit.texi: Likewise.
5313         * doc/posix-functions/statvfs.texi: Likewise.
5314         * doc/posix-functions/telldir.texi: Likewise.
5315         * doc/posix-functions/tmpfile.texi: Likewise.
5316         * doc/posix-functions/truncate.texi: Likewise.
5317         * doc/glibc-functions/fallocate.texi: Likewise.
5318         * doc/glibc-functions/fstatfs.texi: Likewise.
5319         * doc/glibc-functions/fts_children.texi: Likewise.
5320         * doc/glibc-functions/fts_read.texi: Likewise.
5321         * doc/glibc-functions/getdirentries.texi: Likewise.
5322         * doc/glibc-functions/mkostemp.texi: Likewise.
5323         * doc/glibc-functions/mkostemps.texi: Likewise.
5324         * doc/glibc-functions/mkstemps.texi: Likewise.
5325         * doc/glibc-functions/preadv.texi: Likewise.
5326         * doc/glibc-functions/pwritev.texi: Likewise.
5327         * doc/glibc-functions/sendfile.texi: Likewise.
5328         * doc/glibc-functions/statfs.texi: Likewise.
5329
5330 2011-07-24  Bruno Haible  <bruno@clisp.org>
5331
5332         doc: Fix typo.
5333         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5334
5335 2011-07-24  Bruno Haible  <bruno@clisp.org>
5336
5337         doc: Mention fsusage.
5338         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5339
5340 2011-07-24  Bruno Haible  <bruno@clisp.org>
5341
5342         doc: Mention new glibc headers and functions.
5343         * doc/glibc-headers/gshadow.texi: New file.
5344         * doc/glibc-functions/endsgent.texi: New file.
5345         * doc/glibc-functions/fgetsgent.texi: New file.
5346         * doc/glibc-functions/fgetsgent_r.texi: New file.
5347         * doc/glibc-functions/getsgent.texi: New file.
5348         * doc/glibc-functions/getsgent_r.texi: New file.
5349         * doc/glibc-functions/getsgnam.texi: New file.
5350         * doc/glibc-functions/getsgnam_r.texi: New file.
5351         * doc/glibc-functions/putsgent.texi: New file.
5352         * doc/glibc-functions/setsgent.texi: New file.
5353         * doc/glibc-functions/sgetsgent.texi: New file.
5354         * doc/glibc-functions/sgetsgent_r.texi: New file.
5355         * doc/glibc-functions/malloc_info.texi: New file.
5356         * doc/glibc-functions/preadv.texi: New file.
5357         * doc/glibc-functions/pwritev.texi: New file.
5358         * doc/glibc-functions/register_printf_modifier.texi: New file.
5359         * doc/glibc-functions/register_printf_specifier.texi: New file.
5360         * doc/glibc-functions/register_printf_type.texi: New file.
5361         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5362         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5363         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5364         * doc/glibc-functions/pthread_getname_np.texi: New file.
5365         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5366         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5367         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5368         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5369         * doc/glibc-functions/pthread_setname_np.texi: New file.
5370         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5371         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5372         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5373         * doc/glibc-functions/qsort_r.texi: New file.
5374         * doc/glibc-functions/quick_exit.texi: New file.
5375         * doc/glibc-functions/syncfs.texi: New file.
5376         * doc/gnulib.texi: Include them.
5377         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5378         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5379         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5380         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5381         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5382         * doc/glibc-functions/execvpe.texi: Likewise.
5383
5384 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5385
5386         ftell: don't include <unistd.h>
5387         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5388         guaranteed to define off_t, and the ftell module depends on the
5389         stdio module.
5390
5391         ftell: do not assume wraparound signed arithmetic
5392         * lib/ftell.c: Include <limits.h>.
5393         (ftell): Don't assume wraparound signed arithmetic.
5394
5395 2011-07-24  Bruno Haible  <bruno@clisp.org>
5396
5397         close: No longer depend on module 'fclose'.
5398         * modules/close (Depends-on): Remove fclose.
5399         * NEWS: Mention the change.
5400         Suggested by Sam Steingold <sds@gnu.org>.
5401
5402 2011-07-24  Bruno Haible  <bruno@clisp.org>
5403
5404         fsusage: Enable large volume support on AIX >= 5.2.
5405         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5406         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5407         instead of STAT_STATVFS.
5408         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5409
5410         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5411         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5412         f_blocks field only on MacOS X.
5413
5414         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5415         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5416         * modules/fsusage (Depends-on): Add largefile.
5417
5418 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5419
5420         * README: Modernize discussion of signed integers.
5421         Assuming overflow wraparound is no longer safe.
5422         Mention ones' complement and signed magnitude.
5423
5424 2011-07-22  Bruno Haible  <bruno@clisp.org>
5425
5426         select tests, pselect tests: Refactor.
5427         * tests/test-select.h: New file, extracted from tests/test-select.c.
5428         (select_fn): New type.
5429         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5430         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5431         test_pipe): Add my_select argument.
5432         (test_function): Renamed from main. Add my_select argument.
5433         * tests/test-select.c: Move most code to tests/test-select.h. Include
5434         test-select.h.
5435         * modules/select-tests (Files): Add tests/test-select.h.
5436         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5437         (my_select, main): New functions.
5438         * modules/pselect-tests (Files): Add tests/test-select.h,
5439         tests/macros.h, tests/signature.h.
5440         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5441         (configure.ac): Check for <sys/wait.h>.
5442
5443 2011-07-22  Bruno Haible  <bruno@clisp.org>
5444
5445         sys_select tests: Check the signature of FD_*.
5446         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5447         signature tests from here...
5448         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5449         here.
5450         * modules/sys_select-tests (Files): Add tests/signature.h.
5451
5452 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5453
5454         largefile: new module, replacing large-inode
5455         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5456         * MODULES.html.sh: Add largefile, remove large-inode.
5457         * modules/largefile, m4/largefile.m4: New files.
5458         * modules/large-inode, m4/large-inode.m4: Remove.
5459
5460         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5461         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5462         implementations that use only 32 bits to count blocks.
5463         On typical hosts with 1024-byte blocks, this fails with file
5464         systems as small as 4 TiB.  Problem reported by Herb Wartens
5465         <http://debbugs.gnu.org/9140> and this should also fix a similar
5466         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5467
5468         large-inode: New module
5469         * MODULES.html.sh: Add it.
5470         * modules/large-inode, m4/large-inode.m4: New files.
5471
5472         extensions: Enable extensions on MacOS X 10.5 and later.
5473         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5474
5475 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5476
5477         file-has-acl: use acl_extended_file_nofollow if available
5478         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5479         (acl_extended_file): New macro.
5480         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5481         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5482
5483 2011-07-21  Bruno Haible  <bruno@clisp.org>
5484
5485         Declare system functions in a way that works with C++.
5486         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5487         declare fdopendir as extern "C".
5488         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5489         declare frexpl as extern "C".
5490         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5491         declare gai_strerror as extern "C".
5492         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5493         programs, declare gai_strerror as extern "C".
5494         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5495         declare getlogin_r as extern "C".
5496         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5497         as extern "C".
5498         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5499         declare ldexpl as extern "C".
5500         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5501         as extern "C".
5502         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5503         program, declare getmntinfo as extern "C".
5504         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5505         stpncpy as extern "C".
5506         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5507         program, declare __xpg_strerror_r as extern "C".
5508         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5509         strndup as extern "C".
5510         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5511         declare memset and bzero as extern "C".
5512         Reported by Sam Steingold <sds@gnu.org>.
5513
5514 2011-07-12  Jim Meyering  <meyering@redhat.com>
5515
5516         maint.mk: prohibit inclusion of "verify.h" without use
5517         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5518
5519 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5520
5521         timer-time: A new module to check for timer_settime()
5522         * m4/timer_time.m4: Check for the posix function.
5523         * modules/timer-time: Add the new module.
5524         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5525         Mention it.
5526
5527 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5528             Bruno Haible  <bruno@clisp.org>
5529
5530         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5531         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5532         not defined, assume POSIX threads and look for pthread_sigmask in
5533         $LIBS, without changing $CPPFLAGS.
5534
5535 2011-07-19  Bruno Haible  <bruno@clisp.org>
5536
5537         strstr: Update cross-compilation guess.
5538         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5539         CPUs, guess no, in view of glibc
5540         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5541         Suggested by Eric Blake. Reported by Reuben Thomas.
5542
5543 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5544
5545         getopt-gnu: suppress core dumps from detection code
5546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5547         to suppress core dumps that may well occur on glibc systems.
5548         * modules/getopt-gnu: Depend on nocrash.
5549
5550 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5551
5552         pthread_sigmask: ensure usleep is declared
5553         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5554         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5555
5556 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5557
5558         doc: Document NonStop portability issues.
5559         * doc/posix-functions/sigaction.texi (sigaction):
5560         * doc/posix-headers/signal.texi (signal.h):
5561         Document NonStop.  See Joachim Schmitz in
5562         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5563
5564 2011-07-15  Bruno Haible  <bruno@clisp.org>
5565
5566         ffsl, ffsll: Avoid unportable behaviour.
5567         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5568
5569 2011-07-15  Bruno Haible  <bruno@clisp.org>
5570
5571         ffs: More tests.
5572         * tests/test-ffs.c (NBITS): New macro.
5573         (main): Add more tests.
5574         * tests/test-ffsl.c (NBITS): New macro.
5575         (main): Add more tests.
5576         * tests/test-ffsll.c (NBITS): New macro.
5577         (main): Add more tests.
5578
5579 2011-07-15  Eric Blake  <eblake@redhat.com>
5580
5581         ffsl, ffsll: new modules
5582         * modules/ffsl: New file.
5583         * modules/ffsll: Likewise.
5584         * m4/ffsl.m4: Likewise.
5585         * m4/ffsll.m4: Likewise.
5586         * lib/ffsl.c: Likewise.
5587         * lib/ffsl.h: Likewise.
5588         * lib/ffsll.c: Likewise.
5589         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5590         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5591         * modules/string (Makefile.am): Substitute witnesses.
5592         * lib/strings.in.h (ffsl, ffsll): Declare.
5593         * modules/ffsl-tests: New test file.
5594         * modules/ffsll-tests: Likewise.
5595         * tests/test-ffsl.c: Likewise.
5596         * tests/test-ffsll.c: Likewise.
5597         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5598         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5599         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5600
5601         ffs: fix m4 prerequisite
5602         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5603
5604         ffs: avoid undefined behavior
5605         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5606         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5607         Reported by Bruno Haible.
5608
5609 2011-07-12  Bruno Haible  <bruno@clisp.org>
5610
5611         pthread_sigmask: Rely on module 'threadlib'.
5612         * modules/pthread_sigmask (Depends-on): Add threadlib.
5613         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5614         is defined.
5615
5616 2011-07-12  Bruno Haible  <bruno@clisp.org>
5617
5618         regex: Depend on module 'strcase'.
5619         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5620
5621 2011-07-12  Jim Meyering  <meyering@redhat.com>
5622
5623         warn-on-use: fix typo in file name
5624         * modules/snippet/warn-on-use (Files): Correct file name:
5625         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5626
5627 2011-07-12  Bruno Haible  <bruno@clisp.org>
5628
5629         strings: Document module.
5630         * doc/posix-headers/strings.texi: Mention module 'strings'.
5631
5632 2011-07-12  Bruno Haible  <bruno@clisp.org>
5633
5634         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5635         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5636         (Files, Makefile.am): Update.
5637         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5638         * modules/stdlib (Depends-on): Update.
5639
5640 2011-07-12  Bruno Haible  <bruno@clisp.org>
5641
5642         * NEWS: Mention the changes.
5643
5644         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5645         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5646         (Files, Makefile.am): Update.
5647         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5648         * modules/arpa_inet (Depends-on): Update.
5649         * modules/ctype (Depends-on): Update.
5650         * modules/dirent (Depends-on): Update.
5651         * modules/fcntl-h (Depends-on): Update.
5652         * modules/glob (Depends-on): Update.
5653         * modules/iconv-h (Depends-on): Update.
5654         * modules/inttypes-incomplete (Depends-on): Update.
5655         * modules/langinfo (Depends-on): Update.
5656         * modules/locale (Depends-on): Update.
5657         * modules/math (Depends-on): Update.
5658         * modules/netdb (Depends-on): Update.
5659         * modules/poll-h (Depends-on): Update.
5660         * modules/pty (Depends-on): Update.
5661         * modules/search (Depends-on): Update.
5662         * modules/signal (Depends-on): Update.
5663         * modules/spawn (Depends-on): Update.
5664         * modules/stdio (Depends-on): Update.
5665         * modules/stdlib (Depends-on): Update.
5666         * modules/string (Depends-on): Update.
5667         * modules/strings (Depends-on): Update.
5668         * modules/sys_file (Depends-on): Update.
5669         * modules/sys_ioctl (Depends-on): Update.
5670         * modules/sys_select (Depends-on): Update.
5671         * modules/sys_socket (Depends-on): Update.
5672         * modules/sys_stat (Depends-on): Update.
5673         * modules/sys_time (Depends-on): Update.
5674         * modules/sys_times (Depends-on): Update.
5675         * modules/sys_utsname (Depends-on): Update.
5676         * modules/sys_wait (Depends-on): Update.
5677         * modules/termios (Depends-on): Update.
5678         * modules/time (Depends-on): Update.
5679         * modules/unistd (Depends-on): Update.
5680         * modules/wchar (Depends-on): Update.
5681         * modules/wctype-h (Depends-on): Update.
5682         * MODULES.html.sh (Support for building libraries and executables):
5683         Update.
5684
5685         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5686         * modules/snippet/unused-parameter: Renamed from
5687         modules/unused-parameter.
5688         (Files, Makefile.am): Update.
5689         * build-aux/snippet/unused-parameter.h: Renamed from
5690         build-aux/unused-parameter.h.
5691         * modules/selinux-h (Depends-on): Update.
5692         * modules/unistr/base (Depends-on): Update.
5693         * MODULES.html.sh (Core language properties): Update.
5694
5695         Rename module 'link-warning' to 'snippet/link-warning'.
5696         * modules/snippet/link-warning: Renamed from modules/link-warning.
5697         (Files, Makefile.am): Update.
5698         * build-aux/snippet/link-warning.h: Renamed from
5699         build-aux/link-warning.h.
5700         * MODULES.html.sh (Support for building libraries and executables):
5701         Update.
5702
5703         Rename module 'c++defs' to 'snippet/c++defs'.
5704         * modules/snippet/c++defs: Renamed from modules/c++defs.
5705         (Files, Makefile.am): Update.
5706         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5707         * modules/arpa_inet (Depends-on): Update.
5708         * modules/ctype (Depends-on): Update.
5709         * modules/dirent (Depends-on): Update.
5710         * modules/fcntl-h (Depends-on): Update.
5711         * modules/glob (Depends-on): Update.
5712         * modules/iconv-h (Depends-on): Update.
5713         * modules/langinfo (Depends-on): Update.
5714         * modules/locale (Depends-on): Update.
5715         * modules/math (Depends-on): Update.
5716         * modules/netdb (Depends-on): Update.
5717         * modules/poll-h (Depends-on): Update.
5718         * modules/pty (Depends-on): Update.
5719         * modules/search (Depends-on): Update.
5720         * modules/signal (Depends-on): Update.
5721         * modules/spawn (Depends-on): Update.
5722         * modules/stdio (Depends-on): Update.
5723         * modules/stdlib (Depends-on): Update.
5724         * modules/string (Depends-on): Update.
5725         * modules/strings (Depends-on): Update.
5726         * modules/sys_ioctl (Depends-on): Update.
5727         * modules/sys_select (Depends-on): Update.
5728         * modules/sys_socket (Depends-on): Update.
5729         * modules/sys_stat (Depends-on): Update.
5730         * modules/sys_time (Depends-on): Update.
5731         * modules/sys_wait (Depends-on): Update.
5732         * modules/termios (Depends-on): Update.
5733         * modules/time (Depends-on): Update.
5734         * modules/unistd (Depends-on): Update.
5735         * modules/wchar (Depends-on): Update.
5736         * modules/wctype-h (Depends-on): Update.
5737
5738         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5739         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5740         (Files, Makefile.am): Update.
5741         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5742         * modules/argv-iter (Depends-on): Update.
5743         * modules/arpa_inet (Depends-on): Update.
5744         * modules/dirent (Depends-on): Update.
5745         * modules/fcntl-h (Depends-on): Update.
5746         * modules/fnmatch (Depends-on): Update.
5747         * modules/getopt-posix (Depends-on): Update.
5748         * modules/glob (Depends-on): Update.
5749         * modules/iconv-h (Depends-on): Update.
5750         * modules/inttypes-incomplete (Depends-on): Update.
5751         * modules/locale (Depends-on): Update.
5752         * modules/math (Depends-on): Update.
5753         * modules/netdb (Depends-on): Update.
5754         * modules/search (Depends-on): Update.
5755         * modules/signal (Depends-on): Update.
5756         * modules/spawn (Depends-on): Update.
5757         * modules/stdio (Depends-on): Update.
5758         * modules/stdlib (Depends-on): Update.
5759         * modules/string (Depends-on): Update.
5760         * modules/strings (Depends-on): Update.
5761         * modules/sys_socket (Depends-on): Update.
5762         * modules/sys_stat (Depends-on): Update.
5763         * modules/sys_time (Depends-on): Update.
5764         * modules/sys_times (Depends-on): Update.
5765         * modules/sys_utsname (Depends-on): Update.
5766         * modules/time (Depends-on): Update.
5767         * modules/unistd (Depends-on): Update.
5768         * modules/wchar (Depends-on): Update.
5769         * MODULES.html.sh (Support for building libraries and executables):
5770         Update.
5771
5772 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5773
5774         Improvements on _Noreturn and related modules.
5775
5776         modules/_Exit-tests: test _Noreturn too
5777         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5778         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5779         (main): Use them.
5780
5781         stdnoreturn, stdnoreturn-tests: remove modules
5782         They're not needed here and a bit premature for use elsewhere.  See
5783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5784         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5785         * tests/test-stdnoreturn.c: Remove files.
5786         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5787         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5788         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5789         and using noreturn.
5790         * modules/openat, modules/sigpipe-die, modules/xalloc:
5791         * modules/xmemdup0, modules/xstrtol:
5792         Remove dependency on stdnoreturn.
5793
5794         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5795         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5796         Reparenthesize to avoid GCC warning.
5797         Support Microsoft's syntax.
5798         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5799
5800         _Noreturn-tests: remove module
5801         * modules/_Noreturn-tests: Remove.
5802         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5803         * tests/test-_Noreturn.c: Remove.
5804         * tests/test-stdnoreturn.c: Merge from the old
5805         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5806
5807 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5808
5809         _Noreturn, stdnoreturn, and related modules.
5810
5811         * top/maint.mk: Adjust to new noreturn support.
5812         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5813         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5814
5815         xalloc: use stdnoreturn.h
5816         * lib/xalloc.h: Include <stdnoreturn.h>.
5817         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5818         * modules/xalloc (Depends-on): Add stdnoreturn.
5819
5820         xstrtol: use stdnoreturn.h
5821         * lib/xstrtol.h: Include <stdnoreturn.h>.
5822         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5823         * modules/xstrtol (Depends-on): Add stdnoreturn.
5824
5825         xmemdup0: use stdnoreturn.h
5826         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5827         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5828         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5829
5830         sigpipe-die: use stdnoreturn.h
5831         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5832         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5833         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5834
5835         openat: use stdnoreturn.h
5836         * lib/openat.h: Include <stdnoreturn.h>.
5837         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5838         * modules/openat (Depends-on): Add stdnoreturn.
5839
5840         * lib/openat-die.c (openat_save_fail): Modernize comment.
5841
5842         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5843
5844         * lib/glthread/thread.h: Modernize comment.
5845
5846         obstack: use _Noreturn
5847         * lib/obstack.c (__attribute__): Remove macro.
5848         (print_and_abort): Use _Noreturn.
5849
5850         c-stack: use _Noreturn
5851         * lib/c-stack.c (die, overflow_handler, segv_handler):
5852         Use _Noreturn rather than __attribute__((noreturn)).
5853
5854         argmatch-tests, exclude_tests: use _Noreturn
5855         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5856         Remove.
5857         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5858
5859         stdlib: use _Noreturn
5860         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5861         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5862         * modules/stdlib (Depends-on): Add _Noreturn.
5863         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5864
5865         stdnoreturn-tests: new module
5866         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5867
5868         stdnoreturn: new module
5869         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5870         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5871
5872         _Noreturn-tests: new module
5873         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5874
5875         _Noreturn: new module
5876         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5877         New section, mentioning it.
5878         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5879
5880         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5881
5882 2011-07-11  Eric Blake  <eblake@redhat.com>
5883
5884         ffs: new module
5885         * modules/ffs: New file.
5886         * m4/ffs.m4: Likewise.
5887         * lib/ffs.c: Likewise.
5888         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5889         * modules/strings (Makefile.am): Substitute witness.
5890         (Depends-on): Add c++defs.
5891         * lib/strings.in.h (ffs): Declare.
5892         * modules/ffs-tests: New test file.
5893         * tests/test-ffs.c: Test new module.
5894         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5895         * doc/posix-functions/ffs.texi (ffs): Likewise.
5896
5897         regex: avoid compiler warning
5898         * lib/regex.c (includes): Include <strings.h>, for use of
5899         strcasecmp in regcomp.c.
5900         Reported by Joachim Schmitz.
5901
5902 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5903
5904         stdint: respect system's intmax_t if INTMAX_MAX
5905         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5906         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5907         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5908         long but int64_t is long long, and where we will clash with the
5909         system intmax_t if we override it.  See
5910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5911         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5912         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5913         similarly for UINTMAX_C.
5914
5915 2011-07-08  Bruno Haible  <bruno@clisp.org>
5916
5917         pthread_sigmask tests: Avoid a compiler warning.
5918         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5919         non-zero.
5920
5921         sigprocmask tests: A better way to avoid a compiler warning.
5922         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5923         (main): Complain if system() returns non-zero.
5924         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5925
5926 2011-07-08  Bruno Haible  <bruno@clisp.org>
5927
5928         pthread_sigmask: Work around IRIX bug.
5929         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5930         bug.
5931         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5932         there may be unblocked pending signals.
5933         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5934
5935 2011-07-08  Bruno Haible  <bruno@clisp.org>
5936
5937         pthread_sigmask: Work around Cygwin bug.
5938         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5939         bug.
5940         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5941         the system's pthread_sigmask function.
5942         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5943
5944 2011-07-08  Bruno Haible  <bruno@clisp.org>
5945
5946         pthread_sigmask: Work around bug in single-threaded implementation.
5947         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5948         FreeBSD, HP-UX, Solaris bug.
5949         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5950         * lib/pthread_sigmask.c: Include <stddef.h>.
5951         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5952         the system's pthread_sigmask function.
5953         * modules/pthread_sigmask (configure.ac): Invoke
5954         gl_PREREQ_PTHREAD_SIGMASK.
5955         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5956         HP-UX, Solaris.
5957
5958 2011-07-08  Eric Blake  <eblake@redhat.com>
5959
5960         test-sigprocmask: avoid compiler warning
5961         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5962         * tests/test-sigprocmask.c (main): Use it to silence warning.
5963         Reported by Jim Meyering.
5964
5965         test-snprintf: avoid compiler warning
5966         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5967         * tests/test-vsnprintf.c (main): Likewise.
5968         Reported by Jim Meyering.
5969
5970 2011-07-08  Bruno Haible  <bruno@clisp.org>
5971
5972         Tests for module 'pthread_sigmask'.
5973         * modules/pthread_sigmask-tests: New file.
5974         * tests/test-pthread_sigmask1.c: New file, based on
5975         tests/test-sigprocmask.c.
5976         * tests/test-pthread_sigmask2.c: New file.
5977
5978 2011-07-08  Jim Meyering  <meyering@redhat.com>
5979
5980         test-getopt.h: avoid warning about an unused variable
5981         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5982
5983 2011-07-07  Jim Meyering  <meyering@redhat.com>
5984
5985         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5986         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5987         now that it no longer contains leading TABs.
5988         Remove unused "url=FIXME" statement.
5989
5990 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5991
5992         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5993         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5994         When gl_THREADLIB is not in use, assume that the POSIX sematics
5995         are desired.  This is better for Emacs, which uses POSIX semantics
5996         on GNUish and/or POSIXish platforms, and does not use threads at
5997         all otherwise.
5998
5999         pthread_sigmask: fix typo when testing for libraries
6000         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6001         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6002
6003 2011-07-08  Eric Blake  <eblake@redhat.com>
6004
6005         fts: introduce FTS_NOATIME
6006         * lib/fts_.h (FTS_NOATIME): New bit flag.
6007         (FTS_OPTIONMASK): Adjust.
6008         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6009         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6010
6011 2011-07-08  Bruno Haible  <bruno@clisp.org>
6012
6013         Tests for module 'thread'.
6014         * modules/thread-tests: New file.
6015         * tests/test-thread_self.c: New file.
6016         * tests/test-thread_create.cc: New file.
6017
6018 2011-07-08  Bruno Haible  <bruno@clisp.org>
6019
6020         thread: Avoid gcc warnings when using gl_thread_self().
6021         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6022         'void *'.
6023         (gl_thread_self_pointer): Update.
6024
6025 2011-07-07  Bruno Haible  <bruno@clisp.org>
6026
6027         signal-c++-tests: Check declaration of pthread_sigmask.
6028         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6029         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6030         $(LIB_PTHREAD_SIGMASK).
6031
6032 2011-07-07  Bruno Haible  <bruno@clisp.org>
6033
6034         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6035         * lib/signal.in.h (pthread_sigmask): Override if
6036         REPLACE_PTHREAD_SIGMASK is 1.
6037         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6038         REPLACE_PTHREAD_SIGMASK.
6039         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6040         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6041         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6042         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6043         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6044
6045 2011-07-07  Bruno Haible  <bruno@clisp.org>
6046
6047         pthread_sigmask: Ensure declaration in <signal.h>.
6048         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6049         include <pthread.h>.
6050         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6051         problem.
6052
6053 2011-07-07  Bruno Haible  <bruno@clisp.org>
6054
6055         pthread_sigmask: Document the module.
6056         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6057
6058 2011-07-07  Bruno Haible  <bruno@clisp.org>
6059
6060         pthread_sigmask: Follow gnulib conventions.
6061         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6062         gl_PTHREAD_SIGMASK.
6063         * modules/pthread_sigmask (configure.ac): Update.
6064
6065 2011-07-07  Bruno Haible  <bruno@clisp.org>
6066
6067         pthread_sigmask: Make declaration C++ safe.
6068         * lib/signal.in.h: In two special conditions, just do an #include_next.
6069         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6070         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6071         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6072         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6073         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6074         not REPLACE_PTHREAD_MASK.
6075         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6076         not REPLACE_PTHREAD_MASK.
6077         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6078
6079 2011-07-07  Bruno Haible  <bruno@clisp.org>
6080
6081         pthread_sigmask: Fix return value.
6082         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6083         * lib/pthread_sigmask.c: New file.
6084         * modules/pthread_sigmask (Files): Add it.
6085         (configure.ac): Invoke AC_LIBOBJ.
6086
6087 2011-07-07  Eric Blake  <eblake@redhat.com>
6088
6089         getopt: more portable argv creation
6090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6091         const, use char arrays rather than strings.
6092         Suggested by Paul Eggert.
6093
6094 2011-07-07  Bruno Haible  <bruno@clisp.org>
6095
6096         Tests for module 'sigprocmask'.
6097         * modules/sigprocmask-tests: New file.
6098         * tests/test-sigprocmask.c: New file.
6099
6100 2011-07-07  Bruno Haible  <bruno@clisp.org>
6101
6102         float tests: Tweak.
6103         * tests/test-float.c (main): Tweak skip message.
6104
6105 2011-07-07  Eric Blake  <eblake@redhat.com>
6106
6107         getopt: avoid compiler warning during configure
6108         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6109         assigning string literals to non-const pointer.
6110
6111         getopt-gnu: avoid crash in glibc getopt
6112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6113         * tests/test-getopt.h (test_getopt): Enhance test.
6114         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6115         * doc/posix-functions/getopt.texi (getopt): Document it.
6116         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6117         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6118         Likewise.
6119
6120 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6121
6122         getopt: handle W; without long options in getopt [BZ #12922]
6123         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6124         but no long options are defined, just return 'W'.
6125
6126 2011-07-07  Bruno Haible  <bruno@clisp.org>
6127
6128         Avoid literal tabs.
6129         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6130         variable containing a tab instead of a literal tab.
6131         Reported by Jim Meyering.
6132
6133 2011-07-07  Bruno Haible  <bruno@clisp.org>
6134
6135         Comments.
6136         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6137
6138 2011-07-06  Bruno Haible  <bruno@clisp.org>
6139
6140         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6141         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6142         <winsock2.h>.
6143         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6144         lib/sys_socket.in.h.
6145         (close, gethostname): Hide declarations from <winsock2.h>.
6146         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6147         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6148         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6149         (select): Don't override if gnulib's <sys/select.h> was already
6150         included.
6151         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6152         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6153         setsockopt, shutdown, select): Tweak indentation.
6154
6155 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6156
6157         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6158         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6159         in an application that does not use the sys_select module.
6160
6161 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6162
6163         poll: do not return 0 on timeout=-1
6164         * lib/poll.c: Loop with yield if no events occured
6165
6166 2011-07-06  Eric Blake  <eblake@redhat.com>
6167
6168         pthread_sigmask: always replace when not using pthread
6169         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6170         replacement when using some threading other than pthread.  Fix
6171         logic bug.
6172
6173 2011-07-06  Bruno Haible  <bruno@clisp.org>
6174
6175         Comments.
6176         * m4/printf.m4: Update comments about mingw.
6177
6178 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6179
6180         sys_select: define sigset_t more portably
6181         * lib/sys_select.in.h: Always include <sys/types.h>, since
6182         we now need sigset_t and mingw defines it there.
6183         Include <signal.h> before split inclusion guard, to avoid
6184         mishaps on Solaris, whose <signal.h> eventually includes us.
6185         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6186         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6187         which come from ...
6188         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6189         gl_CHECK_TYPE_SIGSET_T.
6190         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6191         does the real work.
6192         * modules/sys_select (Depends-on): Add 'signal'.
6193
6194         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6195         Suggested by Bruno Haible.
6196
6197         pselect: Use pthread_sigmask, not sigprocmask.
6198         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6199         multithreaded apps better than sigprocmask does.
6200         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6201         sigprocmask directly.
6202
6203 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6204
6205         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6206         Don't #undef,  since we don't need any underlying pselect.
6207         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6208         (Depends-on): Add select.
6209         (Link): Add $(LIBSOCKET).
6210         These changes suggested by Bruno Haible.
6211
6212         pselect: document better
6213         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6214         * doc/posix-functions/pselect.texi (pselect): Document new module.
6215
6216         pthread_sigmask: new module
6217         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6218         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6219         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6220         This is done only as a macro; I don't know how well that'll
6221         work for C++.  Move <sys/types.h> include before the include_next,
6222         to avoid mishap on Solaris.
6223         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6224         * modules/signal (Makefile.am): Substitute the check's results.
6225         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6226
6227         test-pselect: new module
6228         * modules/pselect-tests, tests/test-pselect.c: New files.
6229         * tests/test-select.c, tests/test-sys_select-c++.cc:
6230         If TEST_PSELECT is defined, test pselect instead of testing select.
6231
6232         * tests/test-sys_select.c (sigset_t): Test for it, too.
6233         Suggested by Bruno Haible.
6234
6235 2011-07-05  Eric Blake  <eblake@redhat.com>
6236
6237         snprintf: guarantee %1$d, for libintl
6238         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6239         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6240         * doc/posix-functions/snprintf.texi (snprintf): Update.
6241         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6242         * tests/test-snprintf.c (main): Enhance test.
6243         * tests/test-vsnprintf.c (main): Likewise.
6244
6245 2011-07-05  Jim Meyering  <meyering@redhat.com>
6246
6247         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6248         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6249         per Bruno's request, to accommodate this idiom (no space after "#")
6250         even when the function is inside an #if block:
6251         char *
6252         gets (char *s)
6253         #undef gets
6254         {
6255           ...
6256         }
6257
6258 2011-07-04  Jim Meyering  <meyering@redhat.com>
6259
6260         maint: indent with spaces, not TABs, and add a rule to check this
6261         * tests/test-userspec.c: Indent with spaces, not TABs.
6262         * tests/test-argp.c: Likewise.
6263         * tests/test-c-stack2.sh: Likewise.
6264         * tests/test-parse-duration.sh: Likewise
6265         * m4/strtod.m4: Likewise.
6266         * m4/alloca.m4: Likewise.
6267         * m4/pselect.m4: Likewise.
6268         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6269
6270 2011-07-03  Jim Meyering  <meyering@redhat.com>
6271
6272         maint.mk: correct omissions in prohibit_argmatch_without_use check
6273         This rule would mistakenly report that argmatch.h is included without
6274         use even when both the argmatch and invalid_arg macro were used.
6275         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6276         of argmatch and invalid_arg.
6277
6278 2011-07-03  Bruno Haible  <bruno@clisp.org>
6279
6280         Comments about EINTR.
6281         * lib/safe-read.h: Explain the purpose of this module.
6282         * lib/safe-write.h: Likewise.
6283         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6284         module.
6285         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6286         module.
6287         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6288
6289 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6290
6291         xnanosleep: Rewrite to use new dtotimespec module.
6292         It has the conversion code that used to be in xnanosleep.
6293         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6294         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6295         (TIME_T_MAX): Remove.
6296         (xnanosleep): Rewrite in terms of dtotimespec.
6297         * modules/xnanosleep (Depends-on): Add dtotimespec.
6298         Remove intprops, stdbool.
6299
6300         timespec-add, timespec-sub: new modules
6301         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6302         * lib/timespec-add.c, lib/timespec-sub.c:
6303         * modules/timespec-add, modules/timespec-sub: New files.
6304
6305         dtotimespec: new module
6306         * lib/timespec.h (dtotimespec): New decl.
6307         * lib/dtotimespec.c, modules/dtotimespec: New files.
6308
6309         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6310
6311         pselect: new module
6312         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6313         (pselect): New decls.
6314         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6315         since the standard pselect decl uses 'restrict'.
6316         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6317         HAVE_PSELECT, REPLACE_PSELECT.
6318         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6319         HAVE_PSELECT, REPLACE_PSELECT.
6320         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6321
6322         sys_select: don't depend on sys_socket
6323         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6325         This fix works on GNU and GNU-like platforms, but has not been tested
6326         on native Windows.
6327         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6328         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6329         gl_HEADER_SYS_SOCKET.
6330         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6331         gl_PREREQ_SYS_H_WINSOCK2.
6332
6333 2011-06-29  Eric Blake  <eblake@redhat.com>
6334
6335         pipe2: fix C89 compile problem
6336         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6337         Reported by Bruno Haible.
6338
6339         pipe, pipe2: don't corrupt fd on error
6340         * lib/pipe.c (pipe): Leave fd unchanged on error.
6341         * lib/pipe2.c (pipe2): Likewise.
6342         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6343         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6344
6345 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6346
6347         mmap-anon: do not use regular expressions inadvertently
6348         * m4/mmap-anon.m4: Remove trailing period from strings sought
6349         in the output.
6350
6351 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6352
6353         nanosleep: fix integer overflow problem
6354         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6355         arithmetic wraps around on overflow.
6356
6357         nanosleep: simplify carrying
6358         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6359         first call to the underyling nanosleep, not for the last one.
6360         This doesn't fix any bugs, but it simplifies the computation of
6361         the remaining delay.  Found while auditing integer overflow issues.
6362
6363         dup2: remove test for existence of fcntl
6364         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6365         "#if HAVE_FCNTL", in the configure-time test program.
6366         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6367         and therefore speeds up "configure" a bit.  Found while
6368         adding the dup2 module to Emacs.
6369
6370 2011-06-24  Eric Blake  <eblake@redhat.com>
6371
6372         maint.mk: enhance useless header checks
6373         * top/maint.mk (_sc_header_without_use): Check both include
6374         styles.
6375         (sc_prohibit_assert_without_use)
6376         (sc_prohibit_close_stream_without_use)
6377         (sc_prohibit_getopt_without_use)
6378         (sc_prohibit_quotearg_without_use)
6379         (sc_prohibit_quote_without_use)
6380         (sc_prohibit_long_options_without_use)
6381         (sc_prohibit_inttostr_without_use)
6382         (sc_prohibit_ignore_value_without_use)
6383         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6384         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6385         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6386         (sc_prohibit_hash_pjw_without_use)
6387         (sc_prohibit_safe_read_without_use)
6388         (sc_prohibit_argmatch_without_use)
6389         (sc_prohibit_canonicalize_without_use)
6390         (sc_prohibit_root_dev_ino_without_use)
6391         (sc_prohibit_openat_without_use)
6392         (sc_prohibit_c_ctype_without_use)
6393         (sc_prohibit_signal_without_use)
6394         (sc_prohibit_stdio--_without_use)
6395         (sc_prohibit_stdio-safer_without_use)
6396         (sc_prohibit_strings_without_use)
6397         (sc_prohibit_intprops_without_use)
6398         (sc_prohibit_stddef_without_use)
6399         (sc_prohibit_xfreopen_without_use): Update clients.
6400
6401 2011-06-24  Jim Meyering  <meyering@redhat.com>
6402
6403         syntax-check: keep one maint.mk rule in sync with its header
6404         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6405         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6406         I prefer to avoid temporary files here, so use <(...), but that
6407         is not supported by /bin/sh, so...
6408         (SHELL): Define to /bin/bash.
6409
6410 2011-06-24  Eric Blake  <eblake@redhat.com>
6411
6412         maint.mk: update sc_prohibit_intprops_without_use
6413         * top/maint.mk (_intprops_names): Match recent changes.
6414
6415 2011-06-24  Bruno Haible  <bruno@clisp.org>
6416
6417         strerror-override: No-op tweak.
6418         * lib/strerror-override.h (strerror_override): Reorder conditions,
6419         for consistency with lib/strerror-override.c.
6420
6421 2011-06-23  Eric Blake  <eblake@redhat.com>
6422
6423         maint.mk: test further PATH_MAX issues
6424         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6425         (sc_prohibit_path_max_allocation): ...and also test alloca.
6426         Suggested by Jim Meyering.
6427
6428 2011-06-22  Eric Blake  <eblake@redhat.com>
6429
6430         maint.mk: add syntax-check to avoid char[PATH_MAX]
6431         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6432
6433         stat: be robust to PATH_MAX definition
6434         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6435         * modules/stat (Depends-on): Add verify.
6436
6437         link: work around IRIX bug
6438         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6439         * lib/link.c (rpl_link): Work around it.
6440         * tests/test-link.h (test_link): Enhance test.
6441         * doc/posix-functions/link.texi (link): Document the bug.
6442
6443         getopt: silence clang warning
6444         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6445         dereference.
6446         Reported by Gustavo Martin Domato.
6447
6448 2011-06-22  Jim Meyering  <meyering@redhat.com>
6449
6450         bootstrap: do not insert a blank line into each .gitignore file
6451         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6452
6453 2011-06-21  Eric Blake  <eblake@redhat.com>
6454
6455         perror: test for output mismatch
6456         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6457         perror on IRIX.
6458
6459         strerror_r: fix OpenBSD behavior on out-of-range
6460         * lib/strerror_r.c (strerror_r): Always use maximal string.
6461         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6462
6463         strerror_r: fix OpenBSD behavior on 0
6464         * lib/strerror-override.c (strerror_override): Also override 0
6465         when needed.
6466         * lib/strerror-override.h (strerror_override): Likewise.
6467         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6468         earlier.
6469         * lib/strerror_r.c (strerror_r): Likewise.
6470         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6471         behavior...
6472         (gl_FUNC_STRERROR_0): ...into new macro.
6473         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6474         is overridden.
6475         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6476         * modules/strerror-override (Files): Add strerror.m4.
6477         (configure.ac): Also provide override for 0 when needed.
6478         * doc/posix-functions/strerror.texi (strerror): Document this.
6479         * doc/posix-functions/perror.texi (perror): Likewise.
6480
6481         perror: adjust array size
6482         * modules/perror (Depends-on): Add strerror-override.
6483         * lib/perror.c (perror): Use it to avoid magic number.
6484
6485         strerror-override: reduce size
6486         * lib/strerror-override.c (strerror_override): Use fewer lines.
6487
6488 2011-06-20  Bruno Haible  <bruno@clisp.org>
6489
6490         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6491         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6492
6493 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6494
6495         alloca: port to compilers that can optimize like GCC 4.6.0
6496         * lib/alloca.c (find_stack_direction): New signature, taken from
6497         Autoconf git.  This works with GCC 4.6.0.  This code should never
6498         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6499         be used with other compilers that optimize as well as GCC 4.6.0 does.
6500         (alloca): Adjust to new signature.
6501         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6502         New macro, which patches Autoconf in a similar way.
6503
6504         c-stack: stop worrying about stack direction
6505         * lib/c-stack.c (find_stack_direction): Remove.
6506         (segv_handler): Don't worry about stack direction growth, as it's
6507         too much of a pain to configure this correctly, given how compilers
6508         are optimizing-away our stack-growth detection code.  Instead, assume
6509         that any access to just before or just after the stack is OK.
6510         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6511         Don't require AC_FUNC_ALLOCA; no longer needed.
6512
6513 2011-06-20  Eric Blake  <eblake@redhat.com>
6514
6515         test-stat: don't allocate PATH_MAX bytes
6516         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6517         PATH_MAX-sized buffer.
6518         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6519         * modules/stat-tests (Depends-on): Likewise.
6520         * tests/test-fstatat.c (includes): Drop pathmax.h.
6521         * tests/test-stat.c (includes): Likewise.
6522         Reported by Bruno Haible.
6523
6524 2011-06-20  Bruno Haible  <bruno@clisp.org>
6525
6526         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6527         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6528         * lib/float.c: New file.
6529         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6530         REPLACE_FLOAT_LDBL.
6531         * modules/float (Files): Add lib/float.c.
6532         (configure.ac): Invoke AC_LIBOBJ.
6533         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6534
6535 2011-06-20  Bruno Haible  <bruno@clisp.org>
6536
6537         Tests for module 'float'.
6538         * modules/float-tests: New file.
6539         * tests/test-float.c: New file.
6540
6541 2011-06-19  Bruno Haible  <bruno@clisp.org>
6542
6543         isinf: Coding style.
6544         * lib/isinf.c: Use GNU coding style.
6545
6546 2011-06-19  Bruno Haible  <bruno@clisp.org>
6547
6548         linkat test: Avoid test failure on AIX 7.1.
6549         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6550         * tests/test-link.h (test_link): Likewise.
6551
6552 2011-06-19  Bruno Haible  <bruno@clisp.org>
6553
6554         pread test: Avoid test failure on OpenBSD 4.9.
6555         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6556
6557 2011-06-19  Bruno Haible  <bruno@clisp.org>
6558
6559         sprintf-posix: Fix test failure on AIX 7.1.
6560         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6561         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6562         on AIX.
6563         * doc/posix-functions/fprintf.texi: Likewise.
6564         * doc/posix-functions/printf.texi: Likewise.
6565         * doc/posix-functions/snprintf.texi: Likewise.
6566         * doc/posix-functions/sprintf.texi: Likewise.
6567         * doc/posix-functions/vdprintf.texi: Likewise.
6568         * doc/posix-functions/vfprintf.texi: Likewise.
6569         * doc/posix-functions/vprintf.texi: Likewise.
6570         * doc/posix-functions/vsnprintf.texi: Likewise.
6571         * doc/posix-functions/vsprintf.texi: Likewise.
6572
6573 2011-06-19  Bruno Haible  <bruno@clisp.org>
6574
6575         roundl-ieee: Fix test failure on AIX 7.1.
6576         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6577         * doc/posix-functions/roundl.texi: Mention problem with negative
6578         arguments.
6579
6580 2011-06-19  Bruno Haible  <bruno@clisp.org>
6581
6582         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6583         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6584         * doc/posix-functions/round.texi: Mention problem with negative
6585         arguments.
6586         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6587
6588 2011-06-19  Bruno Haible  <bruno@clisp.org>
6589
6590         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6591         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6592         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6593         * doc/posix-functions/roundf.texi: Mention problem with negative
6594         arguments.
6595         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6596
6597 2011-06-19  Bruno Haible  <bruno@clisp.org>
6598
6599         ceilf-ieee: Work around bug on MacOS X 10.5.
6600         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6601
6602         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6603         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6604         IEEE compliant, avoid compiler optimizations.
6605         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6606         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6607         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6608         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6609         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6610         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6611         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6612         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6613         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6614         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6615
6616 2011-06-19  Bruno Haible  <bruno@clisp.org>
6617
6618         ceilf-ieee: Work around bug on AIX 7.1.
6619         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6620         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6621
6622 2011-06-19  Bruno Haible  <bruno@clisp.org>
6623
6624         ceil-ieee: Work around bug on AIX 7.1.
6625         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6626         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6627
6628 2011-06-18  Bruno Haible  <bruno@clisp.org>
6629
6630         fsync test: Avoid test failure on MacOS X and AIX.
6631         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6632         EINVAL.
6633
6634 2011-06-18  Bruno Haible  <bruno@clisp.org>
6635
6636         openat, fdopendir tests: Fix link errors.
6637         * modules/openat-tests (Depends-on): Add progname.
6638         * modules/fdopendir-tests (Depends-on): Likewise.
6639         * tests/test-fchownat.c: Include progname.h.
6640         (main): Call set_program_name.
6641         * tests/test-fstatat.c: Include progname.h.
6642         (main): Call set_program_name.
6643         * tests/test-mkdirat.c: Include progname.h.
6644         (main): Call set_program_name.
6645         * tests/test-openat.c: Include progname.h.
6646         (main): Call set_program_name.
6647         * tests/test-unlinkat.c: Include progname.h.
6648         (main): Call set_program_name.
6649         * tests/test-fdopendir.c: Include progname.h.
6650         (main): Call set_program_name.
6651
6652 2011-06-18  Bruno Haible  <bruno@clisp.org>
6653
6654         Doc update.
6655         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6656         HP-UX.
6657         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6658
6659 2011-06-18  Bruno Haible  <bruno@clisp.org>
6660
6661         getcwd tests: Avoid compilation error on HP-UX 11.31.
6662         * modules/getcwd-tests (Depends-on): Add pathmax.
6663         * tests/test-getcwd.c: Include pathmax.h.
6664
6665 2011-06-18  Bruno Haible  <bruno@clisp.org>
6666
6667         isfinite, isinf: Fix link error on AIX 6 and 7.
6668         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6669         needed, also test the macro with a 'float' argument.
6670         * m4/isinf.m4 (gl_ISINF): Likewise.
6671
6672 2011-06-18  Bruno Haible  <bruno@clisp.org>
6673
6674         getloadavg: Don't clobber LIBS. Regression from previous commit.
6675         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6676         AC_CHECK_LIB from here...
6677         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6678         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6679         gl_func_getloadavg_done.
6680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6681
6682 2011-06-18  Bruno Haible  <bruno@clisp.org>
6683
6684         clean-temp: Improve documentation.
6685         * lib/clean-temp.h: Explain better how to use this module.
6686         Reported by John Darrington <john@darrington.wattle.id.au>.
6687
6688 2011-06-17  Bruno Haible  <bruno@clisp.org>
6689
6690         pread, pwrite: Avoid cc warning on AIX.
6691         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6692         (pwrite): Likewise.
6693
6694 2011-06-17  Bruno Haible  <bruno@clisp.org>
6695
6696         spawn-pipe tests: Fix link error.
6697         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6698         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6699
6700 2011-06-17  Bruno Haible  <bruno@clisp.org>
6701
6702         Tests: Remove unnecessary dependency.
6703         * modules/canonicalize-tests (Depends-on): Remove progname.
6704         * modules/chown-tests (Depends-on): Likewise.
6705         * modules/dirname-tests (Depends-on): Likewise.
6706         * modules/fdopendir-tests (Depends-on): Likewise.
6707         * modules/fdutimensat-tests (Depends-on): Likewise.
6708         * modules/hash-tests (Depends-on): Likewise.
6709         * modules/lchown-tests (Depends-on): Likewise.
6710         * modules/linkat-tests (Depends-on): Likewise.
6711         * modules/renameat-tests (Depends-on): Likewise.
6712         * modules/spawn-pipe-tests (Depends-on): Likewise.
6713         * modules/utimensat-tests (Depends-on): Likewise.
6714
6715 2011-06-17  Bruno Haible  <bruno@clisp.org>
6716
6717         spawn-pipe tests: Fix link error.
6718         * tests/test-spawn-pipe-child.c: Undefine fflush.
6719
6720 2011-06-17  Bruno Haible  <bruno@clisp.org>
6721
6722         Fix tests link errors.
6723         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6724         * modules/chown-tests (Makefile.am): Don't link test-chown with
6725         LIBINTL.
6726         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6727         LIBINTL.
6728         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6729         LIBINTL.
6730         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6731         LIBINTL.
6732
6733 2011-06-16  Bruno Haible  <bruno@clisp.org>
6734
6735         crypto/gc-sha1: Fix recent regression.
6736         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6737         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6738
6739         crypto/gc-md5: Fix recent regression.
6740         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6741
6742         crypto/gc-md4: Fix recent regression.
6743         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6744         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6745
6746         crypto/gc-arctwo: Fix recent regression.
6747         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6748         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6749
6750         crypto/gc-rijndael: Fix recent regression.
6751         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6752         (configure.ac): Invoke AC_LIBOBJ here.
6753         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6755
6756         crypto/gc-hmac-sha1: Fix recent regression.
6757         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6758         (configure.ac): Invoke AC_LIBOBJ here.
6759         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6761
6762         crypto/gc-hmac-md5: Fix recent regression.
6763         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6764         (configure.ac): Invoke AC_LIBOBJ here.
6765         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6767
6768         crypto/gc-des: Fix recent regression.
6769         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6770         (configure.ac): Invoke AC_LIBOBJ here.
6771         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6773
6774         crypto/gc-arcfour: Fix recent regression.
6775         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6776         (configure.ac): Invoke AC_LIBOBJ here.
6777         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6779
6780 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6781
6782         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6783         After the 2011-05-21 change, this macro requires
6784         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6785         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6786
6787 2011-06-16  Bruno Haible  <bruno@clisp.org>
6788
6789         fprintftime: Move AC_LIBOBJ invocations to module description.
6790         * m4/fprintftime.m4: Remove file.
6791         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6792         (configure.ac): Remove gl_FPRINTFTIME call.
6793         (Makefile.am): Augment lib_SOURCES.
6794         Reported by Jim Meyering.
6795
6796 2011-06-16  Bruno Haible  <bruno@clisp.org>
6797
6798         tmpfile-safer: Finish 2011-05-23 commit.
6799         * m4/stdio-safer.m4: Really remove file.
6800         Reported by Jim Meyering.
6801
6802 2011-06-16  Bruno Haible  <bruno@clisp.org>
6803
6804         syntax-check: Fix typo.
6805         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6806         printf-posix.m4.
6807         Reported by Jim Meyering.
6808
6809 2011-06-13  Jim Meyering  <meyering@redhat.com>
6810
6811         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6812         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6813
6814 2011-05-23  Bruno Haible  <bruno@clisp.org>
6815
6816         yesno: Move AC_LIBOBJ invocations to module description.
6817         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6818         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6819
6820 2011-05-23  Bruno Haible  <bruno@clisp.org>
6821
6822         xstrtol: Move AC_LIBOBJ invocations to module description.
6823         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6824         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6825
6826 2011-05-23  Bruno Haible  <bruno@clisp.org>
6827
6828         xstrtold: Move AC_LIBOBJ invocations to module description.
6829         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6830         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6831
6832 2011-05-23  Bruno Haible  <bruno@clisp.org>
6833
6834         xstrtod: Move AC_LIBOBJ invocations to module description.
6835         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6836         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6837
6838 2011-05-23  Bruno Haible  <bruno@clisp.org>
6839
6840         xnanosleep: Move AC_LIBOBJ invocations to module description.
6841         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6842         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6843
6844 2011-05-23  Bruno Haible  <bruno@clisp.org>
6845
6846         xgetcwd: Move AC_LIBOBJ invocations to module description.
6847         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6848         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6849
6850 2011-05-23  Bruno Haible  <bruno@clisp.org>
6851
6852         xalloc: Move AC_LIBOBJ invocations to module description.
6853         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6854         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6855
6856 2011-05-23  Bruno Haible  <bruno@clisp.org>
6857
6858         write-any-file: Move AC_LIBOBJ invocations to module description.
6859         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6860         invocation.
6861         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6862
6863 2011-05-23  Bruno Haible  <bruno@clisp.org>
6864
6865         utimens: Move AC_LIBOBJ invocations to module description.
6866         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6867         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6868
6869 2011-05-23  Bruno Haible  <bruno@clisp.org>
6870
6871         utimecmp: Move AC_LIBOBJ invocations to module description.
6872         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6873         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6874
6875 2011-05-23  Bruno Haible  <bruno@clisp.org>
6876
6877         userspec: Move AC_LIBOBJ invocations to module description.
6878         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6879         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6880
6881 2011-05-23  Bruno Haible  <bruno@clisp.org>
6882
6883         unlinkdir: Move AC_LIBOBJ invocations to module description.
6884         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6885         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6886
6887 2011-05-23  Bruno Haible  <bruno@clisp.org>
6888
6889         unistd-safer: Move AC_LIBOBJ invocations to module description.
6890         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6891         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6892
6893 2011-05-23  Bruno Haible  <bruno@clisp.org>
6894
6895         tempname: Move AC_LIBOBJ invocations to module description.
6896         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6897         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6898
6899 2011-05-23  Bruno Haible  <bruno@clisp.org>
6900
6901         strftime: Move AC_LIBOBJ invocations to module description.
6902         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6903         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6904
6905 2011-05-23  Bruno Haible  <bruno@clisp.org>
6906
6907         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6908         * m4/stdlib-safer.m4: Remove file.
6909         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6910         (configure.ac): Remove gl_STDLIB_SAFER call.
6911         (Makefile.am): Augment lib_SOURCES.
6912
6913 2011-05-23  Bruno Haible  <bruno@clisp.org>
6914
6915         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6916         * m4/stdio-safer.m4: Remove file.
6917         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6918         (configure.ac): Remove gl_TMPFILE_SAFER call.
6919         (Makefile.am): Augment lib_SOURCES.
6920
6921 2011-05-23  Bruno Haible  <bruno@clisp.org>
6922
6923         popen-safer: Move AC_LIBOBJ invocations to module description.
6924         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6925         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6926         (configure.ac): Remove gl_POPEN_SAFER call.
6927         (Makefile.am): Augment lib_SOURCES.
6928
6929 2011-05-23  Bruno Haible  <bruno@clisp.org>
6930
6931         freopen-safer: Move AC_LIBOBJ invocations to module description.
6932         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6933         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6934         (configure.ac): Remove gl_FREOPEN_SAFER call.
6935         (Makefile.am): Augment lib_SOURCES.
6936
6937 2011-05-23  Bruno Haible  <bruno@clisp.org>
6938
6939         fopen-safer: Move AC_LIBOBJ invocations to module description.
6940         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6941         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6942         (configure.ac): Remove gl_FOPEN_SAFER call.
6943         (Makefile.am): Augment lib_SOURCES.
6944
6945 2011-05-23  Bruno Haible  <bruno@clisp.org>
6946
6947         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6948         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6949         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6950
6951 2011-05-23  Bruno Haible  <bruno@clisp.org>
6952
6953         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6954         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6955         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6956
6957 2011-05-23  Bruno Haible  <bruno@clisp.org>
6958
6959         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6960         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6961         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6962
6963 2011-05-23  Bruno Haible  <bruno@clisp.org>
6964
6965         settime: Move AC_LIBOBJ invocations to module description.
6966         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6967         * modules/settime (Makefile.am): Augment lib_SOURCES.
6968
6969 2011-05-23  Bruno Haible  <bruno@clisp.org>
6970
6971         savedir: Move AC_LIBOBJ invocations to module description.
6972         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6973         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6974
6975 2011-05-23  Bruno Haible  <bruno@clisp.org>
6976
6977         save-cwd: Move AC_LIBOBJ invocations to module description.
6978         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6979         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6980
6981 2011-05-23  Bruno Haible  <bruno@clisp.org>
6982
6983         same: Move AC_LIBOBJ invocations to module description.
6984         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6985         * modules/same (Makefile.am): Augment lib_SOURCES.
6986
6987 2011-05-23  Bruno Haible  <bruno@clisp.org>
6988
6989         safe-write: Move AC_LIBOBJ invocations to module description.
6990         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6991         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6992         instead of gl_SAFE_WRITE.
6993         (Makefile.am): Augment lib_SOURCES.
6994
6995 2011-05-23  Bruno Haible  <bruno@clisp.org>
6996
6997         safe-read: Move AC_LIBOBJ invocations to module description.
6998         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6999         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7000         of gl_SAFE_READ.
7001         (Makefile.am): Augment lib_SOURCES.
7002
7003 2011-05-23  Bruno Haible  <bruno@clisp.org>
7004
7005         safe-alloc: Move AC_LIBOBJ invocations to module description.
7006         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7007         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7008
7009 2011-05-23  Bruno Haible  <bruno@clisp.org>
7010
7011         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7012         * m4/rijndael.m4: Remove file.
7013         * modules/crypto/rijndael (Files): Remove it.
7014         (configure.ac): Remove gl_RIJNDAEL call.
7015         (Makefile.am): Augment lib_SOURCES.
7016
7017 2011-05-23  Bruno Haible  <bruno@clisp.org>
7018
7019         readtokens: Move AC_LIBOBJ invocations to module description.
7020         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7021         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7022
7023 2011-05-23  Bruno Haible  <bruno@clisp.org>
7024
7025         read-file: Move AC_LIBOBJ invocations to module description.
7026         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7027         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7028         of gl_FUNC_READ_FILE.
7029         (Makefile.am): Augment lib_SOURCES.
7030
7031 2011-05-23  Bruno Haible  <bruno@clisp.org>
7032
7033         quotearg: Move AC_LIBOBJ invocations to module description.
7034         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7035         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7036
7037 2011-05-23  Bruno Haible  <bruno@clisp.org>
7038
7039         quote: Move AC_LIBOBJ invocations to module description.
7040         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7041         * modules/quote (Makefile.am): Augment lib_SOURCES.
7042
7043 2011-05-23  Bruno Haible  <bruno@clisp.org>
7044
7045         posixver: Move AC_LIBOBJ invocations to module description.
7046         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7047         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7048
7049 2011-05-23  Bruno Haible  <bruno@clisp.org>
7050
7051         posixtm: Move AC_LIBOBJ invocations to module description.
7052         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7053         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7054
7055 2011-05-23  Bruno Haible  <bruno@clisp.org>
7056
7057         physmem: Move AC_LIBOBJ invocations to module description.
7058         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7059         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7060
7061 2011-05-23  Bruno Haible  <bruno@clisp.org>
7062
7063         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7064         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7065         invocation.
7066         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7067
7068 2011-05-23  Bruno Haible  <bruno@clisp.org>
7069
7070         mpsort: Move AC_LIBOBJ invocations to module description.
7071         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7072         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7073
7074 2011-05-23  Bruno Haible  <bruno@clisp.org>
7075
7076         modechange: Move AC_LIBOBJ invocations to module description.
7077         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7078         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7079
7080 2011-05-23  Bruno Haible  <bruno@clisp.org>
7081
7082         mkdir-p: Move AC_LIBOBJ invocations to module description.
7083         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7084         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7085
7086 2011-05-23  Bruno Haible  <bruno@clisp.org>
7087
7088         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7089         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7090         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7091
7092 2011-05-23  Bruno Haible  <bruno@clisp.org>
7093
7094         mgetgroups: Move AC_LIBOBJ invocations to module description.
7095         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7096         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7097
7098 2011-05-23  Bruno Haible  <bruno@clisp.org>
7099
7100         memxor: Move AC_LIBOBJ invocations to module description.
7101         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7102         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7103
7104 2011-05-23  Bruno Haible  <bruno@clisp.org>
7105
7106         memcoll: Move AC_LIBOBJ invocations to module description.
7107         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7108         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7109
7110 2011-05-23  Bruno Haible  <bruno@clisp.org>
7111
7112         memcasecmp: Move AC_LIBOBJ invocations to module description.
7113         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7114         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7115
7116 2011-05-23  Bruno Haible  <bruno@clisp.org>
7117
7118         crypto/md5: Move AC_LIBOBJ invocations to module description.
7119         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7120         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7121
7122 2011-05-23  Bruno Haible  <bruno@clisp.org>
7123
7124         crypto/md4: Move AC_LIBOBJ invocations to module description.
7125         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7126         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7127
7128 2011-05-23  Bruno Haible  <bruno@clisp.org>
7129
7130         crypto/md2: Move AC_LIBOBJ invocations to module description.
7131         * m4/md2.m4: Remove file.
7132         * modules/crypto/md2 (Files): Remove it.
7133         (configure.ac): Remove gl_MD2 call.
7134         (Makefile.am): Augment lib_SOURCES.
7135
7136 2011-05-23  Bruno Haible  <bruno@clisp.org>
7137
7138         long-options: Move AC_LIBOBJ invocations to module description.
7139         * m4/long-options.m4: Remove file.
7140         * modules/long-options (Files): Remove it.
7141         (configure.ac): Remove gl_LONG_OPTIONS call.
7142         (Makefile.am): Augment lib_SOURCES.
7143
7144 2011-05-23  Bruno Haible  <bruno@clisp.org>
7145
7146         i-ring: Move AC_LIBOBJ invocations to module description.
7147         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7148         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7149
7150 2011-05-23  Bruno Haible  <bruno@clisp.org>
7151
7152         idcache: Move AC_LIBOBJ invocations to module description.
7153         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7154         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7155
7156 2011-05-23  Bruno Haible  <bruno@clisp.org>
7157
7158         human: Move AC_LIBOBJ invocations to module description.
7159         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7160         * modules/human (Makefile.am): Augment lib_SOURCES.
7161
7162 2011-05-23  Bruno Haible  <bruno@clisp.org>
7163
7164         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7165         * m4/hmac-sha1.m4: Remove file.
7166         * modules/crypto/hmac-sha1 (Files): Remove it.
7167         (configure.ac): Remove gl_HMAC_SHA1 call.
7168         (Makefile.am): Augment lib_SOURCES.
7169
7170 2011-05-23  Bruno Haible  <bruno@clisp.org>
7171
7172         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7173         * m4/hmac-md5.m4: Remove file.
7174         * modules/crypto/hmac-md5 (Files): Remove it.
7175         (configure.ac): Remove gl_HMAC_MD5 call.
7176         (Makefile.am): Augment lib_SOURCES.
7177
7178 2011-05-23  Bruno Haible  <bruno@clisp.org>
7179
7180         hash: Move AC_LIBOBJ invocations to module description.
7181         * m4/hash.m4: Remove file.
7182         * modules/hash (Files): Remove it.
7183         (configure.ac): Remove gl_HASH call.
7184         (Makefile.am): Augment lib_SOURCES.
7185
7186 2011-05-23  Bruno Haible  <bruno@clisp.org>
7187
7188         hard-locale: Move AC_LIBOBJ invocations to module description.
7189         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7190         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7191
7192 2011-05-23  Bruno Haible  <bruno@clisp.org>
7193
7194         getugroups: Move AC_LIBOBJ invocations to module description.
7195         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7196         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7197
7198 2011-05-23  Bruno Haible  <bruno@clisp.org>
7199
7200         gettime: Move AC_LIBOBJ invocations to module description.
7201         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7202         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7203
7204 2011-05-23  Bruno Haible  <bruno@clisp.org>
7205
7206         getndelim2: Move AC_LIBOBJ invocations to module description.
7207         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7208         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7209
7210 2011-05-23  Bruno Haible  <bruno@clisp.org>
7211
7212         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7213         * m4/gc-pbkdf2-sha1.m4: Remove file.
7214         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7215         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7216         (Makefile.am): Augment lib_SOURCES.
7217
7218 2011-05-23  Bruno Haible  <bruno@clisp.org>
7219
7220         fts: Move AC_LIBOBJ invocations to module description.
7221         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7222         * modules/fts (configure.ac): ... to here.
7223
7224 2011-05-23  Bruno Haible  <bruno@clisp.org>
7225
7226         file-type: Move AC_LIBOBJ invocations to module description.
7227         * m4/file-type.m4: Remove file.
7228         * modules/file-type (Files): Remove it.
7229         (configure.ac): Remove gl_FILE_TYPE call.
7230         (Makefile.am): Augment lib_SOURCES.
7231
7232 2011-05-23  Bruno Haible  <bruno@clisp.org>
7233
7234         filenamecat*: Respect rules for use of AC_LIBOBJ.
7235         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7236         Remove AC_LIBOBJ invocation.
7237         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7238         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7239
7240 2011-05-23  Bruno Haible  <bruno@clisp.org>
7241
7242         filemode: Move AC_LIBOBJ invocations to module description.
7243         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7244         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7245
7246 2011-05-23  Bruno Haible  <bruno@clisp.org>
7247
7248         openat-safer: Move AC_LIBOBJ invocations to module description.
7249         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7250         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7251
7252 2011-05-23  Bruno Haible  <bruno@clisp.org>
7253
7254         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7255         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7256         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7257
7258 2011-05-23  Bruno Haible  <bruno@clisp.org>
7259
7260         exclude: Move AC_LIBOBJ invocations to module description.
7261         * m4/exclude.m4: Remove file.
7262         * modules/exclude (Files): Remove it.
7263         (configure.ac): Remove gl_EXCLUDE call.
7264         (Makefile.am): Augment lib_SOURCES.
7265
7266 2011-05-23  Bruno Haible  <bruno@clisp.org>
7267
7268         dirname*: Respect rules for use of AC_LIBOBJ.
7269         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7270         invocations.
7271         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7272         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7273
7274 2011-05-23  Bruno Haible  <bruno@clisp.org>
7275
7276         dirent-safer: Move AC_LIBOBJ invocations to module description.
7277         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7278         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7279
7280 2011-05-23  Bruno Haible  <bruno@clisp.org>
7281
7282         crypto/des: Move AC_LIBOBJ invocations to module description.
7283         * m4/des.m4: Remove file.
7284         * modules/crypto/des (Files): Remove it.
7285         (configure.ac): Remove gl_DES call.
7286         (Makefile.am): Augment lib_SOURCES.
7287
7288 2011-05-23  Bruno Haible  <bruno@clisp.org>
7289
7290         cycle-check: Move AC_LIBOBJ invocations to module description.
7291         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7292         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7293
7294 2011-05-23  Bruno Haible  <bruno@clisp.org>
7295
7296         c-strtold: Move AC_LIBOBJ invocations to module description.
7297         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7298         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7299
7300 2011-05-23  Bruno Haible  <bruno@clisp.org>
7301
7302         c-strtod: Move AC_LIBOBJ invocations to module description.
7303         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7304         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7305
7306 2011-05-23  Bruno Haible  <bruno@clisp.org>
7307
7308         crc: Move AC_LIBOBJ invocations to module description.
7309         * m4/crc.m4: Remove file.
7310         * modules/crc (Files): Remove it.
7311         (configure.ac): Remove gl_CRC call.
7312         (Makefile.am): Augment lib_SOURCES.
7313
7314 2011-05-23  Bruno Haible  <bruno@clisp.org>
7315
7316         close-stream: Move AC_LIBOBJ invocations to module description.
7317         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7318         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7319
7320 2011-05-23  Bruno Haible  <bruno@clisp.org>
7321
7322         closeout: Move AC_LIBOBJ invocations to module description.
7323         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7324         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7325
7326 2011-05-23  Bruno Haible  <bruno@clisp.org>
7327
7328         closein: Move AC_LIBOBJ invocations to module description.
7329         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7330         * modules/closein (Makefile.am): Augment lib_SOURCES.
7331
7332 2011-05-23  Bruno Haible  <bruno@clisp.org>
7333
7334         cloexec: Move AC_LIBOBJ invocations to module description.
7335         * m4/cloexec.m4: Remove file.
7336         * modules/cloexec (Files): Remove it.
7337         (configure.ac): Remove gl_CLOEXEC call.
7338         (Makefile.am): Augment lib_SOURCES.
7339
7340 2011-05-23  Bruno Haible  <bruno@clisp.org>
7341
7342         check-version: Move AC_LIBOBJ invocations to module description.
7343         * m4/check-version.m4: Remove file.
7344         * modules/check-version (Files): Remove it.
7345         (configure.ac): Remove gl_CHECK_VERSION call.
7346         (Makefile.am): Augment lib_SOURCES.
7347
7348 2011-05-23  Bruno Haible  <bruno@clisp.org>
7349
7350         chdir-safer: Move AC_LIBOBJ invocations to module description.
7351         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7352         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7353
7354 2011-05-23  Bruno Haible  <bruno@clisp.org>
7355
7356         canonicalize: Move AC_LIBOBJ invocations to module description.
7357         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7358         AC_LIBOBJ invocation.
7359         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7360
7361 2011-05-23  Bruno Haible  <bruno@clisp.org>
7362
7363         canon-host: Move AC_LIBOBJ invocations to module description.
7364         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7365         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7366         instead of gl_CANON_HOST.
7367         (Makefile.am): Augment lib_SOURCES.
7368
7369 2011-05-23  Bruno Haible  <bruno@clisp.org>
7370
7371         backupfile: Move AC_LIBOBJ invocations to module description.
7372         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7373         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7374
7375 2011-05-23  Bruno Haible  <bruno@clisp.org>
7376
7377         argmatch: Move AC_LIBOBJ invocations to module description.
7378         * m4/argmatch.m4: Remove file.
7379         * modules/argmatch (Files): Remove it.
7380         (configure.ac): Remove gl_ARGMATCH call.
7381         (Makefile.am): Augment lib_SOURCES.
7382
7383 2011-05-23  Bruno Haible  <bruno@clisp.org>
7384
7385         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7386         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7387         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7388
7389 2011-05-23  Bruno Haible  <bruno@clisp.org>
7390
7391         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7392         * m4/arcfour.m4: Remove file.
7393         * modules/crypto/arcfour (Files): Remove it.
7394         (configure.ac): Remove gl_ARCFOUR call.
7395         (Makefile.am): Augment lib_SOURCES.
7396
7397 2011-05-22  Bruno Haible  <bruno@clisp.org>
7398
7399         write: Move AC_LIBOBJ invocations to module description.
7400         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7401         * modules/write (configure.ac): ... to here.
7402
7403 2011-05-22  Bruno Haible  <bruno@clisp.org>
7404
7405         wmemset: Move AC_LIBOBJ invocations to module description.
7406         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7407         here...
7408         * modules/wmemset (configure.ac): ... to here.
7409
7410 2011-05-22  Bruno Haible  <bruno@clisp.org>
7411
7412         wmemmove: Move AC_LIBOBJ invocations to module description.
7413         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7414         here...
7415         * modules/wmemmove (configure.ac): ... to here.
7416
7417 2011-05-22  Bruno Haible  <bruno@clisp.org>
7418
7419         wmemcpy: Move AC_LIBOBJ invocations to module description.
7420         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7421         here...
7422         * modules/wmemcpy (configure.ac): ... to here.
7423
7424 2011-05-22  Bruno Haible  <bruno@clisp.org>
7425
7426         wmemcmp: Move AC_LIBOBJ invocations to module description.
7427         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7428         here...
7429         * modules/wmemcmp (configure.ac): ... to here.
7430
7431 2011-05-22  Bruno Haible  <bruno@clisp.org>
7432
7433         wmemchr: Move AC_LIBOBJ invocations to module description.
7434         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7435         here...
7436         * modules/wmemchr (configure.ac): ... to here.
7437
7438 2011-05-22  Bruno Haible  <bruno@clisp.org>
7439
7440         wcswidth: Move AC_LIBOBJ invocations to module description.
7441         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7442         here...
7443         * modules/wcswidth (configure.ac): ... to here.
7444
7445 2011-05-22  Bruno Haible  <bruno@clisp.org>
7446
7447         wcwidth: Respect rules for use of AC_LIBOBJ.
7448         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7449         invocation from here...
7450         * modules/wcwidth (configure.ac): ... to here.
7451         (Depends-on): Update conditions.
7452
7453 2011-05-22  Bruno Haible  <bruno@clisp.org>
7454
7455         wctype: Move AC_LIBOBJ invocations to module description.
7456         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7457         invocation from here...
7458         * modules/wctype (configure.ac): ... to here.
7459         (Depends-on): Update conditions.
7460
7461 2011-05-22  Bruno Haible  <bruno@clisp.org>
7462
7463         wctrans: Move AC_LIBOBJ invocations to module description.
7464         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7465         invocation from here...
7466         * modules/wctrans (configure.ac): ... to here.
7467
7468 2011-05-22  Bruno Haible  <bruno@clisp.org>
7469
7470         wctomb: Move AC_LIBOBJ invocations to module description.
7471         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7472         invocations from here...
7473         * modules/wctomb (configure.ac): ... to here.
7474
7475 2011-05-22  Bruno Haible  <bruno@clisp.org>
7476
7477         wctob: Move AC_LIBOBJ invocations to module description.
7478         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7479         gl_PREREQ_WCTOB invocations from here...
7480         * modules/wctob (configure.ac): ... to here.
7481         (Depends-on): Update conditions.
7482
7483 2011-05-22  Bruno Haible  <bruno@clisp.org>
7484
7485         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7486         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7487         here...
7488         * modules/wcsxfrm (configure.ac): ... to here.
7489
7490 2011-05-22  Bruno Haible  <bruno@clisp.org>
7491
7492         wcstok: Move AC_LIBOBJ invocations to module description.
7493         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7494         * modules/wcstok (configure.ac): ... to here.
7495
7496 2011-05-22  Bruno Haible  <bruno@clisp.org>
7497
7498         wcsstr: Move AC_LIBOBJ invocations to module description.
7499         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7500         * modules/wcsstr (configure.ac): ... to here.
7501
7502 2011-05-22  Bruno Haible  <bruno@clisp.org>
7503
7504         wcsspn: Move AC_LIBOBJ invocations to module description.
7505         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7506         * modules/wcsspn (configure.ac): ... to here.
7507
7508 2011-05-22  Bruno Haible  <bruno@clisp.org>
7509
7510         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7511         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7512         gl_PREREQ_WCSRTOMBS invocations from here...
7513         * modules/wcsrtombs (configure.ac): ... to here.
7514
7515 2011-05-22  Bruno Haible  <bruno@clisp.org>
7516
7517         wcsrchr: Move AC_LIBOBJ invocations to module description.
7518         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7519         here...
7520         * modules/wcsrchr (configure.ac): ... to here.
7521
7522 2011-05-22  Bruno Haible  <bruno@clisp.org>
7523
7524         wcspbrk: Move AC_LIBOBJ invocations to module description.
7525         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7526         here...
7527         * modules/wcspbrk (configure.ac): ... to here.
7528
7529 2011-05-22  Bruno Haible  <bruno@clisp.org>
7530
7531         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7532         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7533         gl_PREREQ_WCSNRTOMBS invocations from here...
7534         * modules/wcsnrtombs (configure.ac): ... to here.
7535
7536 2011-05-22  Bruno Haible  <bruno@clisp.org>
7537
7538         wcsnlen: Move AC_LIBOBJ invocations to module description.
7539         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7540         here...
7541         * modules/wcsnlen (configure.ac): ... to here.
7542
7543 2011-05-22  Bruno Haible  <bruno@clisp.org>
7544
7545         wcsncpy: Move AC_LIBOBJ invocations to module description.
7546         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7547         here...
7548         * modules/wcsncpy (configure.ac): ... to here.
7549
7550 2011-05-22  Bruno Haible  <bruno@clisp.org>
7551
7552         wcsncmp: Move AC_LIBOBJ invocations to module description.
7553         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7554         here...
7555         * modules/wcsncmp (configure.ac): ... to here.
7556
7557 2011-05-22  Bruno Haible  <bruno@clisp.org>
7558
7559         wcsncat: Move AC_LIBOBJ invocations to module description.
7560         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7561         here...
7562         * modules/wcsncat (configure.ac): ... to here.
7563
7564 2011-05-22  Bruno Haible  <bruno@clisp.org>
7565
7566         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7567         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7568         from here...
7569         * modules/wcsncasecmp (configure.ac): ... to here.
7570
7571 2011-05-22  Bruno Haible  <bruno@clisp.org>
7572
7573         wcslen: Move AC_LIBOBJ invocations to module description.
7574         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7575         * modules/wcslen (configure.ac): ... to here.
7576
7577 2011-05-22  Bruno Haible  <bruno@clisp.org>
7578
7579         wcsdup: Move AC_LIBOBJ invocations to module description.
7580         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7581         * modules/wcsdup (configure.ac): ... to here.
7582
7583 2011-05-22  Bruno Haible  <bruno@clisp.org>
7584
7585         wcscspn: Move AC_LIBOBJ invocations to module description.
7586         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7587         here...
7588         * modules/wcscspn (configure.ac): ... to here.
7589
7590 2011-05-22  Bruno Haible  <bruno@clisp.org>
7591
7592         wcscpy: Move AC_LIBOBJ invocations to module description.
7593         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7594         * modules/wcscpy (configure.ac): ... to here.
7595
7596 2011-05-22  Bruno Haible  <bruno@clisp.org>
7597
7598         wcscoll: Move AC_LIBOBJ invocations to module description.
7599         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7600         here...
7601         * modules/wcscoll (configure.ac): ... to here.
7602
7603 2011-05-22  Bruno Haible  <bruno@clisp.org>
7604
7605         wcscmp: Move AC_LIBOBJ invocations to module description.
7606         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7607         * modules/wcscmp (configure.ac): ... to here.
7608
7609 2011-05-22  Bruno Haible  <bruno@clisp.org>
7610
7611         wcschr: Move AC_LIBOBJ invocations to module description.
7612         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7613         * modules/wcschr (configure.ac): ... to here.
7614
7615 2011-05-22  Bruno Haible  <bruno@clisp.org>
7616
7617         wcscat: Move AC_LIBOBJ invocations to module description.
7618         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7619         * modules/wcscat (configure.ac): ... to here.
7620
7621 2011-05-22  Bruno Haible  <bruno@clisp.org>
7622
7623         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7624         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7625         here...
7626         * modules/wcscasecmp (configure.ac): ... to here.
7627
7628 2011-05-22  Bruno Haible  <bruno@clisp.org>
7629
7630         wcrtomb: Move AC_LIBOBJ invocations to module description.
7631         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7632         invocations from here...
7633         * modules/wcrtomb (configure.ac): ... to here.
7634
7635 2011-05-22  Bruno Haible  <bruno@clisp.org>
7636
7637         wcpncpy: Move AC_LIBOBJ invocations to module description.
7638         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7639         here...
7640         * modules/wcpncpy (configure.ac): ... to here.
7641
7642 2011-05-22  Bruno Haible  <bruno@clisp.org>
7643
7644         wcpcpy: Move AC_LIBOBJ invocations to module description.
7645         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7646         * modules/wcpcpy (configure.ac): ... to here.
7647
7648 2011-05-22  Bruno Haible  <bruno@clisp.org>
7649
7650         waitpid: Move AC_LIBOBJ invocations to module description.
7651         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7652         invocation from here...
7653         * modules/waitpid (configure.ac): ... to here.
7654
7655 2011-05-22  Bruno Haible  <bruno@clisp.org>
7656
7657         utimensat: Move AC_LIBOBJ invocations to module description.
7658         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7659         here...
7660         * modules/utimensat (configure.ac): ... to here.
7661
7662 2011-05-22  Bruno Haible  <bruno@clisp.org>
7663
7664         usleep: Move AC_LIBOBJ invocations to module description.
7665         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7666         here...
7667         * modules/usleep (configure.ac): ... to here.
7668
7669 2011-05-22  Bruno Haible  <bruno@clisp.org>
7670
7671         unlockpt: Move AC_LIBOBJ invocations to module description.
7672         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7673         gl_PREREQ_UNLOCKPT invocations from here...
7674         * modules/unlockpt (configure.ac): ... to here.
7675
7676 2011-05-22  Bruno Haible  <bruno@clisp.org>
7677
7678         unlink: Respect rules for use of AC_LIBOBJ.
7679         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7680         * modules/unlink (configure.ac): ... to here.
7681
7682 2011-05-22  Bruno Haible  <bruno@clisp.org>
7683
7684         uname: Move AC_LIBOBJ invocations to module description.
7685         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7686         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7687         here...
7688         * modules/uname (configure.ac): ... to here.
7689
7690 2011-05-22  Bruno Haible  <bruno@clisp.org>
7691
7692         ttyname_r: Move AC_LIBOBJ invocations to module description.
7693         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7694         gl_PREREQ_TTYNAME_R invocations from here...
7695         * modules/ttyname_r (configure.ac): ... to here.
7696
7697 2011-05-22  Bruno Haible  <bruno@clisp.org>
7698
7699         tsearch: Move AC_LIBOBJ invocations to module description.
7700         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7701         invocations from here...
7702         * modules/tsearch (configure.ac): ... to here.
7703
7704 2011-05-22  Bruno Haible  <bruno@clisp.org>
7705
7706         towctrans: Move AC_LIBOBJ invocations to module description.
7707         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7708         AC_LIBOBJ invocation from here...
7709         * modules/towctrans (configure.ac): ... to here.
7710
7711 2011-05-22  Bruno Haible  <bruno@clisp.org>
7712
7713         tmpfile: Move AC_LIBOBJ invocations to module description.
7714         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7715         invocations from here...
7716         * modules/tmpfile (configure.ac): ... to here.
7717
7718 2011-05-22  Bruno Haible  <bruno@clisp.org>
7719
7720         times: Move AC_LIBOBJ invocations to module description.
7721         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7722         * modules/times (configure.ac): ... to here.
7723
7724 2011-05-22  Bruno Haible  <bruno@clisp.org>
7725
7726         time_r: Move AC_LIBOBJ invocations to module description.
7727         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7728         invocations from here...
7729         * modules/time_r (configure.ac): ... to here.
7730
7731 2011-05-22  Bruno Haible  <bruno@clisp.org>
7732
7733         timegm: Move AC_LIBOBJ invocations to module description.
7734         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7735         invocations from here...
7736         * modules/timegm (configure.ac): ... to here.
7737
7738 2011-05-22  Bruno Haible  <bruno@clisp.org>
7739
7740         tcgetsid: Move AC_LIBOBJ invocations to module description.
7741         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7742         and gl_PREREQ_TCGETSID invocations from here...
7743         * modules/tcgetsid (configure.ac): ... to here.
7744         (Depends-on): Update conditions.
7745
7746 2011-05-22  Bruno Haible  <bruno@clisp.org>
7747
7748         symlinkat: Move AC_LIBOBJ invocations to module description.
7749         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7750         here...
7751         * modules/symlinkat (configure.ac): ... to here.
7752
7753 2011-05-22  Bruno Haible  <bruno@clisp.org>
7754
7755         symlink: Move AC_LIBOBJ invocations to module description.
7756         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7757         here...
7758         * modules/symlink (configure.ac): ... to here.
7759
7760 2011-05-22  Bruno Haible  <bruno@clisp.org>
7761
7762         strverscmp: Move AC_LIBOBJ invocations to module description.
7763         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7764         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7765         from here...
7766         * modules/strverscmp (configure.ac): ... to here.
7767
7768 2011-05-22  Bruno Haible  <bruno@clisp.org>
7769
7770         strtok_r: Move AC_LIBOBJ invocations to module description.
7771         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7772         and gl_PREREQ_STRTOK_R invocations from here...
7773         * modules/strtok_r (configure.ac): ... to here.
7774         (Depends-on): Update conditions.
7775
7776 2011-05-22  Bruno Haible  <bruno@clisp.org>
7777
7778         strtoumax: Move AC_LIBOBJ invocations to module description.
7779         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7781         from here...
7782         * modules/strtoumax (configure.ac): ... to here.
7783
7784 2011-05-22  Bruno Haible  <bruno@clisp.org>
7785
7786         strtoimax: Move AC_LIBOBJ invocations to module description.
7787         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7788         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7789         from here...
7790         * modules/strtoimax (configure.ac): ... to here.
7791
7792 2011-05-22  Bruno Haible  <bruno@clisp.org>
7793
7794         strtoull: Move AC_LIBOBJ invocations to module description.
7795         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7796         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7797         from here...
7798         * modules/strtoull (configure.ac): ... to here.
7799
7800 2011-05-22  Bruno Haible  <bruno@clisp.org>
7801
7802         strtoll: Move AC_LIBOBJ invocations to module description.
7803         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7804         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7805         here...
7806         * modules/strtoll (configure.ac): ... to here.
7807
7808 2011-05-22  Bruno Haible  <bruno@clisp.org>
7809
7810         strtoul: Move AC_LIBOBJ invocations to module description.
7811         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7812         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7813         * modules/strtoul (configure.ac): ... to here.
7814
7815 2011-05-22  Bruno Haible  <bruno@clisp.org>
7816
7817         strtol: Move AC_LIBOBJ invocations to module description.
7818         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7819         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7820         * modules/strtol (configure.ac): ... to here.
7821
7822 2011-05-22  Bruno Haible  <bruno@clisp.org>
7823
7824         strtod: Move AC_LIBOBJ invocations to module description.
7825         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7826         invocations from here...
7827         * modules/strtod (configure.ac): ... to here.
7828
7829 2011-05-22  Bruno Haible  <bruno@clisp.org>
7830
7831         strstr*: Move AC_LIBOBJ invocations to module description.
7832         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7833         invocations from here...
7834         * modules/strstr-simple (configure.ac): ... to here.
7835         * modules/strstr (configure.ac): ... and here.
7836
7837 2011-05-22  Bruno Haible  <bruno@clisp.org>
7838
7839         strsignal: Move AC_LIBOBJ invocations to module description.
7840         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7841         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7842         * modules/strsignal (configure.ac): ... to here.
7843         (Depends-on): Update conditions.
7844
7845 2011-05-22  Bruno Haible  <bruno@clisp.org>
7846
7847         strsep: Move AC_LIBOBJ invocations to module description.
7848         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7849         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7850         here...
7851         * modules/strsep (configure.ac): ... to here.
7852
7853 2011-05-22  Bruno Haible  <bruno@clisp.org>
7854
7855         strptime: Move AC_LIBOBJ invocations to module description.
7856         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7857         gl_PREREQ_STRPTIME invocations from here...
7858         * modules/strptime (configure.ac): ... to here.
7859
7860 2011-05-22  Bruno Haible  <bruno@clisp.org>
7861
7862         strpbrk: Move AC_LIBOBJ invocations to module description.
7863         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7864         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7865         here...
7866         * modules/strpbrk (configure.ac): ... to here.
7867
7868 2011-05-22  Bruno Haible  <bruno@clisp.org>
7869
7870         strnlen: Move AC_LIBOBJ invocations to module description.
7871         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7872         invocations from here...
7873         * modules/strnlen (configure.ac): ... to here.
7874
7875 2011-05-22  Bruno Haible  <bruno@clisp.org>
7876
7877         strndup: Move AC_LIBOBJ invocations to module description.
7878         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7879         invocations from here...
7880         * modules/strndup (configure.ac): ... to here.
7881         (Depends-on): Update conditions.
7882
7883 2011-05-22  Bruno Haible  <bruno@clisp.org>
7884
7885         strncat: Move AC_LIBOBJ invocations to module description.
7886         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7887         invocations from here...
7888         * modules/strncat (configure.ac): ... to here.
7889
7890 2011-05-22  Bruno Haible  <bruno@clisp.org>
7891
7892         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7893         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7894         invocations from here...
7895         * modules/strdup (configure.ac): ... to here.
7896         * modules/strdup-posix (configure.ac): ... and here.
7897
7898 2011-05-22  Bruno Haible  <bruno@clisp.org>
7899
7900         strcspn: Move AC_LIBOBJ invocations to module description.
7901         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7902         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7903         here...
7904         * modules/strcspn (configure.ac): ... to here.
7905
7906 2011-05-22  Bruno Haible  <bruno@clisp.org>
7907
7908         strchrnul: Move AC_LIBOBJ invocations to module description.
7909         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7910         gl_PREREQ_STRCHRNUL invocations from here...
7911         * modules/strchrnul (configure.ac): ... to here.
7912
7913 2011-05-22  Bruno Haible  <bruno@clisp.org>
7914
7915         strcasestr*: Move AC_LIBOBJ invocations to module description.
7916         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7917         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7918         * modules/strcasestr-simple (configure.ac): ... to here.
7919         * modules/strcasestr (configure.ac): ... and here.
7920
7921 2011-05-22  Bruno Haible  <bruno@clisp.org>
7922
7923         strcase: Move AC_LIBOBJ invocations to module description.
7924         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7925         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7926         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7927         gl_PREREQ_STRNCASECMP invocations from here...
7928         * modules/strcase (configure.ac): ... to here.
7929
7930 2011-05-22  Bruno Haible  <bruno@clisp.org>
7931
7932         stpncpy: Move AC_LIBOBJ invocations to module description.
7933         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7934         here...
7935         * modules/stpncpy (configure.ac): ... to here.
7936
7937 2011-05-22  Bruno Haible  <bruno@clisp.org>
7938
7939         stpcpy: Move AC_LIBOBJ invocations to module description.
7940         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7941         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7942         here...
7943         * modules/stpcpy (configure.ac): ... to here.
7944
7945 2011-05-21  Bruno Haible  <bruno@clisp.org>
7946
7947         stat: Move AC_LIBOBJ invocations to module description.
7948         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7949         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7950         here...
7951         * modules/stat (configure.ac): ... to here.
7952
7953 2011-05-21  Bruno Haible  <bruno@clisp.org>
7954
7955         sleep: Move AC_LIBOBJ invocations to module description.
7956         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7957         * modules/sleep (configure.ac): ... to here.
7958
7959 2011-05-21  Bruno Haible  <bruno@clisp.org>
7960
7961         signbit: Move AC_LIBOBJ invocations to module description.
7962         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7963         * modules/signbit (configure.ac): ... to here.
7964
7965 2011-05-21  Bruno Haible  <bruno@clisp.org>
7966
7967         sigprocmask: Move AC_LIBOBJ invocations to module description.
7968         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7969         gl_PREREQ_SIGPROMASK invocations from here...
7970         * modules/sigprocmask (configure.ac): ... to here.
7971
7972 2011-05-21  Bruno Haible  <bruno@clisp.org>
7973
7974         sigaction: Move AC_LIBOBJ invocations to module description.
7975         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7976         gl_PREREQ_SIGACTION invocations from here...
7977         * modules/sigaction (configure.ac): ... to here.
7978
7979 2011-05-21  Bruno Haible  <bruno@clisp.org>
7980
7981         sig2str: Move AC_LIBOBJ invocations to module description.
7982         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7983         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7984         here...
7985         * modules/sig2str (configure.ac): ... to here.
7986
7987 2011-05-21  Bruno Haible  <bruno@clisp.org>
7988
7989         setlocale: Move AC_LIBOBJ invocations to module description.
7990         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7991         gl_PREREQ_SETLOCALE invocations from here...
7992         * modules/setlocale (configure.ac): ... to here.
7993
7994 2011-05-21  Bruno Haible  <bruno@clisp.org>
7995
7996         unsetenv: Move AC_LIBOBJ invocations to module description.
7997         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7998         and gl_PREREQ_UNSETENV invocations from here...
7999         * modules/unsetenv (configure.ac): ... to here.
8000         (Depends-on): Update.
8001
8002 2011-05-21  Bruno Haible  <bruno@clisp.org>
8003
8004         setenv: Move AC_LIBOBJ invocations to module description.
8005         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8006         here...
8007         * modules/setenv (configure.ac): ... to here.
8008
8009 2011-05-21  Bruno Haible  <bruno@clisp.org>
8010
8011         selinux-h: Move AC_LIBOBJ invocations to module description.
8012         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8013         AC_LIBOBJ invocation from here...
8014         * modules/selinux-h (configure.ac): ... to here.
8015
8016 2011-05-21  Bruno Haible  <bruno@clisp.org>
8017
8018         select: Respect rules for use of AC_LIBOBJ.
8019         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8020         here...
8021         * modules/select (configure.ac): ... to here.
8022
8023 2011-05-21  Bruno Haible  <bruno@clisp.org>
8024
8025         scandir: Move AC_LIBOBJ invocations to module description.
8026         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8027         invocations from here...
8028         * modules/scandir (configure.ac): ... to here.
8029
8030 2011-05-21  Bruno Haible  <bruno@clisp.org>
8031
8032         rpmatch: Move AC_LIBOBJ invocations to module description.
8033         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8034         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8035         here...
8036         * modules/rpmatch (configure.ac): ... to here.
8037
8038 2011-05-21  Bruno Haible  <bruno@clisp.org>
8039
8040         rmdir: Respect rules for use of AC_LIBOBJ.
8041         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8042         * modules/rmdir (configure.ac): ... to here.
8043
8044 2011-05-21  Bruno Haible  <bruno@clisp.org>
8045
8046         renameat: Move AC_LIBOBJ invocations to module description.
8047         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8048         here...
8049         * modules/renameat (configure.ac): ... to here.
8050
8051 2011-05-21  Bruno Haible  <bruno@clisp.org>
8052
8053         rename: Respect rules for use of AC_LIBOBJ.
8054         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8055         here...
8056         * modules/rename (configure.ac): ... to here.
8057
8058 2011-05-21  Bruno Haible  <bruno@clisp.org>
8059
8060         remove: Move AC_LIBOBJ invocations to module description.
8061         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8062         here...
8063         * modules/remove (configure.ac): ... to here.
8064
8065 2011-05-21  Bruno Haible  <bruno@clisp.org>
8066
8067         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8068         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8069         macro.
8070         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8071         * modules/relocatable-lib (configure.ac): ... to here.
8072         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8073         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8074
8075 2011-05-21  Bruno Haible  <bruno@clisp.org>
8076
8077         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8078         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8079         here...
8080         * modules/relocatable-prog (configure.ac): ... to here.
8081
8082 2011-05-21  Bruno Haible  <bruno@clisp.org>
8083
8084         regex: Move AC_LIBOBJ invocations to module description.
8085         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8086         invocations from here...
8087         * modules/regex (configure.ac): ... to here.
8088
8089 2011-05-21  Bruno Haible  <bruno@clisp.org>
8090
8091         realloc-*: Move AC_LIBOBJ invocations to module description.
8092         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8093         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8094         AC_LIBOBJ invocations from here...
8095         * modules/realloc-gnu (configure.ac): ... to here.
8096         * modules/realloc-posix (configure.ac): ... and here.
8097
8098 2011-05-21  Bruno Haible  <bruno@clisp.org>
8099
8100         readutmp: Move AC_LIBOBJ invocations to module description.
8101         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8102         * modules/readutmp (configure.ac): ... to here.
8103
8104 2011-05-21  Bruno Haible  <bruno@clisp.org>
8105
8106         readlinkat: Move AC_LIBOBJ invocations to module description.
8107         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8108         here...
8109         * modules/readlinkat (configure.ac): ... to here.
8110
8111 2011-05-21  Bruno Haible  <bruno@clisp.org>
8112
8113         readlink: Move AC_LIBOBJ invocations to module description.
8114         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8115         gl_PREREQ_READLINK invocations from here...
8116         * modules/readlink (configure.ac): ... to here.
8117
8118 2011-05-21  Bruno Haible  <bruno@clisp.org>
8119
8120         readline: Move AC_LIBOBJ invocations to module description.
8121         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8122         gl_PREREQ_READLINE invocations from here...
8123         * modules/readline (configure.ac): ... to here.
8124
8125 2011-05-21  Bruno Haible  <bruno@clisp.org>
8126
8127         read: Move AC_LIBOBJ invocations to module description.
8128         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8129         * modules/read (configure.ac): ... to here.
8130
8131 2011-05-21  Bruno Haible  <bruno@clisp.org>
8132
8133         rawmemchr: Move AC_LIBOBJ invocations to module description.
8134         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8136         from here...
8137         * modules/rawmemchr (configure.ac): ... to here.
8138
8139 2011-05-21  Bruno Haible  <bruno@clisp.org>
8140
8141         random_r: Move AC_LIBOBJ invocations to module description.
8142         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8143         gl_PREREQ_RANDOM_R invocations from here...
8144         * modules/random_r (configure.ac): ... to here.
8145
8146 2011-05-21  Bruno Haible  <bruno@clisp.org>
8147
8148         pwrite: Move AC_LIBOBJ invocations to module description.
8149         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8150         * modules/pwrite (configure.ac): ... to here.
8151
8152 2011-05-21  Bruno Haible  <bruno@clisp.org>
8153
8154         putenv: Move AC_LIBOBJ invocations to module description.
8155         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8156         * modules/putenv (configure.ac): ... to here.
8157
8158 2011-05-21  Bruno Haible  <bruno@clisp.org>
8159
8160         login_tty: Move AC_LIBOBJ invocations to module description.
8161         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8162         * modules/login_tty (configure.ac): ... to here.
8163
8164 2011-05-21  Bruno Haible  <bruno@clisp.org>
8165
8166         openpty: Move AC_LIBOBJ invocations to module description.
8167         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8168         * modules/openpty (configure.ac): ... to here.
8169
8170 2011-05-21  Bruno Haible  <bruno@clisp.org>
8171
8172         forkpty: Move AC_LIBOBJ invocations to module description.
8173         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8174         * modules/forkpty (configure.ac): ... to here.
8175
8176 2011-05-21  Bruno Haible  <bruno@clisp.org>
8177
8178         ptsname: Move AC_LIBOBJ invocations to module description.
8179         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8180         invocations from here...
8181         * modules/ptsname (configure.ac): ... to here.
8182
8183 2011-05-21  Bruno Haible  <bruno@clisp.org>
8184
8185         pread: Move AC_LIBOBJ invocations to module description.
8186         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8187         * modules/pread (configure.ac): ... to here.
8188
8189 2011-05-21  Bruno Haible  <bruno@clisp.org>
8190
8191         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8192         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8193         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8194         * modules/posix_spawn (configure.ac): ... to here.
8195         * modules/posix_spawnp (configure.ac): ... and here.
8196
8197 2011-05-21  Bruno Haible  <bruno@clisp.org>
8198
8199         popen: Move AC_LIBOBJ invocations to module description.
8200         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8201         invocations from here...
8202         * modules/popen (configure.ac): ... to here.
8203
8204 2011-05-21  Bruno Haible  <bruno@clisp.org>
8205
8206         poll: Move AC_LIBOBJ invocations to module description.
8207         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8208         invocations from here...
8209         * modules/poll (configure.ac): ... to here.
8210
8211 2011-05-21  Bruno Haible  <bruno@clisp.org>
8212
8213         pipe-posix: Move AC_LIBOBJ invocations to module description.
8214         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8215         * modules/pipe-posix (configure.ac): ... to here.
8216
8217 2011-05-21  Bruno Haible  <bruno@clisp.org>
8218
8219         openat: Respect rules for use of AC_LIBOBJ.
8220         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8221         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8222         * modules/openat (configure.ac): ... to here.
8223
8224 2011-05-21  Bruno Haible  <bruno@clisp.org>
8225
8226         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8227         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8228         invocation from here...
8229         * modules/obstack-printf (configure.ac): ... to here.
8230         * modules/obstack-printf-posix (configure.ac): ... and here.
8231
8232 2011-05-21  Bruno Haible  <bruno@clisp.org>
8233
8234         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8235         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8236         from here...
8237         * modules/nl_langinfo (configure.ac): ... to here.
8238
8239 2011-05-21  Bruno Haible  <bruno@clisp.org>
8240
8241         nanosleep: Move AC_LIBOBJ invocations to module description.
8242         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8243         gl_PREREQ_NANOSLEEP invocations from here...
8244         * modules/nanosleep (configure.ac): ... to here.
8245
8246 2011-05-21  Bruno Haible  <bruno@clisp.org>
8247
8248         mountlist: Move AC_LIBOBJ invocations to module description.
8249         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8250         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8251         * modules/mountlist (configure.ac): ... to here.
8252
8253 2011-05-21  Bruno Haible  <bruno@clisp.org>
8254
8255         mktime: Respect rules for use of AC_LIBOBJ.
8256         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8257         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8258         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8259         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8260         * modules/mktime (configure.ac): ... to here.
8261         * modules/mktime-internal (configure.ac): ... and here.
8262         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8263
8264 2011-05-21  Bruno Haible  <bruno@clisp.org>
8265
8266         mkstemps: Move AC_LIBOBJ invocations to module description.
8267         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8268         here...
8269         * modules/mkstemps (configure.ac): ... to here.
8270
8271 2011-05-21  Bruno Haible  <bruno@clisp.org>
8272
8273         mkstemp: Move AC_LIBOBJ invocations to module description.
8274         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8275         gl_PREREQ_MKSTEMP invocations from here...
8276         * modules/mkstemp (configure.ac): ... to here.
8277
8278 2011-05-21  Bruno Haible  <bruno@clisp.org>
8279
8280         mkostemps: Move AC_LIBOBJ invocations to module description.
8281         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8282         here...
8283         * modules/mkostemps (configure.ac): ... to here.
8284
8285 2011-05-21  Bruno Haible  <bruno@clisp.org>
8286
8287         mkostemp: Move AC_LIBOBJ invocations to module description.
8288         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8289         gl_PREREQ_MKOSTEMP invocations from here...
8290         * modules/mkostemp (configure.ac): ... to here.
8291
8292 2011-05-21  Bruno Haible  <bruno@clisp.org>
8293
8294         mknod: Move AC_LIBOBJ invocations to module description.
8295         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8296         * modules/mknod (configure.ac): ... to here.
8297
8298 2011-05-21  Bruno Haible  <bruno@clisp.org>
8299
8300         mkfifoat: Move AC_LIBOBJ invocations to module description.
8301         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8302         here...
8303         * modules/mkfifoat (configure.ac): ... to here.
8304
8305 2011-05-21  Bruno Haible  <bruno@clisp.org>
8306
8307         mkfifo: Respect rules for use of AC_LIBOBJ.
8308         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8309         here...
8310         * modules/mkfifo (configure.ac): ... to here.
8311
8312 2011-05-21  Bruno Haible  <bruno@clisp.org>
8313
8314         mkdtemp: Move AC_LIBOBJ invocations to module description.
8315         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8316         invocations from here...
8317         * modules/mkdtemp (configure.ac): ... to here.
8318
8319 2011-05-21  Bruno Haible  <bruno@clisp.org>
8320
8321         mkdir: Move AC_LIBOBJ invocations to module description.
8322         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8323         * modules/mkdir (configure.ac): ... to here.
8324
8325 2011-05-21  Bruno Haible  <bruno@clisp.org>
8326
8327         memset: Move AC_LIBOBJ invocations to module description.
8328         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8330         here...
8331         * modules/memset (configure.ac): ... to here.
8332
8333 2011-05-21  Bruno Haible  <bruno@clisp.org>
8334
8335         memrchr: Move AC_LIBOBJ invocations to module description.
8336         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8337         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8338         here...
8339         * modules/memrchr (configure.ac): ... to here.
8340
8341 2011-05-21  Bruno Haible  <bruno@clisp.org>
8342
8343         mempcpy: Move AC_LIBOBJ invocations to module description.
8344         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8345         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8346         here...
8347         * modules/mempcpy (configure.ac): ... to here.
8348
8349 2011-05-21  Bruno Haible  <bruno@clisp.org>
8350
8351         memmove: Move AC_LIBOBJ invocations to module description.
8352         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8354         here...
8355         * modules/memmove (configure.ac): ... to here.
8356
8357 2011-05-21  Bruno Haible  <bruno@clisp.org>
8358
8359         memmem*: Move AC_LIBOBJ invocations to module description.
8360         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8361         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8362         here...
8363         (gl_FUNC_MEMMEM): ... and here...
8364         * modules/memmem-simple (configure.ac): ... to here.
8365         * modules/memmem (configure.ac): ... and here.
8366
8367 2011-05-21  Bruno Haible  <bruno@clisp.org>
8368
8369         memcpy: Move AC_LIBOBJ invocations to module description.
8370         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8371         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8372         here...
8373         * modules/memcpy (configure.ac): ... to here.
8374
8375 2011-05-21  Bruno Haible  <bruno@clisp.org>
8376
8377         memcmp: Simplify autoconf macro.
8378         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8379         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8380         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8381
8382 2011-05-21  Bruno Haible  <bruno@clisp.org>
8383
8384         memcmp: Move AC_LIBOBJ invocations to module description.
8385         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8386         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8387         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8388         * modules/memcmp (configure.ac): ... to here.
8389         (Depends-on): Update conditions.
8390
8391 2011-05-21  Bruno Haible  <bruno@clisp.org>
8392
8393         memchr: Respect rules for use of AC_LIBOBJ.
8394         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8395         invocations from here...
8396         * modules/memchr (configure.ac): ... to here.
8397
8398 2011-05-21  Bruno Haible  <bruno@clisp.org>
8399
8400         mbtowc: Move AC_LIBOBJ invocations to module description.
8401         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8402         invocations from here...
8403         * modules/mbtowc (configure.ac): ... to here.
8404
8405 2011-05-21  Bruno Haible  <bruno@clisp.org>
8406
8407         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8408         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8409         gl_PREREQ_MBSRTOWCS invocations from here...
8410         * modules/mbsrtowcs (configure.ac): ... to here.
8411
8412 2011-05-21  Bruno Haible  <bruno@clisp.org>
8413
8414         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8415         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8416         gl_PREREQ_MBSNRTOWCS invocations from here...
8417         * modules/mbsnrtowcs (configure.ac): ... to here.
8418
8419 2011-05-21  Bruno Haible  <bruno@clisp.org>
8420
8421         mbsinit: Move AC_LIBOBJ invocations to module description.
8422         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8423         invocations from here...
8424         * modules/mbsinit (configure.ac): ... to here.
8425
8426 2011-05-21  Bruno Haible  <bruno@clisp.org>
8427
8428         mbrlen: Move AC_LIBOBJ invocations to module description.
8429         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8430         invocations from here...
8431         * modules/mbrlen (configure.ac): ... to here.
8432
8433 2011-05-21  Bruno Haible  <bruno@clisp.org>
8434
8435         mbrtowc: Respect rules for use of AC_LIBOBJ.
8436         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8437         invocations from here...
8438         * modules/mbrtowc (configure.ac): ... to here.
8439
8440 2011-05-21  Bruno Haible  <bruno@clisp.org>
8441
8442         malloc-*: Move AC_LIBOBJ invocations to module description.
8443         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8444         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8445         AC_LIBOBJ invocations from here...
8446         * modules/malloc-gnu (configure.ac): ... to here.
8447         * modules/malloc-posix (configure.ac): ... and here.
8448
8449 2011-05-21  Bruno Haible  <bruno@clisp.org>
8450
8451         lstat, openat: Respect rules for use of AC_LIBOBJ.
8452         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8453         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8454         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8455         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8456         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8457         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8458         here.
8459         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8460
8461 2011-05-21  Bruno Haible  <bruno@clisp.org>
8462
8463         lseek: Move AC_LIBOBJ invocations to module description.
8464         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8465         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8466         * modules/lseek (configure.ac): ... to here.
8467
8468 2011-05-21  Bruno Haible  <bruno@clisp.org>
8469
8470         linkat: Move AC_LIBOBJ invocations to module description.
8471         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8472         here...
8473         * modules/linkat (configure.ac): ... to here.
8474
8475 2011-05-21  Bruno Haible  <bruno@clisp.org>
8476
8477         link: Respect rules for use of AC_LIBOBJ.
8478         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8479         * modules/link (configure.ac): ... to here.
8480
8481 2011-05-21  Bruno Haible  <bruno@clisp.org>
8482
8483         lchown: Move AC_LIBOBJ invocations to module description.
8484         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8485         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8486         * modules/lchown (configure.ac): ... to here.
8487
8488 2011-05-21  Bruno Haible  <bruno@clisp.org>
8489
8490         iswctype: Move AC_LIBOBJ invocations to module description.
8491         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8492         here...
8493         * modules/iswctype (configure.ac): ... to here.
8494
8495 2011-05-21  Bruno Haible  <bruno@clisp.org>
8496
8497         iswblank: Move AC_LIBOBJ invocations to module description.
8498         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8499         here...
8500         * modules/iswblank (configure.ac): ... to here.
8501
8502 2011-05-21  Bruno Haible  <bruno@clisp.org>
8503
8504         atanl: Move AC_LIBOBJ invocations to module description.
8505         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8506         * modules/atanl (configure.ac): ... to here.
8507
8508 2011-05-21  Bruno Haible  <bruno@clisp.org>
8509
8510         acosl: Move AC_LIBOBJ invocations to module description.
8511         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8512         * modules/acosl (configure.ac): ... to here.
8513
8514 2011-05-21  Bruno Haible  <bruno@clisp.org>
8515
8516         asinl: Respect rules for use of AC_LIBOBJ.
8517         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8518         * modules/asinl (configure.ac): ... to here.
8519
8520 2011-05-21  Bruno Haible  <bruno@clisp.org>
8521
8522         tanl: Move AC_LIBOBJ invocations to module description.
8523         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8524         * modules/tanl (configure.ac): ... to here.
8525
8526 2011-05-21  Bruno Haible  <bruno@clisp.org>
8527
8528         cosl: Move AC_LIBOBJ invocations to module description.
8529         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8530         * modules/cosl (configure.ac): ... to here.
8531
8532 2011-05-21  Bruno Haible  <bruno@clisp.org>
8533
8534         sinl: Move AC_LIBOBJ invocations to module description.
8535         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8536         * modules/sinl (configure.ac): ... to here.
8537
8538 2011-05-21  Bruno Haible  <bruno@clisp.org>
8539
8540         logl: Move AC_LIBOBJ invocations to module description.
8541         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8542         * modules/logl (configure.ac): ... to here.
8543
8544 2011-05-21  Bruno Haible  <bruno@clisp.org>
8545
8546         expl: Move AC_LIBOBJ invocations to module description.
8547         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8548         * modules/expl (configure.ac): ... to here.
8549
8550 2011-05-21  Bruno Haible  <bruno@clisp.org>
8551
8552         roundl: Move AC_LIBOBJ invocations to module description.
8553         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8554         * modules/roundl (configure.ac): ... to here.
8555
8556 2011-05-21  Bruno Haible  <bruno@clisp.org>
8557
8558         round: Move AC_LIBOBJ invocations to module description.
8559         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8560         * modules/round (configure.ac): ... to here.
8561
8562 2011-05-21  Bruno Haible  <bruno@clisp.org>
8563
8564         roundf: Move AC_LIBOBJ invocations to module description.
8565         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8566         * modules/roundf (configure.ac): ... to here.
8567
8568 2011-05-21  Bruno Haible  <bruno@clisp.org>
8569
8570         truncl: Move AC_LIBOBJ invocations to module description.
8571         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8572         * modules/truncl (configure.ac): ... to here.
8573
8574 2011-05-21  Bruno Haible  <bruno@clisp.org>
8575
8576         trunc: Move AC_LIBOBJ invocations to module description.
8577         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8578         * modules/trunc (configure.ac): ... to here.
8579
8580 2011-05-21  Bruno Haible  <bruno@clisp.org>
8581
8582         truncf: Move AC_LIBOBJ invocations to module description.
8583         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8584         * modules/truncf (configure.ac): ... to here.
8585
8586 2011-05-21  Bruno Haible  <bruno@clisp.org>
8587
8588         ceill: Move AC_LIBOBJ invocations to module description.
8589         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8590         * modules/ceill (configure.ac): ... to here.
8591
8592 2011-05-21  Bruno Haible  <bruno@clisp.org>
8593
8594         ceil: Move AC_LIBOBJ invocations to module description.
8595         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8596         * modules/ceil (configure.ac): ... to here.
8597
8598 2011-05-21  Bruno Haible  <bruno@clisp.org>
8599
8600         ceilf: Move AC_LIBOBJ invocations to module description.
8601         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8602         * modules/ceilf (configure.ac): ... to here.
8603
8604 2011-05-21  Bruno Haible  <bruno@clisp.org>
8605
8606         floorl: Respect rules for use of AC_LIBOBJ.
8607         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8608         * modules/floorl (configure.ac): ... to here.
8609
8610 2011-05-21  Bruno Haible  <bruno@clisp.org>
8611
8612         floor: Respect rules for use of AC_LIBOBJ.
8613         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8614         * modules/floor (configure.ac): ... to here.
8615
8616 2011-05-21  Bruno Haible  <bruno@clisp.org>
8617
8618         floorf: Move AC_LIBOBJ invocations to module description.
8619         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8620         * modules/floorf (configure.ac): ... to here.
8621
8622 2011-05-20  Bruno Haible  <bruno@clisp.org>
8623
8624         sqrtl: Respect rules for use of AC_LIBOBJ.
8625         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8626         * modules/sqrtl (configure.ac): ... to here.
8627
8628 2011-05-20  Bruno Haible  <bruno@clisp.org>
8629
8630         ldexpl: Respect rules for use of AC_LIBOBJ.
8631         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8632         * modules/ldexpl (configure.ac): ... to here.
8633
8634 2011-05-20  Bruno Haible  <bruno@clisp.org>
8635
8636         frexpl*: Respect rules for use of AC_LIBOBJ.
8637         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8638         invocation from here...
8639         * modules/frexpl (configure.ac): ... to here.
8640         * modules/frexpl-nolibm (configure.ac): ... and here.
8641
8642 2011-05-20  Bruno Haible  <bruno@clisp.org>
8643
8644         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8645         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8646         invocation from here...
8647         * modules/frexp (configure.ac): ... to here.
8648         * modules/frexp-nolibm (configure.ac): ... and here.
8649
8650 2011-05-20  Bruno Haible  <bruno@clisp.org>
8651
8652         isnan: Respect rules for use of AC_LIBOBJ.
8653         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8654         invocations here.
8655         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8656         REPLACE_ISNAN.
8657         * modules/isnand (configure.ac): Likewise.
8658         * modules/isnanl (configure.ac): Likewise.
8659
8660 2011-05-20  Bruno Haible  <bruno@clisp.org>
8661
8662         isnanl*: Respect rules for use of AC_LIBOBJ.
8663         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8664         invocation from here...
8665         * modules/isnanl (configure.ac): ... to here.
8666         * modules/isnanl-nolibm (configure.ac): ... and here.
8667
8668 2011-05-20  Bruno Haible  <bruno@clisp.org>
8669
8670         isnand*: Move AC_LIBOBJ invocations to module description.
8671         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8672         invocation from here...
8673         * modules/isnand (configure.ac): ... to here.
8674         * modules/isnand-nolibm (configure.ac): ... and here.
8675
8676 2011-05-20  Bruno Haible  <bruno@clisp.org>
8677
8678         isnanf*: Move AC_LIBOBJ invocations to module description.
8679         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8680         invocation from here...
8681         * modules/isnanf (configure.ac): ... to here.
8682         * modules/isnanf-nolibm (configure.ac): ... and here.
8683
8684 2011-05-20  Bruno Haible  <bruno@clisp.org>
8685
8686         isnan*: Separate the AC_LIBOBJ invocations.
8687         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8688         AC_LIBOBJ invocation.
8689         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8690         here.
8691         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8692         AC_LIBOBJ invocation.
8693         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8694         here.
8695         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8696         AC_LIBOBJ invocation.
8697         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8698         here.
8699         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8700
8701 2011-05-08  Bruno Haible  <bruno@clisp.org>
8702
8703         isinf: Move AC_LIBOBJ invocations to module description.
8704         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8705         * modules/isinf (configure.ac): ... to here.
8706
8707 2011-05-08  Bruno Haible  <bruno@clisp.org>
8708
8709         isfinite: Move AC_LIBOBJ invocations to module description.
8710         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8711         * modules/isfinite (configure.ac): ... to here.
8712
8713 2011-05-08  Bruno Haible  <bruno@clisp.org>
8714
8715         isblank: Move AC_LIBOBJ invocations to module description.
8716         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8717         here...
8718         * modules/isblank (configure.ac): ... to here.
8719
8720 2011-05-08  Bruno Haible  <bruno@clisp.org>
8721
8722         isapipe: Move AC_LIBOBJ invocations to module description.
8723         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8724         gl_PREREQ_ISAPIPE invocations from here...
8725         * modules/isapipe (configure.ac): ... to here.
8726         (Depends-on): Update condition.
8727
8728 2011-05-08  Bruno Haible  <bruno@clisp.org>
8729
8730         ioctl: Move AC_LIBOBJ invocations to module description.
8731         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8732         invocations from here...
8733         * modules/ioctl (configure.ac): ... to here.
8734         (Depends-on): Update condition.
8735
8736 2011-05-08  Bruno Haible  <bruno@clisp.org>
8737
8738         imaxdiv: Move AC_LIBOBJ invocations to module description.
8739         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8740         invocations from here...
8741         * modules/imaxdiv (configure.ac): ... to here.
8742
8743 2011-05-08  Bruno Haible  <bruno@clisp.org>
8744
8745         imaxabs: Move AC_LIBOBJ invocations to module description.
8746         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8747         invocations from here...
8748         * modules/imaxabs (configure.ac): ... to here.
8749
8750 2011-05-08  Bruno Haible  <bruno@clisp.org>
8751
8752         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8753         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8754         AC_LIBOBJ invocations from here...
8755         * modules/getaddrinfo (configure.ac): ... to here.
8756         (Depends-on): Add conditions.
8757
8758 2011-05-08  Bruno Haible  <bruno@clisp.org>
8759
8760         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8761         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8762         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8763         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8764         (gl_PREREQ_INET_PTON): ... from here.
8765         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8766         gl_PREREQ_INET_PTON here.
8767         (Depends-on): Update condition.
8768
8769 2011-05-08  Bruno Haible  <bruno@clisp.org>
8770
8771         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8772         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8773         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8774         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8775         (gl_PREREQ_INET_NTOP): ... from here.
8776         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8777         gl_PREREQ_INET_NTOP here.
8778         (Depends-on): Update condition.
8779
8780 2011-05-08  Bruno Haible  <bruno@clisp.org>
8781
8782         iconv_open: Move AC_LIBOBJ invocations to module description.
8783         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8784         AC_LIBOBJ invocations from here...
8785         * modules/iconv_open (configure.ac): ... to here.
8786
8787 2011-05-08  Bruno Haible  <bruno@clisp.org>
8788
8789         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8790         If module 'iconv_open' is among the main modules and module
8791         'iconv_open-utf' is among the tests dependencies, then
8792         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8793         return the special iconv_t values. Therefore iconv() and iconv_close()
8794         must support these special iconv_t values, already in lib, not only in
8795         tests.
8796         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8797         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8798         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8799         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8800         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8801         (Depends-on): Add the dependencies of iconv_open-utf.
8802         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8803         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8804         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8805
8806 2011-05-08  Bruno Haible  <bruno@clisp.org>
8807
8808         group-member: Move AC_LIBOBJ invocations to module description.
8809         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8810         gl_PREREQ_GROUP_MEMBER invocations from here...
8811         * modules/group-member (configure.ac): ... to here.
8812
8813 2011-05-08  Bruno Haible  <bruno@clisp.org>
8814
8815         grantpt: Move AC_LIBOBJ invocations to module description.
8816         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8817         invocations from here...
8818         * modules/grantpt (configure.ac): ... to here.
8819
8820 2011-05-08  Bruno Haible  <bruno@clisp.org>
8821
8822         glob: Move AC_LIBOBJ invocations to module description.
8823         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8824         from here...
8825         * modules/glob (configure.ac): ... to here.
8826
8827 2011-05-08  Bruno Haible  <bruno@clisp.org>
8828
8829         getusershell: Move AC_LIBOBJ invocations to module description.
8830         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8831         Move AC_LIBOBJ invocation from here...
8832         * modules/getusershell (configure.ac): ... to here.
8833         (Depends-on): Update condition.
8834
8835 2011-05-08  Bruno Haible  <bruno@clisp.org>
8836
8837         gettimeofday: Move AC_LIBOBJ invocations to module description.
8838         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8839         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8840         gl_PREREQ_GETTIMEOFDAY invocations from here...
8841         * modules/gettimeofday (configure.ac): ... to here.
8842
8843 2011-05-08  Bruno Haible  <bruno@clisp.org>
8844
8845         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8846         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8847         just gl_FUNC_TZSET.
8848         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8849         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8850         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8851         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8852
8853 2011-05-08  Bruno Haible  <bruno@clisp.org>
8854
8855         getsubopt: Move AC_LIBOBJ invocations to module description.
8856         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8857         gl_PREREQ_GETSUBOPT invocations from here...
8858         * modules/getsubopt (configure.ac): ... to here.
8859
8860 2011-05-08  Bruno Haible  <bruno@clisp.org>
8861
8862         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8863         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8864         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8865         * modules/getpass-gnu (configure.ac): ... to here.
8866
8867 2011-05-08  Bruno Haible  <bruno@clisp.org>
8868
8869         getpass: Move AC_LIBOBJ invocations to module description.
8870         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8871         gl_PREREQ_GETPASS invocations from here...
8872         * modules/getpass (configure.ac): ... to here.
8873
8874 2011-05-08  Bruno Haible  <bruno@clisp.org>
8875
8876         getpagesize: Move AC_LIBOBJ invocations to module description.
8877         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8878         from here...
8879         * modules/getpagesize (configure.ac): ... to here.
8880
8881 2011-05-08  Bruno Haible  <bruno@clisp.org>
8882
8883         getopt: Move AC_LIBOBJ invocations to module description.
8884         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8885         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8886         invocations from here...
8887         * modules/getopt-gnu (configure.ac): ... to here.
8888         * modules/getopt-posix (configure.ac): ... and here.
8889         (Depends-on): Update condition.
8890
8891 2011-05-08  Bruno Haible  <bruno@clisp.org>
8892
8893         getopt, argp: Respect rules for use of AC_LIBOBJ.
8894         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8895         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8896         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8897         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8898
8899 2011-05-08  Bruno Haible  <bruno@clisp.org>
8900
8901         getlogin_r: Move AC_LIBOBJ invocations to module description.
8902         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8903         gl_PREREQ_GETLOGIN_R invocations from here...
8904         * modules/getlogin_r (configure.ac): ... to here.
8905
8906 2011-05-08  Bruno Haible  <bruno@clisp.org>
8907
8908         getlogin: Move AC_LIBOBJ invocations to module description.
8909         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8910         here...
8911         * modules/getlogin (configure.ac): ... to here.
8912
8913 2011-05-08  Bruno Haible  <bruno@clisp.org>
8914
8915         getloadavg: Move AC_LIBOBJ invocations to module description.
8916         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8917         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8918         * modules/getloadavg (configure.ac): ... to here.
8919
8920 2011-05-08  Bruno Haible  <bruno@clisp.org>
8921
8922         gethrxtime: Move AC_LIBOBJ invocations to module description.
8923         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8924         LIB_GETHRXTIME from here...
8925         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8926         invocations from here...
8927         * modules/gethrxtime (configure.ac): ... to here.
8928
8929 2011-05-08  Bruno Haible  <bruno@clisp.org>
8930
8931         gethostname: Move AC_LIBOBJ invocations to module description.
8932         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8933         gl_PREREQ_GETHOSTNAME invocations from here...
8934         * modules/gethostname (configure.ac): ... to here.
8935
8936 2011-05-08  Bruno Haible  <bruno@clisp.org>
8937
8938         getgroups: Move AC_LIBOBJ invocations to module description.
8939         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8940         here...
8941         * modules/getgroups (configure.ac): ... to here.
8942
8943 2011-05-08  Bruno Haible  <bruno@clisp.org>
8944
8945         getdtablesize: Move AC_LIBOBJ invocations to module description.
8946         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8947         invocation from here...
8948         * modules/getdtablesize (configure.ac): ... to here.
8949
8950 2011-05-08  Bruno Haible  <bruno@clisp.org>
8951
8952         getdomainname: Move AC_LIBOBJ invocations to module description.
8953         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8954         gl_PREREQ_GETDOMAINNAME invocations from here...
8955         * modules/getdomainname (configure.ac): ... to here.
8956
8957 2011-05-08  Bruno Haible  <bruno@clisp.org>
8958
8959         getline: Move AC_LIBOBJ invocations to module description.
8960         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8961         invocations from here...
8962         * modules/getline (configure.ac): ... to here.
8963
8964 2011-05-08  Bruno Haible  <bruno@clisp.org>
8965
8966         getline: Simplify.
8967         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8968         It's already handled through the module dependency.
8969
8970 2011-05-08  Bruno Haible  <bruno@clisp.org>
8971
8972         getdelim: Move AC_LIBOBJ invocations to module description.
8973         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8974         and gl_PREREQ_GETDELIM invocations from here...
8975         * modules/getdelim (configure.ac): ... to here.
8976         (Depends-on): Fix condition.
8977
8978 2011-05-08  Bruno Haible  <bruno@clisp.org>
8979
8980         getcwd: Move AC_LIBOBJ invocations to module description.
8981         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8982         invocations from here...
8983         * modules/getcwd (configure.ac): ... to here.
8984
8985 2011-05-08  Bruno Haible  <bruno@clisp.org>
8986
8987         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8988         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8989         here...
8990         * modules/getcwd-lgpl (configure.ac): ... to here.
8991
8992 2011-05-07  Bruno Haible  <bruno@clisp.org>
8993
8994         crypto/gc: Move AC_LIBOBJ invocations to module description.
8995         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8996         * modules/crypto/gc (configure.ac): ... to here.
8997
8998 2011-05-07  Bruno Haible  <bruno@clisp.org>
8999
9000         fwriting: Move AC_LIBOBJ invocations to module description.
9001         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9002         here...
9003         * modules/fwriting (configure.ac): ... to here.
9004
9005 2011-05-07  Bruno Haible  <bruno@clisp.org>
9006
9007         fwritable: Move AC_LIBOBJ invocations to module description.
9008         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9009         here...
9010         * modules/fwritable (configure.ac): ... to here.
9011
9012 2011-05-07  Bruno Haible  <bruno@clisp.org>
9013
9014         futimens: Move AC_LIBOBJ invocations to module description.
9015         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9016         here...
9017         * modules/futimens (configure.ac): ... to here.
9018
9019 2011-05-07  Bruno Haible  <bruno@clisp.org>
9020
9021         ftruncate: Move AC_LIBOBJ invocations to module description.
9022         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9023         gl_PREREQ_FTRUNCATE invocations from here...
9024         * modules/ftruncate (configure.ac): ... to here.
9025
9026 2011-05-07  Bruno Haible  <bruno@clisp.org>
9027
9028         fsync: Move AC_LIBOBJ invocations to module description.
9029         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9030         invocations from here...
9031         * modules/fsync (configure.ac): ... to here.
9032
9033 2011-05-07  Bruno Haible  <bruno@clisp.org>
9034
9035         fsusage: Move AC_LIBOBJ invocations to module description.
9036         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9037         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9038         * modules/fsusage (configure.ac): ... to here.
9039
9040 2011-05-07  Bruno Haible  <bruno@clisp.org>
9041
9042         freopen: Move AC_LIBOBJ invocations to module description.
9043         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9044         invocations from here...
9045         * modules/freopen (configure.ac): ... to here.
9046
9047 2011-05-07  Bruno Haible  <bruno@clisp.org>
9048
9049         free: Move AC_LIBOBJ invocations to module description.
9050         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9051         invocations from here...
9052         * modules/free (configure.ac): ... to here.
9053
9054 2011-05-07  Bruno Haible  <bruno@clisp.org>
9055
9056         freadable: Move AC_LIBOBJ invocations to module description.
9057         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9058         here...
9059         * modules/freadable (configure.ac): ... to here.
9060
9061 2011-05-07  Bruno Haible  <bruno@clisp.org>
9062
9063         fpurge: Move AC_LIBOBJ invocations to module description.
9064         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9065         invocations from here...
9066         * modules/fpurge (configure.ac): ... to here.
9067
9068 2011-05-07  Bruno Haible  <bruno@clisp.org>
9069
9070         fpending: Move AC_LIBOBJ invocations to module description.
9071         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9072         gl_FUNC_FPENDING.
9073         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9074         invocations from here...
9075         * modules/fpending (configure.ac): ... to here.
9076
9077 2011-05-07  Bruno Haible  <bruno@clisp.org>
9078
9079         fopen: Move AC_LIBOBJ invocations to module description.
9080         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9081         invocations from here...
9082         * modules/fopen (configure.ac): ... to here.
9083
9084 2011-05-07  Bruno Haible  <bruno@clisp.org>
9085
9086         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9087         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9088         gl_FUNC_FNMATCH_POSIX.
9089         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9090         invocations from here...
9091         * modules/fnmatch (configure.ac): ... to here.
9092         * modules/fnmatch-gnu (configure.ac): ... and here.
9093
9094 2011-05-07  Bruno Haible  <bruno@clisp.org>
9095
9096         flock: Move AC_LIBOBJ invocations to module description.
9097         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9098         invocations from here...
9099         * modules/flock (configure.ac): ... to here.
9100
9101 2011-05-07  Bruno Haible  <bruno@clisp.org>
9102
9103         fileblocks: Move AC_LIBOBJ invocations to module description.
9104         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9105         gl_PREREQ_FILEBLOCKS invocations from here...
9106         * modules/fileblocks (configure.ac): ... to here.
9107
9108 2011-05-06  Bruno Haible  <bruno@clisp.org>
9109
9110         fflush: Move AC_LIBOBJ invocations to module description.
9111         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9112         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9113         invocations from here...
9114         * modules/fflush (configure.ac): ... to here.
9115
9116 2011-05-06  Bruno Haible  <bruno@clisp.org>
9117
9118         fdopendir: Move AC_LIBOBJ invocations to module description.
9119         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9120         here...
9121         * modules/fdopendir (configure.ac): ... to here.
9122         (Depends-on): Improve conditions.
9123
9124 2011-05-06  Bruno Haible  <bruno@clisp.org>
9125
9126         _Exit: Move AC_LIBOBJ invocations to module description.
9127         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9128         invocations from here...
9129         * modules/_Exit (configure.ac): ... to here.
9130
9131 2011-05-21  Bruno Haible  <bruno@clisp.org>
9132
9133         euidaccess: Respect rules for use of AC_LIBOBJ.
9134         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9136         from here...
9137         * modules/euidaccess (configure.ac): ... to here.
9138
9139 2011-05-06  Bruno Haible  <bruno@clisp.org>
9140
9141         error: Move AC_LIBOBJ invocations to module description.
9142         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9143         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9144         invocations from here...
9145         * modules/error (configure.ac): ... to here.
9146
9147 2011-05-06  Bruno Haible  <bruno@clisp.org>
9148
9149         duplocale: Move AC_LIBOBJ invocations to module description.
9150         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9151         gl_PREREQ_DUPLOCALE invocations from here...
9152         * modules/duplocale (configure.ac): ... to here.
9153
9154 2011-05-05  Bruno Haible  <bruno@clisp.org>
9155
9156         dirfd: Move AC_LIBOBJ invocations to module description.
9157         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9158         gl_FUNC_DIRFD.
9159         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9160         here...
9161         * modules/dirfd (configure.ac): ... to here.
9162         (Depends-on): Fix condition.
9163
9164 2011-05-05  Bruno Haible  <bruno@clisp.org>
9165
9166         chown: Respect rules for use of AC_LIBOBJ.
9167         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9168         * modules/chown (configure.ac): ... to here.
9169
9170 2011-05-05  Bruno Haible  <bruno@clisp.org>
9171
9172         chdir-long: Move AC_LIBOBJ invocations to module description.
9173         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9174         gl_PREREQ_CHDIR_LONG invocations from here...
9175         * modules/chdir-long (configure.ac): ... to here.
9176
9177 2011-05-05  Bruno Haible  <bruno@clisp.org>
9178
9179         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9180         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9181         from here...
9182         * modules/canonicalize-lgpl (configure.ac): ... to here.
9183
9184 2011-05-05  Bruno Haible  <bruno@clisp.org>
9185
9186         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9187         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9188         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9189         REPLACE_CALLOC.
9190         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9191         * modules/calloc-gnu (configure.ac): Likewise.
9192
9193 2011-05-05  Bruno Haible  <bruno@clisp.org>
9194
9195         btowc: Move AC_LIBOBJ invocations to module description.
9196         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9197         invocations from here...
9198         * modules/btowc (configure.ac): ... to here.
9199
9200 2011-05-21  Bruno Haible  <bruno@clisp.org>
9201
9202         atexit: Move AC_LIBOBJ invocations to module description.
9203         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9204         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9205         here...
9206         * modules/atexit (configure.ac): ... to here.
9207
9208 2011-05-05  Bruno Haible  <bruno@clisp.org>
9209
9210         atoll: Move AC_LIBOBJ invocations to module description.
9211         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9212         invocations from here...
9213         * modules/atoll (configure.ac): ... to here.
9214
9215 2011-05-05  Bruno Haible  <bruno@clisp.org>
9216
9217         argz: Move AC_LIBOBJ invocations to module description.
9218         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9219         * modules/argz (configure.ac): ... to here.
9220
9221 2011-05-05  Bruno Haible  <bruno@clisp.org>
9222
9223         alphasort: Move AC_LIBOBJ invocations to module description.
9224         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9225         gl_PREREQ_ALPHASORT invocations from here...
9226         * modules/alphasort (configure.ac): ... to here.
9227
9228 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9229
9230         verify: new macro verify_expr; verify_true deprecated
9231         * NEWS: Mention this.
9232         * doc/verify.texi (Compile-time Assertions): Document this.
9233         * lib/verify.h (verify_true): Deprecate.
9234         (verify_expr): New macro.
9235         * tests/test-verify.c (function): Test verify_expr.
9236
9237 2011-06-14  Jim Meyering  <meyering@redhat.com>
9238
9239         init.sh: give more portable redirection-related advice in a comment
9240         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9241         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9242         for lots of discussion.  Stefano Lattarini suggested the solution
9243         of putting "9>&2" after the command.  Reported by Bruno Haible.
9244
9245 2011-06-13  Bruno Haible  <bruno@clisp.org>
9246
9247         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9248         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9249         'none'.
9250
9251 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9252
9253         ftoastr: use strtof only if HAVE_STRTOF
9254         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9256         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9257         * modules/ftoastr (configure.ac): Check for strtof.
9258
9259 2011-06-13  Bruno Haible  <bruno@clisp.org>
9260
9261         gnulib-tool: Addendum to 2011-06-08 commit.
9262         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9263         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9264
9265 2011-06-13  Bruno Haible  <bruno@clisp.org>
9266
9267         fseeko: Provide a non-inline replacement of fseek().
9268         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9269         * modules/fseeko (Depends-on): Add fseek.
9270         * modules/fseek (License): Change to LGPLv2+.
9271
9272 2011-06-13  Bruno Haible  <bruno@clisp.org>
9273
9274         ftello: Provide a non-inline replacement of ftell().
9275         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9276         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9277         not have ftello() (such as on mingw).
9278         * modules/ftello (Depends-on): Add ftell.
9279         * modules/ftell (License): Change to LGPLv2+.
9280
9281 2011-05-07  Bruno Haible  <bruno@clisp.org>
9282
9283         ftell: Move AC_LIBOBJ invocations to module description.
9284         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9285         * modules/ftell (configure.ac): ... to here.
9286
9287 2011-05-07  Bruno Haible  <bruno@clisp.org>
9288
9289         ftello: Respect rules for use of AC_LIBOBJ.
9290         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9291         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9292         here...
9293         * modules/ftello (configure.ac): ... to here.
9294
9295 2011-05-07  Bruno Haible  <bruno@clisp.org>
9296
9297         fseeko: Simplify.
9298         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9299         (gl_FUNC_FSEEKO): Inline it here.
9300
9301 2011-05-07  Bruno Haible  <bruno@clisp.org>
9302
9303         fseek: Move AC_LIBOBJ invocations to module description.
9304         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9305         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9306         * modules/fseek (configure.ac): ... to here.
9307
9308 2011-05-07  Bruno Haible  <bruno@clisp.org>
9309
9310         fseek: Respect rules for use of AC_LIBOBJ.
9311         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9312         here...
9313         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9314
9315 2011-05-07  Bruno Haible  <bruno@clisp.org>
9316
9317         fseeko: Respect rules for use of AC_LIBOBJ.
9318         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9319         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9320         here...
9321         * modules/fseeko (configure.ac): ... to here.
9322
9323 2011-06-13  Bruno Haible  <bruno@clisp.org>
9324
9325         gnulib-tool: Allow comments in the 'Depends-on' section.
9326         * doc/gnulib.texi (Module description): Mention comment syntax in the
9327         Depends-on section.
9328         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9329
9330 2011-06-13  Bruno Haible  <bruno@clisp.org>
9331
9332         file-set.h: guard __attibute__ use, now that it's not always defined
9333         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9334         versions that support it.  This fixes a coreutils build failure with
9335         the vendor cc on HP-UX 11.31.
9336
9337 2011-06-12  Bruno Haible  <bruno@clisp.org>
9338
9339         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9340         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9341         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9342         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9343         (acl, aclsort): New declarations.
9344         (aclv_nontrivial): New declaration.
9345         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9346         (file_has_acl): Read also the second kind of HP-UX ACLs.
9347         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9348         kind of HP-UX ACLs if the first kind fails.
9349         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9350         second kind of HP-UX ACLs.
9351         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9352         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9353         agree.
9354         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9355         hpuxjfs.
9356         Handle hpuxjfs.
9357         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9358         hpuxjfs.
9359         Handle hpuxjfs.
9360         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9361         (func_test_same_acls): Use both lsacl and getacl.
9362         Handle hpuxjfs.
9363         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9364         (func_test_same_acls): Use both lsacl and getacl.
9365         Handle hpuxjfs.
9366
9367 2011-06-12  Bruno Haible  <bruno@clisp.org>
9368
9369         acl: Complete the 2010-08-10 fix.
9370         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9371         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9372         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9373         explicitly.
9374         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9375         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9376
9377 2011-06-12  Bruno Haible  <bruno@clisp.org>
9378
9379         spawn-pipe tests: Comments.
9380         * tests/test-spawn-pipe-child.c (main): Update comment.
9381         Reported by James Youngman <jay@gnu.org>.
9382
9383 2011-06-11  James Youngman  <jay@gnu.org>
9384
9385         New module 'stat-size'.
9386         * modules/stat-size: New module.  Provides macros for accessing
9387         file size information in instances of struct stat.  Depends on the
9388         fileblocks module because it calls st_blocks.
9389         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9390         * doc/gnulib.texi: Include stat-size.texi.
9391         * doc/stat-size.texi: Documentation for this module.
9392         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9393         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9394         AC_STRUCT_ST_BLOCKS.
9395
9396 2011-06-09  Bruno Haible  <bruno@clisp.org>
9397
9398         thread: Support pthreads-win32.
9399         * lib/glthread/thread.h (gl_thread_self): Define differently on
9400         pthreads-win32.
9401         (gl_null_thread): New declaration.
9402         (gl_thread_self_pointer): New macro.
9403         * lib/glthread/thread.c (gl_null_thread): New constant.
9404         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9405         gl_thread_self.
9406         * tests/test-tls.c: Likewise.
9407         Suggested by Paul Eggert. Reported by Eric Blake.
9408
9409 2011-06-09  Bruno Haible  <bruno@clisp.org>
9410
9411         thread: Fix confusion between NULL and 0.
9412         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9413         Reported by Paul Eggert.
9414
9415 2011-06-09  Bruno Haible  <bruno@clisp.org>
9416
9417         spawn-pipe tests: Avoid test failure on HP-UX 11.
9418         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9419         is closed.
9420
9421 2011-06-09  Bruno Haible  <bruno@clisp.org>
9422
9423         acl tests: Fix compilation error on HP-UX 11.
9424         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9425
9426 2011-06-09  Bruno Haible  <bruno@clisp.org>
9427
9428         rmdir: Avoid test failure on HP-UX 10.20.
9429         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9430         EEXIST.
9431
9432 2011-06-08  Eric Blake  <eblake@redhat.com>
9433
9434         perror: fix test on mingw
9435         * modules/perror-tests (Depends-on): Add dup2.
9436
9437         strerror_r-posix: fix on MacOS
9438         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9439         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9440         logic bug.
9441         * lib/strerror_r.c (strerror_r): Fix the bug.
9442         * lib/strerror.c (strerror): Likewise.
9443         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9444         problem.
9445         * doc/posix-functions/strerror.texi (strerror): Likewise.
9446         * doc/posix-functions/perror.texi (perror): Likewise.
9447         * tests/test-strerror.c (main): Enhance test.
9448         * tests/test-strerror_r.c (main): Likewise.
9449
9450 2011-06-08  Bruno Haible  <bruno@clisp.org>
9451
9452         gnulib-tool: Better isolation between different gnulib-tool invocations.
9453         * gnulib-tool: New option --witness-c-macro.
9454         (witness_c_macro): New variable.
9455         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9456         AM_CPPFLAGS define it as a C macro.
9457         (func_emit_tests_Makefile_am): Likewise.
9458         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9459         read it from there.
9460         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9461         m4_define, not AC_DEFUN.
9462         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9463         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9464         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9465         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9466         s|...|...|, to substitute the values of the GNULIB_* module indicator
9467         variables.
9468         * modules/dirent (Makefile.am): Likewise.
9469         * modules/fcntl-h (Makefile.am): Likewise.
9470         * modules/iconv-h (Makefile.am): Likewise.
9471         * modules/langinfo (Makefile.am): Likewise.
9472         * modules/locale (Makefile.am): Likewise.
9473         * modules/math (Makefile.am): Likewise.
9474         * modules/netdb (Makefile.am): Likewise.
9475         * modules/poll-h (Makefile.am): Likewise.
9476         * modules/pty (Makefile.am): Likewise.
9477         * modules/search (Makefile.am): Likewise.
9478         * modules/signal (Makefile.am): Likewise.
9479         * modules/spawn (Makefile.am): Likewise.
9480         * modules/stdio (Makefile.am): Likewise.
9481         * modules/stdlib (Makefile.am): Likewise.
9482         * modules/string (Makefile.am): Likewise.
9483         * modules/sys_ioctl (Makefile.am): Likewise.
9484         * modules/sys_select (Makefile.am): Likewise.
9485         * modules/sys_socket (Makefile.am): Likewise.
9486         * modules/sys_stat (Makefile.am): Likewise.
9487         * modules/sys_times (Makefile.am): Likewise.
9488         * modules/sys_utsname (Makefile.am): Likewise.
9489         * modules/sys_wait (Makefile.am): Likewise.
9490         * modules/termios (Makefile.am): Likewise.
9491         * modules/time (Makefile.am): Likewise.
9492         * modules/unistd (Makefile.am): Likewise.
9493         * modules/wchar (Makefile.am): Likewise.
9494
9495 2011-06-08  Eric Blake  <eblake@redhat.com>
9496
9497         strerror: simplify replacement
9498         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9499         * modules/strerror (configure.ac): No prereqs needed here...
9500         * modules/strerror-override (configure.ac): ...but this needs it.
9501         (Files): Add file for needed prereq macro.
9502
9503 2011-06-08  Bruno Haible  <bruno@clisp.org>
9504
9505         strerror_r-posix: Tweaks.
9506         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9507         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9508         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9509         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9510         (gl_FUNC_STRERROR_R): ... to here.
9511         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9512
9513 2011-06-07  Eric Blake  <eblake@redhat.com>
9514
9515         perror: document fixed bugs
9516         * doc/posix-functions/perror.texi (perror): Document recent
9517         patches.
9518
9519 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9520
9521         stat-time: get_stat_birthtime failure is better-defined
9522         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9523         return a timestamp whose tv_sec and tv_nsec values are both -1.
9524         Previously, the spec said only that the tv_nsec value was negative.
9525         This upward-compatible change simplifies GNU tar a bit.
9526
9527 2011-06-07  Eric Blake  <eblake@redhat.com>
9528
9529         strerror_r-posix: work around cygwin 1.7.9
9530         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9531         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9532         bug without replacing strerror_r.
9533         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9534         strerror_r is buggy, but without requiring strerror_r compilation.
9535         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9536
9537         test-perror: relax test to ignore cygwin bug
9538         * tests/test-perror2.c (main): Relax test on requiring detection
9539         of stream errors, and use unbuffered stream.
9540         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9541         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9542         * doc/posix-functions/fputc.texi (fputc): Likewise.
9543         * doc/posix-functions/fputs.texi (fputs): Likewise.
9544         * doc/posix-functions/fputws.texi (fputws): Likewise.
9545         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9546         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9547         * doc/posix-functions/getopt.texi (getopt): Likewise.
9548         * doc/posix-functions/perror.texi (perror): Likewise.
9549         * doc/posix-functions/printf.texi (printf): Likewise.
9550         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9551         * doc/posix-functions/psignal.texi (psignal): Likewise.
9552         * doc/posix-functions/putc.texi (putc): Likewise.
9553         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9554         Likewise.
9555         * doc/posix-functions/putchar.texi (putchar): Likewise.
9556         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9557         Likewise.
9558         * doc/posix-functions/puts.texi (puts): Likewise.
9559         * doc/posix-functions/putwc.texi (putwc): Likewise.
9560         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9561         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9562         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9563         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9564         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9565         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9566         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9567         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9568
9569 2011-05-22  Bruno Haible  <bruno@clisp.org>
9570
9571         strerror: Move AC_LIBOBJ invocations to module description.
9572         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9573         gl_PREREQ_STRERROR invocations from here...
9574         * modules/strerror (configure.ac): ... to here.
9575
9576 2011-05-21  Bruno Haible  <bruno@clisp.org>
9577
9578         perror: Use common idiom.
9579         * modules/perror (configure.ac): Reorder statements.
9580
9581 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9582
9583         tests: fix usage message in 'mktempd_'
9584         * tests/init.sh (mktempd_): In the usage message, use literal
9585         'mktempd_', not '$ME' (which is even undefined), as the name of
9586         the subroutine.
9587
9588 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9589
9590         tests init: new function 'fatal_', for hard errors
9591         Before this patch, the only way offered by tests/init.sh to
9592         properly signal a hard error was the `framework_failure_'
9593         function.  But the error message issued by that function,
9594         as its name would suggest, refers to a set-up failure in the
9595         testsuite, while hard errors can obviously also be due to
9596         other reasons.  The best way to fix this inconsistency is to
9597         introduce a new function with a more general error message.
9598         * tests/init.sh (fatal_): New function.
9599
9600 2011-06-06  Eric Blake  <eblake@redhat.com>
9601
9602         canonicalize-lgpl: use common idiom
9603         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9604         over newer POSIX -Rf.
9605         Reported by Bruno Haible.
9606
9607         canonicalize-lgpl: work around AIX realpath bug
9608         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9609         * doc/posix-functions/realpath.texi (realpath): Document it.
9610         Reported by Bruno Haible.
9611
9612         strerror: work around FreeBSD bug
9613         * lib/strerror.c (strerror): Special case 0.
9614         Reported by Bruno Haible.
9615
9616         strerror-override: avoid bloating errno module
9617         * modules/errno (Files, configure.ac): Move replacement strings...
9618         * modules/strerror-override: ...to new module.
9619         * modules/strerror (Depends-on): Add strerror-override.
9620         * modules/strerror_r-posix (Depends-on): Likewise.
9621         * MODULES.html.sh: Document new module.
9622         Reported by Bruno Haible.
9623
9624 2011-06-06  Bruno Haible  <bruno@clisp.org>
9625
9626         spawn-pipe tests: Rename program.
9627         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9628         * tests/test-spawn-pipe-child.c: Update comment.
9629         * tests/test-spawn-pipe.sh: Update.
9630         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9631
9632         spawn-pipe tests: Link the child program only against libc.
9633         * tests/test-spawn-pipe-child.c: New file, extracted from
9634         tests/test-spawn-pipe.c.
9635         (main): Expect only one argument.
9636         (is_open): New function, copied from tests/test-pipe.c.
9637         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9638         (child_main): Remove function.
9639         (test_pipe): Pass only one argument to the child program.
9640         (main): Remove child process code. Expect the child program's name as
9641         first argument.
9642         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9643         argument.
9644         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9645         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9646         test-spawn-pipe-child against no libraries.
9647
9648 2011-06-06  Bruno Haible  <bruno@clisp.org>
9649
9650         careadlinkat: Avoid mismatch between ssize_t and int.
9651         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9652         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9653
9654 2011-06-06  Jim Meyering  <meyering@redhat.com>
9655
9656         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9657         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9658         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9659
9660 2011-06-05  Bruno Haible  <bruno@clisp.org>
9661
9662         ansi-c++-opt: Interoperability with libtool.
9663         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9664         set the variable to "no", not to ":".
9665         * NEWS: Mention the change.
9666
9667 2011-06-05  Bruno Haible  <bruno@clisp.org>
9668
9669         acl: Fix test failure on AIX 7.
9670         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9671         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9672
9673 2011-06-05  Bruno Haible  <bruno@clisp.org>
9674
9675         pipe-filter-ii: Fix test failure on AIX and IRIX.
9676         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9677         with EAGAIN, retry with a smaller buffer size.
9678
9679 2011-06-05  Bruno Haible  <bruno@clisp.org>
9680
9681         localename: Fix link dependencies.
9682         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9683         * modules/localename-tests (Makefile.am): Link test-localename with
9684         $(LIBTHREAD).
9685
9686 2011-06-05  Bruno Haible  <bruno@clisp.org>
9687
9688         error: Avoid gcc warning.
9689         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9690
9691 2011-06-05  Bruno Haible  <bruno@clisp.org>
9692
9693         unsetenv: Avoid gcc warning.
9694         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9695
9696 2011-06-05  Bruno Haible  <bruno@clisp.org>
9697
9698         setenv: Avoid gcc warning.
9699         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9700
9701 2011-06-05  Bruno Haible  <bruno@clisp.org>
9702
9703         sys_select: Ensure memset is declared also on AIX 7.
9704         * lib/sys_select.in.h: Include <string.h> also on AIX.
9705         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9706         self-contained also on AIX 7.1.
9707
9708 2011-06-04  Jim Meyering  <meyering@redhat.com>
9709
9710         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9711         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9712         function name, "error".
9713         (_gl_translatable_diag_func_re): New configurable variable.
9714
9715 2011-06-04  Bruno Haible  <bruno@clisp.org>
9716
9717         getopt: Avoid gcc warning.
9718         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9719
9720 2011-06-04  Bruno Haible  <bruno@clisp.org>
9721
9722         strerror_r: Fix comments.
9723         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9724         commit.
9725
9726 2011-06-04  Bruno Haible  <bruno@clisp.org>
9727
9728         perror: Fix compilation error.
9729         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9730         Undefine fprintf, not sprintf.
9731         * modules/perror (Depends-on): Remove intprops, verify.
9732
9733 2011-06-04  Bruno Haible  <bruno@clisp.org>
9734
9735         setlocale: Enable replacement on Cygwin 1.5.
9736         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9737         Cygwin 1.5.x.
9738         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9739         LC_CTYPE category also exists on Cygwin 1.5.x.
9740
9741 2011-06-04  Bruno Haible  <bruno@clisp.org>
9742
9743         strerror-override: Don't disable symbol renamings.
9744         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9745         * lib/strerror-override.c: Include config.h.
9746         (strerror_override): Don't undefine.
9747
9748 2011-06-03  Bruno Haible  <bruno@clisp.org>
9749
9750         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9751         * lib/localename.h: Update copyright header.
9752         * lib/localename.c: Likewise.
9753         * lib/relocatable.h: Likewise.
9754         * lib/relocatable.c: Likewise.
9755
9756 2011-06-02  Bruno Haible  <bruno@clisp.org>
9757
9758         doc: Fix a module name.
9759         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9760
9761 2011-06-02  Bruno Haible  <bruno@clisp.org>
9762
9763         pipe2: Remove dependency on 'nonblocking' module.
9764         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9765         O_NONBLOCK is defined by gnulib.
9766         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9767         is zero.
9768         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9769         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9770         defined by gnulib.
9771         (get_nonblocking_flag): New function.
9772         (main): Test O_NONBLOCK flag only if it is nonzero.
9773         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9774
9775 2011-06-03  Jim Meyering  <meyering@redhat.com>
9776
9777         maint: three new prohibit-header-without-use rules
9778         Prohibit use of cloexec.h, posixver.h, same.h without use.
9779         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9780         (sc_prohibit_posixver_without_use): Likewise.
9781         (sc_prohibit_same_without_use): Likewise.
9782
9783 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9784
9785         allocator: 'die' routine is now given requested size
9786         * lib/allocator.h (struct allocator.die): New size arg.
9787         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9788         If the actual problem is an ssize_t limitation, not a size_t or
9789         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9790
9791 2011-06-01  Eric Blake  <eblake@redhat.com>
9792
9793         strerror: drop strerror_r dependency
9794         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9795         * lib/strerror-override.c (strerror_override): ...to new file.
9796         * lib/strerror-override.h: Add prototype.
9797         * lib/strerror-impl.h: Delete.
9798         * lib/strerror.c (strerror): New implementation.
9799         * modules/errno (Files): Add new files.
9800         (configure.ac): Compile new file as appropriate.
9801         * modules/strerror (Files): Drop unused file.
9802         (Depends-on): Drop strerror_r-posix.
9803         * MODULES.html.sh: Document strerror_r-posix.
9804         Requested by Sam Steingold.
9805
9806         perror: call strerror_r directly
9807         * modules/perror (Files): Drop strerror-impl.h.
9808         * lib/perror.c (perror): Use our own stack buffer, rather than
9809         calling a wrapper that uses static storage.
9810         * doc/posix-functions/perror.texi (perror): Document a limitation
9811         of our replacement.
9812
9813         strerror_r: fix includes for FreeBSD
9814         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9815         since we use abort on some platforms.
9816         Reported by Matthias Bolte.
9817
9818 2011-05-31  Bruno Haible  <bruno@clisp.org>
9819
9820         Fix link errors in tests: openat-die uses gettext-h.
9821         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9822         against $(LIBINTL).
9823         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9824         against $(LIBINTL).
9825         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9826         $(LIBINTL).
9827         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9828         against $(LIBINTL).
9829         * modules/linkat-tests (Makefile.am): Link test-linkat against
9830         $(LIBINTL).
9831         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9832         $(LIBINTL).
9833         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9834         against $(LIBINTL).
9835         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9836         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9837         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9838         $(LIBINTL).
9839         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9840         $(LIBINTL).
9841         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9842         $(LIBINTL).
9843         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9844
9845 2011-05-31  Bruno Haible  <bruno@clisp.org>
9846
9847         Fix link errors in tests: wait-process uses gettext-h.
9848         * modules/nonblocking-pipe-tests (Makefile.am): Set
9849         test_nonblocking_pipe_main_LDADD.
9850         * modules/nonblocking-socket-tests (Makefile.am): Link
9851         test-nonblocking-socket-main against $(LIBINTL).
9852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9853
9854 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9855
9856         assert-h: work around 'verify' incompatibility
9857         * lib/verify.h: Use @...@ directives, not ifdef.
9858         * modules/assert-h (assert.h): Implement the directives.
9859         (assert.h): Substitute the symbol-prefix more consistently.
9860
9861 2011-05-29  Jim Meyering  <meyering@redhat.com>
9862
9863         trim: remove three superfluous assignments
9864         * lib/trim.c (trim2): Remove three superfluous assignments
9865         and correct brace positioning.
9866
9867 2011-05-29  Bruno Haible  <bruno@clisp.org>
9868
9869         wctype-h: Avoid namespace pollution on Solaris 2.6.
9870         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9871         identifiers.
9872         * doc/posix-headers/wctype.texi: Mention the problem.
9873         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9874
9875 2011-05-28  Jim Meyering  <meyering@redhat.com>
9876
9877         parse-datetime.y: accommodate -Wstrict-overflow
9878         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9879         placate -Wstrict-overflow.
9880
9881         trim: avoid a warning from -O2 -Wstrict-overflow
9882         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9883
9884 2011-05-29  Bruno Haible  <bruno@clisp.org>
9885
9886         gnulib-tool: Fix bug in yesterday's commit.
9887         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9888         twice.
9889
9890 2011-05-29  Bruno Haible  <bruno@clisp.org>
9891
9892         Allow multiple gnulib generated include files to be combined.
9893         * gnulib-tool (func_compute_include_guard_prefix): New function.
9894         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9895         ${gl_include_guard_prefix} references.
9896         (func_import, func_create_testdir): Invoke
9897         func_compute_include_guard_prefix.
9898         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9899         * lib/ctype.in.h: Likewise.
9900         * lib/dirent.in.h: Likewise.
9901         * lib/errno.in.h: Likewise.
9902         * lib/fcntl.in.h: Likewise.
9903         * lib/float.in.h: Likewise.
9904         * lib/getopt.in.h: Likewise.
9905         * lib/iconv.in.h: Likewise.
9906         * lib/langinfo.in.h: Likewise.
9907         * lib/locale.in.h: Likewise.
9908         * lib/math.in.h: Likewise.
9909         * lib/netdb.in.h: Likewise.
9910         * lib/netinet_in.in.h: Likewise.
9911         * lib/poll.in.h: Likewise.
9912         * lib/pthread.in.h: Likewise.
9913         * lib/pty.in.h: Likewise.
9914         * lib/sched.in.h: Likewise.
9915         * lib/se-selinux.in.h: Likewise.
9916         * lib/search.in.h: Likewise.
9917         * lib/signal.in.h: Likewise.
9918         * lib/spawn.in.h: Likewise.
9919         * lib/stdarg.in.h: Likewise.
9920         * lib/stddef.in.h: Likewise.
9921         * lib/stdint.in.h: Likewise.
9922         * lib/stdio.in.h: Likewise.
9923         * lib/stdlib.in.h: Likewise.
9924         * lib/string.in.h: Likewise.
9925         * lib/strings.in.h: Likewise.
9926         * lib/sys_file.in.h: Likewise.
9927         * lib/sys_ioctl.in.h: Likewise.
9928         * lib/sys_select.in.h: Likewise.
9929         * lib/sys_socket.in.h: Likewise.
9930         * lib/sys_stat.in.h: Likewise.
9931         * lib/sys_time.in.h: Likewise.
9932         * lib/sys_times.in.h: Likewise.
9933         * lib/sys_uio.in.h: Likewise.
9934         * lib/sys_utsname.in.h: Likewise.
9935         * lib/sys_wait.in.h: Likewise.
9936         * lib/sysexits.in.h: Likewise.
9937         * lib/termios.in.h: Likewise.
9938         * lib/time.in.h: Likewise.
9939         * lib/unistd.in.h: Likewise.
9940         * lib/wchar.in.h: Likewise.
9941         * lib/wctype.in.h: Likewise.
9942         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9943         * modules/ctype (Makefile.am): Likewise.
9944         * modules/dirent (Makefile.am): Likewise.
9945         * modules/errno (Makefile.am): Likewise.
9946         * modules/fcntl-h (Makefile.am): Likewise.
9947         * modules/float (Makefile.am): Likewise.
9948         * modules/getopt-posix (Makefile.am): Likewise.
9949         * modules/iconv-h (Makefile.am): Likewise.
9950         * modules/langinfo (Makefile.am): Likewise.
9951         * modules/locale (Makefile.am): Likewise.
9952         * modules/math (Makefile.am): Likewise.
9953         * modules/netdb (Makefile.am): Likewise.
9954         * modules/netinet_in (Makefile.am): Likewise.
9955         * modules/poll-h (Makefile.am): Likewise.
9956         * modules/pthread (Makefile.am): Likewise.
9957         * modules/pty (Makefile.am): Likewise.
9958         * modules/sched (Makefile.am): Likewise.
9959         * modules/search (Makefile.am): Likewise.
9960         * modules/selinux-h (Makefile.am): Likewise.
9961         * modules/signal (Makefile.am): Likewise.
9962         * modules/spawn (Makefile.am): Likewise.
9963         * modules/stdarg (Makefile.am): Likewise.
9964         * modules/stddef (Makefile.am): Likewise.
9965         * modules/stdint (Makefile.am): Likewise.
9966         * modules/stdio (Makefile.am): Likewise.
9967         * modules/stdlib (Makefile.am): Likewise.
9968         * modules/string (Makefile.am): Likewise.
9969         * modules/strings (Makefile.am): Likewise.
9970         * modules/sys_file (Makefile.am): Likewise.
9971         * modules/sys_ioctl (Makefile.am): Likewise.
9972         * modules/sys_select (Makefile.am): Likewise.
9973         * modules/sys_socket (Makefile.am): Likewise.
9974         * modules/sys_stat (Makefile.am): Likewise.
9975         * modules/sys_time (Makefile.am): Likewise.
9976         * modules/sys_times (Makefile.am): Likewise.
9977         * modules/sys_uio (Makefile.am): Likewise.
9978         * modules/sys_utsname (Makefile.am): Likewise.
9979         * modules/sys_wait (Makefile.am): Likewise.
9980         * modules/sysexits (Makefile.am): Likewise.
9981         * modules/termios (Makefile.am): Likewise.
9982         * modules/time (Makefile.am): Likewise.
9983         * modules/unistd (Makefile.am): Likewise.
9984         * modules/wchar (Makefile.am): Likewise.
9985         * modules/wctype-h (Makefile.am): Likewise.
9986         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9987
9988 2011-05-29  Bruno Haible  <bruno@clisp.org>
9989
9990         assert-h: Allow multiple gnulib generated replacements to coexist.
9991         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9992
9993 2011-05-29  Bruno Haible  <bruno@clisp.org>
9994
9995         argp: Allow coexistence with strerror_r-posix module.
9996         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9997         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9998         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9999         not the glibc signature.
10000
10001 2011-05-28  Bruno Haible  <bruno@clisp.org>
10002
10003         gnulib-tool: Alternative structure of testdirs, similar to --import.
10004         * gnulib-tool: New option --single-configure.
10005         (func_usage): Document it.
10006         (single_configure): New variable.
10007         (func_modules_transitive_closure_separately,
10008         func_modules_transitive_closure_separately,
10009         func_determine_use_libtests, func_modules_add_dummy_separately,
10010         func_modules_to_filelist_separately): New functions, extracted from
10011         func_import.
10012         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10013         (func_import): Use the new functions.
10014         (func_create_testdir): Set final_modules. Handle $single_configure =
10015         true case.
10016
10017 2011-05-28  Bruno Haible  <bruno@clisp.org>
10018
10019         getloadavg: Remove an unreliable safety check.
10020         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10021         getloadavg.c is in place.
10022         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10023         Reported by Sam Steingold <sds@gnu.org>.
10024
10025 2011-05-28  Bruno Haible  <bruno@clisp.org>
10026
10027         doc: Cleanup yet another file produced by texinfo.tex.
10028         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10029
10030 2011-05-28  Bruno Haible  <bruno@clisp.org>
10031
10032         Finish the conditional dependencies mechanism.
10033         * gnulib-tool: New option --no-conditional-dependencies.
10034         (func_usage): Document it. Don't mark --conditional-dependencies as
10035         experimental.
10036         (cond_dependencies): The possible values can now be true, false, empty.
10037         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10038         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10039         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10040
10041 2011-05-28  Bruno Haible  <bruno@clisp.org>
10042
10043         doc: Use a recent texinfo.tex.
10044         * doc/Makefile (tex_opts): New variable.
10045         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10046
10047 2011-05-28  Jim Meyering  <meyering@redhat.com>
10048
10049         intprops.h: adjust comment to match code change
10050         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10051         only once, it *may* have side effects.  Also fix an unrelated typo.
10052         (_GL_INT_SIGNED): Likewise.
10053
10054 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10055
10056         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10057
10058 2011-05-26  Bruno Haible  <bruno@clisp.org>
10059
10060         mbsrchr: Avoid collision with system function on Interix.
10061         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10062         Reported by Markus Duft <mduft@gentoo.org>.
10063
10064 2011-05-15  James Youngman  <jay@gnu.org>
10065
10066         getopt: for ambiguous options, enumerate the possibilities.
10067         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10068         the ambiguous options when an ambiguous prefix is given. This was
10069         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10070         glibc change was
10071         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10072
10073 2011-05-25  Eric Blake  <eblake@redhat.com>
10074
10075         getcwd: work around mingw bug
10076         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10077         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10078         Reported by Matthias Bolte.
10079
10080 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10081
10082         test-intprops: disable -Wtype-limits diagnostics
10083         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10084         diagnostics.  Otherwise, the integer overflow macros generate many
10085         diagnostics.  Reported by Jim Meyering in
10086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10087
10088         intprops: shorten, to pacify gcc -Woverlength-strings
10089         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10090         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10091         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10092         likely to run afoul of C compiler limits for string constant lengths.
10093         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10094
10095 2011-05-24  Eric Blake  <eblake@redhat.com>
10096
10097         docs: document recently fixed glibc printf bug
10098         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10099         * doc/posix-functions/printf.texi (printf): Likewise.
10100         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10101         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10102
10103         closein-tests: convert to init.sh
10104         * modules/closein-tests (Files): Add init.sh
10105         * tests/test-closein.sh Use it.
10106
10107         yesno-tests: convert to init.sh
10108         * modules/yesno-tests (Files): Add init.sh.
10109         * tests/test-yesno.sh: Use it.
10110
10111         atexit-tests: ensure reliable exit status
10112         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10113         Reported by Bruno Haible.
10114
10115 2011-05-24  Bruno Haible  <bruno@clisp.org>
10116
10117         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10118         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10119         gl_PREREQ_STRERROR_R invocations from here...
10120         * modules/strerror_r-posix (configure.ac): ... to here.
10121
10122 2011-05-24  Eric Blake  <eblake@redhat.com>
10123
10124         strerror_r: fix missing header
10125         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10126
10127         strerror_r: fix AIX test failures
10128         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10129         ERANGE failure.
10130
10131         strerror_r: fix Solaris test failures
10132         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10133         failures.
10134         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10135
10136         strerror_r: enforce POSIX recommendations
10137         * lib/strerror_r.c (safe_copy): New helper method.
10138         (strerror_r): Guarantee a non-empty string.
10139         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10140         recent POSIX rulings and to match our strerror guarantees.
10141         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10142
10143 2011-05-24  Jim Meyering  <meyering@redhat.com>
10144
10145         test-perror2.c: avoid warning about unused variable
10146         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10147
10148 2011-05-24  Eric Blake  <eblake@redhat.com>
10149
10150         perror: avoid spurious test failure on HP-UX
10151         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10152
10153         tests: fix logic bug in init.sh
10154         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10155         shell.
10156
10157 2011-05-24  Jim Meyering  <meyering@redhat.com>
10158
10159         utimensat: do not reference an out-of-scope buffer
10160         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10161         declared in an inner scope, yet "times" would be dereferenced outside
10162         the scope in which "ts" was valid.
10163         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10164         of ts[2] "out/up", so that the use of aliased "times" (via
10165         "times = ts;") does not end up referencing an out-of-scope "ts"
10166
10167         opendir-safer.c: don't clobber errno; don't close negative FD
10168         * lib/opendir-safer.c (opendir_safer):
10169         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10170         file descriptor, and more importantly, don't clobber the
10171         offending errno value with EINVAL.  Before, upon failure
10172         of dup_safer, we would pass the negative file descriptor to
10173         fdopendir, which would clobber errno.
10174
10175 2011-05-23  Bruno Haible  <bruno@clisp.org>
10176
10177         idcache: Fix module description.
10178         * modules/idcache (Include): Set to "idcache.h".
10179
10180 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10181
10182         gnulib-tool: fix portability problem with MacOS sed
10183         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10184         before the "}".  Problem reported by Leo in
10185         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10186         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10187         sed_extract_condition1, sed_extract_condition2.
10188
10189 2011-05-23  Bruno Haible  <bruno@clisp.org>
10190
10191         hash: Simplify autoconf macro.
10192         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10193
10194 2011-05-23  Bruno Haible  <bruno@clisp.org>
10195
10196         getugroups: Fix module description.
10197         * modules/getugroups (Include): Set to "getugroups.h".
10198
10199 2011-05-23  Bruno Haible  <bruno@clisp.org>
10200
10201         linkat: Simplify autoconf macro.
10202         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10203
10204 2011-05-23  Bruno Haible  <bruno@clisp.org>
10205             Eric Blake  <eblake@redhat.com>
10206
10207         linkat, renameat: Update dependencies.
10208         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10209         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10210         symlinkat.
10211
10212 2011-05-23  Jim Meyering  <meyering@redhat.com>
10213
10214         maint.mk: more tight_scope improvements
10215         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10216         (_gl_TS_headers): Define only in if-0'd block.
10217         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10218         sometimes we must *not* use it.  Adjust uses accordingly.
10219         (sc_tight_scope): Use much simpler grep-based test to determine
10220         whether we skip this rule.
10221
10222         maint.mk: generalize/improve the tight-scope rule
10223         * top/maint.mk: Emit a warning when the test is skipped.
10224         (_gl_TS_dir): Add $(srcdir)/ prefix.
10225         (_gl_TS_function_match): Simplify, rather than trying
10226         to enumerate common types.  Otherwise, it would fail to match an
10227         "extern unsigned char const *" declaration in idutils.
10228         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10229         a way to support use of that type of macro.
10230         (_gl_TS_var_match): Simplify regexp.
10231         (_gl_TS_obj_files): New configurable variable.
10232         (_gl_TS_headers): Likewise.
10233
10234 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10235
10236         verify: fix bug when gnulib <assert.h> is also included
10237         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10238         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10239         Perhaps there's a better way, but this fixes the immediate problem.
10240         Problem reported by Bruno Haible in
10241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10242
10243 2011-05-22  Bruno Haible  <bruno@clisp.org>
10244
10245         xgetcwd: Simplify autoconf macro.
10246         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10247
10248 2011-05-22  Bruno Haible  <bruno@clisp.org>
10249
10250         New module 'mktime-internal'.
10251         * modules/mktime-internal: New file.
10252         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10253         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10254         mktime_internal as a C macro if libc has __mktime_internal.
10255         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10256         conditions.
10257         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10258
10259 2011-05-22  Bruno Haible  <bruno@clisp.org>
10260
10261         timegm: Correct mktime replacement statements.
10262         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10263         defining mktime as a C macro. This completes a 2009-07-28 commit.
10264
10265 2011-05-22  Bruno Haible  <bruno@clisp.org>
10266
10267         timegm: Simplify autoconf macro.
10268         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10269
10270 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10271
10272         clock-time: change to LGPLv2+.
10273         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10274         BSD-like but we have no mark for that; this is good enough for now.
10275
10276 2011-05-21  Bruno Haible  <bruno@clisp.org>
10277
10278         strerror_r: Fix comments.
10279         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10280
10281 2011-05-21  Bruno Haible  <bruno@clisp.org>
10282
10283         relocatable-prog-wrapper: Fix possible link error.
10284         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10285         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10286         (gl_FUNC_SETENV): ... to here.
10287         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10288         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10289
10290 2011-05-21  Bruno Haible  <bruno@clisp.org>
10291
10292         relocatable-prog-wrapper: Assume strerror() exists.
10293         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10294         m4/strerror.m4.
10295         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10296         * lib/relocwrapper.c: Remove mention of strerror module.
10297         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10298         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10299         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10300         C macro.
10301
10302 2011-05-21  Bruno Haible  <bruno@clisp.org>
10303
10304         select: Simplify replacement idiom.
10305         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10306         Win32 platforms.
10307         * lib/sys_select.in.h (select): Simplify accordingly.
10308         * modules/select (Depends-on): Likewise.
10309
10310 2011-05-21  Bruno Haible  <bruno@clisp.org>
10311
10312         mkdir-p: Simplify autoconf macro.
10313         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10314         gl_FUNC_LCHOWN.
10315
10316 2011-05-21  Eric Blake  <eblake@redhat.com>
10317
10318         strerror_r: avoid clobbering strerror on cygwin
10319         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10320         fall back instead to sys_errlist.
10321         * modules/strerror (configure.ac): Add witness.
10322         * tests/test-strerror_r.c (main): Enhance test.
10323         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10324         * tests/test-perror2.c (main): Free memory before exit.
10325
10326 2011-05-21  Bruno Haible  <bruno@clisp.org>
10327
10328         mkdtemp: Use gnulib naming conventions.
10329         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10330         * modules/mkdtemp (configure.ac): Update.
10331
10332 2011-05-20  Eric Blake  <eblake@redhat.com>
10333
10334         strerror_r: avoid corrupting errno on Solaris
10335         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10336         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10337
10338         strerror_r: avoid compiler warning
10339         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10340
10341         strerror_r: simplify AIX code
10342         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10343
10344         test-perror: avoid spurious failure on FreeBSD
10345         * modules/perror-tests (Depends-on): Add strerror, now that
10346         strerror_r no longer pulls it in.
10347
10348 2011-05-20  Bruno Haible  <bruno@clisp.org>
10349
10350         strerror_r-posix: Remove unused dependencies.
10351         * modules/strerror_r-posix (Depends-on): Remove strerror.
10352         Reported by Eric Blake.
10353
10354 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10355
10356         intprops: remove assumption about A|B representation
10357         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10358         is a valid integer if both A and B are.  Although this is true for
10359         all known practical hosts, the C standard doesn't guarantee it,
10360         and the code need not assume it.  Also, this change may work around
10361         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10363
10364 2011-05-20  Eric Blake  <eblake@redhat.com>
10365
10366         perror: work around FreeBSD bug
10367         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10368         is broken.  Move AC_LIBOBJ...
10369         * modules/perror (configure.ac): Here.
10370         * doc/posix-functions/perror.texi (perror): Document this.
10371         * tests/test-perror2.c (main): Enhance test.
10372
10373         test-perror: check for strerror interactions
10374         * tests/macros.h (STREQ): Add macro.
10375         * modules/perror-tests (Files): Add second test.
10376         * tests/test-perror2.c (main): New file.
10377         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10378
10379         test-perror: rewrite to use init script
10380         * modules/perror-tests (Files): Add init.sh.
10381         * tests/test-perror.sh: Use temporary directory.
10382
10383 2011-05-20  Jim Meyering  <meyering@redhat.com>
10384
10385         maint: replace misused "a" with "an"
10386         * doc/intprops.texi: "a integer"
10387         * doc/regex.texi: "a explanation"
10388         * lib/alignof.h: "a object"
10389         * lib/argmatch.h: "a explanation"
10390         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10391         * lib/stdint.in.h: "a integer"
10392         * lib/userspec.c: "a owner"
10393         * doc/gnulib.texi: Fix "a idea", and reword.
10394
10395 2011-05-19  Jim Meyering  <meyering@redhat.com>
10396
10397         maint: correct misuse of "a" and "an"
10398         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10399         * lib/argp-help.c: "an docum...": s/an/a/
10400         * lib/argp-parse.c: "An vector": s/An/A/
10401         * lib/execute.c: "an native": s/an/a/
10402         * lib/spawn-pipe.c: Likewise.
10403         * lib/gc.h: "an Gc_rc": s/an/a/
10404         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10405         * lib/fts.c: "an stat.st_dev": s/an/a/
10406
10407 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10408
10409         intprops-tests: work around HP-UX 11.23 cc bug with constants
10410         * tests/test-intprops.c (VERIFY): New macro.
10411         (main): Use it, instead of verify, to work around the compiler bug; see
10412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10413
10414         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10415         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10416         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10417         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10418         (_GL_REMAINDER_OVERFLOW): Use it.
10419
10420         intprops-tests: revert unsigned part of previous change
10421         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10422         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10423         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10425
10426 2011-05-19  Bruno Haible  <bruno@clisp.org>
10427
10428         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10429         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10430         strerror_r() returned without filling the buffer.
10431         Reported by Eric Blake.
10432
10433 2011-05-19  Eric Blake  <eblake@redhat.com>
10434
10435         strerror_r: guarantee unchanged errno
10436         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10437         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10438         failure.
10439         * tests/test-strerror_r.c (main): Enhance test.
10440
10441 2011-05-19  Bruno Haible  <bruno@clisp.org>
10442
10443         strerror_r: Reorder #if blocks.
10444         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10445         for consistency with the previous commit.
10446
10447 2011-05-19  Bruno Haible  <bruno@clisp.org>
10448
10449         perror: Avoid clobbering the strerror buffer when possible.
10450         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10451         * lib/strerror.c: Include it.
10452         * modules/strerror (Files): Add lib/strerror-impl.h.
10453         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10454         (my_strerror): New function, defined through lib/strerror-impl.h.
10455         (perror): Use it instead of strerror.
10456         * modules/perror (Files): Add lib/strerror-impl.h.
10457         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10458
10459 2011-05-19  Eric Blake  <eblake@redhat.com>
10460
10461         strerror_r: fix on newer cygwin
10462         * lib/strerror_r.c (strerror_r): Cygwin now has
10463         __xpg_strerror_r, use it.
10464
10465 2011-05-19  Bruno Haible  <bruno@clisp.org>
10466
10467         strerror_r: Avoid clobbering the strerror buffer when possible.
10468         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10469         (sys_nerr, sys_errlist): New declarations.
10470         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10471         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10472         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10473
10474 2011-05-19  Bruno Haible  <bruno@clisp.org>
10475
10476         strerror_r: Fix test failure on mingw.
10477         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10478         EXTEND_STRERROR_R.
10479         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10480         macros from errno.in.h instead.
10481
10482 2011-05-19  Eric Blake  <eblake@redhat.com>
10483
10484         strerror: relax test for Solaris
10485         * tests/test-strerror.c (main): Permit Solaris behavior.
10486         * tests/test-strerror_r.c (main): Likewise.
10487
10488         strerror: enforce POSIX ruling on strerror(0)
10489         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10490         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10491         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10492         * doc/posix-functions/strerror.texi (strerror): Document it.
10493         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10494         * tests/test-strerror.c (main): Strengthen test.
10495         * tests/test-strerror_r.c (main): Likewise.
10496
10497 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10498
10499         intprop-tests: port to older and more-pedantic compilers
10500         * modules/intprops-tests (Files): Add tests/macros.h.
10501         * tests/test-intprops.c: Include macros.h.
10502         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10503         it's no longer documented to expand to an integer constant expression.
10504         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10505         argument is floating point, as it's no longer documented to expand
10506         to an integer constant expression in that case.
10507         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10508         compiler bugs reported by Bruno Haible.  See
10509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10510         (U0, U1): New constants, to work around the same bugs.  Also,
10511         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10512
10513         intprops: work around C compiler bugs
10514         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10515         bug in Sun C 5.11 2010/08/13 and other compilers; see
10516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10517
10518         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10519         * doc/intprops.texi (Integer Type Determination): Fix
10520         documentation for TYPE_IS_INTEGER: it returns an constant
10521         expression, not an integer constant expression.  Fix doc for
10522         TYPE_SIGNED: it returns an integer constant expression only if its
10523         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10524         hardly worth documented that way....)
10525
10526 2011-05-18  Bruno Haible  <bruno@clisp.org>
10527
10528         strerror_r: Avoid clobbering the strerror buffer when possible.
10529         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10530         Handle gnulib defined errno values here. When strerror() returns NULL
10531         or an empty string, return EINVAL.
10532         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10533         gnulib defined errno values here.
10534         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10535
10536 2011-05-18  Eric Blake  <eblake@redhat.com>
10537
10538         fnmatch: avoid compiler warning
10539         * lib/fnmatch_loop.c (FCT): Use correct type.
10540         Reported by Matthias Bolte.
10541
10542 2011-05-13  Jim Meyering  <meyering@redhat.com>
10543
10544         maint.mk: three new prohibit_<HDR>_without_use rules
10545         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10546         (sc_prohibit_stdio-safer_without_use): Likewise.
10547         (sc_prohibit_xfreopen_without_use): Likewise.
10548
10549 2011-05-17  Jim Meyering  <meyering@redhat.com>
10550
10551         announce-gen: fail if the NEWS delta is empty
10552         If there's nothing noteworthy in NEWS, then either you forgot
10553         or you shouldn't be releasing.
10554         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10555
10556 2011-05-17  Pádraig Brady <P@draigBrady.com>
10557
10558         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10559         reserved symbols starting with double underscore from the check.
10560
10561 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10562
10563         intprops: add doc
10564         * doc/intprops.texi: New file, documenting intprops.
10565         * doc/gnulib.texi (Particular Modules): Include it.
10566
10567         verify: add doc to gnulib manual and fix example
10568         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10569         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10570         (Compile-time Assertions): Fix example so it can't overflow.
10571
10572 2011-05-17  Jim Meyering  <meyering@redhat.com>
10573
10574         warnings.m4: don't usurp save_CPPFLAGS variable name
10575         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10576
10577         doc: fix typo
10578         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10579
10580 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10581             Bruno Haible  <bruno@clisp.org>
10582
10583         doc: Tweak recent change.
10584         * README (Portability guidelines): Tweak new text.
10585         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10586         Interix 6.1.
10587
10588 2011-05-16  Eric Blake  <eblake@redhat.com>
10589
10590         inttypes: avoid autoconf warning
10591         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10592         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10593
10594 2011-05-16  Sam Steingold <sds@gnu.org>
10595         and Eric Blake  <eblake@redhat.com>
10596
10597         vc-list-files: accept multiple directory operands
10598         * build-aux/vc-list-files: Iterate over all remaining operands.
10599
10600 2011-05-16  Bruno Haible  <bruno@clisp.org>
10601
10602         Fix confusion regarding deprecated modules.
10603         * modules/calloc (Status, Notice): Mark module as deprecated, not
10604         obsolete.
10605         * modules/fnmatch-posix (Status, Notice): Likewise.
10606         * modules/getdate (Status, Notice): Likewise.
10607         * modules/getopt (Status, Notice): Likewise.
10608         * modules/malloc (Status, Notice): Likewise.
10609         * modules/pipe (Status, Notice): Likewise.
10610         * modules/realloc (Status, Notice): Likewise.
10611         * modules/rename-dest-slash (Status, Notice): Likewise.
10612         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10613         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10614         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10615         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10616         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10617
10618 2011-05-16  Bruno Haible  <bruno@clisp.org>
10619
10620         doc: List the target platforms.
10621         * doc/gnulib-intro.texi (Target Platforms): New section.
10622         * doc/gnulib.texi (Introduction): Update menu.
10623         * README (Portability guidelines): Refer to the new section. Update
10624         statement about oldest supported environment. Remove rationale why
10625         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10626         unportable C89 function.
10627         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10628         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10629
10630 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10631
10632         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10633
10634 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10635
10636         intprops-tests: new module
10637         * modules/intprops-tests, tests/test-intprops.c: New files.
10638
10639         intprops: add safe, portable integer overflow checking
10640         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10641         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10642         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10643         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10644         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10645         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10646         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10647         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10648         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10649         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10650         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10651
10652 2011-05-12  James Youngman  <jay@gnu.org>
10653
10654         Add a test for glibc's Bugzilla bug #12378.
10655         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10656         doesn't allow the literal matching of a lone "[" (which is
10657         required by POSIX).
10658         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10659
10660 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10661
10662         Sync glibc change fixing Bugzilla bug #12378.
10663         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10664         beginning and fall back to matching as normal character if the
10665         string ends before the matching ']' is found.  This is what POSIX
10666         requires.
10667
10668 2011-05-13  Eric Blake  <eblake@redhat.com>
10669
10670         getcwd-lgpl: relax test for FreeBSD
10671         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10672         issue.
10673         * tests/test-getcwd-lgpl.c (main): Relax test.
10674         Reported by Matthias Bolte.
10675
10676 2011-05-11  Eric Blake  <eblake@redhat.com>
10677
10678         test-fflush: silence compiler warning
10679         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10680
10681 2011-05-11  Bruno Haible  <bruno@clisp.org>
10682
10683         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10684         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10685         * modules/canonicalize (Depends-on): Add 'nocrash'.
10686         * modules/canonicalize-lgpl (Depends-on): Likewise.
10687         * doc/posix-functions/realpath.texi: Update platforms list.
10688         Reported by Ryan Schmidt <ryandesign@macports.org>.
10689
10690 2011-05-11  Bruno Haible  <bruno@clisp.org>
10691
10692         group-member: Declare function in <unistd.h>.
10693         * lib/unistd.in.h (group_member): New declaration.
10694         * lib/group-member.h: Remove file.
10695         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10696         * tests/test-unistd-c++.cc: Check signature of group_member.
10697         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10698         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10699         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10700         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10701         HAVE_GROUP_MEMBER.
10702         * modules/group-member (Files): Remove lib/group-member.h.
10703         (Depends-on): Add unistd. Specify conditions.
10704         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10705         (Include): Change to <unistd.h>.
10706         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10707         HAVE_GROUP_MEMBER.
10708         * NEWS: Mention the change.
10709         * lib/euidaccess.c: Don't include group-member.h.
10710
10711 2011-05-11  Bruno Haible  <bruno@clisp.org>
10712
10713         group-member: Document module.
10714         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10715         module.
10716
10717 2011-05-11  Bruno Haible  <bruno@clisp.org>
10718
10719         fclose: Fix mistake earlier today.
10720         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10721
10722 2011-05-11  Eric Blake  <eblake@redhat.com>
10723
10724         fclose: preserve fflush errors
10725         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10726         Reported by Jim Meyering.
10727
10728         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10729         * build-aux/bootstrap (check_versions): When no specific version
10730         is required, merely check that the app produces an exit status
10731         that indicates its existence.
10732
10733         maint.mk: drop redundant check
10734         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10735         the same but better.
10736
10737 2011-05-11  Bruno Haible  <bruno@clisp.org>
10738
10739         fclose: Fix possible link error.
10740         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10741         unregister_shadow_fd. Improve comments.
10742         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10743         Eric Blake.
10744
10745 2011-05-11  Jim Meyering  <meyering@redhat.com>
10746
10747         maint.mk: improve "can not" detection and generalize rule name
10748         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10749         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10750         Use the same technique as in sc_prohibit_doubled_word, so that
10751         we recognize "can not" also when the words are separated by a newline.
10752         Suggested by Eric Blake.
10753         (perl_filename_lineno_text_): Define.  Factored out of...
10754         (prohibit_doubled_word_): ...here.  Use the new definition.
10755         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10756         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10757         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10758
10759 2011-05-10  Eric Blake  <eblake@redhat.com>
10760
10761         fclose: avoid double close race when possible
10762         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10763         all but WINDOWS_SOCKETS.
10764
10765 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10766
10767         openat: correct new comment
10768         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10769
10770 2011-05-10  Jim Meyering  <meyering@redhat.com>
10771
10772         openat: add comments
10773         * lib/openat-proc.c (openat_proc_name): Add comments,
10774         mostly from Eric Blake.
10775
10776 2011-05-09  Eric Blake  <eblake@redhat.com>
10777
10778         openat: reduce syscalls in first probe of /proc
10779         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10780         be a directory.  Simplify the probe for .. bugs.
10781         * modules/openat (Depends-on): Drop same-inode.
10782         Reported by Bastien ROUCARIES.
10783
10784 2011-05-09  Jim Meyering  <meyering@redhat.com>
10785
10786         maint.mk: change semantics/name of tight_scope variables
10787         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10788         Rename variables to align with semantics that make them more useful.
10789
10790         maint.mk: tweak new rule's name not to impinge
10791         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10792         (sc_tight_scope): Use new rule name rather than $@-0.
10793
10794         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10795         * top/maint.mk (sc_tight_scope): New rule.
10796         (sc_tight_scope-0): New rule, ifdef'd out.
10797         (_gl_TS_dir): Default.
10798         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10799         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10800
10801 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10802
10803         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10804         Haible <bruno@clisp.org>.
10805
10806 2011-05-08  Bruno Haible  <bruno@clisp.org>
10807
10808         Comments.
10809         * m4/isnanf.m4: Add comment.
10810         * m4/isnanl.m4: Likewise.
10811
10812 2011-05-08  Bruno Haible  <bruno@clisp.org>
10813
10814         glob: Remove obsolete macro.
10815         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10816
10817 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10818
10819         intprops: Sun C 5.11 supports __typeof__
10820         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10821         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10822         which is new.
10823         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10824
10825         intprops: switch to usual gnulib indenting and naming
10826         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10827         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10828
10829         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10830
10831 2011-05-08  Jim Meyering  <meyering@redhat.com>
10832
10833         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10834         * top/maint.mk (release-prep): Use make's --no-print-directory
10835         option when generating the announcement.  This eliminates the
10836         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10837         generated announcement template.
10838
10839 2011-05-08  Bruno Haible  <bruno@clisp.org>
10840
10841         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10842         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10843         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10844
10845 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10846
10847         ignore-value, verify: Omit include files from lib_SOURCES.
10848         * modules/ignore-value, modules/verify (Makefile.am):
10849         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10850         that leads Automake to duplicate use of am__objects_... variables
10851         in Makefile.in.  See
10852         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10853
10854 2011-05-07  Bruno Haible  <bruno@clisp.org>
10855
10856         fclose: Simplify autoconf macro.
10857         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10858         defined.
10859
10860 2011-05-07  Bruno Haible  <bruno@clisp.org>
10861
10862         canonicalize-lgpl: Fix autoconf macro ordering bug.
10863         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10864         gl_STDLIB_H_DEFAULTS.
10865
10866 2011-05-06  Eric Blake  <eblake@redhat.com>
10867
10868         maintainer-makefile: make sc_po_check easier to tune
10869         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10870         to probe for strings, such as an alternate location for gnulib.
10871
10872         fclose: guarantee behavior on seekable stdin
10873         * modules/fclose (Depends-on): Add fflush.
10874         * doc/posix-functions/fclose.texi (fclose): Document this.
10875         * tests/test-fclose.c (main): Make test for this unconditional.
10876
10877 2011-05-06  Bruno Haible  <bruno@clisp.org>
10878
10879         fflush, fpurge: Relicense under LGPLv2+.
10880         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10881         * modules/fpurge (License): Likewise.
10882         With permission from Eric Blake and Jim Meyering.
10883         Suggested by Eric Blake.
10884
10885 2011-05-06  Karl Berry  <karl@gnu.org>
10886
10887         * MODULES.html.sh (func_all_modules): remove exit.
10888
10889 2011-05-06  Jim Meyering  <meyering@redhat.com>
10890
10891         maint.mk: use info-gnu@ as the default only for a stable release
10892         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10893         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10894         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10895         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10896
10897 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10898
10899         assert-h: new module, which supports C1X-style static_assert
10900         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10901         * lib/verify.h: Revamp so that this can be copied into assert.h,
10902         while retaining the ability to use it standalone as before.
10903         Rename private identifiers so as not to encroach on the
10904         standard C namespace, since this is now used by assert.h.
10905         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10906         the old verify_true.
10907         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10908         the old verify_true.  Use _GL_VERIFY_TYPE.
10909         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10910         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10911         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10912         defined when this file is copied into the replacement assert.h.
10913         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10914         and _Static_assert is not built in.
10915         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10916         defined, and use the new macros mentioned above.
10917         * doc/posix-headers/assert.texi: Document this.
10918
10919 2011-05-05  Bruno Haible  <bruno@clisp.org>
10920
10921         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10922         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10923         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10924         gl_REPLACE_FCLOSE here.
10925         * modules/fflush (Depends-on): Remove fclose.
10926         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10927         combination with module 'fclose'.
10928
10929 2011-05-05  Bruno Haible  <bruno@clisp.org>
10930
10931         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10932         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10933         gl_FUNC_FFLUSH.
10934         (gl_FUNC_FFLUSH): Use it.
10935         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10936         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10937         gl_REPLACE_FSEEKO here.
10938
10939 2011-05-05  Bruno Haible  <bruno@clisp.org>
10940
10941         tzset: Relicense under LGPL.
10942         * modules/tzset (License): Change to LGPL.
10943         No agreement needed; it's a no-op.
10944
10945         strtoimax, strtoumax: Relicense under LGPL.
10946         * modules/strtoimax (License): Change to LGPL.
10947         * modules/strtoumax (License): Likewise.
10948         With permission from Jim Meyering, Paul Eggert:
10949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10951
10952         getgroups: Relicense under LGPL.
10953         * modules/getgroups (License): Change to LGPL.
10954         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10958
10959         nanosleep: Relicense under LGPL.
10960         * modules/nanosleep (License): Change to LGPL.
10961         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10962         Haible:
10963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10967
10968         futimens: Relicense under LGPL.
10969         * modules/futimens (License): Change to LGPL.
10970         With permission from Eric Blake:
10971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10972
10973         fflush: Relicense under LGPL.
10974         * modules/fflush (License): Change to LGPL.
10975         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10979
10980         tmpfile: Relicense under LGPL.
10981         * modules/tmpfile (License): Change to LGPL.
10982         With permission from Ben Pfaff:
10983         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10984
10985         isfinite: Relicense under LGPL.
10986         * modules/isfinite (License): Change to LGPL.
10987         With permission from Ben Pfaff, Bruno Haible:
10988         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10990
10991         acosl..tanl: Relicense under LGPL.
10992         * modules/acosl (License): Change to LGPL.
10993         * modules/asinl (License): Likewise.
10994         * modules/atanl (License): Likewise.
10995         * modules/cosl (License): Likewise.
10996         * modules/expl (License): Likewise.
10997         * modules/logl (License): Likewise.
10998         * modules/sinl (License): Likewise.
10999         * modules/sqrtl (License): Likewise.
11000         * modules/tanl (License): Likewise.
11001         Source code originally from glibc and Paolo Bonzini. Agreements:
11002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11004
11005 2011-05-05  Bruno Haible  <bruno@clisp.org>
11006
11007         signal: Define sighandler_t.
11008         * lib/signal.in.h (sighandler_t): New type.
11009         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11010         whether sighandler_t is defined.
11011         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11012         * modules/signal (Depends-on): Add extensions.
11013         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11014         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11015         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11016
11017 2011-05-05  Eric Blake  <eblake@redhat.com>
11018
11019         maint: remove useless REPLACE_*_H macros
11020         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11021         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11022         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11023         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11024         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11025         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11026         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11027         * m4/btowc.m4: Update callers.
11028         * m4/dirfd.m4: Likewise.
11029         * m4/duplocale.m4: Likewise.
11030         * m4/fchdir.m4: Likewise.
11031         * m4/fdopendir.m4: Likewise.
11032         * m4/inet_ntop.m4: Likewise.
11033         * m4/inet_pton.m4: Likewise.
11034         * m4/ioctl.m4: Likewise.
11035         * m4/mbrlen.m4: Likewise.
11036         * m4/mbrtowc.m4: Likewise.
11037         * m4/mbsinit.m4: Likewise.
11038         * m4/mbsnrtowcs.m4: Likewise.
11039         * m4/mbsrtowcs.m4: Likewise.
11040         * m4/poll.m4: Likewise.
11041         * m4/setlocale.m4: Likewise.
11042         * m4/wcrtomb.m4: Likewise.
11043         * m4/wcsnrtombs.m4: Likewise.
11044         * m4/wcsrtombs.m4: Likewise.
11045         * m4/wctob.m4: Likewise.
11046         * m4/wcwidth.m4: Likewise.
11047         * modules/posix_spawn: Likewise.
11048         * modules/posix_spawn_file_actions_addclose: Likewise.
11049         * modules/posix_spawn_file_actions_adddup2: Likewise.
11050         * modules/posix_spawn_file_actions_addopen: Likewise.
11051         * modules/posix_spawn_file_actions_destroy: Likewise.
11052         * modules/posix_spawn_file_actions_init: Likewise.
11053         * modules/posix_spawnattr_destroy: Likewise.
11054         * modules/posix_spawnattr_getflags: Likewise.
11055         * modules/posix_spawnattr_getpgroup: Likewise.
11056         * modules/posix_spawnattr_getschedparam: Likewise.
11057         * modules/posix_spawnattr_getschedpolicy: Likewise.
11058         * modules/posix_spawnattr_getsigdefault: Likewise.
11059         * modules/posix_spawnattr_getsigmask: Likewise.
11060         * modules/posix_spawnattr_init: Likewise.
11061         * modules/posix_spawnattr_setflags: Likewise.
11062         * modules/posix_spawnattr_setpgroup: Likewise.
11063         * modules/posix_spawnattr_setschedparam: Likewise.
11064         * modules/posix_spawnattr_setschedpolicy: Likewise.
11065         * modules/posix_spawnattr_setsigdefault: Likewise.
11066         * modules/posix_spawnattr_setsigmask: Likewise.
11067         * modules/posix_spawnp: Likewise.
11068
11069 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11070
11071         Add option to do-release-commit-and-tag to specify branch.
11072         * build-aux/do-release-commit-and-tag: Add --branch.
11073
11074 2011-05-03  Bruno Haible  <bruno@clisp.org>
11075
11076         Avoid unnecessary compilation units, through conditional dependencies.
11077         * modules/accept (Depends-on): Add conditions to the dependencies.
11078         * modules/acosl (Depends-on): Likewise.
11079         * modules/argz (Depends-on): Likewise.
11080         * modules/asinl (Depends-on): Likewise.
11081         * modules/atanl (Depends-on): Likewise.
11082         * modules/atoll (Depends-on): Likewise.
11083         * modules/bind (Depends-on): Likewise.
11084         * modules/btowc (Depends-on): Likewise.
11085         * modules/canonicalize-lgpl (Depends-on): Likewise.
11086         * modules/ceil (Depends-on): Likewise.
11087         * modules/ceilf (Depends-on): Likewise.
11088         * modules/ceill (Depends-on): Likewise.
11089         * modules/chdir-long (Depends-on): Likewise.
11090         * modules/chown (Depends-on): Likewise.
11091         * modules/close (Depends-on): Likewise.
11092         * modules/connect (Depends-on): Likewise.
11093         * modules/cosl (Depends-on): Likewise.
11094         * modules/dirfd (Depends-on): Likewise.
11095         * modules/dprintf (Depends-on): Likewise.
11096         * modules/dprintf-posix (Depends-on): Likewise.
11097         * modules/error (Depends-on): Likewise.
11098         * modules/euidaccess (Depends-on): Likewise.
11099         * modules/expl (Depends-on): Likewise.
11100         * modules/faccessat (Depends-on): Likewise.
11101         * modules/fchdir (Depends-on): Likewise.
11102         * modules/fclose (Depends-on): Likewise.
11103         * modules/fcntl (Depends-on): Likewise.
11104         * modules/fdopendir (Depends-on): Likewise.
11105         * modules/fflush (Depends-on): Likewise.
11106         * modules/floor (Depends-on): Likewise.
11107         * modules/floorf (Depends-on): Likewise.
11108         * modules/floorl (Depends-on): Likewise.
11109         * modules/fnmatch (Depends-on): Likewise.
11110         * modules/fopen (Depends-on): Likewise.
11111         * modules/fprintf-posix (Depends-on): Likewise.
11112         * modules/frexp (Depends-on): Likewise.
11113         * modules/frexp-nolibm (Depends-on): Likewise.
11114         * modules/frexpl (Depends-on): Likewise.
11115         * modules/frexpl-nolibm (Depends-on): Likewise.
11116         * modules/fseek (Depends-on): Likewise.
11117         * modules/fsusage (Depends-on): Likewise.
11118         * modules/ftell (Depends-on): Likewise.
11119         * modules/ftello (Depends-on): Likewise.
11120         * modules/futimens (Depends-on): Likewise.
11121         * modules/getcwd (Depends-on): Likewise.
11122         * modules/getcwd-lgpl (Depends-on): Likewise.
11123         * modules/getdelim (Depends-on): Likewise.
11124         * modules/getdomainname (Depends-on): Likewise.
11125         * modules/getgroups (Depends-on): Likewise.
11126         * modules/gethostname (Depends-on): Likewise.
11127         * modules/getline (Depends-on): Likewise.
11128         * modules/getlogin_r (Depends-on): Likewise.
11129         * modules/getopt-posix (Depends-on): Likewise.
11130         * modules/getpeername (Depends-on): Likewise.
11131         * modules/getsockname (Depends-on): Likewise.
11132         * modules/getsockopt (Depends-on): Likewise.
11133         * modules/getsubopt (Depends-on): Likewise.
11134         * modules/getusershell (Depends-on): Likewise.
11135         * modules/glob (Depends-on): Likewise.
11136         * modules/grantpt (Depends-on): Likewise.
11137         * modules/iconv_open (Depends-on): Likewise.
11138         * modules/iconv_open-utf (Depends-on): Likewise.
11139         * modules/inet_ntop (Depends-on): Likewise.
11140         * modules/inet_pton (Depends-on): Likewise.
11141         * modules/ioctl (Depends-on): Likewise.
11142         * modules/isapipe (Depends-on): Likewise.
11143         * modules/isfinite (Depends-on): Likewise.
11144         * modules/isinf (Depends-on): Likewise.
11145         * modules/lchown (Depends-on): Likewise.
11146         * modules/ldexpl (Depends-on): Likewise.
11147         * modules/link (Depends-on): Likewise.
11148         * modules/linkat (Depends-on): Likewise.
11149         * modules/listen (Depends-on): Likewise.
11150         * modules/logl (Depends-on): Likewise.
11151         * modules/lstat (Depends-on): Likewise.
11152         * modules/mbrlen (Depends-on): Likewise.
11153         * modules/mbrtowc (Depends-on): Likewise.
11154         * modules/mbsinit (Depends-on): Likewise.
11155         * modules/mbsnrtowcs (Depends-on): Likewise.
11156         * modules/mbsrtowcs (Depends-on): Likewise.
11157         * modules/mbtowc (Depends-on): Likewise.
11158         * modules/memcmp (Depends-on): Likewise.
11159         * modules/mkdir (Depends-on): Likewise.
11160         * modules/mkdtemp (Depends-on): Likewise.
11161         * modules/mkfifo (Depends-on): Likewise.
11162         * modules/mkfifoat (Depends-on): Likewise.
11163         * modules/mknod (Depends-on): Likewise.
11164         * modules/mkostemp (Depends-on): Likewise.
11165         * modules/mkostemps (Depends-on): Likewise.
11166         * modules/mkstemp (Depends-on): Likewise.
11167         * modules/mkstemps (Depends-on): Likewise.
11168         * modules/mktime (Depends-on): Likewise.
11169         * modules/nanosleep (Depends-on): Likewise.
11170         * modules/open (Depends-on): Likewise.
11171         * modules/openat (Depends-on): Likewise.
11172         * modules/perror (Depends-on): Likewise.
11173         * modules/poll (Depends-on): Likewise.
11174         * modules/popen (Depends-on): Likewise.
11175         * modules/posix_spawn (Depends-on): Likewise.
11176         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11177         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11178         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11179         * modules/posix_spawnp (Depends-on): Likewise.
11180         * modules/pread (Depends-on): Likewise.
11181         * modules/printf-posix (Depends-on): Likewise.
11182         * modules/ptsname (Depends-on): Likewise.
11183         * modules/putenv (Depends-on): Likewise.
11184         * modules/pwrite (Depends-on): Likewise.
11185         * modules/readline (Depends-on): Likewise.
11186         * modules/readlink (Depends-on): Likewise.
11187         * modules/readlinkat (Depends-on): Likewise.
11188         * modules/recv (Depends-on): Likewise.
11189         * modules/recvfrom (Depends-on): Likewise.
11190         * modules/regex (Depends-on): Likewise.
11191         * modules/remove (Depends-on): Likewise.
11192         * modules/rename (Depends-on): Likewise.
11193         * modules/renameat (Depends-on): Likewise.
11194         * modules/rmdir (Depends-on): Likewise.
11195         * modules/round (Depends-on): Likewise.
11196         * modules/roundf (Depends-on): Likewise.
11197         * modules/roundl (Depends-on): Likewise.
11198         * modules/rpmatch (Depends-on): Likewise.
11199         * modules/select (Depends-on): Likewise.
11200         * modules/send (Depends-on): Likewise.
11201         * modules/sendto (Depends-on): Likewise.
11202         * modules/setenv (Depends-on): Likewise.
11203         * modules/setlocale (Depends-on): Likewise.
11204         * modules/setsockopt (Depends-on): Likewise.
11205         * modules/shutdown (Depends-on): Likewise.
11206         * modules/sigaction (Depends-on): Likewise.
11207         * modules/signbit (Depends-on): Likewise.
11208         * modules/sigprocmask (Depends-on): Likewise.
11209         * modules/sinl (Depends-on): Likewise.
11210         * modules/sleep (Depends-on): Likewise.
11211         * modules/snprintf (Depends-on): Likewise.
11212         * modules/snprintf-posix (Depends-on): Likewise.
11213         * modules/socket (Depends-on): Likewise.
11214         * modules/sprintf-posix (Depends-on): Likewise.
11215         * modules/sqrtl (Depends-on): Likewise.
11216         * modules/stat (Depends-on): Likewise.
11217         * modules/strchrnul (Depends-on): Likewise.
11218         * modules/strdup-posix (Depends-on): Likewise.
11219         * modules/strerror (Depends-on): Likewise.
11220         * modules/strerror_r-posix (Depends-on): Likewise.
11221         * modules/strndup (Depends-on): Likewise.
11222         * modules/strnlen (Depends-on): Likewise.
11223         * modules/strptime (Depends-on): Likewise.
11224         * modules/strsep (Depends-on): Likewise.
11225         * modules/strsignal (Depends-on): Likewise.
11226         * modules/strstr-simple (Depends-on): Likewise.
11227         * modules/strtod (Depends-on): Likewise.
11228         * modules/strtoimax (Depends-on): Likewise.
11229         * modules/strtok_r (Depends-on): Likewise.
11230         * modules/strtoumax (Depends-on): Likewise.
11231         * modules/symlink (Depends-on): Likewise.
11232         * modules/symlinkat (Depends-on): Likewise.
11233         * modules/tanl (Depends-on): Likewise.
11234         * modules/tcgetsid (Depends-on): Likewise.
11235         * modules/tmpfile (Depends-on): Likewise.
11236         * modules/trunc (Depends-on): Likewise.
11237         * modules/truncf (Depends-on): Likewise.
11238         * modules/truncl (Depends-on): Likewise.
11239         * modules/uname (Depends-on): Likewise.
11240         * modules/unlink (Depends-on): Likewise.
11241         * modules/unlockpt (Depends-on): Likewise.
11242         * modules/unsetenv (Depends-on): Likewise.
11243         * modules/usleep (Depends-on): Likewise.
11244         * modules/utimensat (Depends-on): Likewise.
11245         * modules/vasprintf (Depends-on): Likewise.
11246         * modules/vdprintf (Depends-on): Likewise.
11247         * modules/vdprintf-posix (Depends-on): Likewise.
11248         * modules/vfprintf-posix (Depends-on): Likewise.
11249         * modules/vprintf-posix (Depends-on): Likewise.
11250         * modules/vsnprintf (Depends-on): Likewise.
11251         * modules/vsnprintf-posix (Depends-on): Likewise.
11252         * modules/vsprintf-posix (Depends-on): Likewise.
11253         * modules/wcrtomb (Depends-on): Likewise.
11254         * modules/wcscasecmp (Depends-on): Likewise.
11255         * modules/wcscspn (Depends-on): Likewise.
11256         * modules/wcsdup (Depends-on): Likewise.
11257         * modules/wcsncasecmp (Depends-on): Likewise.
11258         * modules/wcsnrtombs (Depends-on): Likewise.
11259         * modules/wcspbrk (Depends-on): Likewise.
11260         * modules/wcsrtombs (Depends-on): Likewise.
11261         * modules/wcsspn (Depends-on): Likewise.
11262         * modules/wcsstr (Depends-on): Likewise.
11263         * modules/wcstok (Depends-on): Likewise.
11264         * modules/wcswidth (Depends-on): Likewise.
11265         * modules/wctob (Depends-on): Likewise.
11266         * modules/wctomb (Depends-on): Likewise.
11267         * modules/wctype (Depends-on): Likewise.
11268         * modules/wcwidth (Depends-on): Likewise.
11269         * modules/write (Depends-on): Likewise.
11270
11271 2011-05-03  Bruno Haible  <bruno@clisp.org>
11272
11273         Support for conditional dependencies.
11274         * doc/gnulib.texi (Module description): Document the syntax of
11275         conditional dependencies.
11276         * gnulib-tool: New option --conditional-dependencies.
11277         (func_usage): Document it.
11278         (cond_dependencies): New variable.
11279         (func_get_automake_snippet_conditional,
11280         func_get_automake_snippet_unconditional): New functions, extracted from
11281         func_get_automake_snippet.
11282         (func_get_automake_snippet): Use them.
11283         (sed_first_32_chars): New variable.
11284         (func_module_shellfunc_name): New function.
11285         (func_module_shellvar_name): New function.
11286         (func_module_conditional_name): New function.
11287         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11288         func_cond_module_condition): New functions.
11289         (func_modules_transitive_closure): Add support for conditional
11290         dependencies.
11291         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11292         conditional automake snippet in an automake conditional.
11293         (func_emit_autoconf_snippets): Emit shell functions that contain the
11294         code for conditional modules.
11295         (func_import, func_create_testdir): Update specification.
11296
11297 2011-05-03  Eric Blake  <eblake@redhat.com>
11298
11299         test-getaddrinfo: report error information
11300         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11301
11302 2011-05-03  Jim Meyering  <meyering@redhat.com>
11303
11304         bootstrap: avoid build failure when $GZIP is set
11305         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11306         program name.  If defined at all, it is supposed to list gzip options.
11307         Reported by Alan Curry in http://debbugs.gnu.org/8609
11308
11309 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11310
11311         readme-release: new module with release instructions
11312         * modules/readme-release: New module.
11313         * top/README-release: New file, from coreutils, grep, diffutils.
11314         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11315
11316 2011-05-02  Eric Blake  <eblake@redhat.com>
11317
11318         fflush: also replace fclose when fixing fflush
11319         * modules/fflush (Depends-on): Add fclose.
11320         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11321         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11322         memstreams with no backing fd.
11323         * doc/posix-functions/fclose.texi (fclose): Document the use of
11324         fflush module to fix the bug.
11325         * tests/test-fclose.c (main): Relax test when fclose is used in
11326         isolation.
11327
11328         fclose: add some tests
11329         * modules/fclose-tests: New test module.
11330         * tests/test-fclose.c: New file.
11331         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11332
11333         fclose: reduced dependencies
11334         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11335         simpler lseek.
11336         * lib/fclose.c (rpl_fclose): Likewise.
11337         Reported by Simon Josefsson.
11338
11339         exit: drop remaining clients
11340         * modules/argmatch (Depends-on): Replace exit with stdlib.
11341         * modules/copy-file (Depends-on): Likewise.
11342         * modules/execute (Depends-on): Likewise.
11343         * modules/exitfail (Depends-on): Likewise.
11344         * modules/obstack (Depends-on): Likewise.
11345         * modules/pagealign_alloc (Depends-on): Likewise.
11346         * modules/pipe-filter-gi (Depends-on): Likewise.
11347         * modules/pipe-filter-ii (Depends-on): Likewise.
11348         * modules/savewd (Depends-on): Likewise.
11349         * modules/spawn-pipe (Depends-on): Likewise.
11350         * modules/wait-process (Depends-on): Likewise.
11351         * modules/xsetenv (Depends-on): Likewise.
11352         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11353         * modules/git-merge-changelog (Depends-on): Likewise.
11354         * modules/long-options (Depends-on): Likewise.
11355         * modules/pt_chown (Depends-on): Likewise.
11356         * modules/sysexits (Depends-on): Likewise.
11357
11358         freading: relax license from LGPLv3+ to LGPLv2+
11359         * modules/freading (License): Relax LGPL version.
11360
11361 2011-05-02  Bruno Haible  <bruno@clisp.org>
11362
11363         fchdir: Remove unused dependencies.
11364         * modules/fchdir (Depends-on): Remove include_next.
11365
11366 2011-05-02  Bruno Haible  <bruno@clisp.org>
11367
11368         gnulib-tool: Refactor.
11369         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11370         from func_emit_autoconf_snippets.
11371         (func_emit_autoconf_snippets): Use it.
11372
11373 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11374
11375         * NEWS: Document removal of 'exit'.
11376         * modules/exit: Remove file.
11377
11378 2011-05-01  Bruno Haible  <bruno@clisp.org>
11379
11380         Update DEPENDENCIES.
11381         * DEPENDENCIES (gettext): Recommend the newest release.
11382         Reported by Simon Josefsson.
11383
11384 2011-05-01  Bruno Haible  <bruno@clisp.org>
11385
11386         gnulib-tool: Reduce code duplication.
11387         * gnulib-tool (func_emit_autoconf_snippets): New function.
11388         (func_import, func_create_testdir): Use it.
11389
11390 2011-04-30  Eric Blake  <eblake@redhat.com>
11391
11392         fclose: don't fail on non-seekable input stream
11393         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11394         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11395         since fflush is allowed to fail in that case.
11396
11397 2011-04-30  Bruno Haible  <bruno@clisp.org>
11398
11399         dup3: cleanup
11400         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11401
11402 2011-04-30  Bruno Haible  <bruno@clisp.org>
11403
11404         netdb: Make it work in C++ mode.
11405         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11406         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11407         module.
11408         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11409         gl_MODULE_INDICATOR_FOR_TESTS.
11410         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11411         * modules/netdb-c++-tests: New file.
11412         * tests/test-netdb-c++.cc: New file.
11413
11414 2011-04-30  Bruno Haible  <bruno@clisp.org>
11415
11416         New modules 'vfscanf', 'vscanf'.
11417         * modules/vfscanf: New file.
11418         * modules/vscanf: New file.
11419         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11420         here.
11421         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11422         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11423
11424 2011-04-30  Bruno Haible  <bruno@clisp.org>
11425
11426         passfd: Add comments.
11427         * lib/passfd.c: Add comments about platforms.
11428
11429 2011-04-30  Bruno Haible  <bruno@clisp.org>
11430
11431         sys_uio: Make <sys/uio.h> self-contained.
11432         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11433         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11434
11435 2011-04-30  Bruno Haible  <bruno@clisp.org>
11436
11437         sys_socket: Ensure 'struct iovec' definition.
11438         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11439         <sys/socket.h>.
11440         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11441
11442 2011-04-30  Bruno Haible  <bruno@clisp.org>
11443
11444         sys_uio: Protect definition of 'struct iovec'.
11445         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11446         it as a C struct.
11447
11448 2011-04-30  Bruno Haible  <bruno@clisp.org>
11449
11450         manywarnings: fix indentation
11451         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11452
11453 2011-04-30  Pádraig Brady <P@draigBrady.com>
11454
11455         manywarnings: add -Wno-missing-field-initializers if needed.
11456         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11457         option if it's needed to allow initialization with { 0, }
11458
11459 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11460
11461         announce-gen: cosmetic improvement
11462         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11463
11464 2011-04-29  Jim Meyering  <meyering@redhat.com>
11465
11466         vc-list-files: indent with spaces, not TABs
11467         * build-aux/vc-list-files: Convert leading TABs to spaces,
11468         to match the style of most other files in gnulib.
11469
11470         announce-gen: indent with spaces, not TABs
11471         * build-aux/announce-gen: Convert all TABs to spaces, to match
11472         the style of most other files in gnulib.
11473
11474 2011-04-29  Eric Blake  <eblake@redhat.com>
11475
11476         quotearg: avoid uninitialized variable use
11477         * lib/quotearg.c (quoting_options_from_style): Initialize
11478         remaining fields, and ensure that custom styles are only used via
11479         quoting_options rather than quoting_style.
11480
11481 2011-04-29  Jim Meyering  <meyering@redhat.com>
11482
11483         maint.mk: remove unused VC-tag variable
11484         * top/maint.mk (VC-tag): Remove unused variable.
11485
11486 2011-04-29  Bruno Haible  <bruno@clisp.org>
11487
11488         netdb: fix gai_strerror replacements
11489         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11490         * modules/netdb: Substitute it.
11491
11492 2011-04-29  Jim Meyering  <meyering@redhat.com>
11493
11494         test-getcwd.c: avoid new set-but-not-used warning
11495         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11496         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11497         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11498         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11499
11500         test-hash.c: avoid a new shadowing warning
11501         * tests/test-hash.c (main): Don't shadow "dup".
11502
11503 2011-04-28  Eric Blake  <eblake@redhat.com>
11504
11505         getaddrinfo: fix gai_strerror signature
11506         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11507         and work around mingw with UNICODE defined.
11508         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11509         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11510         * modules/netdb (Makefile.am): Substitute it.
11511         * lib/netdb.in.h (gai_strerror): Declare replacement.
11512         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11513         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11514         the fix.
11515
11516         getsockopt: avoid compiler warning
11517         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11518         Reported by Matthias Bolte.
11519
11520         tests: drop unused link dependency
11521         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11522         * modules/dirent-safer-tests (Makefile.am): Likewise.
11523         * modules/fdopendir-tests (Makefile.am): Likewise.
11524         * modules/mkfifoat-tests (Makefile.am): Likewise.
11525         * modules/openat-safer-tests (Makefile.am): Likewise.
11526         * modules/openat-tests (Makefile.am): Likewise.
11527         * modules/readlinkat-tests (Makefile.am): Likewise.
11528         * modules/symlinkat-tests (Makefile.am): Likewise.
11529         * modules/linkat-tests (Makefile.am): Likewise.
11530         (Depends-on): Switch to filenamecat-lgpl.
11531         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11532         LIBINTL.
11533         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11534         * tests/test-linkat.c (main): Don't require xalloc.
11535
11536         hash, mgetgroups: drop xalloc dependency
11537         * lib/hash.c (includes): Adjust includes.
11538         * lib/mgetgroups.c (includes): Likewise.
11539         (xgetgroups): Move...
11540         * lib/xgetgroups.c: ...to new file.
11541         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11542         * modules/xgetgroups: New file, split from...
11543         * modules/mgetgroups: ...here.
11544         (Depends-on): Add xalloc-oversized.
11545         * modules/hash (Depends-on): Likewise.
11546         * modules/hash-tests (Depends-on): Drop xalloc.
11547         (test_hash_LDADD): Drop unused library.
11548         * tests/test-hash.c (main): Break xalloc dependency.
11549         (includes): Drop unused include.
11550
11551         xalloc-oversized: new module
11552         * modules/xalloc-oversized: New module.
11553         * modules/xalloc (Depends-on): Add it.
11554         * lib/xalloc.h (xalloc_oversized): Move...
11555         * lib/xalloc-oversized.h: ...into new file.
11556
11557         utimecmp: drop dependency on xmalloc
11558         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11559         due to memory pressure.
11560         * modules/utimecmp (Depends-on): Drop xalloc.
11561
11562 2011-04-27  Eric Blake  <eblake@redhat.com>
11563
11564         getcwd: fix mingw bugs
11565         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11566         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11567         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11568
11569 2011-04-27  Bruno Haible  <bruno@clisp.org>
11570
11571         mkstemps: Ensure declaration on MacOS X 10.5.
11572         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11573         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11574         MacOS X.
11575
11576 2011-04-27  Bruno Haible  <bruno@clisp.org>
11577
11578         mkstemp: More documentation.
11579         * doc/posix-functions/mkstemp.texi: Document header file problem on
11580         MacOS X.
11581
11582 2011-04-27  Bruno Haible  <bruno@clisp.org>
11583
11584         mkstemp: Tweak configure message when cross-compiling.
11585         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11586         result as a guess.
11587
11588 2011-04-27  Bruno Haible  <bruno@clisp.org>
11589
11590         clean-temp: Clarify what it does.
11591         * lib/clean-temp.h: Add more comments.
11592         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11593         module.
11594         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11595         * doc/glibc-functions/mkstemps.texi: Likewise.
11596         * doc/glibc-functions/mkostemps.texi: Likewise.
11597
11598 2011-04-27  Eric Blake  <eblake@redhat.com>
11599
11600         fchdir: avoid extra chdir and fix test
11601         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11602         getcwd-lgpl.
11603         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11604         have to be canonical.
11605         (canonicalize_file_name): Drop unused macro.
11606         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11607
11608         filenamecat-lgpl: fix licence
11609         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11610         when it was first created.
11611
11612         linkat, renameat: add missing dependency
11613         * modules/linkat (Depends-on): Require getcwd-lgpl.
11614         * modules/renameat (Depends-on): Likewise.
11615
11616         tests: reduce dependencies
11617         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11618         * tests/test-renameat.c (main): Likewise.
11619         * modules/linkat-tests (Depends-on): Relax dependency.
11620         * modules/renameat-tests (Depends-on): Likewise.
11621         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11622         dependency explicit.
11623
11624         save-cwd: reduce default dependency
11625         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11626         * lib/save-cwd.c: Update comments.
11627         * NEWS: Document the semantic change.
11628
11629         getcwd: enhance tests
11630         * tests/test-getcwd-lgpl.c: New file, taken from...
11631         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11632         repeat long path stress tests from m4 probe.
11633         * modules/getcwd-lgpl-tests: New module.
11634         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11635         * m4/getcwd-abort-bug.m4: Update comment.
11636         * m4/getcwd-path-max.m4: Likewise.
11637
11638         getcwd-lgpl: new module
11639         * modules/getcwd-lgpl: New module.
11640         * lib/getcwd-lgpl.c: New file.
11641         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11642         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11643         * modules/getcwd (configure.ac): Set C witness.
11644         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11645
11646         getcwd: tweak comments
11647         * m4/getcwd-abort-bug.m4: Fix comments.
11648         * m4/getcwd-path-max.m4: Likewise.
11649         * m4/getcwd.m4: Likewise.
11650
11651 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11652         and Eric Blake  <eblake@redhat.com>
11653
11654         mkstemp: replace if system version uses wrong permissions
11655         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11656         read/write mode bits set in file created by mkstemp.
11657         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11658
11659 2011-04-27  Eric Blake  <eblake@redhat.com>
11660
11661         passfd: avoid compiler warning
11662         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11663         Reported by Laine Stump.
11664
11665 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11666
11667         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11668         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11669
11670 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11671         and Eric Blake  <eblake@redhat.com>
11672
11673         mkstemp: mention clean-temp module
11674         * lib/mkstemp.c: Add comment.
11675         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11676
11677 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11678
11679         inttypes: also provide default values for 32-bit tests
11680         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11681         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11682
11683 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11684
11685         strtoumax: remove dependency on strtoimax
11686         This is like the strtoull change of yesterday.
11687         * modules/strtoumax (Files): Add lib/strtoimax.c.
11688         (Depends-on): Remove strtoimax and add verify.
11689
11690         inttypes-incomplete: new module
11691         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11692         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11693         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11694         of gl_INTTYPES_H.
11695         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11696         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11697         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11698         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11699         * modules/strtoumax, modules/xstrtol (Depends-on):
11700         Depend on inttypes-incomplete, not inttypes.
11701         * modules/inttypes-incomplete: New module, containing the contents
11702         of the old modules/inttypes module, except that the Files: section
11703         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11704         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11705         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11706         (Depends-on): Depend only on inttypes-incomplete.
11707         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11708
11709         inttypes: omit now-redundant strtoimax and strtoumax work
11710         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11711         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11712
11713         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11714         This supports apps that need pointers to strtoimax and strtoumax,
11715         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11716         nonexistent functions.  See
11717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11718         et seq.
11719         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11720         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11721         a macro.
11722         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11723
11724 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11725
11726         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11727
11728 2011-04-25  Bruno Haible  <bruno@clisp.org>
11729
11730         strtol, strtoul: Mark modules as obsolete.
11731         * modules/strtol (Status, Notice): New sections.
11732         * modules/strtoul (Status, Notice): New sections.
11733
11734 2011-04-25  Bruno Haible  <bruno@clisp.org>
11735
11736         strtod: Remove check for strtod, unless supporting old platforms.
11737         * modules/strtod-obsolete: New file.
11738         * m4/strtod-obsolete.m4: New file.
11739         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11740         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11741         * modules/strtod (Depends-on): Add strtod-obsolete.
11742         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11743
11744 2011-04-25  Bruno Haible  <bruno@clisp.org>
11745
11746         strcase: Make module obsolete.
11747         * modules/strcase (Status, Notice): New sections.
11748
11749 2011-04-25  Bruno Haible  <bruno@clisp.org>
11750
11751         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11752         * modules/dup2-obsolete: New file.
11753         * m4/dup2-obsolete.m4: New file.
11754         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11755         gl_FUNC_DUP2_OBSOLETE is not also defined.
11756         * modules/dup2 (Depends-on): Add dup2-obsolete.
11757         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11758
11759 2011-04-25  Bruno Haible  <bruno@clisp.org>
11760
11761         strnlen: Avoid memchr related link error on old obsolete platforms.
11762         * modules/memchr-obsolete: New file.
11763         * m4/memchr-obsolete.m4: New file.
11764         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11765         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11766         * modules/memchr (Depends-on): Add memchr-obsolete.
11767         * modules/strnlen (Depends-on): Likewise.
11768         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11769
11770 2011-04-25  Jim Meyering  <meyering@redhat.com>
11771
11772         maint.mk: makefile_at_at_check extend and clean up
11773         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11774         in addition to */Makefile.am.
11775         Exempt legitimate uses of @VAR@ notation, e.g.,
11776         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11777         Remove obsolete coreutils-specific comment.
11778         Prompted by discussion here:
11779         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11780
11781 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11782
11783         strtoul: remove dependency on strtol
11784         This is so that 'configure' need not check for strtol merely because
11785         the application needs strtoul.
11786         * modules/strtoul (Files): Add lib/strtol.c.
11787         (Depends-on): Remove strtol.
11788
11789         strtoull: remove dependency on strtoul
11790         This is like the strtoll change.
11791         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11792         (Depends-on): Remove strtoul.
11793
11794         strtoll: remove dependency on strtol
11795         This is so that 'configure' need not check for strtol merely because
11796         the application needs strtoll.
11797         * modules/strtoll (Files): Add lib/strtol.c.
11798         (Depends-on): Remove strtol.
11799
11800 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11801
11802         inttypes: Move some configure check to module 'imaxdiv'.
11803         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11804         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11805         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11806
11807 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11808
11809         inttypes: Move some configure check to module 'imaxabs'.
11810         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11811         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11812         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11813
11814 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11815
11816         inttypes: Remove configure tests that are not needed since 2009-12-31.
11817         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11818         gl_cv_header_working_inttypes_h.
11819
11820 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11821
11822         * modules/strnlen (Depends-on): Remove memchr.
11823         The strnlen implementation doesn't need the memchr module's fixes; see
11824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11825
11826         strtol: remove dependency on wchar
11827         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11828         * modules/strtol (Depends-on): Remove wchar.
11829
11830 2011-04-21  Eric Blake  <eblake@redhat.com>
11831
11832         passfd: fix test regression on Linux
11833         * modules/passfd-tests (configure.ac): Correct socketpair check.
11834
11835         passfd: speed up configure and drop unused code
11836         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11837         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11838         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11839         Instead of probing at configure for unix_scm_rights_bsd44_way,
11840         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11841         check to a struct member probe.
11842         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11843         (sendfd, recvfd): Update preprocessor checks.
11844         * modules/passfd (Files): Reflect rename, and drop unused file.
11845         (Depends-on): Drop unused dependency.
11846
11847         passfd: allow compilation on mingw
11848         * modules/sys_socket (Depends-on): Add sys_uio.
11849         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11850         iovec and a minimal struct msghdr.
11851         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11852         * tests/test-sys_socket.c (main): Enhance test.
11853         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11854         guaranteed to provide what we need.
11855         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11856         * modules/passfd-tests (Depends-on): Add sys_wait.
11857         * tests/test-passfd.c (main): Skip test on mingw, for now.
11858         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11859         partial 'struct msghdr' implementation.
11860
11861         sys_uio: new module
11862         * modules/sys_uio: New module.
11863         * modules/sys_uio-tests: Likewise.
11864         * lib/sys_uio.in.h: New file.
11865         * m4/sys_uio_h.m4: Likewise.
11866         * tests/test-sys_uio.c: Likewise.
11867         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11868         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11869
11870 2011-04-20  Jim Meyering  <meyering@redhat.com>
11871
11872         useless-if-before-free: avoid false-positive
11873         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11874         disjunct so that it too requires a terminating ";".  Without that,
11875         this script would identify as useless one statement from gcc that
11876         was not:
11877           if (aligned_ptr)
11878             free (((void **) aligned_ptr) [-1]);
11879
11880 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11881
11882         doc: update users.txt.
11883         * users.txt: Add barcode.
11884
11885 2011-04-19  Bruno Haible  <bruno@clisp.org>
11886
11887         ioctl: Remove link dependency on native Windows.
11888         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11889         (gl_close_fn, gl_ioctl_fn): New types.
11890         (struct fd_hook): Renamed from struct close_hook. Change type of
11891         private_close_fn field. Add private_ioctl_fn field.
11892         (close_hook_fn): Add parameter for primary close method.
11893         (execute_close_hooks, execute_all_close_hooks): Likewise.
11894         (ioctl_hook_fn): New type.
11895         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11896         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11897         argument.
11898         (unregister_fd_hook): Renamed from unregister_close_hook.
11899         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11900         Don't include <unistd.h>.
11901         (close): Remove undef.
11902         (anchor): Update.
11903         (execute_close_hooks): Add argument for primary close method.
11904         (execute_all_close_hooks): Likewise.
11905         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11906         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11907         argument. Allow each argument to be NULL.
11908         (unregister_fd_hook): Renamed from unregister_close_hook.
11909         * lib/close.c (rpl_close): Pass 'close' function pointer to
11910         execute_all_close_hooks.
11911         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11912         (primary_ioctl): New function.
11913         (ioctl): Don't call ioctlsocket here. Instead, call
11914         execute_all_ioctl_hooks.
11915         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11916         close method.
11917         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11918         (fd_sockets_hook): Renamed from close_sockets_hook.
11919         (gl_sockets_startup, gl_sockets_cleanup): Update.
11920         * modules/fd-hook: Renamed from modules/close-hook. Update.
11921         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11922         * modules/sockets (Depends-on): Likewise.
11923         * modules/ioctl (Depends-on): Add fd-hook.
11924         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11925         GNULIB_SOCKET.
11926
11927 2011-04-19  Bruno Haible  <bruno@clisp.org>
11928
11929         Move the support of O_NONBLOCK in open() to the 'open' module.
11930         * modules/nonblocking (Depends-on): Remove 'open'.
11931         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11932         gl_cv_have_open_O_NONBLOCK.
11933         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11934         O_NONBLOCK support.
11935         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11936
11937 2011-04-17  Bruno Haible  <bruno@clisp.org>
11938
11939         pipe2: Simplify code.
11940         * lib/pipe2.c (pipe2): Reduce code duplication.
11941
11942 2011-04-17  Bruno Haible  <bruno@clisp.org>
11943
11944         nonblocking: Add comment.
11945         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11946
11947 2011-04-17  Bruno Haible  <bruno@clisp.org>
11948
11949         nonblocking: Add tests for sockets.
11950         * tests/test-nonblocking-socket.sh: New file.
11951         * tests/test-nonblocking-socket-main.c: New file.
11952         * tests/test-nonblocking-socket-child.c: New file.
11953         * tests/test-nonblocking-socket.h: New file.
11954         * tests/socket-server.h: New file.
11955         * tests/socket-client.h: New file.
11956         * modules/nonblocking-socket-tests: New file.
11957         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11958
11959 2011-04-17  Bruno Haible  <bruno@clisp.org>
11960
11961         nonblocking: Add tests for pipes.
11962         * tests/test-nonblocking-pipe.sh: New file.
11963         * tests/test-nonblocking-pipe-main.c: New file.
11964         * tests/test-nonblocking-pipe-child.c: New file.
11965         * tests/test-nonblocking-pipe.h: New file.
11966         * tests/test-nonblocking-writer.h: New file.
11967         * tests/test-nonblocking-reader.h: New file.
11968         * tests/test-nonblocking-misc.h: New file.
11969         * modules/nonblocking-pipe-tests: New file.
11970         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11971
11972 2011-04-16  Bruno Haible  <bruno@clisp.org>
11973
11974         gettext: Clarify the needed programmer actions.
11975         * modules/gettext (Notice): New field.
11976         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11977
11978 2011-04-16  Bruno Haible  <bruno@clisp.org>
11979
11980         strchrnul: Tweak last commit.
11981         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11982         bug.
11983         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11984         as in _GL_FUNCDECL_SYS.
11985         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11986         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11987
11988 2011-04-15  Eric Blake  <eblake@redhat.com>
11989
11990         strchrnul: work around cygwin bug
11991         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11992         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11994         * modules/string (Makefile.am): Substitute it.
11995         * lib/string.in.h (strchrnul): Use it.
11996
11997 2011-04-15  Bruno Haible  <bruno@clisp.org>
11998
11999         Don't require lib/stdio-write.c when only module 'stdio' is used.
12000         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12001         invocation.
12002         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12003
12004 2011-04-14  Bruno Haible  <bruno@clisp.org>
12005
12006         Support non-blocking pipe I/O in read() on native Windows.
12007         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12008         (read): New declaration.
12009         * lib/read.c: New file.
12010         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12011         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12012         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12013         vscanf): New declarations.
12014         * lib/stdio-read.c: New file.
12015         * m4/read.m4: New file.
12016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12017         REPLACE_READ.
12018         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12019         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12020         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12021         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12022         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12023         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12024         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12025         * modules/read: New file.
12026         * modules/nonblocking (Files): Add lib/stdio-read.c.
12027         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12028         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12029         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12030         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12031         * modules/pread (Depends-on): Add read.
12032         * modules/safe-read (Depends-on): Likewise.
12033         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12034         gets, scanf, vfscanf, vscanf): Verify signatures.
12035         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12036         problem with non-blocking pipes.
12037         * doc/posix-functions/fgetc.texi: Likewise.
12038         * doc/posix-functions/fgets.texi: Likewise.
12039         * doc/posix-functions/fread.texi: Likewise.
12040         * doc/posix-functions/fscanf.texi: Likewise.
12041         * doc/posix-functions/getc.texi: Likewise.
12042         * doc/posix-functions/getchar.texi: Likewise.
12043         * doc/posix-functions/gets.texi: Likewise.
12044         * doc/posix-functions/scanf.texi: Likewise.
12045         * doc/posix-functions/vfscanf.texi: Likewise.
12046         * doc/posix-functions/vscanf.texi: Likewise.
12047
12048 2011-04-14  Bruno Haible  <bruno@clisp.org>
12049
12050         Support non-blocking pipe I/O in write() on native Windows.
12051         * lib/write.c (rpl_write): Split a write request that failed merely
12052         because the byte count was larger than the pipe buffer's size.
12053         * doc/posix-functions/write.texi: Mention the problem with large byte
12054         counts.
12055
12056 2011-04-14  Bruno Haible  <bruno@clisp.org>
12057
12058         wchar: Ensure that wchar_t gets defined on uClibc.
12059         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12060         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12061
12062 2011-04-13  Bruno Haible  <bruno@clisp.org>
12063
12064         safe-write, full-read: Avoid unnecessary compilation units.
12065         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12066         (Depends-on): Remove safe-read. Add ssize_t.
12067         * modules/full-read (Files): Add lib/full-write.c.
12068         (Depends-on): Add full-write.
12069
12070 2011-04-13  Bruno Haible  <bruno@clisp.org>
12071
12072         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12073         * modules/pwrite (Depends-on): Add 'write'.
12074
12075 2011-04-13  Bruno Haible  <bruno@clisp.org>
12076
12077         Support non-blocking pipe I/O in write() on native Windows.
12078         * lib/unistd.in.h (write): Enable replacement also if
12079         GNULIB_UNISTD_H_NONBLOCKING is 1.
12080         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12081         (rpl_write): When failing to write on a non-blocking pipe, change
12082         errno from ENOSPC to EAGAIN.
12083         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12084         putchar, puts, vfprintf, vprintf): Enable replacement also if
12085         GNULIB_STDIO_H_NONBLOCKING is 1.
12086         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12087         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12088         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12089         CALL_WITH_SIGPIPE_EMULATION.
12090         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12091         * m4/nonblocking.m4: New file.
12092         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12093         for non-blocking I/O support.
12094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12095         GNULIB_UNISTD_H_NONBLOCKING.
12096         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12097         required for non-blocking I/O support.
12098         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12099         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12100         lib/stdio-write.c, m4/asm-underscore.m4.
12101         (Depends-on): Add stdio, unistd.
12102         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12103         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12104         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12105         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12106         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12107         problem with non-blocking pipes.
12108         * doc/posix-functions/fputc.texi: Likewise.
12109         * doc/posix-functions/fputs.texi: Likewise.
12110         * doc/posix-functions/fwrite.texi: Likewise.
12111         * doc/posix-functions/printf.texi: Likewise.
12112         * doc/posix-functions/putc.texi: Likewise.
12113         * doc/posix-functions/putchar.texi: Likewise.
12114         * doc/posix-functions/puts.texi: Likewise.
12115         * doc/posix-functions/vfprintf.texi: Likewise.
12116         * doc/posix-functions/vprintf.texi: Likewise.
12117         * doc/posix-functions/write.texi: Likewise.
12118
12119 2011-04-10  Jim Meyering  <meyering@redhat.com>
12120
12121         maint.mk: prohibit doubled words
12122         Detect them also when they're separated by a newline.
12123         There are 3 ways to customize it:
12124           - disable the test on a per file basis, as usual with rules using
12125             $(VC_LIST_EXCEPT)
12126           - replace the default doubled-word-selecting regexp (affects all files)
12127           - ignore a particular file-vs-doubled-word match
12128         I nearly used that last one to ignore the "is is" match in
12129         coreutils' NEWS file, since the text was "ls -is is ..."
12130         To do that, I would have added this line to cfg.mk:
12131           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12132         but it would have ignored any "is is" match in NEWS.
12133         Low probability, but still...
12134         Instead, I changed the text, slightly:
12135           -  ls -is is now consistent with ls -lis in ignoring values returned
12136           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12137         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12138         (prohibit_doubled_word_): Define.
12139         (sc_prohibit_doubled_word): New rule.
12140         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12141
12142 2011-04-10  Jim Meyering  <meyering@redhat.com>
12143
12144         maint: fix doubled-word typo in comment
12145         * m4/gethostname.m4: s/is is/it is/
12146         * m4/getdomainname.m4: Likewise.
12147
12148 2011-04-10  Jim Meyering  <meyering@redhat.com>
12149
12150         maint: remove doubled word: s/it it/it/
12151         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12152
12153 2011-04-10  Jim Meyering  <meyering@redhat.com>
12154
12155         maint.mk: remove useless semicolon and backslash
12156         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12157         semicolon and backslash.
12158
12159 2011-04-10  Bruno Haible  <bruno@clisp.org>
12160
12161         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12162         * modules/stdint-tests (Depends-on): Add wchar.
12163
12164 2011-04-10  Jim Meyering  <meyering@redhat.com>
12165
12166         maint: remove doubled words in comments, e.g., s/a a/a/
12167         * lib/strptime.c (day_of_the_week): s/the the/the/
12168         * tests/test-chown.h (test_chown): s/a a/a/
12169
12170         test-chown.h: correct a cast
12171         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12172         when the destination is a stat.st_gid.
12173
12174 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12175
12176         getaddrinfo: Fix test for sa_len member.
12177         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12178         include <sys/types.h> before <sys/socket.h>.
12179
12180 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12181
12182         maint: change "can not" to "cannot"
12183         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12184         boundaries.
12185
12186 2011-04-09  Jim Meyering  <meyering@redhat.com>
12187
12188         maint: change "a a" to "a"
12189         * tests/test-lchown.h (test_lchown): s/a a/a/
12190
12191         maint.mk: prohibit \<the the\>
12192         * top/maint.mk (sc_prohibit_the_the): New rule.
12193
12194         maint: fix "the the" in comment
12195         * lib/count-one-bits.h: s/the the/the/
12196
12197         maint: change "can not" to "cannot"
12198         But do not change the occurrences in maintain.texi or in
12199         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12200         * doc/gnulib-tool.texi: s/can not/cannot/
12201         * doc/posix-functions/accept.texi (accept): Likewise.
12202         * doc/posix-functions/socket.texi (socket): Likewise.
12203         * lib/mbrtowc.c: Likewise.
12204
12205         maint.mk: prohibit use of "can not"
12206         * top/maint.mk (sc_prohibit_can_not): New rule.
12207         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12208
12209 2011-04-09  Bruno Haible  <bruno@clisp.org>
12210
12211         careadlinkat: Guard against misuse of careadlinkatcwd.
12212         * lib/careadlinkat.c: Include <stdlib.h>.
12213         (careadlinkatcwd): Check that the fd argument is as expected.
12214
12215 2011-04-09  Bruno Haible  <bruno@clisp.org>
12216
12217         careadlinkat: Use common coding style.
12218         * lib/careadlinkat.c: Move gnulib includes after system includes.
12219
12220 2011-04-09  Bruno Haible  <bruno@clisp.org>
12221
12222         careadlinkat: Clarify specification.
12223         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12224         (careadlinkatcwd): Add comment.
12225         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12226
12227 2011-04-09  Bruno Haible  <bruno@clisp.org>
12228
12229         areadlinkat: Avoid link error on many platforms.
12230         * modules/areadlinkat (Depends-on): Add areadlink.
12231
12232 2011-04-09  Bruno Haible  <bruno@clisp.org>
12233
12234         allocator, careadlinkat: Fix double-inclusion guard.
12235         * lib/allocator.h: Fix double-inclusion guard.
12236         * lib/careadlinkat.h: Likewise.
12237
12238 2011-04-09  Bruno Haible  <bruno@clisp.org>
12239
12240         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12241         * lib/relocwrapper.c: Update dependencies hierarchy.
12242         * build-aux/install-reloc: Update list of files to be compiled.
12243         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12244         lib/allocator.[hc].
12245
12246 2011-04-08  Eric Blake  <eblake@redhat.com>
12247
12248         strftime: silence gnulib-tool warning
12249         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12250
12251 2011-04-08  Bruno Haible  <bruno@clisp.org>
12252
12253         verify: Fix syntax error with GCC 4.6 in C++ mode.
12254         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12255         (HAVE_STATIC_ASSERT): New macro.
12256         (verify_true, verify): Use 'static_assert' if it is supported and
12257         '_Static_assert' is not supported.
12258
12259 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12260
12261         allocator: New module.
12262         * modules/allocator, lib/allocator.c: New files.
12263         * lib/allocator.h (stdlib_allocator): New decl.
12264         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12265         Remove.  Do not include <stdlib.h>.
12266         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12267         * modules/careadlinkat (Files): Remove lib/allocator.h.
12268         (Depends-on): Add allocator.
12269
12270         stdlib: let modules use system malloc, realloc
12271         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12272         if !_GL_USE_STDLIB_ALLOC.
12273         (malloc, realloc): Limit this change to a smaller scope.
12274
12275         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12276         (malloc, realloc): Don't #undef; no longer needed.
12277         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12278         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12279         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12280         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12281         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12282         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12283         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12284         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12285
12286         careadlinkat: rename members to avoid problem
12287         * lib/allocator.h (struct allocator): Rename members from
12288         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12289         and realloc are #define'd.  Reported by Eric Blake in
12290         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12291         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12292
12293 2011-04-08  Eric Blake  <eblake@redhat.com>
12294
12295         nonblocking: reduce dependency
12296         * tests/test-nonblocking.c: Only test sockets when in use.
12297         * modules/nonblocking-tests (Depends-on): Drop socket.
12298         (Makefile.am): Link even if sockets are not present.
12299         * modules/pipe2-tests (Makefile.am): Likewise.
12300         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12301
12302         pipe2: fix O_NONBLOCK support on mingw
12303         * modules/pipe2 (Depends-on): Add nonblocking.
12304         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12305         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12306         * tests/test-nonblocking.c (main): Likewise.
12307         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12308
12309         fcntl-h: fix O_ACCMODE on cygwin
12310         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12311         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12312
12313         pipe-filter: drop O_NONBLOCK workarounds
12314         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12315         * modules/pipe-filter-ii (Depends-on): Likewise.
12316         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12317
12318         nonblocking: provide O_NONBLOCK for mingw
12319         * modules/nonblocking (Depends-on): Add open.
12320         (configure.ac): Set new witness macro.
12321         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12322         * modules/fcntl-h (Makefile.am): Substitute it.
12323         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12324         nonblocking module is in use.
12325         * lib/nonblocking.c: Adjust portability test.
12326         * lib/open.c (open): Don't let native open see gnulib flag.
12327         * tests/test-fcntl-h.c (main): Enhance test.
12328         * tests/test-open.h (test_open): Likewise.
12329         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12330
12331         careadlinkat: fix compilation error on mingw
12332         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12333         within struct allocator.
12334
12335 2011-04-06  Eric Blake  <eblake@redhat.com>
12336
12337         binary-io: relicense under LGPLv2+
12338         * modules/binary-io (License): Relax to LGPLv2+.
12339         Requested for libvirt, and required by pipe2.
12340
12341 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12342
12343         verify: use _Static_assert if available
12344         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12345         (verify_true, verify): Use it if available.  This generates better
12346         diagnostics with GCC 4.6.0 and later.
12347
12348 2011-04-05  Bruno Haible  <bruno@clisp.org>
12349
12350         Remove leftover generated .h files after config.status changed.
12351
12352         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12353         GL_GENERATE_ALLOCA_H.
12354         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12355         GL_GENERATE_ALLOCA_H evaluates to false.
12356
12357         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12358         GL_GENERATE_ARGZ_H.
12359         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12360         evaluates to false.
12361
12362         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12363         GL_GENERATE_BYTESWAP_H.
12364         * modules/byteswap (Makefile.am): Remove byteswap.h if
12365         GL_GENERATE_BYTESWAP_H evaluates to false.
12366
12367         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12368         GL_GENERATE_ERRNO_H.
12369         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12370         evaluates to false.
12371
12372         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12373         GL_GENERATE_FLOAT_H.
12374         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12375         evaluates to false.
12376
12377         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12378         GL_GENERATE_FNMATCH_H.
12379         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12380         GL_GENERATE_FNMATCH_H evaluates to false.
12381
12382         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12383         GL_GENERATE_GLOB_H.
12384         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12385         evaluates to false.
12386
12387         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12388         automake conditional GL_GENERATE_ICONV_H.
12389         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12390         evaluates to false.
12391
12392         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12393         GL_GENERATE_NETINET_IN_H.
12394         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12395         GL_GENERATE_NETINET_IN_H evaluates to false.
12396
12397         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12398         conditional GL_GENERATE_PTHREAD_H.
12399         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12400         * modules/pthread (Makefile.am): Remove pthread.h if
12401         GL_GENERATE_PTHREAD_H evaluates to false.
12402
12403         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12404         GL_GENERATE_SCHED_H.
12405         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12406         evaluates to false.
12407
12408         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12409         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12410         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12411         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12412
12413         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12414         GL_GENERATE_STDARG_H.
12415         * modules/stdarg (Makefile.am): Remove stdarg.h if
12416         GL_GENERATE_STDARG_H evaluates to false.
12417
12418         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12419         GL_GENERATE_STDBOOL_H.
12420         * modules/stdbool (Makefile.am): Remove stdbool.h if
12421         GL_GENERATE_STDBOOL_H evaluates to false.
12422
12423         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12424         conditional GL_GENERATE_STDDEF_H.
12425         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12426         * modules/stddef (Makefile.am): Remove stddef.h if
12427         GL_GENERATE_STDDEF_H evaluates to false.
12428
12429         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12430         GL_GENERATE_STDINT_H.
12431         * modules/stdint (Makefile.am): Remove stdint.h if
12432         GL_GENERATE_STDINT_H evaluates to false.
12433
12434         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12435         GL_GENERATE_SYSEXITS_H.
12436         * modules/sysexits (Makefile.am): Remove sysexits.h if
12437         GL_GENERATE_SYSEXITS_H evaluates to false.
12438
12439         Reported by Karl Berry and Ralf Wildenhues.
12440
12441 2011-04-05  Bruno Haible  <bruno@clisp.org>
12442
12443         Ensure to rebuild generated .h files when config.status has changed.
12444         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12445         config.status.
12446         * modules/ctype (Makefile.am): Likewise.
12447         * modules/dirent (Makefile.am): Likewise.
12448         * modules/errno (Makefile.am): Likewise.
12449         * modules/fcntl-h (Makefile.am): Likewise.
12450         * modules/float (Makefile.am): Likewise.
12451         * modules/getopt-posix (Makefile.am): Likewise.
12452         * modules/glob (Makefile.am): Likewise.
12453         * modules/iconv-h (Makefile.am): Likewise.
12454         * modules/inttypes (Makefile.am): Likewise.
12455         * modules/langinfo (Makefile.am): Likewise.
12456         * modules/locale (Makefile.am): Likewise.
12457         * modules/math (Makefile.am): Likewise.
12458         * modules/netdb (Makefile.am): Likewise.
12459         * modules/netinet_in (Makefile.am): Likewise.
12460         * modules/poll-h (Makefile.am): Likewise.
12461         * modules/pthread (Makefile.am): Likewise.
12462         * modules/pty (Makefile.am): Likewise.
12463         * modules/sched (Makefile.am): Likewise.
12464         * modules/search (Makefile.am): Likewise.
12465         * modules/selinux-h (Makefile.am): Likewise.
12466         * modules/signal (Makefile.am): Likewise.
12467         * modules/spawn (Makefile.am): Likewise.
12468         * modules/stdarg (Makefile.am): Likewise.
12469         * modules/stdbool (Makefile.am): Likewise.
12470         * modules/stddef (Makefile.am): Likewise.
12471         * modules/stdint (Makefile.am): Likewise.
12472         * modules/stdio (Makefile.am): Likewise.
12473         * modules/stdlib (Makefile.am): Likewise.
12474         * modules/string (Makefile.am): Likewise.
12475         * modules/strings (Makefile.am): Likewise.
12476         * modules/sys_file (Makefile.am): Likewise.
12477         * modules/sys_ioctl (Makefile.am): Likewise.
12478         * modules/sys_select (Makefile.am): Likewise.
12479         * modules/sys_socket (Makefile.am): Likewise.
12480         * modules/sys_stat (Makefile.am): Likewise.
12481         * modules/sys_time (Makefile.am): Likewise.
12482         * modules/sys_times (Makefile.am): Likewise.
12483         * modules/sys_utsname (Makefile.am): Likewise.
12484         * modules/sys_wait (Makefile.am): Likewise.
12485         * modules/sysexits (Makefile.am): Likewise.
12486         * modules/termios (Makefile.am): Likewise.
12487         * modules/time (Makefile.am): Likewise.
12488         * modules/unistd (Makefile.am): Likewise.
12489         * modules/wchar (Makefile.am): Likewise.
12490         * modules/wctype-h (Makefile.am): Likewise.
12491         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12492
12493 2011-04-05  Bruno Haible  <bruno@clisp.org>
12494
12495         pipe2: Relicense under LGPLv2+.
12496         * modules/pipe2 (License): Change to LGPLv2+.
12497         Requested by Eric Blake, for libvirt.
12498
12499 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12500
12501         bootstrap: compute gnulib_extra_files after updating build_aux
12502         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12503         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12504
12505 2011-04-05  Eric Blake  <eblake@redhat.com>
12506
12507         bootstrap: preserve git whitelist item sorting
12508         * build-aux/bootstrap (sort_patterns): New function.
12509         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12510
12511 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12512
12513         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12514         sc_space_tab check.
12515
12516 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12517
12518         areadlink, areadlinkat: rewrite in terms of careadlinkat
12519         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12520         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12521         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12522         (malloc, realloc): Remove #undefs.
12523         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12524         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12525         readlink, ssize_t, stdint, unistd.
12526         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12527         areadlink, stdint.
12528
12529         careadlinkat: new module
12530         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12531         * modules/careadlinkat: New files, written by me with
12532         a review and feedback from Ben Pfaff in
12533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12534
12535 2011-04-01  Bruno Haible  <bruno@clisp.org>
12536
12537         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12538         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12539         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12540         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12541         Reported by Bruce Korb <bruce.korb@gmail.com>.
12542
12543 2011-04-01  Bruno Haible  <bruno@clisp.org>
12544
12545         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12546         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12547         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12548         * modules/wcpcpy (Depends-on): Add extensions.
12549         * modules/wcpncpy (Depends-on): Likewise.
12550         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12551         systems.
12552         * doc/posix-functions/wcpncpy.texi: Likewise.
12553         * doc/posix-functions/wcwidth.texi: Likewise.
12554
12555 2011-03-31  Eric Blake  <eblake@redhat.com>
12556
12557         nonblocking: fix mingw test failures
12558         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12559         non-blocking flag on regular file.
12560         (get_nonblocking_flag): Set errno on invalid fd.
12561         * tests/test-nonblocking.c (main): Avoid test failure on
12562         directories if fchdir is not active.
12563         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12564
12565 2011-03-31  Bruno Haible  <bruno@clisp.org>
12566
12567         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12568         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12569         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12570         Reported by Simon Josefsson <simon@josefsson.org>.
12571
12572 2011-03-31  Bruno Haible  <bruno@clisp.org>
12573         and Eric Blake  <eblake@redhat.com>
12574
12575         nonblocking: new module
12576         * modules/nonblocking: New module.
12577         * modules/nonblocking-tests: Likewise.
12578         * lib/nonblocking.h: New file.
12579         * lib/nonblocking.c: Likewise.
12580         * tests/test-nonblocking.c: New test.
12581         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12582
12583 2011-03-30  Bruno Haible  <bruno@clisp.org>
12584
12585         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12586         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12587         instead of 'printf' format for GCC >= 4.4.
12588         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12589         (fprintf, printf, vfprintf, vprintf): Declare with
12590         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12591         the system's vfprintf() function.
12592         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12593
12594 2011-03-30  Eric Blake  <eblake@redhat.com>
12595
12596         passfd: fix scoping bug
12597         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12598         before sendmsg/recvmsg.
12599
12600         passfd: standardize coding conventions
12601         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12602         can be learned at compile time.
12603         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12604         ifdefs.
12605         (sendfd, recvfd): Follow gnulib code conventions.
12606
12607         passfd: fix incorrect sendmsg arguments
12608         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12609         incorrect msg_controllen value.
12610         * modules/passfd-tests (Depends-on): Check for alarm.
12611         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12612         Reported by Bastien ROUCARIES.
12613
12614 2011-03-30  Bruno Haible  <bruno@clisp.org>
12615
12616         c-strcasestr: Relicense under LGPLv2+.
12617         * modules/c-strcasestr (License): Change to LGPLv2+.
12618         Requested by Eric Blake, for libvirt.
12619
12620 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12621
12622         * users.txt: Add libidn2.  Fix libtasn1 link.
12623
12624 2011-03-30  Jim Meyering  <meyering@redhat.com>
12625
12626         tests: readlink* ("",... fails with EINVAL on newer kernels
12627         readlink and readlinkat have typically failed with ENOENT for
12628         the invalid, empty file name,  "".  However, with the advent
12629         of linux-2.6.39, they fail with EINVAL.
12630         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12631         when operating on the empty file name.
12632         * tests/test-readlink.h (test_readlink): Likewise.
12633
12634 2011-03-29  Bruno Haible  <bruno@clisp.org>
12635
12636         Relicense some modules under LGPLv2+, for libidn2.
12637         * modules/array-mergesort (License): Change to LGPLv2+.
12638         * modules/c-strcaseeq (License): Likewise.
12639         * modules/striconveh (License): Likewise.
12640         * modules/striconveha (License): Likewise.
12641         * modules/uniconv/base (License): Likewise.
12642         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12643         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12644         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12645         * modules/unictype/base (License): Likewise.
12646         * modules/unictype/bidiclass-of (License): Likewise.
12647         * modules/unictype/category-M (License): Likewise.
12648         * modules/unictype/category-none (License): Likewise.
12649         * modules/unictype/category-of (License): Likewise.
12650         * modules/unictype/category-test (License): Likewise.
12651         * modules/unictype/category-test-withtable (License): Likewise.
12652         * modules/unictype/combining-class (License): Likewise.
12653         * modules/unictype/joiningtype-of (License): Likewise.
12654         * modules/unictype/scripts (License): Likewise.
12655         * modules/uninorm/base (License): Likewise.
12656         * modules/uninorm/canonical-decomposition (License): Likewise.
12657         * modules/uninorm/composition (License): Likewise.
12658         * modules/uninorm/decompose-internal (License): Likewise.
12659         * modules/uninorm/decomposition-table (License): Likewise.
12660         * modules/uninorm/nfc (License): Likewise.
12661         * modules/uninorm/nfd (License): Likewise.
12662         * modules/uninorm/u32-normalize (License): Likewise.
12663         * modules/unistr/base (License): Likewise.
12664         * modules/unistr/u32-cpy (License): Likewise.
12665         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12666         * modules/unistr/u32-to-u8 (License): Likewise.
12667         * modules/unistr/u32-uctomb (License): Likewise.
12668         * modules/unistr/u8-check (License): Likewise.
12669         * modules/unistr/u8-mblen (License): Likewise.
12670         * modules/unistr/u8-mbtouc (License): Likewise.
12671         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12672         * modules/unistr/u8-mbtoucr (License): Likewise.
12673         * modules/unistr/u8-prev (License): Likewise.
12674         * modules/unistr/u8-strlen (License): Likewise.
12675         * modules/unistr/u8-to-u32 (License): Likewise.
12676         * modules/unistr/u8-uctomb (License): Likewise.
12677         * modules/unitypes (License): Likewise.
12678         Requested by Simon Josefsson.
12679
12680 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12681
12682         lib-symbol-visibility: Add a notice.
12683         * modules/lib-symbol-visibility (Notice): New field.
12684
12685 2011-03-29  Bruno Haible  <bruno@clisp.org>
12686
12687         getaddrinfo: Doc fix.
12688         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12689         section "fixed in Gnulib".
12690
12691 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12692
12693         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12694         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12695
12696 2011-03-26  Bruno Haible  <bruno@clisp.org>
12697
12698         unictype/property-byname: Reduce the number of load-time relocations.
12699         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12700         (UC_PROPERTY_INDEX_*): New enumeration values.
12701         (uc_property_byname): Convert an index from the lookup table to an
12702         uc_property_t.
12703         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12704         values.
12705
12706 2011-03-26  Bruno Haible  <bruno@clisp.org>
12707
12708         unictype/property-byname: Allow omitted word separators and aliases.
12709         * lib/unictype/pr_byname.gperf: Add property names without word
12710         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12711         for 'space'.
12712
12713 2011-03-26  Bruno Haible  <bruno@clisp.org>
12714
12715         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12716         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12717         also hyphens to space.
12718         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12719         without spaces.
12720         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12721
12722 2011-03-26  Bruno Haible  <bruno@clisp.org>
12723
12724         unictype/joiningtype-byname: Recognize long names as well.
12725         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12726         a long name.
12727         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12728         unictype/joiningtype_byname.h.
12729         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12730         * lib/unictype/joiningtype_byname.gperf: New file.
12731         * modules/unictype/joiningtype-byname (Files): Add
12732         lib/unictype/joiningtype_byname.gperf.
12733         (Depends-on): Add gperf.
12734         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12735         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12736         long names.
12737
12738         Tests for module 'unictype/joiningtype-longname'.
12739         * modules/unictype/joiningtype-longname-tests: New file.
12740         * tests/unictype/test-joiningtype_longname.c: New file.
12741
12742         New module 'unictype/joiningtype-longname'.
12743         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12744         * lib/unictype/joiningtype_longname.c: New file.
12745         * modules/unictype/joiningtype-longname: New file.
12746         * modules/unictype/joiningtype-all (Depends-on): Add
12747         unictype/joiningtype-longname.
12748
12749 2011-03-26  Bruno Haible  <bruno@clisp.org>
12750
12751         unictype/bidiclass-byname: Recognize long names as well.
12752         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12753         name.
12754         * lib/unictype/bidi_byname.c: Include <string.h>,
12755         unictype/bidi_byname.h.
12756         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12757         * lib/unictype/bidi_byname.gperf: New file.
12758         * modules/unictype/bidiclass-byname (Files): Add
12759         lib/unictype/bidi_byname.gperf.
12760         (Depends-on): Add gperf.
12761         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12762         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12763         long names.
12764
12765         Tests for module 'unictype/bidiclass-longname'.
12766         * modules/unictype/bidiclass-longname-tests: New file.
12767         * tests/unictype/test-bidi_longname.c: New file.
12768
12769         New module 'unictype/bidiclass-longname'.
12770         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12771         * lib/unictype/bidi_longname.c: New file.
12772         * modules/unictype/bidiclass-longname: New file.
12773         * modules/unictype/bidiclass-all (Depends-on): Add
12774         unictype/bidiclass-longname.
12775
12776 2011-03-26  Bruno Haible  <bruno@clisp.org>
12777
12778         unictype/bidi*: Rename modules.
12779         * modules/unictype/bidiclass-all: Renamed from
12780         modules/unictype/bidicategory-all.
12781         * modules/unictype/bidiclass-name: Renamed from
12782         modules/unictype/bidiclass-name.
12783         (Description): Update.
12784         * modules/unictype/bidiclass-name-tests: Renamed from
12785         modules/unictype/bidicategory-name-tests.
12786         * modules/unictype/bidiclass-byname: Renamed from
12787         modules/unictype/bidicategory-byname.
12788         (Description): Update.
12789         * modules/unictype/bidiclass-byname-tests: Renamed from
12790         modules/unictype/bidicategory-byname-tests.
12791         * modules/unictype/bidiclass-of: Renamed from
12792         modules/unictype/bidicategory-of.
12793         (Description): Update.
12794         * modules/unictype/bidiclass-of-tests: Renamed from
12795         modules/unictype/bidicategory-of-tests.
12796         * modules/unictype/bidiclass-test: Renamed from
12797         modules/unictype/bidicategory-test.
12798         (Description): Update.
12799         * modules/unictype/bidiclass-test-tests: Renamed from
12800         modules/unictype/bidicategory-test-tests.
12801         * modules/unictype/bidicategory-all: New file, a simple redirection.
12802         * modules/unictype/bidicategory-name: Likewise.
12803         * modules/unictype/bidicategory-byname: Likewise.
12804         * modules/unictype/bidicategory-of: Likewise.
12805         * modules/unictype/bidicategory-test: Likewise.
12806         * modules/unictype/property-bidi-* (Dependencies): Update.
12807         * lib/unictype/bidi_*.c: Update comment.
12808
12809 2011-03-26  Bruno Haible  <bruno@clisp.org>
12810
12811         unictype/bidi*: Rename functions, part 2.
12812         * modules/unictype/bidicategory-name (configure.ac): Update required
12813         libunistring version.
12814         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12815
12816 2011-03-25  Bruno Haible  <bruno@clisp.org>
12817
12818         New module 'unictype/combining-class-all'.
12819         * modules/unictype/combining-class-all: New file.
12820
12821         Tests for module 'unictype/combining-class-byname'.
12822         * modules/unictype/combining-class-byname-tests: New file.
12823         * tests/unictype/test-combiningclass_byname.c: New file.
12824
12825         New module 'unictype/combining-class-byname'.
12826         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12827         * lib/unictype/combiningclass_byname.c: New file.
12828         * lib/unictype/combiningclass_byname.gperf: New file.
12829         * modules/unictype/combining-class-byname: New file.
12830
12831         Tests for module 'unictype/combining-class-longname'.
12832         * modules/unictype/combining-class-longname-tests: New file.
12833         * tests/unictype/test-combiningclass_longname.c: New file.
12834
12835         New module 'unictype/combining-class-longname'.
12836         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12837         * lib/unictype/combiningclass_longname.c: New file.
12838         * modules/unictype/combining-class-longname: New file.
12839
12840         Tests for module 'unictype/combining-class-name'.
12841         * modules/unictype/combining-class-name-tests: New file.
12842         * tests/unictype/test-combiningclass_name.c: New file.
12843
12844         New module 'unictype/combining-class-name'.
12845         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12846         * lib/unictype/combiningclass_name.c: New file.
12847         * modules/unictype/combining-class-name: New file.
12848
12849 2011-03-25  Bruno Haible  <bruno@clisp.org>
12850
12851         unictype/combining-class: Rename source files.
12852         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12853         of unictype/combining.h.
12854         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12855         Update.
12856         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12857         * modules/unictype/combining-class (Description): Fix.
12858         (Files, Makefile.am): Update.
12859         * tests/unictype/test-combiningclass.c: Renamed from
12860         tests/unictype/test-combining.c.
12861         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12862
12863 2011-03-25  Bruno Haible  <bruno@clisp.org>
12864
12865         unictype: Update list of canonical combining classes.
12866         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12867
12868 2011-03-25  Bruno Haible  <bruno@clisp.org>
12869
12870         unictype/category-byname: Recognize long names as well.
12871         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12872         a long name.
12873         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12874         unictype/categ_byname.h.
12875         (UC_CATEGORY_INDEX_*): New enumeration values.
12876         (uc_general_category_byname): Use uc_general_category_lookup and
12877         convert from index to value.
12878         * lib/unictype/categ_byname.gperf: New file.
12879         * modules/unictype/category-byname (Files): Add
12880         lib/unictype/categ_byname.gperf.
12881         (Depends-on): Add gperf.
12882         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12883         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12884         long names.
12885
12886         Tests for module 'unictype/category-longname'.
12887         * modules/unictype/category-longname-tests: New file.
12888         * tests/unictype/test-categ_longname.c: New file.
12889
12890         New module 'unictype/category-longname'.
12891         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12892         * lib/unictype/categ_longname.c: New file.
12893         * modules/unictype/category-longname: New file.
12894         * modules/unictype/category-all (Depends-on): Add it.
12895
12896 2011-03-25  Bruno Haible  <bruno@clisp.org>
12897
12898         Tests for module 'unictype/category-LC'.
12899         * modules/unictype/category-LC-tests: New file.
12900         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12901
12902         New module 'unictype/category-LC'.
12903         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12904         (UC_CATEGORY_LC): New declaration.
12905         (UC_CASED_LETTER): New macro.
12906         * lib/gen-uni-tables.c (is_category_LC): New function.
12907         (output_categories): Also handle category LC.
12908         (UC_CATEGORY_MASK_LC): New enumeration value.
12909         (general_category_byname): Also handle category LC.
12910         * lib/unictype/categ_LC.c: New file.
12911         * lib/unictype/categ_LC.h: New file, automatically generated.
12912         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12913         category LC.
12914         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12915         * modules/unictype/category-LC: New file.
12916         * modules/unictype/category-byname (Depends-on): Add
12917         unictype/category-LC.
12918         * modules/unictype/category-all (Depends-on): Likewise.
12919
12920 2011-03-25  Eric Blake  <eblake@redhat.com>
12921
12922         xmalloc: revert yesterday's regression
12923         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12924         realloc's underlying behavior (allowing allocation of zero-size
12925         objects, especially if malloc-gnu is also in use).
12926
12927 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12928
12929         maint.mk: add missing version to VC-tag
12930         * top/maint.mk: git tag was missing actual tag name; add it.
12931
12932         valgrind: do leak checking, and exit with code 1 on error (not 0)
12933         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12934         to VALGRIND.
12935
12936 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12937
12938         posix-modules: say what it does.
12939         * posix-modules: Add a line to the --help output saying what it does.
12940
12941 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12942
12943         xmalloc: Do not leak if underlying realloc is C99 compatible.
12944         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12945         This avoids a leak on C99-based systems.  See
12946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12947
12948 2011-03-24  Eric Blake  <eblake@redhat.com>
12949
12950         realloc: document portability problem
12951         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12952         passing 0 size to realloc.
12953
12954 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12955
12956         doc: update users.txt
12957         * users.txt: Add cvsps, tmpwatch
12958
12959 2011-03-23  Matt Rice  <ratmice@gmail.com>
12960
12961         doc: update users.txt
12962         * users.txt: Add gdb.
12963
12964 2011-03-23  Jim Meyering  <meyering@redhat.com>
12965
12966         doc: update users.txt
12967         Looking through matches up to the following URL (there are still
12968         several more pages), I found several projects that use gnulib:
12969         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12970         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12971         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12972
12973 2011-03-22  Bruno Haible  <bruno@clisp.org>
12974
12975         unictype/bidi*: Rename functions.
12976         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12977         uc_bidi_class, uc_is_bidi_class): New declarations.
12978         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12979         uc_bidi_category_byname.
12980         (uc_bidi_category_byname): New function.
12981         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12982         u_bidi_category_name.
12983         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12984         (uc_bidi_category_name): New function.
12985         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12986         uc_bidi_category.
12987         (uc_bidi_category): New function.
12988         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12989         uc_is_bidi_category. Invoke uc_bidi_class.
12990         (uc_is_bidi_category): New function.
12991         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12992         instead of uc_bidi_category_byname.
12993         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12994         instead of uc_bidi_category_name.
12995         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12996         uc_bidi_category.
12997         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12998         instead of uc_is_bidi_category.
12999
13000 2011-03-21  Bruno Haible  <bruno@clisp.org>
13001
13002         New module 'unictype/joininggroup-all'.
13003         * modules/unictype/joininggroup-all: New file.
13004
13005         Tests for module 'unictype/joininggroup-of'.
13006         * modules/unictype/joininggroup-of-tests: New file.
13007         * tests/unictype/test-joininggroup_of.c: New file.
13008         * tests/unictype/test-joininggroup_of.h: New file, automatically
13009         generated by gen-uni-tables.
13010
13011         New module 'unictype/joininggroup-of'.
13012         * modules/unictype/joininggroup-of: New file.
13013         * lib/unictype/joininggroup_of.c: New file.
13014         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13015         gen-uni-tables.
13016
13017         Tests for module 'unictype/joininggroup-byname'.
13018         * modules/unictype/joininggroup-byname-tests: New file.
13019         * tests/unictype/test-joininggroup_byname.c: New file.
13020
13021         New module 'unictype/joininggroup-byname'.
13022         * modules/unictype/joininggroup-byname: New file.
13023         * lib/unictype/joininggroup_byname.c: New file.
13024         * lib/unictype/joininggroup_byname.gperf: New file.
13025
13026         Tests for module 'unictype/joininggroup-name'.
13027         * modules/unictype/joininggroup-name-tests: New file.
13028         * tests/unictype/test-joininggroup_name.c: New file.
13029
13030         New module 'unictype/joininggroup-name'.
13031         * modules/unictype/joininggroup-name: New file.
13032         * lib/unictype/joininggroup_name.c: New file.
13033         * lib/unictype/joininggroup_name.h: New file.
13034
13035         New module 'unictype/joiningtype-all'.
13036         * modules/unictype/joiningtype-all: New file.
13037
13038         Tests for module 'unictype/joiningtype-of'.
13039         * modules/unictype/joiningtype-of-tests: New file.
13040         * tests/unictype/test-joiningtype_of.c: New file.
13041         * tests/unictype/test-joiningtype_of.h: New file, automatically
13042         generated by gen-uni-tables.
13043
13044         New module 'unictype/joiningtype-of'.
13045         * modules/unictype/joiningtype-of: New file.
13046         * lib/unictype/joiningtype_of.c: New file.
13047         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13048         gen-uni-tables.
13049
13050         Tests for module 'unictype/joiningtype-byname'.
13051         * modules/unictype/joiningtype-byname-tests: New file.
13052         * tests/unictype/test-joiningtype_byname.c: New file.
13053
13054         New module 'unictype/joiningtype-byname'.
13055         * modules/unictype/joiningtype-byname: New file.
13056         * lib/unictype/joiningtype_byname.c: New file.
13057
13058         Tests for module 'unictype/joiningtype-name'.
13059         * modules/unictype/joiningtype-name-tests: New file.
13060         * tests/unictype/test-joiningtype_name.c: New file.
13061
13062         New module 'unictype/joiningtype-name'.
13063         * modules/unictype/joiningtype-name: New file.
13064         * lib/unictype/joiningtype_name.c: New file.
13065
13066         unictype: Add support for Arabic shaping properties.
13067         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13068         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13069         declarations.
13070         (UC_JOINING_GROUP_*): New enumeration values.
13071         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13072         declarations.
13073         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13074         (unicode_joining_type): New variable.
13075         (UC_JOINING_GROUP_*): New enumeration values.
13076         (unicode_joining_group): New variable.
13077         (fill_arabicshaping, joining_type_as_c_identifier,
13078         output_joining_type_test, output_joining_type,
13079         joining_group_as_c_identifier, output_joining_group_test,
13080         output_joining_group): New functions.
13081         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13082         fill_arabicshaping and output_joining_type_test, output_joining_type,
13083         output_joining_group_test, output_joining_group.
13084         Reported by Simon Josefsson.
13085
13086 2011-03-21  Jim Meyering  <meyering@redhat.com>
13087
13088         strftime: fix a bug in yesterday's change
13089         * lib/strftime.c (add): Accommodate width's initial value of -1.
13090         Otherwise, nstrftime would copy uninitialized data into
13091         the result buffer.
13092
13093 2011-03-21  Jim Meyering  <meyering@redhat.com>
13094
13095         tests: add strftime-tests module
13096         * tests/test-strftime.c: New file.
13097         * modules/strftime-tests: New module.
13098
13099 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13100
13101         strftime: don't assume a byte count fits in 'int'
13102         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13103         found this problem by static analysis, using gcc -Wstrict-overflow
13104         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13105         on an integer overflow having undefined behavior, but it turns out
13106         that the argument is a size, which might not fit in 'int' anyway,
13107
13108 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13109
13110         stdio: don't require ignore_value around fwrite
13111
13112         This patch works around libc bug 11959
13113         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13114         Without this patch, applications must often write
13115         ignore_value (fwrite (...)) even though the ignore_value is
13116         not helpful here.  It's common to write many objects, using
13117         fwrite/printf/etc., and then use ferror to detect output error.
13118
13119         I considered making this patch optional, but decided against it,
13120         because libc is obviously being inconsistent here: there is no
13121         reason libc should insist that user code must inspect fwrite
13122         return's value without also insisting that it inspect printf's,
13123         putchar's, etc.  If user code wants to have a strict style where
13124         all these functions' values are checked (so that ferror need not
13125         be checked), we could add support for that style in a new gnulib
13126         module, but in the meantime it's better to be consistent and to
13127         support common usage.
13128
13129         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13130         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13131         that we are compiling in checking mode, and if not C++, and
13132         if not already wrapping fwrite for some other reason.
13133         (fwrite): #define to rpl_fwrite if the latter is defined.
13134
13135 2011-03-20  Bruno Haible  <bruno@clisp.org>
13136
13137         verror: Fix compilation error introduced on 2011-02-13.
13138         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13139         instead of __attribute__.
13140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13141
13142 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13143             Bruno Haible  <bruno@clisp.org>
13144
13145         socklen: do not depend on sys_socket
13146         While trying to modify Emacs to use gnulib's socklen module,
13147         I discovered a circular dependency: socklen depends on sys_socket
13148         and vice versa.  Emacs can use socklen, but it does not need
13149         sys_socket because it has its own substitute for sys/socket.h.
13150         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13151         gl_TYPE_SOCKLEN_T.
13152         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13153         gl_PREREQ_SYS_H_SOCKET.
13154         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13155         gl_PREREQ_SYS_H_SOCKET.
13156         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13157         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13158         * modules/socklen (Depends-on): Do not depend on sys_socket.
13159         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13160
13161 2011-03-20  Jim Meyering  <meyering@redhat.com>
13162
13163         maint.mk: sort file names *after* new transformation
13164         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13165         prefix would have led to an unwarranted failure in GNU parted.
13166         Sort after that transformation.
13167
13168 2011-03-19  Jim Meyering  <meyering@redhat.com>
13169
13170         maint.mk: fix po-file syntax-check rule
13171         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13172         Patch by Bruno Haible.
13173
13174 2011-03-19  Bruno Haible  <bruno@clisp.org>
13175
13176         socklen: Update comment.
13177         * m4/socklen.m4: Update comment about platforms.
13178
13179 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13180             Bruno Haible  <bruno@clisp.org>
13181
13182         inet_ntop, inet_pton: Simplify.
13183         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13184         documented to provide socklen_t and we already depend on sys_socket.
13185         * modules/inet_pton (Depends-on): Likewise.
13186         * lib/arpa_inet.in.h: Adjust comment.
13187
13188 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13189             Bruno Haible  <bruno@clisp.org>
13190
13191         netdb: Simplify.
13192         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13193         documented to provide socklen_t and we already depend on sys_socket.
13194         * lib/netdb.in.h: Adjust comment.
13195
13196 2011-03-19  Bruno Haible  <bruno@clisp.org>
13197
13198         sys_socket, netdb: Document problem with socklen_t.
13199         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13200         platforms.
13201         * doc/posix-headers/netdb.texi: Likewise.
13202
13203 2011-03-18  Eric Blake  <eblake@redhat.com>
13204
13205         maint.mk: let po check work in VPATH build
13206         * top/maint.mk (po_file): Allow cfg.mk override.
13207         (sc_po_check): Allow VPATH use.
13208         Reported by Jiri Denemark.
13209
13210 2011-03-16  Jim Meyering  <meyering@redhat.com>
13211
13212         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13213         Before, you would have had to create one .x-sc_ file per rule in order
13214         to exempt offending files.  Now, you may instead use a Make variable --
13215         usually defined in cfg.mk -- whose name identifies the affected rule.
13216         * top/maint.mk (_sc_excl): Define.
13217         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13218         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13219
13220 2011-03-13  Bruno Haible  <bruno@clisp.org>
13221
13222         ignore-value tests: Avoid warnings.
13223         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13224         empty for gcc < 3.4.
13225
13226 2011-03-13  Bruno Haible  <bruno@clisp.org>
13227
13228         passfd: Fix link error on Solaris.
13229         * modules/passfd (Description): Correct.
13230         (Depends-on): Add socketlib.
13231         (Link): New section.
13232         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13233
13234 2011-03-13  Bruno Haible  <bruno@clisp.org>
13235
13236         passfd: Fix link error on AIX 5.2.
13237         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13238
13239 2011-03-13  Bruno Haible  <bruno@clisp.org>
13240
13241         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13242         * lib/sys_socket.in.h: Include <stddef.h>.
13243         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13244         CMSG_FIRSTHDR. Remove unused variable.
13245
13246 2011-03-13  Bruno Haible  <bruno@clisp.org>
13247
13248         passfd: Fix compilation error on OpenBSD.
13249         * lib/passfd.c: Include <sys/uio.h>.
13250
13251 2011-03-13  Bruno Haible  <bruno@clisp.org>
13252
13253         passfd test: Fix warnings.
13254         * tests/test-passfd.c: Include <sys/wait.h>.
13255         (main): Fix typo.
13256
13257 2011-03-13  Bruno Haible  <bruno@clisp.org>
13258
13259         passfd module, part 4, tweaks.
13260         * tests/test-passfd.c: Reorder includes.
13261         (main): Fix perror and printf calls.
13262
13263 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13264
13265         passfd module, part 4.
13266         * modules/passfd-tests: New file.
13267         * tests/test-passfd.c: New file.
13268
13269 2011-03-13  Jim Meyering  <meyering@redhat.com>
13270
13271         Makefile: rely on GNU make; derive syntax-check rule names
13272         Rather than requiring that each sc_ rule be listed as a dependent
13273         of "check", use features of GNU make to derive the list.
13274         * Makefile (syntax-check-rules): Define.
13275         (check): Depend on the new variable, not the hard-coded list.
13276
13277 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13278             Bruno Haible  <bruno@clisp.org>
13279
13280         passfd module, part 3.
13281         * lib/passfd.h (recvfd): Add a flags argument.
13282         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13283         (recvfd): Add a flags argument.
13284         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13285         exists.
13286         * modules/passfd (Depends-on): Add cloexec.
13287         Suggested by Eric Blake.
13288
13289 2011-03-13  Bruno Haible  <bruno@clisp.org>
13290
13291         passfd module, part 2, tweaks.
13292         * modules/passfd (Files): Reorder.
13293         (Depends-on): Remove errno.
13294         (Include): Remove <sys/socket.h>, <sys/un.h>.
13295         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13296         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13297         specification header. Include <sys/socket.h> always. Don't include
13298         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13299         (sendfd): Clarify that it sets errno when it fails.
13300         (recvfd): Fix specification.
13301
13302 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13303
13304         passfd module, part 2.
13305         * modules/passfd: New file.
13306         * lib/passfd.h: New file.
13307         * lib/passfd.c: New file.
13308
13309 2011-03-12  Bruno Haible  <bruno@clisp.org>
13310
13311         wcswidth, mbswidth: Avoid integer overflow.
13312         * lib/wcswidth.c: Include <limits.h>.
13313         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13314         * lib/mbswidth.c: Include <limits.h>.
13315         (mbsnwidth): Avoid 'int' overflow.
13316         Reported by Jim Meyering.
13317
13318 2011-03-12  Bruno Haible  <bruno@clisp.org>
13319
13320         futimens, utimensat: Avoid endless recursion on Solaris 10.
13321         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13322         Solaris.
13323         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13324         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13325
13326 2011-03-11  Jim Meyering  <meyering@redhat.com>
13327
13328         maint.mk: relax a regexp to accommodate other formatting styles
13329         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13330         between "ngettext" and the following "(".
13331
13332 2011-03-11  Pádraig Brady <P@draigBrady.com>
13333
13334         maint.mk: suppress a false positive warning
13335         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13336         diagnostics are marked with ngettext.
13337
13338 2011-03-10  Eric Blake  <eblake@redhat.com>
13339
13340         wchar: add explicit dependencies, for Tru64
13341         * modules/mbmemcasecoll (Depends-on): Add wchar.
13342         * modules/mbtowc (Depends-on): Likewise.
13343         * modules/vasnprintf (Depends-on): Likewise.
13344         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13345         * modules/wctomb (Depends-on): Likewise.
13346         Reported by Peter O'Gorman.
13347
13348 2011-03-08  Bruno Haible  <bruno@clisp.org>
13349
13350         passfd module, part 1, tweaks.
13351         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13352         Improve indentation. Improve AC_MSG_CHECKING messages.
13353         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13354         gl_SOCKET_FAMILIES.
13355
13356 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13357
13358         passfd module, part 1.
13359         * m4/afunix.m4: New file.
13360         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13361         sockets.
13362
13363 2011-03-08  Bruno Haible  <bruno@clisp.org>
13364
13365         regex-quote: New API.
13366         * lib/regex-quote.h: Include <stdbool.h>.
13367         (struct regex_quote_spec): New type.
13368         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13369         New declarations.
13370         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13371         'const struct regex_quote_spec *' argument.
13372         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13373         (pcre_special): New constant.
13374         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13375         New functions.
13376         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13377         'const struct regex_quote_spec *' argument.
13378         * modules/regex-quote (Depends-on): Add stdbool.
13379         * tests/test-regex-quote.c (check): Update for new API. Add test for
13380         anchored results.
13381         * NEWS: Mention the API change.
13382         Reported by Reuben Thomas and Eric Blake.
13383
13384 2011-03-06  Bruno Haible  <bruno@clisp.org>
13385
13386         regex-quote: Fix creation of POSIX extended regular expressions.
13387         * lib/regex-quote.c (ere_special): Add grouping and alternation
13388         operators.
13389
13390 2011-03-05  Bruno Haible  <bruno@clisp.org>
13391
13392         doc: Improve doc regarding autopoint vs. gnulib.
13393         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13394         disable autopoint while running autoreconf.
13395         Suggested by Ralf Wildenhues.
13396
13397 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13398
13399         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13400         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13401
13402 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13403
13404         parse-duration: remove xalloc.h dependency
13405         * lib/parse-duration.c (parse_period): handle NULL return from
13406         strdup instead of calling xstrdup().
13407         * modules/parse-duration: remove "xalloc" dependency
13408
13409 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13410
13411         bootstrap: honor m4_base when running aclocal
13412         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13413
13414 2011-03-02  Jim Meyering  <meyering@redhat.com>
13415
13416         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13417         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13418         on request from Matt Booth.
13419
13420 2011-03-01  Eric Blake  <eblake@redhat.com>
13421
13422         test-link: work on Hurd
13423         * tests/test-link.h (test_link): Hurd rejects linking directories
13424         with EISDIR instead of the POSIX-mandated EPERM.
13425
13426 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13427
13428         stdio: simplify by moving files to printf-posix, sigpipe
13429         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13430         since this symbol is needed only if printf is replaced.
13431         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13432         Require gl_ASM_SYMBOL_PREFIX.
13433         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13434         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13435         (Depends-on): Add 'raise'.
13436         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13437         * modules/stdio (Files): Remove lib/stdio-write.c,
13438         m4/asm-underscore.m4.
13439         (Depends-on): Remove 'raise'.
13440
13441         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13442         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13443         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13444         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13445
13446 2011-02-28  Bruno Haible  <bruno@clisp.org>
13447
13448         localcharset: Assume ANSI C behaviour of free().
13449         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13450         calling free().
13451         Suggested by Simon Josefsson <simon@josefsson.org>.
13452
13453 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13454             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13455             Bruno Haible  <bruno@clisp.org>  (tiny change)
13456
13457         On Cygwin, use /proc file system instead of win32 API.
13458         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13459         Win32 file names.
13460         (DllMain): Simplify by removing Cygwin specific code.
13461         (find_shared_library_fullname): Use Linux specific implementation also
13462         for Cygwin.
13463         (get_shared_library_fullname): Update accordingly.
13464         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13465         Win32 file names.
13466         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13467         Cygwin specific code.
13468
13469 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13470             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13471
13472         Fix OpenMP flag detection for various Fortran compilers.
13473         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13474         OpenMP-conditional compilation construct, to force compile
13475         failure with missing OpenMP flag.
13476         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13477
13478 2011-02-25  Eric Blake  <eblake@redhat.com>
13479
13480         strstr: expand test coverage
13481         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13482         compilation.
13483         * tests/test-memmem.c (main): Duplicate tests.
13484         * tests/test-strcasestr.c (main): Likewise.
13485         * tests/test-c-strcasestr.c (main): Likewise.
13486
13487 2011-02-25  Jim Meyering  <meyering@redhat.com>
13488
13489         maint.mk: detect missing-NL-at-EOF, too
13490         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13491         it also detects when a file lacks a newline at EOF.
13492         (require_exactly_one_NL_at_EOF_): Renamed from
13493         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13494         since people may well have .x-sc_... file names tied to the
13495         existing name.  Suggested by Eric Blake.
13496
13497 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13498
13499         dirname: move m4/dos.m4 functionality into lib/dosname.h
13500
13501         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13502         extracts symbols from it, puts them into config.h; but it's much
13503         easier to use the symbols directly.  filename.h already does this,
13504         but it disagrees with dos.m4 in some respects.  This patch
13505         introduces a different include file dosname.h that packages up
13506         dos.m4, and then later we can work on merging filename.h and
13507         dosname.h.  Applications that need only the easy-to-configure
13508         symbols should consider including dosname.h rather than dirname.h.
13509         * NEWS: Mention incompatible changes.
13510         * m4/dos.m4: Remove.
13511         * lib/dosname.h, modules/dosname: New files.
13512         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13513         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13514         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13515         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13516         Include dosname.h, not dirname.h.
13517         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13518         Include dosname.h, for definitions of symbols like ISSLASH
13519         that used to be in config.h.
13520         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13521         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13522         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13523         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13524         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13525         * modules/rmdir (Files): Likewise.
13526         * modules/stat (Files): Likewise.
13527         * modules/unlink (Files): Likewise.
13528         * modules/dirname-lgpl (Depends-on): Add dosname.
13529         * modules/lstat (Depends-on): Likewise.
13530         * modules/openat (Depends-on): Likewise.
13531         * modules/rmdir (Depends-on): Likewise.
13532         * modules/savewd (Depends-on): Likewise.
13533         * modules/stat (Depends-on): Likewise.
13534         * modules/unlink (Depends-on): Likewise.
13535         * modules/openat (Depends-on): Remove dirname-lgpl.
13536         * modules/savewd (Depends-on): Likewise.
13537         * tests/test-dirname.c: Do not use removed symbols like
13538         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13539         the remaining symbols, e.g., ISSLASH ('\\').
13540
13541 2011-02-25  Eric Blake  <eblake@redhat.com>
13542
13543         strstr: revert patches that introduced bug and pessimization
13544         * lib/str-two-way.h: Add another reference.
13545         (two_way_short_needle, two_way_long_needle): Revert changes from
13546         2011-02-24; they pessimize search speed.
13547         (critical_factorization): Partially revert changes from
13548         2010-06-22; they violate the requirement that the left half of the
13549         needle be smaller than the period of the needle.
13550
13551 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13552
13553         filenamecat: remove unnecessary dependency on dirname-lgpl
13554         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13555         is no direct dependency, just an indirect one via filenamecat-lgpl.
13556
13557         remove: remove unnecessary use of m4/dos.m4
13558         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13559         * modules/remove (FILES): Remove m4/dos.m4.
13560
13561         * lib/openat-proc.c: Don't include dirname.h; not needed.
13562
13563         backupfile: remove unnecessary use of m4/dos.m4
13564         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13565         of its symbols are used by the backupfile code.  backupfile.c does
13566         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13567         for the rare case of programs that want all their backup file
13568         names to live within 8+3 limits, and dos.m4 doesn't address that.
13569         * modules/backupfile (Files): Remove m4/dos.m4.
13570
13571 2011-02-24  Jim Meyering  <meyering@redhat.com>
13572
13573         strstr: fix a bug whereby strstr would mistakenly return NULL
13574         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13575         in period calculation.
13576         (two_way_long_needle): Likewise.
13577         The original problem was reported by Mike Stump in
13578         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13579         Ralf Wildenhues provided the short needle and haystack.
13580         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13581         Add a more involved test to trigger the bug in two_way_long_needle.
13582
13583 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13584
13585         gnulib-tool: remove use of bold display in help screen
13586         * gnulib-tool (func_usage): Do not use bold display anymore in the
13587         help screen.  That was just meant to be a temporary emphasis for a
13588         backward-incompatible change.
13589
13590 2011-02-23  Bruno Haible  <bruno@clisp.org>
13591
13592         Fix misindentation of preprocessor directives.
13593         * lib/argp-namefrob.h: Reindent preprocessor directives.
13594         * lib/getopt_int.h (struct _getopt_data): Likewise.
13595         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13596         * lib/vasnprintf.c (decode_long_double): Likewise.
13597         * tests/test-argmatch.c: Insert blank lines, for clarity.
13598         * tests/test-exclude.c: Likewise.
13599
13600 2011-02-22  Bruno Haible  <bruno@clisp.org>
13601
13602         ioctl: Fix for MacOS X in 64-bit mode.
13603         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13604         value.
13605         Suggested by Eric Blake.
13606         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13607
13608 2011-02-22  Jim Meyering  <meyering@redhat.com>
13609
13610         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13611         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13612         in lib/.
13613
13614 2011-02-22  Eric Blake  <eblake@redhat.com>
13615
13616         maint: avoid any CDPATH issue
13617         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13618
13619         maint: adjust cpp indentation for my modules, as well
13620         * Makefile (sc_cpp_indent_check): Add my name.
13621         * lib/fbufmode.c: Filter through cppi.
13622         * lib/fpurge.c: Likewise.
13623         * lib/freadable.c: Likewise.
13624         * lib/freading.c: Likewise.
13625         * lib/fwritable.c: Likewise.
13626         * lib/fwriting.c: Likewise.
13627         * lib/sigaction.c: Likewise.
13628
13629 2011-02-22  Jim Meyering  <meyering@redhat.com>
13630
13631         maint: adjust cpp indentation to reflect nesting depth
13632         I.e., in a block of code that begins with an unnested "#if",
13633         put one space between the "#" in column 1 and following token.
13634         For example,
13635         -#include <sys/vfs.h>
13636         +# include <sys/vfs.h>
13637         Do this only in .c files that are part of a module I maintain.
13638         * lib/linkat.c: Filter through cppi.
13639         * lib/nanosleep.c: Likewise.
13640         * lib/openat.c: Likewise.
13641         * lib/openat-die.c: Likewise.
13642         * lib/dup3.c: Likewise.
13643         * lib/fchownat.c: Likewise.
13644         * lib/flock.c: Likewise.
13645         * lib/fsync.c: Likewise.
13646         * lib/fts.c: Likewise.
13647         * lib/getpass.c: Likewise.
13648         * lib/gettimeofday.c: Likewise.
13649         * lib/userspec.c: Likewise.
13650         * Makefile (sc_cpp_indent_check): New rule, to check this.
13651
13652 2011-02-22  Bruno Haible  <bruno@clisp.org>
13653
13654         New module 'wctomb'.
13655         * lib/stdlib.in.h (wctomb): New declaration.
13656         * lib/wctomb.c: New file.
13657         * lib/wctomb-impl.h: New file.
13658         * m4/wctomb.m4: New file.
13659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13660         REPLACE_WCTOMB.
13661         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13662         REPLACE_WCTOMB.
13663         * modules/wctomb: New file.
13664         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13665         * doc/posix-functions/wctomb.texi: Mention the new module.
13666         * modules/wctob (Depends-on): Add wctomb.
13667
13668 2011-02-22  Bruno Haible  <bruno@clisp.org>
13669
13670         New module 'mbtowc'.
13671         * lib/stdlib.in.h (mbtowc): New declaration.
13672         * lib/mbtowc.c: New file.
13673         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13674         * m4/mbtowc.m4: New file.
13675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13676         REPLACE_MBTOWC.
13677         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13678         REPLACE_MBTOWC.
13679         * modules/mbtowc: New file.
13680         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13681         * doc/posix-functions/mbtowc.texi: Mention the new module.
13682         * modules/btowc (Depends-on): Add mbtowc.
13683
13684 2011-02-22  Bruno Haible  <bruno@clisp.org>
13685
13686         wcrtomb: Add more tests for native Windows platforms.
13687         * tests/test-wcrtomb-w32-1.sh: New file.
13688         * tests/test-wcrtomb-w32-2.sh: New file.
13689         * tests/test-wcrtomb-w32-3.sh: New file.
13690         * tests/test-wcrtomb-w32-4.sh: New file.
13691         * tests/test-wcrtomb-w32-5.sh: New file.
13692         * tests/test-wcrtomb-w32.c: New file.
13693         * modules/wcrtomb-tests (Files): Add them.
13694         (Makefile.am): Arrange to run these tests.
13695         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13696         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13697
13698 2011-02-20  Bruno Haible  <bruno@clisp.org>
13699
13700         wcrtomb: Enhance test.
13701         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13702
13703 2011-02-20  Bruno Haible  <bruno@clisp.org>
13704
13705         mbrtowc: Tiny optimization.
13706         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13707
13708 2011-02-20  Jim Meyering  <meyering@redhat.com>
13709
13710         test-exclude.c: remove unmatched #endif
13711         * tests/test-exclude.c: Remove stray #endif, left over from
13712         the change of a week ago.
13713
13714 2011-02-19  Jim Meyering  <meyering@redhat.com>
13715
13716         git-version-gen: skip "-dirty" check when appropriate
13717         * build-aux/git-version-gen: Don't run any git commands when the
13718         version string comes from .tarball-version.  Prior to this, we
13719         would run git update-index --refresh even from a just-unpacked
13720         tarball directory, and that could affect a .git/ directory in a
13721         parent of the build directory.  Reported by Mike Frysinger.
13722
13723 2011-02-19  Bruno Haible  <bruno@clisp.org>
13724
13725         unictype/property-byname: Reduce the size of the 'data' segment.
13726         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13727
13728 2011-02-19  Bruno Haible  <bruno@clisp.org>
13729
13730         unictype/scripts: Reduce the size of the 'data' segment.
13731         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13732         '%pic'.
13733         * lib/unictype/scripts_byname.gperf: Regenerated.
13734
13735 2011-02-19  Bruno Haible  <bruno@clisp.org>
13736
13737         stdint: Update documentation.
13738         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13739
13740 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13741
13742         stdint: omit redundant check for wchar.h
13743         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13744         always tests whether wchar.h exists, so remove the now-redundant test.
13745
13746 2011-02-18  Bruno Haible  <bruno@clisp.org>
13747
13748         stdint: Cut dependency to module 'wchar'.
13749         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13750         include the necessary prerequisites.
13751         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13752         * modules/stdint (Depends-on): Remove wchar.
13753         (Makefile.am): Substitute HAVE_WCHAR_H.
13754         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13755
13756 2011-02-18  Eric Blake  <eblake@redhat.com>
13757
13758         longlong: skip, rather than fail, on cross-compilation
13759         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13760         when cross-compiling; regression from 2011-02-16.
13761
13762 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13763
13764         * NEWS: Mention 2011-02-08 change to stdlib.
13765
13766 2011-02-17  Bruno Haible  <bruno@clisp.org>
13767
13768         getloadavg: Add comments about platforms.
13769         * m4/getloadavg.m4: Add comment.
13770         * lib/getloadavg.c: Likewise.
13771
13772 2011-02-17  Bruno Haible  <bruno@clisp.org>
13773
13774         getloadavg: Fix link error on Solaris 2.6.
13775         * modules/getloadavg (Link): New section.
13776         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13777         linking test-getloadavg.
13778         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13779         getloadavg.
13780
13781 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13782
13783         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13784         It was 'int', but this doesn't match the IRIX 6.5 manual.
13785         Suggested by Bruno Haible in
13786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13787
13788 2011-02-17  Bruno Haible  <bruno@clisp.org>
13789
13790         havelib: Fix comments.
13791         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13792         change.
13793
13794 2011-02-17  Bruno Haible  <bruno@clisp.org>
13795
13796         havelib: Update config.rpath.
13797         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13798
13799 2011-02-17  Bruno Haible  <bruno@clisp.org>
13800
13801         getloadavg test: Add some plausibility checks.
13802         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13803         is improbable.
13804
13805 2011-02-16  Eric Blake  <eblake@redhat.com>
13806
13807         maintainer-makefile: make syntax-check a no-op from tarballs
13808         * top/maint.mk (no-vc-detected): New rule.
13809         (local-checks-available): Use it to avoid hanging if someone tries
13810         'make syntax-check' from a tarball.  Also append to any non-syntax
13811         checks already defined in cfg.mk.
13812
13813 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13814
13815         longlong: tune, particularly for common case of c99
13816
13817         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13818         or running anything if c99, or if unsigned long long int does not
13819         work.  In either case, we know the answer without further tests.
13820         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13821         it at most once, and use its results for both long long int and
13822         unsigned long long int.  This is more likely to be efficient in
13823         the common case where the program wants to check for both long
13824         long int and unsigned long long int.
13825         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13826         since the answer is already known.
13827
13828 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13829
13830         getloadavg: set errno
13831         * lib/getloadavg.c: Set errno when returning -1.  If no other
13832         error number looks appropriate, set it to ENOSYS if the getloadavg
13833         looks like it can't possibly ever work, ENOTSUP otherwise.
13834         Suggested by Bruno Haible in
13835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13836
13837         getloadavg: trim unused parts and speed up 'configure'
13838         * NEWS: Document this.
13839         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13840         always compiled if getloadavg is absent.
13841         Move test code to ...
13842         * tests/test-getloadavg.c: New file, containing previous
13843         contents of test from lib/getloadavg.c.  It also contains
13844         suggestions by Bruno Haible in
13845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13846         * modules/getloadavg-tests: New file.
13847         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13848         Do tests in the same order as they're needed for getloadavg.c.
13849         Omit setgid-related tests that generate symbols KMEM_GROUP,
13850         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13851         Do only the tests that are needed to see whether the system has
13852         getloadavg, moving the other tests into ...
13853         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13854         NLIST_NAME_UNION; nobody should be using it.  Do not define
13855         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13856         relevant, as the user of this module shouldn't care how getloadavg
13857         is implemented.
13858
13859         getloadavg: omit unused var
13860         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13861
13862 2011-02-15  Jim Meyering  <meyering@redhat.com>
13863
13864         doc: update users.txt
13865         * users.txt: Update iwhd's URL.
13866
13867 2011-02-13  Bruno Haible  <bruno@clisp.org>
13868
13869         Consistent macro naming for macros that use GCC __attribute__.
13870         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13871         _ATTRIBUTE_NONNULL_.
13872         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13873         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13874         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13875         ATTRIBUTE_DEPRECATED.
13876         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13877         ATTRIBUTE_NORETURN.
13878         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13879         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13880         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13881         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13882         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13883         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13884         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13885         ATTRIBUTE_SENTINEL.
13886         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13887         ATTRIBUTE_RETURN_CHECK.
13888         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13889         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13890         ATTRIBUTE_NORETURN.
13891         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13892         Reported by Paul Eggert.
13893
13894 2011-02-13  Bruno Haible  <bruno@clisp.org>
13895
13896         Don't interfere with a program's definition of __attribute__.
13897         * lib/argp.h (__attribute__): Remove definition.
13898         (_GL_ATTRIBUTE_FORMAT): New macro.
13899         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13900         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13901         (_GL_ATTRIBUTE_FORMAT): New macro.
13902         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13903         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13904         GCC 3 or newer.
13905         * lib/error.h (__attribute__): Remove definition.
13906         (_GL_ATTRIBUTE_FORMAT): New macro.
13907         (error, error_at_line): Use it.
13908         * lib/hash.h (__attribute__): Remove definition.
13909         (ATTRIBUTE_WUR): Update definition. Define always.
13910         * lib/openat.h (__attribute__): Remove definition.
13911         (ATTRIBUTE_NORETURN): Update definition. Define always.
13912         * lib/sigpipe-die.h (__attribute__): Remove definition.
13913         (ATTRIBUTE_NORETURN): Update definition. Define always.
13914         * lib/vasnprintf.h (__attribute__): Remove definition.
13915         (_GL_ATTRIBUTE_FORMAT): New macro.
13916         (asnprintf, vasnprintf): Use it.
13917         * lib/xalloc.h (__attribute__): Remove definition.
13918         (ATTRIBUTE_NORETURN): Update definition. Define always.
13919         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13920         * lib/xmemdup0.h (__attribute__): Remove definition.
13921         (ATTRIBUTE_NORETURN): Update definition. Define always.
13922         * lib/xprintf.h (__attribute__): Remove definition.
13923         (_GL_ATTRIBUTE_FORMAT): New macro.
13924         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13925         * lib/xstrtol.h (__attribute__): Remove definition.
13926         (ATTRIBUTE_NORETURN): Update definition. Define always.
13927         * lib/xvasprintf.h (__attribute__): Remove definition.
13928         (_GL_ATTRIBUTE_FORMAT): New macro.
13929         (xasprintf, xvasprintf): Use it.
13930         * tests/test-argmatch.c (__attribute__): Remove definition.
13931         (ATTRIBUTE_NORETURN): Update definition. Define always.
13932         * tests/test-exclude.c (__attribute__): Remove definition.
13933         (ATTRIBUTE_NORETURN): Update definition. Define always.
13934         Reported by Paul Eggert.
13935
13936 2011-02-13  Bruno Haible  <bruno@clisp.org>
13937
13938         mbrtowc: Add more tests for native Windows platforms.
13939         * tests/test-mbrtowc-w32-1.sh: New file.
13940         * tests/test-mbrtowc-w32-2.sh: New file.
13941         * tests/test-mbrtowc-w32-3.sh: New file.
13942         * tests/test-mbrtowc-w32-4.sh: New file.
13943         * tests/test-mbrtowc-w32-5.sh: New file.
13944         * tests/test-mbrtowc-w32.c: New file.
13945         * modules/mbrtowc-tests (Files): Add them.
13946         (Makefile.am): Arrange to run these tests.
13947         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13948         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13949
13950 2011-02-13  Bruno Haible  <bruno@clisp.org>
13951
13952         mbrtowc: Work around native Windows bug.
13953         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13954         guess when no suitable locale for testing was found.
13955         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13956
13957 2011-02-13  Bruno Haible  <bruno@clisp.org>
13958
13959         mbsinit: Work around mingw bug.
13960         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13961         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13962         Windows.
13963         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13964
13965 2011-02-13  Bruno Haible  <bruno@clisp.org>
13966
13967         mbsinit: Don't crash for a NULL argument.
13968         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13969         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13970
13971 2011-02-13  Bruno Haible  <bruno@clisp.org>
13972
13973         Don't interfere with a program's definition of __attribute__.
13974         * lib/stdio.in.h (__attribute__): Remove definition.
13975         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13976         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13977         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13978         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13979         * lib/string.in.h (__attribute__): Remove definition.
13980         Reported by Paul Eggert.
13981
13982 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13983
13984         stdlib: don't get in the way of non-GCC __attribute__
13985         See thread starting at
13986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13987         Revert previous stdlib change, installing the following instead:
13988         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13989         to get in the way of a non-GCC compiler that supports __attribute__.
13990         (_GL_ATTRIBUTE_RETURN): New macro.
13991         (_Exit): Use it instead of __attribute__.
13992
13993 2011-02-12  Bruno Haible  <bruno@clisp.org>
13994
13995         quotearg test: Avoid test failure on mingw.
13996         * tests/test-quotearg.sh: Convert the locale identifier from native
13997         Windows syntax to Unix syntax.
13998
13999 2011-02-12  Bruno Haible  <bruno@clisp.org>
14000
14001         setlocale: Prefer gnulib's override over libintl's override.
14002         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14003         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14004         GNULIB_defined_setlocale is set.
14005
14006 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14007
14008         stdlib: support non-GCC __attribute__
14009
14010         Fix a serious and tricky problem encountered when attempting to
14011         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14012         5.5, but it crashed due to memory corruption on Solaris 10 with
14013         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14014         bits that are otherwise zero.  This tagging is optional inside
14015         Emacs but is preferred and is used when __attribute__ ((__aligned
14016         (8))) works, as it does with both recent-enough GCC and with Sun C
14017         5.11.  However, Sun C 5.11 is not GCC and does not #define
14018         __GNUC__ and __GNUC_MINOR__.
14019
14020         When I added the getloadavg module to Emacs, it brought in
14021         stdlib.in.h, which contained this fragment:
14022
14023            #ifndef __attribute__
14024            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14025            #  define __attribute__(Spec)   /* empty */
14026            # endif
14027            #endif
14028
14029         When files that include <stdlib.h> were compiled with Sun C 5.11,
14030         the above code disabled __attribute__ ((__aligned (8))), which
14031         caused variables to not be properly aligned, which eventually led
14032         to the pointer corruption mentioned above.  (This was a bit hard
14033         to diagnose, unfortunately.)
14034
14035         Several "#define __attribute__(X) /* empty */" code snippets need
14036         to be eradicated from Gnulib to work with non-GCC compilers that
14037         support __attribute__.  The Autoconf way to do this is to test for
14038         each kind of attribute that we want support for, and selectively
14039         enable that in source code.
14040
14041         Fix this problem just for stdlib.h, by adding a test for the
14042         __noreturn__ attribute, and change stdlib.in.h to use that test
14043         when needed.  This technique can be easily generalized to the
14044         other *.in.h files and attributes, and a similar technique can be
14045         used for *.h and *.c files.  This patch is enough to solve the
14046         problem for Emacs + getloadavg, and I thought I'd publish it for
14047         feedback before undertaking further, similar fixes in other
14048         modules.
14049
14050         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14051         because it's not needed for stdlib.h.  It merely substitutes the
14052         value directly into stdlib.h.  We may well need to #define it, or
14053         similar symbols, for other modules, but it's nice to also have an
14054         option to not #define it for applications like Emacs that do not
14055         need it.
14056
14057         * lib/stdlib.in.h (__attribute__): Do not #define.
14058         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14059         be defined only if the _Exit module is also used.
14060         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14062         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14063         platforms.
14064         * modules/_Exit (Files): Add m4/attribute.m4.
14065         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14066         * m4/attribute.m4: New file.
14067
14068 2011-02-12  Bruno Haible  <bruno@clisp.org>
14069
14070         wcsrtombs: Work around bug on native Windows.
14071         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14072         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14073         instead of len.
14074         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14075
14076 2011-02-12  Bruno Haible  <bruno@clisp.org>
14077
14078         mbsrtowcs: Work around bug on native Windows.
14079         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14080         against mingw bug.
14081         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14082
14083 2011-02-12  Bruno Haible  <bruno@clisp.org>
14084
14085         Avoid setlocale bugs in tests.
14086         * modules/btowc (Dependencies): Add setlocale.
14087         * modules/c-strcase (Dependencies): Likewise.
14088         * modules/mbmemcasecmp (Dependencies): Likewise.
14089         * modules/mbmemcasecoll (Dependencies): Likewise.
14090         * modules/mbrtowc (Dependencies): Likewise.
14091         * modules/mbscasecmp (Dependencies): Likewise.
14092         * modules/mbscasestr (Dependencies): Likewise.
14093         * modules/mbschr (Dependencies): Likewise.
14094         * modules/mbscspn (Dependencies): Likewise.
14095         * modules/mbsinit (Dependencies): Likewise.
14096         * modules/mbsncasecmp (Dependencies): Likewise.
14097         * modules/mbsnrtowcs (Dependencies): Likewise.
14098         * modules/mbspbrk (Dependencies): Likewise.
14099         * modules/mbspcasecmp (Dependencies): Likewise.
14100         * modules/mbsrchr (Dependencies): Likewise.
14101         * modules/mbsrtowcs (Dependencies): Likewise.
14102         * modules/mbsspn (Dependencies): Likewise.
14103         * modules/mbsstr (Dependencies): Likewise.
14104         * modules/nl_langinfo (Dependencies): Likewise.
14105         * modules/quotearg (Dependencies): Likewise.
14106         * modules/unicase/locale-language (Dependencies): Likewise.
14107         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14108         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14109         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14110         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14111         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14112         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14113         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14114         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14115         * modules/vasnprintf-posix (Dependencies): Likewise.
14116         * modules/wcrtomb (Dependencies): Likewise.
14117         * modules/wcsnrtombs (Dependencies): Likewise.
14118         * modules/wcsrtombs (Dependencies): Likewise.
14119
14120 2011-02-12  Bruno Haible  <bruno@clisp.org>
14121
14122         setlocale: Workaround native Windows bug.
14123         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14124         succeeds but sets LC_CTYPE to "C", report a failure.
14125         * tests/test-setlocale2.sh: New file.
14126         * tests/test-setlocale2.c: New file.
14127         * modules/setlocale-tests (Files): Add the new files.
14128         (Makefile.am): Enable test-setlocale2.sh test.
14129         * doc/posix-functions/setlocale.texi: Mention workaround.
14130
14131 2011-02-11  Bruno Haible  <bruno@clisp.org>
14132
14133         Tests for module 'setlocale'.
14134         * modules/setlocale-tests: New file.
14135         * tests/test-setlocale1.sh: New file.
14136         * tests/test-setlocale1.c: New file.
14137
14138         New module 'setlocale'.
14139         * lib/locale.in.h (setlocale): New declaration.
14140         * lib/setlocale.c: New file, based on
14141         gettext/gettext-runtime/intl/setlocale.c.
14142         * m4/setlocale.m4: New file.
14143         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14144         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14145         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14146         REPLACE_SETLOCALE.
14147         * modules/setlocale: New file.
14148         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14149         * doc/posix-functions/setlocale.texi: Mention the new module.
14150
14151 2011-02-11  Bruno Haible  <bruno@clisp.org>
14152
14153         Prepare for locale dependent tests on mingw.
14154         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14155         because it has the wrong locale encoding.
14156         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14157         French_France.1252 instead of "fr".
14158         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14159         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14160         because it has the wrong locale encoding.
14161         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14162         native Windows, try Turkish_Turkey.65001.
14163         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14164         Chinese_China.54936.
14165
14166         Prepare for locale dependent tests on mingw.
14167         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14168         differently.
14169         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14170         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14171         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14172         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14173
14174 2011-02-11  Eric Blake  <eblake@redhat.com>
14175
14176         strptime: avoid compiler warnings
14177         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14178         compiler warnings about dead code.
14179         Reported by Daniel P. Berrange.
14180
14181 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14182
14183         doc: update users.txt
14184         * users.txt: Add rcs.
14185
14186 2011-02-10  John W. Eaton  <jwe@gnu.org>
14187
14188         doc: update users.txt
14189         * users.txt: Add octave.
14190
14191 2011-02-10  Jim Meyering  <meyering@redhat.com>
14192
14193         doc: update users.txt
14194         * users.txt: Add iwhd.
14195
14196 2011-02-09  Bruno Haible  <bruno@clisp.org>
14197
14198         gnulib-tool: Make copyright notice adjustment more robust.
14199         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14200         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14201         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14202         License".
14203         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14204
14205 2011-02-06  Bruno Haible  <bruno@clisp.org>
14206
14207         New module 'towctrans'.
14208         * modules/towctrans: New file.
14209         * lib/wctype.in.h (towctrans): New declaration.
14210         * lib/towctrans.c: New file.
14211         * lib/towctrans-impl.h: New file.
14212         * m4/towctrans.m4: New file.
14213         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14214         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14215         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14216         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14217         * doc/posix-functions/towctrans.texi: Mention the new module.
14218
14219 2011-02-06  Bruno Haible  <bruno@clisp.org>
14220
14221         New module 'wctrans'.
14222         * modules/wctrans: New file.
14223         * lib/wctype.in.h (wctrans): New declaration.
14224         * lib/wctrans.c: New file.
14225         * lib/wctrans-impl.h: New file.
14226         * m4/wctrans.m4: New file.
14227         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14228         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14229         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14230         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14231         * doc/posix-functions/wctrans.texi: Mention the new module.
14232
14233 2011-02-06  Bruno Haible  <bruno@clisp.org>
14234
14235         New module 'iswctype'.
14236         * modules/iswctype: New file.
14237         * lib/wctype.in.h (iswctype): New declaration.
14238         * lib/iswctype.c: New file.
14239         * lib/iswctype-impl.h: New file.
14240         * m4/iswctype.m4: New file.
14241         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14242         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14243         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14244         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14245         * doc/posix-functions/iswctype.texi: Mention the new module and the
14246         HP-UX 11.00 problem.
14247
14248 2011-02-06  Bruno Haible  <bruno@clisp.org>
14249
14250         New module 'wctype'.
14251         * modules/wctype: Change to represent the wctype() substitute.
14252         * lib/wctype.in.h (wctype): New declaration.
14253         * lib/wctype.c: New file.
14254         * lib/wctype-impl.h: New file.
14255         * m4/wctype.m4: New file.
14256         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14257         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14258         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14259         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14260         * doc/posix-functions/wctype.texi: Mention the new module and the
14261         HP-UX 11.00 problem.
14262
14263 2011-02-06  Bruno Haible  <bruno@clisp.org>
14264
14265         wctype-h: Ensure wctype_t and wctrans_t are defined.
14266         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14267         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14268         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14269         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14270         HAVE_WCTRANS_T.
14271         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14272
14273 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14274
14275         flock: fix license typo
14276
14277         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14278         omitted.
14279
14280 2011-02-08  Bruno Haible  <bruno@clisp.org>
14281
14282         Split large sed scripts, for HP-UX sed.
14283         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14284         to avoid HP-UX limit of 99 commands, in the near future.
14285         * modules/stdlib (Makefile.am): Likewise.
14286         * modules/unistd (Makefile.am): Likewise.
14287         * modules/wchar (Makefile.am): Likewise.
14288         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14289         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14290         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14291
14292 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14293             Bruno Haible  <bruno@clisp.org>
14294
14295         stdlib: improve random_r modularization
14296         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14297         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14298         you also need the random_r module to get this material right.
14299         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14300         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14301         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14302
14303 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14304
14305         stdlib: don't depend on stdint
14306         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14307         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14308         be independent of whether stdint.h is needed.
14309         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14310         here, instead of ...
14311         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14312         struct random_data should be using the random_r module, not just
14313         the stdlib module (which wouldn't make sense: what package needs
14314         just struct random_data without also needing random_r?).
14315         * modules/stdlib (Depends-on): Remove stdint.
14316
14317         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14318         See the thread rooted at
14319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14320         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14321         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14322         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14323         __VMS)); previously it was always included (via fcntl--.h).
14324         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14325         hand; this is good enough for load averages.  Also, do not use
14326         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14327         flags directly if available and don't bother otherwise.  (Packages
14328         that need the extra reliability should use the modules that define
14329         these flags on older platforms that lack them.)
14330         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14331         fcntl-safer.
14332
14333 2011-02-08  Jim Meyering  <meyering@redhat.com>
14334
14335         di-set.h, ino-map.h: add multiple-inclusion guard
14336         Technically, the guard is required only for ino-map.h, due to its
14337         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14338         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14339         * lib/ino-map.h: Likewise.
14340
14341 2011-02-06  Bruno Haible  <bruno@clisp.org>
14342
14343         iswblank: Ensure declaration on glibc systems.
14344         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14345         * modules/iswblank (Dependencies): Add 'extensions'.
14346         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14347
14348 2011-02-06  Bruno Haible  <bruno@clisp.org>
14349
14350         New module 'iswblank'.
14351         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14352         * modules/iswblank: New file.
14353         * modules/wctype-h (Files): Remove lib/iswblank.c.
14354         (Makefile.am): Substitute GNULIB_ISWBLANK.
14355         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14356         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14357         (gl_WCTYPE_H_DEFAULTS): New macro.
14358         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14359         * modules/iswblank-tests: New file.
14360         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14361         * tests/test-wctype-h.c (main): Remove iswblank tests.
14362         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14363         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14364         of 'wctype-h'.
14365         * NEWS: Mention the change.
14366         * modules/mbchar (Depends-on): Add iswblank.
14367
14368 2011-02-08  Bruno Haible  <bruno@clisp.org>
14369
14370         di-set tests: Refactor.
14371         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14372         unnecessary includes.
14373         (ASSERT): Remove macro.
14374         (main): Make C90 compliant by avoiding variable declaration after
14375         statement.
14376         * modules/di-set-tests (Files): Add tests/macros.h.
14377
14378 2011-02-08  Bruno Haible  <bruno@clisp.org>
14379
14380         ino-map tests: Refactor.
14381         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14382         unnecessary includes.
14383         (ASSERT): Remove macro.
14384         (main): Make C90 compliant by avoiding variable declaration after
14385         statement.
14386         * modules/ino-map-tests (Files): Add tests/macros.h.
14387
14388 2011-02-08  Jim Meyering  <meyering@redhat.com>
14389
14390         di-set: add "const" to a cast
14391         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14392         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14393
14394 2011-02-06  Bruno Haible  <bruno@clisp.org>
14395
14396         Rename module 'wctype' to 'wctype-h'.
14397         * modules/wctype-h: Renamed from modules/wctype.
14398         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14399         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14400         (Files, Depends-on, Makefile.am): Update.
14401         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14402         (Files, Makefile.am): Update.
14403         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14404         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14405         * doc/posix-headers/wctype.texi: Update.
14406         * doc/posix-functions/iswalnum.texi: Update.
14407         * doc/posix-functions/iswalpha.texi: Update.
14408         * doc/posix-functions/iswblank.texi: Update.
14409         * doc/posix-functions/iswcntrl.texi: Update.
14410         * doc/posix-functions/iswdigit.texi: Update.
14411         * doc/posix-functions/iswgraph.texi: Update.
14412         * doc/posix-functions/iswlower.texi: Update.
14413         * doc/posix-functions/iswprint.texi: Update.
14414         * doc/posix-functions/iswpunct.texi: Update.
14415         * doc/posix-functions/iswspace.texi: Update.
14416         * doc/posix-functions/iswupper.texi: Update.
14417         * doc/posix-functions/iswxdigit.texi: Update.
14418         * doc/posix-functions/towlower.texi: Update.
14419         * doc/posix-functions/towupper.texi: Update.
14420         * NEWS: Mention the change.
14421         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14422         * modules/mbchar (Dependencies): Likewise.
14423         * modules/mbswidth (Dependencies): Likewise.
14424         * modules/quotearg (Dependencies): Likewise.
14425         * modules/regex (Dependencies): Likewise.
14426         * modules/wcscasecmp (Dependencies): Likewise.
14427         * modules/wcsncasecmp (Dependencies): Likewise.
14428         * modules/wcwidth (Dependencies): Likewise.
14429
14430 2011-02-06  Bruno Haible  <bruno@clisp.org>
14431
14432         New module 'wcswidth'.
14433         * modules/wcswidth: New file.
14434         * lib/wchar.in.h (wcswidth): New declaration.
14435         * lib/wcswidth.c: New file.
14436         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14437         * m4/wcswidth.m4: New file.
14438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14440         REPLACE_WCSWIDTH.
14441         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14442         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14443         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14444         * doc/posix-functions/wcswidth.texi: Mention the new module.
14445
14446 2011-02-06  Bruno Haible  <bruno@clisp.org>
14447
14448         New module 'wcstok'.
14449         * modules/wcstok: New file.
14450         * lib/wchar.in.h (wcstok): New declaration.
14451         * lib/wcstok.c: New file.
14452         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14453         * m4/wcstok.m4: New file.
14454         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14455         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14456         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14457         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14458         * doc/posix-functions/wcstok.texi: Mention the new module.
14459
14460 2011-02-06  Bruno Haible  <bruno@clisp.org>
14461
14462         New module 'wcsstr'.
14463         * modules/wcsstr: New file.
14464         * lib/wchar.in.h (wcsstr): New declaration.
14465         * lib/wcsstr.c: New file.
14466         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14467         * m4/wcsstr.m4: New file.
14468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14470         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14471         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14472         * doc/posix-functions/wcsstr.texi: Mention the new module.
14473
14474 2011-02-06  Bruno Haible  <bruno@clisp.org>
14475
14476         New module 'wcspbrk'.
14477         * modules/wcspbrk: New file.
14478         * lib/wchar.in.h (wcspbrk): New declaration.
14479         * lib/wcspbrk.c: New file.
14480         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14481         * m4/wcspbrk.m4: New file.
14482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14484         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14485         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14486         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14487
14488 2011-02-06  Bruno Haible  <bruno@clisp.org>
14489
14490         New module 'wcsspn'.
14491         * modules/wcsspn: New file.
14492         * lib/wchar.in.h (wcsspn): New declaration.
14493         * lib/wcsspn.c: New file.
14494         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14495         * m4/wcsspn.m4: New file.
14496         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14497         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14498         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14499         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14500         * doc/posix-functions/wcsspn.texi: Mention the new module.
14501
14502 2011-02-06  Bruno Haible  <bruno@clisp.org>
14503
14504         New module 'wcscspn'.
14505         * modules/wcscspn: New file.
14506         * lib/wchar.in.h (wcscspn): New declaration.
14507         * lib/wcscspn.c: New file.
14508         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14509         * m4/wcscspn.m4: New file.
14510         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14511         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14512         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14513         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14514         * doc/posix-functions/wcscspn.texi: Mention the new module.
14515
14516 2011-02-06  Bruno Haible  <bruno@clisp.org>
14517
14518         New module 'wcsrchr'.
14519         * modules/wcsrchr: New file.
14520         * lib/wchar.in.h (wcsrchr): New declaration.
14521         * lib/wcsrchr.c: New file.
14522         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14523         * m4/wcsrchr.m4: New file.
14524         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14525         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14526         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14527         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14528         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14529
14530 2011-02-06  Bruno Haible  <bruno@clisp.org>
14531
14532         New module 'wcschr'.
14533         * modules/wcschr: New file.
14534         * lib/wchar.in.h (wcschr): New declaration.
14535         * lib/wcschr.c: New file.
14536         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14537         * m4/wcschr.m4: New file.
14538         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14539         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14540         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14541         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14542         * doc/posix-functions/wcschr.texi: Mention the new module.
14543
14544 2011-02-06  Bruno Haible  <bruno@clisp.org>
14545
14546         New module 'wcsdup'.
14547         * modules/wcsdup: New file.
14548         * lib/wchar.in.h (wcsdup): New declaration.
14549         * lib/wcsdup.c: New file.
14550         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14551         * m4/wcsdup.m4: New file.
14552         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14553         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14554         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14555         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14556         * doc/posix-functions/wcsdup.texi: Mention the new module.
14557
14558 2011-02-06  Bruno Haible  <bruno@clisp.org>
14559
14560         New module 'wcsxfrm'.
14561         * modules/wcsxfrm: New file.
14562         * lib/wchar.in.h (wcsxfrm): New declaration.
14563         * lib/wcsxfrm.c: New file.
14564         * lib/wcsxfrm-impl.h: New file.
14565         * m4/wcsxfrm.m4: New file.
14566         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14567         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14568         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14569         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14570         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14571
14572 2011-02-06  Bruno Haible  <bruno@clisp.org>
14573
14574         New module 'wcscoll'.
14575         * modules/wcscoll: New file.
14576         * lib/wchar.in.h (wcscoll): New declaration.
14577         * lib/wcscoll.c: New file.
14578         * lib/wcscoll-impl.h: New file.
14579         * m4/wcscoll.m4: New file.
14580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14582         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14583         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14584         * doc/posix-functions/wcscoll.texi: Mention the new module.
14585
14586 2011-02-06  Bruno Haible  <bruno@clisp.org>
14587
14588         New module 'wcsncasecmp'.
14589         * modules/wcsncasecmp: New file.
14590         * lib/wchar.in.h (wcsncasecmp): New declaration.
14591         * lib/wcsncasecmp.c: New file.
14592         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14593         * m4/wcsncasecmp.m4: New file.
14594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14597         HAVE_WCSNCASECMP.
14598         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14599         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14600
14601 2011-02-06  Bruno Haible  <bruno@clisp.org>
14602
14603         New module 'wcscasecmp'.
14604         * modules/wcscasecmp: New file.
14605         * lib/wchar.in.h (wcscasecmp): New declaration.
14606         * lib/wcscasecmp.c: New file.
14607         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14608         * m4/wcscasecmp.m4: New file.
14609         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14610         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14611         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14612         HAVE_WCSCASECMP.
14613         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14614         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14615
14616 2011-02-05  Bruno Haible  <bruno@clisp.org>
14617
14618         New module 'wcsncmp'.
14619         * modules/wcsncmp: New file.
14620         * lib/wchar.in.h (wcsncmp): New declaration.
14621         * lib/wcsncmp.c: New file.
14622         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14623         * m4/wcsncmp.m4: New file.
14624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14626         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14627         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14628         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14629
14630 2011-02-05  Bruno Haible  <bruno@clisp.org>
14631
14632         New module 'wcscmp'.
14633         * modules/wcscmp: New file.
14634         * lib/wchar.in.h (wcscmp): New declaration.
14635         * lib/wcscmp.c: New file.
14636         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14637         * m4/wcscmp.m4: New file.
14638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14640         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14641         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14642         * doc/posix-functions/wcscmp.texi: Mention the new module.
14643
14644 2011-02-05  Bruno Haible  <bruno@clisp.org>
14645
14646         New module 'wcsncat'.
14647         * modules/wcsncat: New file.
14648         * lib/wchar.in.h (wcsncat): New declaration.
14649         * lib/wcsncat.c: New file.
14650         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14651         * m4/wcsncat.m4: New file.
14652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14654         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14655         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14656         * doc/posix-functions/wcsncat.texi: Mention the new module.
14657
14658 2011-02-05  Bruno Haible  <bruno@clisp.org>
14659
14660         New module 'wcscat'.
14661         * modules/wcscat: New file.
14662         * lib/wchar.in.h (wcscat): New declaration.
14663         * lib/wcscat.c: New file.
14664         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14665         * m4/wcscat.m4: New file.
14666         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14667         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14668         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14669         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14670         * doc/posix-functions/wcscat.texi: Mention the new module.
14671
14672 2011-02-05  Bruno Haible  <bruno@clisp.org>
14673
14674         New module 'wcpncpy'.
14675         * modules/wcpncpy: New file.
14676         * lib/wchar.in.h (wcpncpy): New declaration.
14677         * lib/wcpncpy.c: New file.
14678         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14679         * m4/wcpncpy.m4: New file.
14680         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14681         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14682         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14683         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14684         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14685
14686 2011-02-05  Bruno Haible  <bruno@clisp.org>
14687
14688         New module 'wcsncpy'.
14689         * modules/wcsncpy: New file.
14690         * lib/wchar.in.h (wcsncpy): New declaration.
14691         * lib/wcsncpy.c: New file.
14692         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14693         * m4/wcsncpy.m4: New file.
14694         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14695         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14696         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14697         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14698         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14699
14700 2011-02-05  Bruno Haible  <bruno@clisp.org>
14701
14702         New module 'wcpcpy'.
14703         * modules/wcpcpy: New file.
14704         * lib/wchar.in.h (wcpcpy): New declaration.
14705         * lib/wcpcpy.c: New file.
14706         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14707         * m4/wcpcpy.m4: New file.
14708         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14709         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14710         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14711         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14712         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14713
14714 2011-02-05  Bruno Haible  <bruno@clisp.org>
14715
14716         New module 'wcscpy'.
14717         * modules/wcscpy: New file.
14718         * lib/wchar.in.h (wcscpy): New declaration.
14719         * lib/wcscpy.c: New file.
14720         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14721         * m4/wcscpy.m4: New file.
14722         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14723         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14724         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14725         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14726         * doc/posix-functions/wcscpy.texi: Mention the new module.
14727
14728 2011-02-05  Bruno Haible  <bruno@clisp.org>
14729
14730         New module 'wcsnlen'.
14731         * modules/wcsnlen: New file.
14732         * lib/wchar.in.h (wcsnlen): New declaration.
14733         * lib/wcsnlen.c: New file.
14734         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14735         * m4/wcsnlen.m4: New file.
14736         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14737         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14738         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14739         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14740         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14741
14742 2011-02-05  Bruno Haible  <bruno@clisp.org>
14743
14744         New module 'wcslen'.
14745         * modules/wcslen: New file.
14746         * lib/wchar.in.h (wcslen): New declaration.
14747         * lib/wcslen.c: New file.
14748         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14749         * m4/wcslen.m4: New file.
14750         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14751         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14752         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14753         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14754         * doc/posix-functions/wcslen.texi: Mention the new module.
14755
14756 2011-02-05  Bruno Haible  <bruno@clisp.org>
14757
14758         New module 'wmemset'.
14759         * modules/wmemset: New file.
14760         * lib/wchar.in.h (wmemset): New declaration.
14761         * lib/wmemset.c: New file.
14762         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14763         * m4/wmemset.m4: New file.
14764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14766         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14767         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14768         * doc/posix-functions/wmemset.texi: Mention the new module.
14769
14770 2011-02-05  Bruno Haible  <bruno@clisp.org>
14771
14772         New module 'wmemmove'.
14773         * modules/wmemmove: New file.
14774         * lib/wchar.in.h (wmemmove): New declaration.
14775         * lib/wmemmove.c: New file.
14776         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14777         * m4/wmemmove.m4: New file.
14778         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14779         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14780         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14781         HAVE_WMEMMOVE.
14782         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14783         * doc/posix-functions/wmemmove.texi: Mention the new module.
14784
14785 2011-02-05  Bruno Haible  <bruno@clisp.org>
14786
14787         New module 'wmemcpy'.
14788         * modules/wmemcpy: New file.
14789         * lib/wchar.in.h (wmemcpy): New declaration.
14790         * lib/wmemcpy.c: New file.
14791         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14792         * m4/wmemcpy.m4: New file.
14793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14795         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14796         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14797         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14798
14799 2011-02-05  Bruno Haible  <bruno@clisp.org>
14800
14801         New module 'wmemcmp'.
14802         * modules/wmemcmp: New file.
14803         * lib/wchar.in.h (wmemcmp): New declaration.
14804         * lib/wmemcmp.c: New file.
14805         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14806         * m4/wmemcmp.m4: New file.
14807         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14808         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14809         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14810         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14811         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14812
14813 2011-02-07  Jim Meyering  <meyering@redhat.com>
14814
14815         di-set, ino-map: new modules, from coreutils
14816         * lib/di-set.c: New file.
14817         * lib/di-set.h: Likewise.
14818         * lib/ino-map.c: Likewise.
14819         * lib/ino-map.h: Likewise.
14820         * modules/di-set: Likewise.
14821         * modules/di-set-tests: Likewise.
14822         * modules/ino-map: Likewise.
14823         * modules/ino-map-tests: Likewise.
14824         * tests/test-di-set.c: Likewise.
14825         * tests/test-ino-map.c: Likewise.
14826
14827 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14828
14829         getloadavg: merge minor changes from Emacs
14830
14831         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14832         (getloadavg): Use memset, not bzero.
14833
14834         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14835         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14836         clash (bug#86).
14837
14838 2010-11-14  Bruno Haible  <bruno@clisp.org>
14839
14840         Allow multiple gnulib generated replacements to coexist.
14841         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14842         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14843         * lib/langinfo.in.h (nl_item): Likewise.
14844         * lib/math.in.h (_NaN, NAN): Likewise.
14845         * lib/netdb.in.h (struct addrinfo): Likewise.
14846         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14847         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14848         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14849         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14850         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14851         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14852         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14853         pthread_mutexattr_init, pthread_mutexattr_settype,
14854         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14855         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14856         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14857         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14858         * lib/sched.in.h (struct sched_param): Likewise.
14859         * lib/se-selinux.in.h (security_class_t, security_context_t,
14860         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14861         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14862         lsetfilecon, fsetfilecon, security_check_context,
14863         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14864         Likewise.
14865         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14866         Likewise.
14867         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14868         _gl_function_taking_int_returning_void_t, union sigval,
14869         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14870         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14871         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14872         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14873         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14874         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14875         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14876         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14877         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14878         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14879         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14880         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14881         socklen_t, rpl_fd_isset): Likewise.
14882         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14883         * lib/sys_time.in.h (struct timeval): Likewise.
14884         * lib/sys_times.in.h (struct tms): Likewise.
14885         * lib/sys_utsname.in.h (struct utsname):
14886         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14887         * lib/unistd.in.h (getpagesize): Likewise.
14888         * lib/wchar.in.h (mbstate_t): Likewise.
14889         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14890         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14891         towlower, towupper): Likewise.
14892         Reported by Sam Steingold <sds@gnu.org>.
14893
14894 2011-02-05  Eric Blake  <eblake@redhat.com>
14895
14896         unsetenv: work around Haiku issues
14897         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14898         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14899
14900 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14901
14902         libposix: avoid calling error() within libposix
14903         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14904         is defined.
14905
14906 2011-02-05  Eric Blake  <eblake@redhat.com>
14907
14908         strerror_r-posix: port to cygwin
14909         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14910         implementation.
14911         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14912         * tests/test-strerror_r.c (main): Fix test.
14913         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14914         issue.
14915
14916 2011-02-05  Bruno Haible  <bruno@clisp.org>
14917
14918         New module 'wmemchr'.
14919         * modules/wmemchr: New file.
14920         * lib/wchar.in.h (wmemchr): New declaration.
14921         * lib/wmemchr.c: New file.
14922         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14923         * m4/wmemchr.m4: New file.
14924         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14925         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14926         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14927         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14928         * doc/posix-functions/wmemchr.texi: Mention the new module.
14929
14930 2011-02-04  Eric Blake  <eblake@redhat.com>
14931
14932         fdopendir: detect FreeBSD bug
14933         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14934         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14935
14936 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14937
14938         stdbool: do not define HAVE_STDBOOL_H
14939         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14940         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14941         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14942         imported from the latest Autoconf git.  It was motivated by Emacs,
14943         which uses gnulib but does not need HAVE_STDBOOL_H.
14944
14945 2011-02-04  Bruno Haible  <bruno@clisp.org>
14946
14947         wcsnrtombs: Prepare for new module wwcsnrtombs.
14948         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14949         * lib/wcsnrtombs.c: Include it.
14950         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14951
14952         wcsrtombs: Prepare for new module wwcsrtombs.
14953         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14954         * lib/wcsrtombs.c: Include it.
14955         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14956
14957         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14958         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14959         * lib/mbsnrtowcs.c: Include it.
14960         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14961
14962         mbsrtowcs: Prepare for new module mbsrtowwcs.
14963         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14964         * lib/mbsrtowcs.c: Include it.
14965         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14966
14967 2011-02-04  Bruno Haible  <bruno@clisp.org>
14968
14969         vasnprintf: Reduce use of malloc for small format strings.
14970         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14971         (arguments): Add room for the first 7 arguments.
14972         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14973         (char_directives, u8_directives, u16_directives, u32_directives): Add
14974         room for the first 7 directives.
14975         * lib/printf-parse.c: Include <string.h>.
14976         (PRINTF_PARSE): Change memory handling code so that it uses the first
14977         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14978         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14979         Reported by Pádraig Brady <P@draigbrady.com>.
14980
14981 2011-01-31  Eric Blake  <eblake@redhat.com>
14982
14983         dup2: work around Haiku bug
14984         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14985         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14986         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14987         * tests/test-dup2.c (main): Enhance test.
14988
14989 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14990
14991         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14992         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14993         declared by eglibc 2.11.2.
14994         * lib/stdio.in.h: Likewise.
14995
14996 2011-01-31  Eric Blake  <eblake@redhat.com>
14997
14998         ignore-value: add missing test dependency
14999         * tests/test-ignore-value.c: Revert previous change; stdio.h
15000         provides off_t.
15001         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15002
15003 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15004
15005         mktime: clarify long_int width checking
15006         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15007         the top level, to make it clearer that the assumption about
15008         long_int width is being checked.  See
15009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15010
15011 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15012
15013         ignore-value: Fix self-test.
15014         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15015
15016 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15017
15018         TYPE_MAXIMUM: avoid theoretically undefined behavior
15019         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15020         negative number, which the C Standard says has undefined behavior.
15021         In practice this is not a problem, but might as well do it by the book.
15022         Reported by Rich Felker and Eric Blake; see
15023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15024         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15025         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15026         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15027         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15028         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15029         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15030
15031         mktime: #undef mktime before #defining it
15032         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15033
15034         mktime: systematically normalize tm_isdst comparisons
15035         * lib/mktime.c (isdst_differ): New function.
15036         (__mktime_internal): Use it systematically for all isdst comparisons.
15037         This completes the fix for libc BZ #6723, and removes the need for
15038         normalizing tm_isdst.  See
15039         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15040         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15041
15042         mktime: fix some integer overflow issues and sidestep the rest
15043
15044         This was prompted by a bug report by Benjamin Lindner for MinGW
15045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15046         His bug is due to signed integer overflow (0 - INT_MIN), and I
15047         I scanned through mktime.c looking for other integer overflow
15048         problems, fixing all the bugs I found.
15049
15050         Although the C Standard says the resulting code is still not safe
15051         in the presence of integer overflow, in practice it should be good
15052         enough for all real-world two's-complement implementations, except
15053         for debugging environments that deliberately trap on integer
15054         overflow (e.g., gcc -ftrapv).
15055
15056         * lib/mktime.c (WRAPV): New macro.
15057         (SHR): Also check that long_int and time_t shift right in the
15058         usual way, before using the fast-but-unportable method.
15059         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15060         used.  The code already assumed two's complement, so there's
15061         no need to test for alternatives.  All uses removed.
15062         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15063         the C standard.  Problem reported by Rich Felker in
15064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15065         (twos_complement_arithmetic): Also check long_int and time_t.
15066         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15067         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15068         (__mktime_internal): Avoid integer overflow with unary subtraction
15069         in two instances where -1 - X is an adequate replacement for -X,
15070         since the calculations are approximate.
15071
15072 2011-01-29  Eric Blake  <eblake@redhat.com>
15073
15074         mktime: avoid infinite loop
15075         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15076         type; behavior is still undefined but portable to all known targets.
15077         Reported by Rich Felker.
15078
15079 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15080
15081         rename, unlink, same-inode: Relicense.
15082         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15083         * modules/unlink (License): Likewise.
15084         * modules/same-inode (License): Likewise.
15085
15086 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15087
15088         mktime: avoid problems on NetBSD 5 / i386
15089         * lib/mktime.c (long_int): New type.  This works around a problem
15090         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15091         but time_t is 64 bits, and where I expect the existing code is
15092         wrong in some cases.
15093         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15094         (ydhms_diff): Bring back the compile-time check for wide-enough
15095         year and yday.
15096
15097         mktime: fix misspelling in comment
15098         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15099         This merges all recent glibc changes of importance.
15100
15101 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15102
15103         move-if-change: cope with concurrent mv of identical file.
15104         * build-aux/move-if-change (CMPPROG): Accept environment
15105         variable as an override for `cmp'.
15106         (usage): Document CMPPROG.
15107         Adjust comparison to drop stdout.  Cope with failure of mv if
15108         the target file exists and is identical to the source, for
15109         parallel builds.
15110         Report from H.J. Lu against binutils in PR binutils/12283.
15111
15112 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15113
15114         * users.txt: Mention sharutils.
15115
15116 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15117
15118         * users.txt: Mention OATH Toolkit.
15119
15120 2011-01-27  Bruno Haible  <bruno@clisp.org>
15121
15122         Prepare for supporting FreeBSD 10.
15123         * build-aux/config.libpath: Remove handling of freebsd1*.
15124
15125 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15126
15127         Prepare for supporting FreeBSD 10.
15128         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15129         match FreeBSD 10.0.
15130
15131 2011-01-27  Bruno Haible  <bruno@clisp.org>
15132
15133         vma-iter, get-rusage-as: Add OpenBSD support.
15134         * modules/vma-iter (configure.ac): Test for mquery.
15135         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15136         * lib/vma-iter.c: Include <sys/mman.h>.
15137         (vma_iterate): Add an implementation based on mquery().
15138         * lib/resource-ext.h (get_rusage_as): Update comments.
15139         * lib/get-rusage-as.c: Likewise.
15140         * lib/get-rusage-data.c: Likewise.
15141
15142 2011-01-26  Karl Berry  <karl@gnu.org>
15143
15144         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15145         variables to make it easier to override the makeinfo program used.
15146
15147 2011-01-26  Eric Blake  <eblake@redhat.com>
15148
15149         fcntl: work around Haiku F_DUPFD bugs
15150         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15151         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15152         cloexec bit on duplication.
15153         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15154
15155 2011-01-26  Bruno Haible  <bruno@clisp.org>
15156
15157         Enable memory leak tests on AIX.
15158         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15159         * tests/test-fprintf-posix3.c (main): Likewise.
15160
15161 2011-01-26  Bruno Haible  <bruno@clisp.org>
15162
15163         Tests for module 'get-rusage-data'.
15164         * modules/get-rusage-data-tests: New file.
15165         * tests/test-get-rusage-data.c: New file.
15166
15167         New module 'get-rusage-data'.
15168         * lib/resource-ext.h (get_rusage_data): New declaration.
15169         * lib/get-rusage-data.c: New file.
15170         * modules/get-rusage-data: New file.
15171
15172 2011-01-25  Bruno Haible  <bruno@clisp.org>
15173
15174         get-rusage-as: Allow for easier testing.
15175         * lib/resource-ext.h (get_rusage_as): Add comment.
15176         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15177         (main): New function for interactive testing.
15178
15179 2011-01-25  Bruno Haible  <bruno@clisp.org>
15180
15181         vma-iter: Treat Haiku like BeOS.
15182         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15183         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15184
15185 2011-01-25  Eric Blake  <eblake@redhat.com>
15186
15187         c-stack: fix regression on cygwin when libsigsegv is present
15188         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15189
15190 2011-01-24  Bruno Haible  <bruno@clisp.org>
15191
15192         vma-iter: Avoid empty intervals.
15193         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15194         on an empty interval.
15195
15196 2011-01-24  Jim Meyering  <meyering@redhat.com>
15197
15198         u64: remove unnecessary #include
15199         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15200
15201 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15202
15203         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15204         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15205
15206 2011-01-23  Bruno Haible  <bruno@clisp.org>
15207
15208         New module 'vma-iter'.
15209         * lib/vma-iter.h: New file.
15210         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15211         * modules/vma-iter: New file.
15212         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15213         for get_rusage_as_via_iterator.
15214         (vma_iterate_callback): New function.
15215         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15216         * modules/get-rusage-as (Depends-on): Add vma-iter.
15217
15218 2011-01-23  Bruno Haible  <bruno@clisp.org>
15219
15220         uninorm: Tweak includes.
15221         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15222         Reported by Jim Meyering.
15223
15224 2011-01-23  Bruno Haible  <bruno@clisp.org>
15225
15226         get-rusage-as: Improve on NetBSD.
15227         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15228         /proc, like on FreeBSD.
15229
15230 2011-01-23  Jim Meyering  <meyering@redhat.com>
15231
15232         xreadlink.h: remove unnecessary #include
15233         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15234
15235         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15236         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15237
15238 2011-01-23  Bruno Haible  <bruno@clisp.org>
15239
15240         get-rusage-as: Fix bug.
15241         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15242         original limit when aborting the first loop.
15243
15244 2011-01-23  Bruno Haible  <bruno@clisp.org>
15245
15246         wctype: Ensure valid C syntax.
15247         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15248         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15249
15250 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15251
15252         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15253         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15254         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15255         as they are needed only for configure's test case.
15256         This removes two unnecessary symbols from config.h.
15257
15258         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15259         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15261         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15262         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15263         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15264         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15265         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15266         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15267         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15268         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15269         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15270         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15271         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15272         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15273         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15274         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15275         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15276
15277 2011-01-21  Eric Blake  <eblake@redhat.com>
15278
15279         maintainer-makefile: work with older git for submodule check
15280         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15281         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15282         Reported by Matthias Bolte.
15283
15284         bootstrap: minor portability fixes
15285         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15286         (usage): Omit leading capital and trailing . on help phrases, per
15287         GNU Coding Standards.
15288         (check_versions, top level): Prefix messages with script name.
15289
15290 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15291
15292         bootstrap: support --no-git option
15293         * build-aux/bootstrap: Add --no-git option, to be used when
15294         --gnulib-srcdir points to the exact desired checkout.
15295
15296 2011-01-21  Eric Blake  <eblake@redhat.com>
15297
15298         strerror_r-posix: work with glibc 2.13
15299         * lib/strerror_r.c (strerror_r): Fix return type.
15300
15301 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15302             Bruno Haible  <bruno@clisp.org>
15303
15304         uN_strstr: New unit tests.
15305         * modules/unistr/u8-strstr-tests: New file.
15306         * modules/unistr/u16-strstr-tests: New file.
15307         * modules/unistr/u32-strstr-tests: New file.
15308         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15309         * tests/unistr/test-u8-strstr.c: New file.
15310         * tests/unistr/test-u16-strstr.c: New file.
15311         * tests/unistr/test-u32-strstr.c: New file.
15312
15313 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15314             Bruno Haible  <bruno@clisp.org>
15315
15316         Make uN_strstr functions O(n) worst-case.
15317         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15318         16-bit and 32-bit unit cases, use the unibyte algorithm from
15319         lib/mbsstr.c.
15320         * lib/unistr/u8-strstr.c: Include <string.h>.
15321         (UNIT_IS_UINT8_T): New macro.
15322         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15323         (U_STRLEN, U_STRNLEN): New macros.
15324         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15325         (U_STRLEN, U_STRNLEN): New macros.
15326         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15327         (configure.ac): Update required libunistring version.
15328         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15329         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15330         malloca.
15331         (configure.ac): Update required libunistring version.
15332         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15333         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15334         malloca.
15335         (configure.ac): Update required libunistring version.
15336
15337 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15338             Bruno Haible  <bruno@clisp.org>
15339
15340         Prepare for faster uN_strstr functions.
15341         * lib/str-kmp.h: Support definable UNITs.
15342         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15343         needle_len argument.
15344         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15345         * lib/mbscasestr.c (mbscasestr): Likewise.
15346
15347 2011-01-21  Pádraig Brady <P@draigBrady.com>
15348
15349         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15350         * tests/test-malloca.c (main): Unset the environment variable
15351         to greatly speed up the test.
15352         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15353         * modules/malloca-tests: Depend on unsetenv.
15354
15355 2011-01-21  Pádraig Brady <P@draigBrady.com>
15356
15357         ignore-value: remove stdint dependency
15358         * lib/ignore-value.h: Remove <stdint.h>
15359         * modules/ignore-value: Remove stdint dependency.
15360
15361 2011-01-21  Jim Meyering  <meyering@redhat.com>
15362
15363         maint.mk: adjust variable name to be consistent with other gl_ vars
15364         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15365         to be lower case.
15366
15367 2011-01-20  Jim Meyering  <meyering@redhat.com>
15368
15369         maint.mk: make "check" depend on public-submodule-commit by default
15370         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15371
15372 2011-01-20  Bruno Haible  <bruno@clisp.org>
15373
15374         mbfile, mbiter: Complete change from 2008-12-21.
15375         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15376         * m4/mbiter.m4 (gl_MBITER): Likewise.
15377
15378 2011-01-20  Jim Meyering  <meyering@redhat.com>
15379
15380         init.sh: insert space between each function name and "()"
15381         * tests/init.sh: Make it a little easier to see that a function's
15382         name is "warn_", and not "warn" when looking at the first part of
15383         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15384
15385 2011-01-20  Jim Meyering  <meyering@redhat.com>
15386
15387         mountlist: clean up code formatting
15388         * lib/mountlist.c (read_file_system_list): Split a long line,
15389         correct bracing style, use NULL in place of "(struct statfs *)0",
15390         don't parenthesize return value, add spaces around "=" and after
15391         ";-in-for-stmt".
15392
15393 2011-01-14  Markus Duft <mduft@gentoo.org>
15394
15395         mountlist: add support for Interix
15396         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15397         Apply statvfs to all entries of /dev/fs.
15398         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15399         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15400
15401 2011-01-20  Jim Meyering  <meyering@redhat.com>
15402
15403         maint.mk: improve the public-submodule-commit rule
15404         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15405         to suppress printing of its commands... unless V=1.
15406         Add git submodule's --quiet option to suppress printing of e.g.,
15407         "Entering gnulib" output.
15408         "cd" into $(srcdir) before running git submodule.
15409
15410 2011-01-20  Bruno Haible  <bruno@clisp.org>
15411
15412         include_next: Fix bug introduced on 2011-01-18.
15413         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15414         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15415         ac_cv_header_... variable if the second argument is not 'check'.
15416         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15417         gl_NEXT_HEADERS_INTERNAL.
15418
15419 2011-01-20  Bruno Haible  <bruno@clisp.org>
15420
15421         Allow the user to avoid the GNULIB_TEST_* macros.
15422         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15423         Suggested by Paul Eggert.
15424
15425 2011-01-14  Jim Meyering  <meyering@redhat.com>
15426
15427         bootstrap: avoid failure when there is no .gitmodules file
15428         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15429         has been assigned to, even when its value is the empty string.
15430         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15431         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15432         Reported by John W. Eaton <jwe@gnu.org>.
15433
15434 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15435
15436         assume <ctype.h>, ..., <time.h> exist
15437         For years gnulib has been assuming the existence of the headers
15438         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15439         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15440         them, since they don't appear to be needed.
15441         * README (Portability guidelines): Document this.
15442         * lib/flock.c: Assume <fcntl.h> exists.
15443         * lib/regex_internal.h: Assume <locale.h> exists.
15444         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15445         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15446         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15447         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15448         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15449         * m4/regex.m4 (gl_REGEX): Likewise.
15450         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15451         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15452         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15453         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15454         * tests/test-argp.c: Likewise.
15455         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15456
15457         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15458         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15459         AA_APPLE_UNIVERSAL_BUILD.  See
15460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15461         * NEWS: Document this.
15462
15463 2011-01-19  Eric Blake  <eblake@redhat.com>
15464
15465         c-stack: assume stack overflow if SA_SIGINFO unsupported
15466         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15467         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15468         sigaction will work.
15469         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15470         behavior match Linux.
15471         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15472
15473         stdbool-tests: accomodate Haiku
15474         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15475
15476         binary-io: fix O_TEXT on Haiku
15477         * modules/binary-io (Depends-on): Add fcntl-h.
15478         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15479         than blindly undefining O_TEXT.
15480         Reported by Scott McCreary.
15481
15482 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15483
15484         include_next: do not check for standard headers like stddef.h
15485
15486         I found this problem when modifying Emacs to use gnulib.
15487         I noticed that it added HAVE_STDDEF_H to config.h, even though
15488         gnulib always assumes <stddef.h> exists as per README and this
15489         symbol is unnecessary.
15490         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15491         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15492         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15493         faster for headers like stddef.h that are known to exist.
15494         (gl_CHECK_NEXT_HEADERS): Use it.
15495         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15496         rather than gl_CHECK_NEXT_HEADERS.
15497         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15498         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15499
15500 2011-01-18  Eric Blake  <eblake@redhat.com>
15501
15502         ansi-c++-opt: skip C++ dependency style if C++ is unused
15503         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15504         tests when we know C++ compilation is not desired.
15505         Reported by Scott McCreary.
15506
15507 2011-01-18  Bruno Haible  <bruno@clisp.org>
15508
15509         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15510         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15511         (main): Perform test also when getrlimit and setrlimit don't exist or
15512         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15513         limiting the address space size using setrlimit, compare the address
15514         space size before and after the the test.
15515         * tests/test-dprintf-posix2.c: Likewise.
15516         * tests/test-fprintf-posix3.sh: Update skip messages.
15517         * tests/test-dprintf-posix2.sh: Likewise.
15518         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15519         * modules/dprintf-posix-tests (Depends-on): Likewise.
15520         Reported by Bruce Korb <bkorb@gnu.org> and
15521         Gary V. Vaughan <gary@gnu.org>.
15522
15523 2011-01-18  Bruno Haible  <bruno@clisp.org>
15524
15525         get-rusage-as: Improvement for Cygwin.
15526         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15527         areas that are merely reserved.
15528
15529 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15530
15531         strftime: remove dependencies on multibyte modules
15532
15533         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15534         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15535         only if __osf__ is defined, and I suspect OSF doesn't need these
15536         other modules.  If my guess is wrong, we'll need to come up with a
15537         variant of strftime that doesn't need the multibyte modules.
15538
15539         I discovered this problem when attempting modify Emacs to use the
15540         strftime module.  With the previous gnulib, this caused Emacs to
15541         need 31 new files, ranging from lib/config.charset to
15542         m4/wint_t.m4.  This was overkill and I expect would be offputting
15543         to the Emacs maintainers.  After this change, only 6 new files are
15544         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15545         stdbool.m4, and tm_gmtoff.m4.
15546
15547         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15548         Suggested by Bruno Haible in
15549         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15550         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15551         and do not check for wchar.h.
15552         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15553         (Depends-on): Remove mbrlen, mbsinit, wchar.
15554
15555 2011-01-18  Bruno Haible  <bruno@clisp.org>
15556
15557         Tests for module 'get-rusage-as'.
15558         * modules/get-rusage-as-tests: New file.
15559         * tests/test-get-rusage-as.c: New file.
15560
15561         New module 'get-rusage-as'.
15562         * modules/get-rusage-as: New file.
15563         * lib/resource-ext.h: New file.
15564         * lib/get-rusage-as.c: New file.
15565
15566 2011-01-17  Eric Blake  <eblake@redhat.com>
15567
15568         sigaction: relax license from LGPLv3+ to LGPLv2+
15569         * modules/sigaction (License): Relax to LGPLv2+.
15570
15571 2011-01-14  Bruno Haible  <bruno@clisp.org>
15572
15573         filemode: Make function declarations usable in C++ mode.
15574         * lib/filemode.h: Enclose function declarations in extern "C" block.
15575         Reported by John W. Eaton <jwe@gnu.org>.
15576
15577 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15578
15579         save-cwd: no longer include "xgetcwd.h"
15580         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15581         This avoids a compilation failure in projects that use save-cwd
15582         without also using the xgetcwd module.
15583
15584 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15585
15586         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15587         This is so that a program like Emacs, which needs only dtoastr,
15588         does not have to bother with distributing and compiling ftoastr
15589         and ldtoastr.
15590         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15591         * modules/dtoastr, modules/ldtoastr: New files.
15592         * modules/ftoastr: Now works just for 'float'.
15593         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15594         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15595         dtoastr.c, ldtoastr.c.
15596
15597 2011-01-11  Jim Meyering  <meyering@redhat.com>
15598
15599         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15600         There is no need to work around the lack of the fchdir function,
15601         since gnulib can now provide a replacement when required.
15602         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15603         * modules/save-cwd (Depends-on): Add fchdir.
15604
15605 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15606
15607         openat, save-cwd: avoid xmalloc
15608
15609         This removes a direct (but undocumented) dependency of openat on
15610         xalloc, along with an indirect dependency via save-cwd.  It also
15611         removes a dependency of save-cwd on xgetcwd, and thereby
15612         indirectly on xalloc.  This change causes the openat substitute
15613         to fall back on save_cwd when memory is tight, and for save_cwd to
15614         fail instead of dying when memory is tight, but that's good enough.
15615         Problem and initial idea for fix reported by Bastien Roucaries in
15616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15617
15618         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15619         xalloc.h (for xmalloc).
15620         (openat_proc_name): Use malloc, not xmalloc.
15621         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15622         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15623
15624         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15625         This avoids heap allocation for file names whose lengths are in
15626         the range 512..1023, with the upper bound increasing to at most
15627         4031 depending on the platform's PATH_MAX.  (We do not want
15628         pathmax.h here as it might supply a non-constant PATH_MAX.)
15629         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15630         Perhaps they should be moved to malloca.h?
15631         (OPENAT_BUFFER_SIZE): Use them.
15632
15633 2011-01-10  Bruno Haible  <bruno@clisp.org>
15634
15635         doc: Update users.txt.
15636         * users.txt: Add recutils.
15637
15638 2011-01-09  Karl Berry  <karl@gnu.org>
15639
15640         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15641
15642         * doc/configmake.texi: New file.
15643         * doc/gnulib.texi: Include it.
15644         * modules/configmake: Move documentation from here.
15645
15646 2011-01-09  Bruno Haible  <bruno@clisp.org>
15647
15648         Update to Unicode 6.0.0.
15649         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15650         (get_lbp): Update for Unicode 6.0.0.
15651         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15652         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15653         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15654         U+11001, U+11038..U+11046. Remove U+06DE.
15655         (uc_width): Fix bounds of planes.
15656         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15657         lib/uniwidth/width.c.
15658         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15659         trailing whitespace removed.
15660         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15661         without comments, but with the original copyright notice.
15662         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15663         * lib/unicase/ignorable.h: Likewise.
15664         * lib/unicase/tocasefold.h: Likewise.
15665         * lib/unicase/tolower.h: Likewise.
15666         * lib/unicase/totitle.h: Likewise.
15667         * lib/unicase/toupper.h: Likewise.
15668         * lib/unictype/bidi_of.h: Likewise.
15669         * lib/unictype/blocks.h: Likewise.
15670         * lib/unictype/categ_C.h: Likewise.
15671         * lib/unictype/categ_Cn.h: Likewise.
15672         * lib/unictype/categ_L.h: Likewise.
15673         * lib/unictype/categ_Ll.h: Likewise.
15674         * lib/unictype/categ_Lm.h: Likewise.
15675         * lib/unictype/categ_Lo.h: Likewise.
15676         * lib/unictype/categ_Lu.h: Likewise.
15677         * lib/unictype/categ_M.h: Likewise.
15678         * lib/unictype/categ_Mc.h: Likewise.
15679         * lib/unictype/categ_Me.h: Likewise.
15680         * lib/unictype/categ_Mn.h: Likewise.
15681         * lib/unictype/categ_N.h: Likewise.
15682         * lib/unictype/categ_Nd.h: Likewise.
15683         * lib/unictype/categ_No.h: Likewise.
15684         * lib/unictype/categ_P.h: Likewise.
15685         * lib/unictype/categ_Po.h: Likewise.
15686         * lib/unictype/categ_S.h: Likewise.
15687         * lib/unictype/categ_Sc.h: Likewise.
15688         * lib/unictype/categ_Sk.h: Likewise.
15689         * lib/unictype/categ_Sm.h: Likewise.
15690         * lib/unictype/categ_So.h: Likewise.
15691         * lib/unictype/categ_of.h: Likewise.
15692         * lib/unictype/combining.h: Likewise.
15693         * lib/unictype/ctype_alnum.h: Likewise.
15694         * lib/unictype/ctype_alpha.h: Likewise.
15695         * lib/unictype/ctype_graph.h: Likewise.
15696         * lib/unictype/ctype_lower.h: Likewise.
15697         * lib/unictype/ctype_print.h: Likewise.
15698         * lib/unictype/ctype_punct.h: Likewise.
15699         * lib/unictype/ctype_upper.h: Likewise.
15700         * lib/unictype/decdigit.h: Likewise.
15701         * lib/unictype/digit.h: Likewise.
15702         * lib/unictype/numeric.h: Likewise.
15703         * lib/unictype/pr_alphabetic.h: Likewise.
15704         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15705         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15706         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15707         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15708         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15709         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15710         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15711         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15712         * lib/unictype/pr_case_ignorable.h: Likewise.
15713         * lib/unictype/pr_cased.h: Likewise.
15714         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15715         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15716         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15717         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15718         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15719         * lib/unictype/pr_combining.h: Likewise.
15720         * lib/unictype/pr_composite.h: Likewise.
15721         * lib/unictype/pr_currency_symbol.h: Likewise.
15722         * lib/unictype/pr_decimal_digit.h: Likewise.
15723         * lib/unictype/pr_deprecated.h: Likewise.
15724         * lib/unictype/pr_format_control.h: Likewise.
15725         * lib/unictype/pr_grapheme_base.h: Likewise.
15726         * lib/unictype/pr_grapheme_extend.h: Likewise.
15727         * lib/unictype/pr_grapheme_link.h: Likewise.
15728         * lib/unictype/pr_id_continue.h: Likewise.
15729         * lib/unictype/pr_id_start.h: Likewise.
15730         * lib/unictype/pr_ideographic.h: Likewise.
15731         * lib/unictype/pr_lowercase.h: Likewise.
15732         * lib/unictype/pr_math.h: Likewise.
15733         * lib/unictype/pr_numeric.h: Likewise.
15734         * lib/unictype/pr_other_alphabetic.h: Likewise.
15735         * lib/unictype/pr_other_id_continue.h: Likewise.
15736         * lib/unictype/pr_other_math.h: Likewise.
15737         * lib/unictype/pr_punctuation.h: Likewise.
15738         * lib/unictype/pr_sentence_terminal.h: Likewise.
15739         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15740         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15741         * lib/unictype/pr_unified_ideograph.h: Likewise.
15742         * lib/unictype/pr_uppercase.h: Likewise.
15743         * lib/unictype/pr_xid_continue.h: Likewise.
15744         * lib/unictype/pr_xid_start.h: Likewise.
15745         * lib/unictype/scripts.h: Likewise.
15746         * lib/unictype/scripts_byname.gperf: Likewise.
15747         * lib/unictype/sy_java_ident.h: Likewise.
15748         * lib/unigbrk/gbrkprop.h: Likewise.
15749         * lib/unilbrk/lbrkprop1.h: Likewise.
15750         * lib/unilbrk/lbrkprop2.h: Likewise.
15751         * lib/uninorm/decomposition-table2.h: Likewise.
15752         * lib/uniwbrk/wbrkprop.h: Likewise.
15753         * tests/unicase/test-cased.c: Likewise.
15754         * tests/unicase/test-ignorable.c: Likewise.
15755         * tests/unicase/test-uc_tolower.c: Likewise.
15756         * tests/unicase/test-uc_totitle.c: Likewise.
15757         * tests/unicase/test-uc_toupper.c: Likewise.
15758         * tests/unictype/test-categ_C.c: Likewise.
15759         * tests/unictype/test-categ_Cn.c: Likewise.
15760         * tests/unictype/test-categ_L.c: Likewise.
15761         * tests/unictype/test-categ_Ll.c: Likewise.
15762         * tests/unictype/test-categ_Lm.c: Likewise.
15763         * tests/unictype/test-categ_Lo.c: Likewise.
15764         * tests/unictype/test-categ_Lu.c: Likewise.
15765         * tests/unictype/test-categ_M.c: Likewise.
15766         * tests/unictype/test-categ_Mc.c: Likewise.
15767         * tests/unictype/test-categ_Me.c: Likewise.
15768         * tests/unictype/test-categ_Mn.c: Likewise.
15769         * tests/unictype/test-categ_N.c: Likewise.
15770         * tests/unictype/test-categ_Nd.c: Likewise.
15771         * tests/unictype/test-categ_No.c: Likewise.
15772         * tests/unictype/test-categ_P.c: Likewise.
15773         * tests/unictype/test-categ_Po.c: Likewise.
15774         * tests/unictype/test-categ_S.c: Likewise.
15775         * tests/unictype/test-categ_Sc.c: Likewise.
15776         * tests/unictype/test-categ_Sk.c: Likewise.
15777         * tests/unictype/test-categ_Sm.c: Likewise.
15778         * tests/unictype/test-categ_So.c: Likewise.
15779         * tests/unictype/test-ctype_alnum.c: Likewise.
15780         * tests/unictype/test-ctype_alpha.c: Likewise.
15781         * tests/unictype/test-ctype_graph.c: Likewise.
15782         * tests/unictype/test-ctype_lower.c: Likewise.
15783         * tests/unictype/test-ctype_print.c: Likewise.
15784         * tests/unictype/test-ctype_punct.c: Likewise.
15785         * tests/unictype/test-ctype_upper.c: Likewise.
15786         * tests/unictype/test-decdigit.h: Likewise.
15787         * tests/unictype/test-digit.h: Likewise.
15788         * tests/unictype/test-numeric.h: Likewise.
15789         * tests/unictype/test-pr_alphabetic.c: Likewise.
15790         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15791         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15792         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15793         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15794         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15795         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15796         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15797         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15798         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15799         * tests/unictype/test-pr_cased.c: Likewise.
15800         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15801         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15802         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15803         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15804         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15805         * tests/unictype/test-pr_combining.c: Likewise.
15806         * tests/unictype/test-pr_composite.c: Likewise.
15807         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15808         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15809         * tests/unictype/test-pr_deprecated.c: Likewise.
15810         * tests/unictype/test-pr_format_control.c: Likewise.
15811         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15812         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15813         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15814         * tests/unictype/test-pr_id_continue.c: Likewise.
15815         * tests/unictype/test-pr_id_start.c: Likewise.
15816         * tests/unictype/test-pr_ideographic.c: Likewise.
15817         * tests/unictype/test-pr_lowercase.c: Likewise.
15818         * tests/unictype/test-pr_math.c: Likewise.
15819         * tests/unictype/test-pr_numeric.c: Likewise.
15820         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15821         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15822         * tests/unictype/test-pr_other_math.c: Likewise.
15823         * tests/unictype/test-pr_punctuation.c: Likewise.
15824         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15825         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15826         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15827         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15828         * tests/unictype/test-pr_uppercase.c: Likewise.
15829         * tests/unictype/test-pr_xid_continue.c: Likewise.
15830         * tests/unictype/test-pr_xid_start.c: Likewise.
15831         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15832         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15833         changes.
15834         * lib/unictype/categ_Cc.h: Likewise.
15835         * lib/unictype/categ_Cf.h: Likewise.
15836         * lib/unictype/categ_Co.h: Likewise.
15837         * lib/unictype/categ_Cs.h: Likewise.
15838         * lib/unictype/categ_Lt.h: Likewise.
15839         * lib/unictype/categ_Nl.h: Likewise.
15840         * lib/unictype/categ_Pc.h: Likewise.
15841         * lib/unictype/categ_Pd.h: Likewise.
15842         * lib/unictype/categ_Pe.h: Likewise.
15843         * lib/unictype/categ_Pf.h: Likewise.
15844         * lib/unictype/categ_Pi.h: Likewise.
15845         * lib/unictype/categ_Ps.h: Likewise.
15846         * lib/unictype/categ_Z.h: Likewise.
15847         * lib/unictype/categ_Zl.h: Likewise.
15848         * lib/unictype/categ_Zp.h: Likewise.
15849         * lib/unictype/categ_Zs.h: Likewise.
15850         * lib/unictype/ctype_blank.h: Likewise.
15851         * lib/unictype/ctype_cntrl.h: Likewise.
15852         * lib/unictype/ctype_digit.h: Likewise.
15853         * lib/unictype/ctype_space.h: Likewise.
15854         * lib/unictype/ctype_xdigit.h: Likewise.
15855         * lib/unictype/mirror.h: Likewise.
15856         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15857         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15858         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15859         * lib/unictype/pr_bidi_control.h: Likewise.
15860         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15861         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15862         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15863         * lib/unictype/pr_bidi_pdf.h: Likewise.
15864         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15865         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15866         * lib/unictype/pr_dash.h: Likewise.
15867         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15868         * lib/unictype/pr_diacritic.h: Likewise.
15869         * lib/unictype/pr_extender.h: Likewise.
15870         * lib/unictype/pr_hex_digit.h: Likewise.
15871         * lib/unictype/pr_hyphen.h: Likewise.
15872         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15873         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15874         * lib/unictype/pr_ignorable_control.h: Likewise.
15875         * lib/unictype/pr_iso_control.h: Likewise.
15876         * lib/unictype/pr_join_control.h: Likewise.
15877         * lib/unictype/pr_left_of_pair.h: Likewise.
15878         * lib/unictype/pr_line_separator.h: Likewise.
15879         * lib/unictype/pr_logical_order_exception.h: Likewise.
15880         * lib/unictype/pr_non_break.h: Likewise.
15881         * lib/unictype/pr_not_a_character.h: Likewise.
15882         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15883         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15884         * lib/unictype/pr_other_id_start.h: Likewise.
15885         * lib/unictype/pr_other_lowercase.h: Likewise.
15886         * lib/unictype/pr_other_uppercase.h: Likewise.
15887         * lib/unictype/pr_paired_punctuation.h: Likewise.
15888         * lib/unictype/pr_paragraph_separator.h: Likewise.
15889         * lib/unictype/pr_pattern_syntax.h: Likewise.
15890         * lib/unictype/pr_pattern_white_space.h: Likewise.
15891         * lib/unictype/pr_private_use.h: Likewise.
15892         * lib/unictype/pr_quotation_mark.h: Likewise.
15893         * lib/unictype/pr_radical.h: Likewise.
15894         * lib/unictype/pr_soft_dotted.h: Likewise.
15895         * lib/unictype/pr_space.h: Likewise.
15896         * lib/unictype/pr_titlecase.h: Likewise.
15897         * lib/unictype/pr_variation_selector.h: Likewise.
15898         * lib/unictype/pr_white_space.h: Likewise.
15899         * lib/unictype/pr_zero_width.h: Likewise.
15900         * lib/unictype/sy_c_ident.h: Likewise.
15901         * lib/unictype/sy_c_whitespace.h: Likewise.
15902         * lib/unictype/sy_java_whitespace.h: Likewise.
15903         * lib/uninorm/composition-table.gperf: Likewise.
15904         * lib/uninorm/decomposition-table1.h: Likewise.
15905         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15906         LB8.
15907         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15908         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15909         * modules/unictype/*: Bump version number of expected libunistring
15910         version.
15911
15912 2011-01-09  Bruno Haible  <bruno@clisp.org>
15913
15914         Update to Unicode 5.2.0.
15915         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15916         trailing whitespace removed.
15917
15918 2011-01-09  Bruno Haible  <bruno@clisp.org>
15919
15920         New Unicode character properties, from Unicode 5.2.0.
15921         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15922         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15923         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15924         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15925         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15926         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15927         uc_is_property_cased, uc_is_property_case_ignorable,
15928         uc_is_property_changes_when_lowercased,
15929         uc_is_property_changes_when_uppercased,
15930         uc_is_property_changes_when_titlecased,
15931         uc_is_property_changes_when_casefolded,
15932         uc_is_property_changes_when_casemapped): New declarations.
15933         * lib/unictype/pr_byname.gperf: Add the new properties.
15934         * modules/unictype/property-byname (Depends-on): Depend on the new
15935         properties modules.
15936         * modules/unictype/property-all (Depends-on): Likewise.
15937         * MODULES.html.sh (Unicode string functions): Add
15938         unictype/property-case-ignorable, unictype/property-cased,
15939         unictype/property-changes-when-casefolded,
15940         unictype/property-changes-when-casemapped,
15941         unictype/property-changes-when-lowercased,
15942         unictype/property-changes-when-titlecased,
15943         unictype/property-changes-when-uppercased.
15944
15945         New module 'unictype/property-changes-when-casemapped'.
15946         * modules/unictype/property-changes-when-casemapped: New file.
15947         * lib/unictype/pr_changes_when_casemapped.c: New file.
15948         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15949         generated by gen-uni-tables.
15950         * modules/unictype/property-changes-when-casemapped-tests: New file.
15951         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15952         automatically generated by gen-uni-tables.
15953
15954         New module 'unictype/property-changes-when-casefolded'.
15955         * modules/unictype/property-changes-when-casefolded: New file.
15956         * lib/unictype/pr_changes_when_casefolded.c: New file.
15957         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15958         generated by gen-uni-tables.
15959         * modules/unictype/property-changes-when-casefolded-tests: New file.
15960         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15961         automatically generated by gen-uni-tables.
15962
15963         New module 'unictype/property-changes-when-titlecased'.
15964         * modules/unictype/property-changes-when-titlecased: New file.
15965         * lib/unictype/pr_changes_when_titlecased.c: New file.
15966         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15967         generated by gen-uni-tables.
15968         * modules/unictype/property-changes-when-titlecased-tests: New file.
15969         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15970         automatically generated by gen-uni-tables.
15971
15972         New module 'unictype/property-changes-when-uppercased'.
15973         * modules/unictype/property-changes-when-uppercased: New file.
15974         * lib/unictype/pr_changes_when_uppercased.c: New file.
15975         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15976         generated by gen-uni-tables.
15977         * modules/unictype/property-changes-when-uppercased-tests: New file.
15978         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15979         automatically generated by gen-uni-tables.
15980
15981         New module 'unictype/property-changes-when-lowercased'.
15982         * modules/unictype/property-changes-when-lowercased: New file.
15983         * lib/unictype/pr_changes_when_lowercased.c: New file.
15984         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15985         generated by gen-uni-tables.
15986         * modules/unictype/property-changes-when-lowercased-tests: New file.
15987         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15988         automatically generated by gen-uni-tables.
15989
15990         New module 'unictype/property-case-ignorable'.
15991         * modules/unictype/property-case-ignorable: New file.
15992         * lib/unictype/pr_case_ignorable.c: New file.
15993         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15994         by gen-uni-tables.
15995         * modules/unictype/property-case-ignorable-tests: New file.
15996         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15997         generated by gen-uni-tables.
15998
15999         New module 'unictype/property-cased'.
16000         * modules/unictype/property-cased: New file.
16001         * lib/unictype/pr_cased.c: New file.
16002         * lib/unictype/pr_cased.h: New file, automatically generated by
16003         gen-uni-tables.
16004         * modules/unictype/property-cased-tests: New file.
16005         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16006         gen-uni-tables.
16007
16008 2011-01-09  Bruno Haible  <bruno@clisp.org>
16009
16010         Update to Unicode 5.2.0.
16011         * lib/gen-uni-tables.c (output_predicate, output_category,
16012         output_combclass, output_bidi_category, output_decimal_digit_test,
16013         output_decimal_digit, output_digit_test, output_digit,
16014         output_numeric_test, output_numeric, output_mirror, output_scripts,
16015         output_scripts_byname, output_blocks, output_ident_category): Fix
16016         comment header.
16017         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16018         get_wbp.
16019         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16020         items.
16021         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16022         Changes_When_Lowercased, Changes_When_Uppercased,
16023         Changes_When_Titlecased, Changes_When_Casefolded,
16024         Changes_When_Casemapped.
16025         (is_property_alphabetic, is_property_default_ignorable_code_point):
16026         Update for Unicode 5.2.0.
16027         (is_property_cased, is_property_case_ignorable,
16028         is_property_changes_when_lowercased,
16029         is_property_changes_when_uppercased,
16030         is_property_changes_when_titlecased,
16031         is_property_changes_when_casefolded,
16032         is_property_changes_when_casemapped): New functions.
16033         (output_properties): Output also the properties cased, case_ignorable,
16034         changes_when_lowercased, changes_when_uppercased,
16035         changes_when_titlecased, changes_when_casefolded,
16036         changes_when_casemapped.
16037         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16038         Unicode TR#11 revision 17 -> 19.
16039         (LBP_CP): New enumeration value.
16040         (LBP_*): Adjust values accordingly.
16041         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16042         TR#14 revision 22 -> 24.
16043         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16044         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16045         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16046         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16047         is_WBP_MIDLETTER.
16048         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16049         the code1 and code2 of each composition rule.
16050         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16051         * lib/unicase/ignorable.h: Likewise.
16052         * lib/unicase/tocasefold.h: Likewise.
16053         * lib/unicase/tolower.h: Likewise.
16054         * lib/unicase/totitle.h: Likewise.
16055         * lib/unicase/toupper.h: Likewise.
16056         * lib/unictype/bidi_of.h: Likewise.
16057         * lib/unictype/blocks.h: Likewise.
16058         * lib/unictype/categ_C.h: Likewise.
16059         * lib/unictype/categ_Cf.h: Likewise.
16060         * lib/unictype/categ_Cn.h: Likewise.
16061         * lib/unictype/categ_L.h: Likewise.
16062         * lib/unictype/categ_Ll.h: Likewise.
16063         * lib/unictype/categ_Lm.h: Likewise.
16064         * lib/unictype/categ_Lo.h: Likewise.
16065         * lib/unictype/categ_Lu.h: Likewise.
16066         * lib/unictype/categ_M.h: Likewise.
16067         * lib/unictype/categ_Mc.h: Likewise.
16068         * lib/unictype/categ_Mn.h: Likewise.
16069         * lib/unictype/categ_N.h: Likewise.
16070         * lib/unictype/categ_Nd.h: Likewise.
16071         * lib/unictype/categ_Nl.h: Likewise.
16072         * lib/unictype/categ_No.h: Likewise.
16073         * lib/unictype/categ_P.h: Likewise.
16074         * lib/unictype/categ_Pd.h: Likewise.
16075         * lib/unictype/categ_Po.h: Likewise.
16076         * lib/unictype/categ_S.h: Likewise.
16077         * lib/unictype/categ_Sc.h: Likewise.
16078         * lib/unictype/categ_So.h: Likewise.
16079         * lib/unictype/categ_of.h: Likewise.
16080         * lib/unictype/combining.h: Likewise.
16081         * lib/unictype/ctype_alnum.h: Likewise.
16082         * lib/unictype/ctype_alpha.h: Likewise.
16083         * lib/unictype/ctype_graph.h: Likewise.
16084         * lib/unictype/ctype_lower.h: Likewise.
16085         * lib/unictype/ctype_print.h: Likewise.
16086         * lib/unictype/ctype_punct.h: Likewise.
16087         * lib/unictype/ctype_upper.h: Likewise.
16088         * lib/unictype/decdigit.h: Likewise.
16089         * lib/unictype/digit.h: Likewise.
16090         * lib/unictype/numeric.h: Likewise.
16091         * lib/unictype/pr_alphabetic.h: Likewise.
16092         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16093         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16094         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16095         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16096         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16097         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16098         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16099         * lib/unictype/pr_combining.h: Likewise.
16100         * lib/unictype/pr_composite.h: Likewise.
16101         * lib/unictype/pr_currency_symbol.h: Likewise.
16102         * lib/unictype/pr_dash.h: Likewise.
16103         * lib/unictype/pr_decimal_digit.h: Likewise.
16104         * lib/unictype/pr_deprecated.h: Likewise.
16105         * lib/unictype/pr_diacritic.h: Likewise.
16106         * lib/unictype/pr_extender.h: Likewise.
16107         * lib/unictype/pr_grapheme_base.h: Likewise.
16108         * lib/unictype/pr_grapheme_extend.h: Likewise.
16109         * lib/unictype/pr_grapheme_link.h: Likewise.
16110         * lib/unictype/pr_id_continue.h: Likewise.
16111         * lib/unictype/pr_id_start.h: Likewise.
16112         * lib/unictype/pr_ideographic.h: Likewise.
16113         * lib/unictype/pr_ignorable_control.h: Likewise.
16114         * lib/unictype/pr_logical_order_exception.h: Likewise.
16115         * lib/unictype/pr_lowercase.h: Likewise.
16116         * lib/unictype/pr_numeric.h: Likewise.
16117         * lib/unictype/pr_other_alphabetic.h: Likewise.
16118         * lib/unictype/pr_punctuation.h: Likewise.
16119         * lib/unictype/pr_sentence_terminal.h: Likewise.
16120         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16121         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16122         * lib/unictype/pr_unified_ideograph.h: Likewise.
16123         * lib/unictype/pr_uppercase.h: Likewise.
16124         * lib/unictype/pr_xid_continue.h: Likewise.
16125         * lib/unictype/pr_xid_start.h: Likewise.
16126         * lib/unictype/pr_zero_width.h: Likewise.
16127         * lib/unictype/scripts.h: Likewise.
16128         * lib/unictype/scripts_byname.gperf: Likewise.
16129         * lib/unictype/sy_java_ident.h: Likewise.
16130         * lib/unigbrk/gbrkprop.h: Likewise.
16131         * lib/unilbrk/lbrkprop1.h: Likewise.
16132         * lib/unilbrk/lbrkprop2.h: Likewise.
16133         * lib/unilbrk/lbrktables.h: Likewise.
16134         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16135         LBP_CP. Implement rule LB30.
16136         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16137         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16138         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16139         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16140         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16141         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16142         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16143         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16144         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16145         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16146         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16147         bits instead of 16 bits in the code1 and code2 of each composition
16148         rule.
16149         (uc_composition): Update for Unicode 5.2.0.
16150         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16151         * lib/uninorm/decomposition-table2.h: Likewise.
16152         * lib/uniwbrk/wbrkprop.h: Likewise.
16153         * tests/unicase/test-cased.c: Likewise.
16154         * tests/unicase/test-ignorable.c: Likewise.
16155         * tests/unicase/test-uc_tolower.c: Likewise.
16156         * tests/unicase/test-uc_totitle.c: Likewise.
16157         * tests/unicase/test-uc_toupper.c: Likewise.
16158         * tests/unictype/test-categ_C.c: Likewise.
16159         * tests/unictype/test-categ_Cf.c: Likewise.
16160         * tests/unictype/test-categ_Cn.c: Likewise.
16161         * tests/unictype/test-categ_L.c: Likewise.
16162         * tests/unictype/test-categ_Ll.c: Likewise.
16163         * tests/unictype/test-categ_Lm.c: Likewise.
16164         * tests/unictype/test-categ_Lo.c: Likewise.
16165         * tests/unictype/test-categ_Lu.c: Likewise.
16166         * tests/unictype/test-categ_M.c: Likewise.
16167         * tests/unictype/test-categ_Mc.c: Likewise.
16168         * tests/unictype/test-categ_Mn.c: Likewise.
16169         * tests/unictype/test-categ_N.c: Likewise.
16170         * tests/unictype/test-categ_Nd.c: Likewise.
16171         * tests/unictype/test-categ_Nl.c: Likewise.
16172         * tests/unictype/test-categ_No.c: Likewise.
16173         * tests/unictype/test-categ_P.c: Likewise.
16174         * tests/unictype/test-categ_Pd.c: Likewise.
16175         * tests/unictype/test-categ_Po.c: Likewise.
16176         * tests/unictype/test-categ_S.c: Likewise.
16177         * tests/unictype/test-categ_Sc.c: Likewise.
16178         * tests/unictype/test-categ_So.c: Likewise.
16179         * tests/unictype/test-ctype_alnum.c: Likewise.
16180         * tests/unictype/test-ctype_alpha.c: Likewise.
16181         * tests/unictype/test-ctype_graph.c: Likewise.
16182         * tests/unictype/test-ctype_lower.c: Likewise.
16183         * tests/unictype/test-ctype_print.c: Likewise.
16184         * tests/unictype/test-ctype_punct.c: Likewise.
16185         * tests/unictype/test-ctype_upper.c: Likewise.
16186         * tests/unictype/test-decdigit.h: Likewise.
16187         * tests/unictype/test-digit.h: Likewise.
16188         * tests/unictype/test-numeric.h: Likewise.
16189         * tests/unictype/test-pr_alphabetic.c: Likewise.
16190         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16191         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16192         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16193         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16194         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16195         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16196         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16197         * tests/unictype/test-pr_combining.c: Likewise.
16198         * tests/unictype/test-pr_composite.c: Likewise.
16199         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16200         * tests/unictype/test-pr_dash.c: Likewise.
16201         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16202         * tests/unictype/test-pr_deprecated.c: Likewise.
16203         * tests/unictype/test-pr_diacritic.c: Likewise.
16204         * tests/unictype/test-pr_extender.c: Likewise.
16205         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16206         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16207         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16208         * tests/unictype/test-pr_id_continue.c: Likewise.
16209         * tests/unictype/test-pr_id_start.c: Likewise.
16210         * tests/unictype/test-pr_ideographic.c: Likewise.
16211         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16212         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16213         * tests/unictype/test-pr_lowercase.c: Likewise.
16214         * tests/unictype/test-pr_numeric.c: Likewise.
16215         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16216         * tests/unictype/test-pr_punctuation.c: Likewise.
16217         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16218         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16219         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16220         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16221         * tests/unictype/test-pr_uppercase.c: Likewise.
16222         * tests/unictype/test-pr_xid_continue.c: Likewise.
16223         * tests/unictype/test-pr_xid_start.c: Likewise.
16224         * tests/unictype/test-pr_zero_width.c: Likewise.
16225         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16226         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16227         changed behaviour: line breaking is now disallowed between a letter
16228         or '=' and '('.
16229         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16230         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16231         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16232         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16233         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16234         lib/uniwidth/width.c.
16235         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16236         without comments, but with the original copyright notice.
16237         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16238         changes.
16239         * lib/unictype/categ_Cc.h: Likewise.
16240         * lib/unictype/categ_Co.h: Likewise.
16241         * lib/unictype/categ_Cs.h: Likewise.
16242         * lib/unictype/categ_Lt.h: Likewise.
16243         * lib/unictype/categ_Me.h: Likewise.
16244         * lib/unictype/categ_Pc.h: Likewise.
16245         * lib/unictype/categ_Pe.h: Likewise.
16246         * lib/unictype/categ_Pf.h: Likewise.
16247         * lib/unictype/categ_Pi.h: Likewise.
16248         * lib/unictype/categ_Ps.h: Likewise.
16249         * lib/unictype/categ_Sk.h: Likewise.
16250         * lib/unictype/categ_Sm.h: Likewise.
16251         * lib/unictype/categ_Z.h: Likewise.
16252         * lib/unictype/categ_Zl.h: Likewise.
16253         * lib/unictype/categ_Zp.h: Likewise.
16254         * lib/unictype/categ_Zs.h: Likewise.
16255         * lib/unictype/ctype_blank.h: Likewise.
16256         * lib/unictype/ctype_cntrl.h: Likewise.
16257         * lib/unictype/ctype_digit.h: Likewise.
16258         * lib/unictype/ctype_space.h: Likewise.
16259         * lib/unictype/ctype_xdigit.h: Likewise.
16260         * lib/unictype/mirror.h: Likewise.
16261         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16262         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16263         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16264         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16265         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16266         * lib/unictype/pr_bidi_control.h: Likewise.
16267         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16268         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16269         * lib/unictype/pr_bidi_pdf.h: Likewise.
16270         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16271         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16272         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16273         * lib/unictype/pr_format_control.h: Likewise.
16274         * lib/unictype/pr_hex_digit.h: Likewise.
16275         * lib/unictype/pr_hyphen.h: Likewise.
16276         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16277         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16278         * lib/unictype/pr_iso_control.h: Likewise.
16279         * lib/unictype/pr_join_control.h: Likewise.
16280         * lib/unictype/pr_left_of_pair.h: Likewise.
16281         * lib/unictype/pr_line_separator.h: Likewise.
16282         * lib/unictype/pr_math.h: Likewise.
16283         * lib/unictype/pr_non_break.h: Likewise.
16284         * lib/unictype/pr_not_a_character.h: Likewise.
16285         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16286         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16287         * lib/unictype/pr_other_id_continue.h: Likewise.
16288         * lib/unictype/pr_other_id_start.h: Likewise.
16289         * lib/unictype/pr_other_lowercase.h: Likewise.
16290         * lib/unictype/pr_other_math.h: Likewise.
16291         * lib/unictype/pr_other_uppercase.h: Likewise.
16292         * lib/unictype/pr_paired_punctuation.h: Likewise.
16293         * lib/unictype/pr_paragraph_separator.h: Likewise.
16294         * lib/unictype/pr_pattern_syntax.h: Likewise.
16295         * lib/unictype/pr_pattern_white_space.h: Likewise.
16296         * lib/unictype/pr_private_use.h: Likewise.
16297         * lib/unictype/pr_quotation_mark.h: Likewise.
16298         * lib/unictype/pr_radical.h: Likewise.
16299         * lib/unictype/pr_soft_dotted.h: Likewise.
16300         * lib/unictype/pr_space.h: Likewise.
16301         * lib/unictype/pr_titlecase.h: Likewise.
16302         * lib/unictype/pr_variation_selector.h: Likewise.
16303         * lib/unictype/pr_white_space.h: Likewise.
16304         * lib/unictype/sy_c_ident.h: Likewise.
16305         * lib/unictype/sy_c_whitespace.h: Likewise.
16306         * lib/unictype/sy_java_whitespace.h: Likewise.
16307         * modules/uni*/*: Bump version number of expected libunistring version.
16308         Reported by Simon Josefsson.
16309
16310 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16311
16312         useless-if-before-free: fix typo in --help and make the internal,
16313         automatic version date update process work once again.
16314         --help output contained a NUL character instead of the
16315         backslash-zero that was intended.  Also, the "must lie within
16316         the first 8 lines" line is on line 9, and hence not getting
16317         automatically updated.
16318         * build-aux/useless-if-before-free: Fix the former by adding a
16319         backslash, and the latter by condensing the three lines of what-it-does
16320         to a single line, leaving one line of slack for the future.
16321
16322 2011-01-09  Bruno Haible  <bruno@clisp.org>
16323
16324         uniwidth/width: Fix width of U+1D173..U+1D17A.
16325         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16326         symbolic_width, output_width_property_test): New functions.
16327         (main): Invoke output_nonspacing_property, output_width_property_test.
16328         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16329         U+1D173..U+1D17A.
16330         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16331         1.
16332         * modules/uniwidth/*: Bump version number of expected libunistring
16333         version.
16334         * modules/unilbrk/*: Likewise.
16335
16336 2011-01-08  Bruno Haible  <bruno@clisp.org>
16337
16338         uninorm tests: Preserve copyright of Unicode data file.
16339         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16340         Mention modifications.
16341
16342 2011-01-08  Bruno Haible  <bruno@clisp.org>
16343
16344         gen-uni-tables: Prepare for Unicode 5.2.0.
16345         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16346         (debug_output_lbp, output_lbp): Update.
16347
16348 2011-01-08  Bruno Haible  <bruno@clisp.org>
16349
16350         unilbrk: Clarify gen-uni-tables.c code.
16351         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16352         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16353         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16354
16355 2011-01-07  Bruno Haible  <bruno@clisp.org>
16356
16357         strtod: Restore errno when successfully parsing Infinity or NaN.
16358         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16359         restore the original errno.
16360
16361 2011-01-07  Bruno Haible  <bruno@clisp.org>
16362
16363         remove test: Avoid failure on HP-UX 11.
16364         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16365
16366 2011-01-07  Bruno Haible  <bruno@clisp.org>
16367
16368         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16369         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16370         error code.
16371
16372 2011-01-07  Pádraig Brady <P@draigBrady.com>
16373
16374         ignore-value: fixup comments, and add Eric Blake
16375         as an author since he rewrote the macros.
16376         * lib/ignore-value.h (ignore_value):  State that
16377         we now support aggregates.  Also specify exactly
16378         when the GCC warn_unused_result feature was added.
16379
16380 2011-01-06  Eric Blake  <eblake@redhat.com>
16381
16382         ignore-value: support aggregate types
16383         * lib/ignore-value.h (ignore_value): Provide separate gcc
16384         definition.
16385         * modules/ignore-value-tests: New test module.
16386         * tests/test-ignore-value.c: New test.
16387
16388         maint.mk: improve sc_prohibit_strcmp regex
16389         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16390         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16391         definition of STRNEQ.
16392
16393         signal: work around Haiku issue with SIGBUS
16394         * lib/siglist.h: Add comment.
16395         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16396         strsignal's favoring of SIGSEGV.
16397         * tests/test-signal.c (main): Avoid test failure.
16398         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16399         Reported by Scott McCreary.
16400
16401         maint.mk: add pre-release check to ensure submodule commits are public
16402         * top/maint.mk (public-submodule-commit): New rule.
16403         (submodule-checks): New variable.
16404         (alpha beta stable): Depend on the variable.
16405
16406 2011-01-05  Pádraig Brady <P@draigBrady.com>
16407         and Jim Meyering  <meyering@redhat.com>
16408
16409         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16410         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16411         (ATTRIBUTE_DEPRECATED): Define.
16412         (_ignore_case): New function.
16413         (ignore_value): New macro, to replace the old function.
16414         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16415         * modules/ignore-value (Depends-on): Add stdint.
16416
16417 2011-01-04  Eric Blake  <eblake@redhat.com>
16418
16419         doc: regenerate INSTALL
16420         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16421         @firstparagraphindent support, now that autoconf dropped it.
16422         (INSTALL_PRELUDE): Reinstate old macro.
16423         * doc/install.texi: Resync from autoconf.
16424         * doc/INSTALL: Reflect recent autoconf update.
16425         * doc/INSTALL.ISO: Likewise.
16426         * doc/INSTALL.UTF-8: Likewise.
16427         Reported by Karl Berry.
16428
16429 2011-01-04  Bruce Korb  <address@hidden>
16430
16431         git-version-gen: avoid a sub-shell
16432         * build-aux/git-version-gen: Redirect stderr in `...` via
16433         "exec 2>...", rather than via an added sub-shell.
16434
16435 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16436
16437         git-version-gen: use (...) rather than sh -c '...'
16438         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16439         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16440
16441 2011-01-03  Jim Meyering  <meyering@redhat.com>
16442
16443         git-version-gen: convert leading TABs to spaces
16444         * build-aux/git-version-gen: Expand leading TABs.
16445
16446         git-version-gen: handle failed "git rev-list"
16447         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16448         from git and proceeding as if it had succeeded but printed no SHA1
16449         checksums, suppress the diagnostic and handle the failure.
16450         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16451
16452         git-version-gen: include command name in one more diagnostic
16453         * build-aux/git-version-gen: When the required .tarball-version file
16454         was missing or unreadable, you might see the diagnostic from "cat",
16455         but no trace of the name of the invoking script.  Now, you still see
16456         the diagnostic from cat, but also get one from "git-version-gen: ".
16457         Inspired by a patch from Bruce Korb.
16458
16459         update-copyright: adjust test to match changed code
16460         * tests/test-update-copyright.sh: Change test's expected output
16461         to match new actual output.
16462
16463 2011-01-02  Bruno Haible  <bruno@clisp.org>
16464
16465         getlogin_r: Avoid test failure on HP-UX 11.
16466         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16467         ERANGE when the second argument is zero.
16468         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16469         portability problem.
16470
16471 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16472
16473         * build-aux/update-copyright: doc Simon's changes
16474
16475 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16476
16477         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16478         environment variable.
16479
16480 2011-01-02  Bruno Haible  <bruno@clisp.org>
16481
16482         unigbrk: Avoid gcc warnings.
16483         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16484         unused variable.
16485         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16486         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16487         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16488         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16489         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16490         Change type of first argument to 'const char *'.
16491         (main): Remove unused variable.
16492         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16493         type of first argument to 'const char *'.
16494         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16495         Likewise.
16496         (main): Change type of variable 's'.
16497         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16498         to 'int'.
16499
16500 2011-01-02  Bruno Haible  <bruno@clisp.org>
16501
16502         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16503         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16504         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16505         bug.
16506         * lib/pwrite.c: Undo 2010-12-31 patch.
16507         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16508
16509 2011-01-02  Bruno Haible  <bruno@clisp.org>
16510
16511         pread: Fix test whether it works.
16512         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16513
16514 2011-01-02  Bruno Haible  <bruno@clisp.org>
16515
16516         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16517         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16518         ends in "6". Don't require a specific month name. Try also the locale
16519         names found on HP-UX 11 and Solaris 7.
16520
16521 2011-01-02  Bruno Haible  <bruno@clisp.org>
16522
16523         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16524         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16525         C linkage.
16526         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16527
16528 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16529
16530         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16531         for consistency, since the "cluster" term is not used elsewhere.
16532         * lib/unigbrk.in.h: Update name.
16533         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16534         * lib/unigbrk/u16-grapheme-next.c: Update name.
16535         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16536         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16537         * lib/unigbrk/u32-grapheme-next.c: Update name.
16538         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16539         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16540         * lib/unigbrk/u8-grapheme-next.c: Update name.
16541         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16542         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16543         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16544         Suggested by Bruno Haible.
16545
16546 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16547
16548         Remove module 'u8-grapheme-len' as too redundant with
16549         'u8-grapheme-next'.
16550         * modules/unigbrk/u8-grapheme-len: Delete file.
16551         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16552         * lib/unigbrk.in.h: Remove prototype for deleted function.
16553         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16554         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16555
16556         Remove module 'u16-grapheme-len' as too redundant with
16557         'u16-grapheme-next'.
16558         * modules/unigbrk/u16-grapheme-len: Delete file.
16559         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16560         * lib/unigbrk.in.h: Remove prototype for deleted function.
16561         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16562         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16563
16564         Remove module 'u32-grapheme-len' as too redundant with
16565         'u32-grapheme-next'.
16566         * modules/unigbrk/u32-grapheme-len: Delete file.
16567         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16568         * lib/unigbrk.in.h: Remove prototype for deleted function.
16569         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16570         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16571
16572         Suggested by Bruno Haible.
16573
16574 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16575
16576         * unigbrk.in.h: Fix typo: "ben" => "been".
16577         Reported by Bruno Haible.
16578
16579 2011-01-01  Jim Meyering  <meyering@redhat.com>
16580
16581         maint: update almost all copyright ranges to include 2011
16582         Run the new "make update-copyright" rule.
16583
16584 2011-01-01  Jim Meyering  <meyering@redhat.com>
16585
16586         maint: update-copyright: exempt doc/INSTALL*
16587         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16588         since they are generated.  Suggested by Bruno Haible.
16589
16590 2011-01-01  Jim Meyering  <meyering@redhat.com>
16591
16592         maint: refine the update-copyright rule
16593         * Makefile (update-copyright): Also exclude any file that includes
16594         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16595         code that merely generates the comment.
16596
16597 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16598
16599         New module 'u8-grapheme-len'.
16600         * modules/unigbrk/u8-grapheme-len: New file.
16601         * modules/unigbrk/u8-grapheme-len-tests: New file.
16602         * lib/unigbrk.in.h: Add prototype for new function.
16603         * lib/unigbrk/u8-grapheme-len.c: New file.
16604         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16605
16606         New module 'u16-grapheme-len'.
16607         * modules/unigbrk/u16-grapheme-len: New file.
16608         * modules/unigbrk/u16-grapheme-len-tests: New file.
16609         * lib/unigbrk.in.h: Add prototype for new function.
16610         * lib/unigbrk/u16-grapheme-len.c: New file.
16611         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16612
16613         New module 'u32-grapheme-len'.
16614         * modules/unigbrk/u32-grapheme-len: New file.
16615         * modules/unigbrk/u32-grapheme-len-tests: New file.
16616         * lib/unigbrk.in.h: Add prototype for new function.
16617         * lib/unigbrk/u32-grapheme-len.c: New file.
16618         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16619
16620         New module 'u8-grapheme-next'.
16621         * modules/unigbrk/u8-grapheme-next: New file.
16622         * modules/unigbrk/u8-grapheme-next-tests: New file.
16623         * lib/unigbrk.in.h: Add prototype for new function.
16624         * lib/unigbrk/u8-grapheme-next.c: New file.
16625         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16626
16627         New module 'u16-grapheme-next'.
16628         * modules/unigbrk/u16-grapheme-next: New file.
16629         * modules/unigbrk/u16-grapheme-next-tests: New file.
16630         * lib/unigbrk.in.h: Add prototype for new function.
16631         * lib/unigbrk/u16-grapheme-next.c: New file.
16632         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16633
16634         New module 'u32-grapheme-next'.
16635         * modules/unigbrk/u32-grapheme-next: New file.
16636         * modules/unigbrk/u32-grapheme-next-tests: New file.
16637         * lib/unigbrk.in.h: Add prototype for new function.
16638         * lib/unigbrk/u32-grapheme-next.c: New file.
16639         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16640
16641         New module 'u8-grapheme-prev'.
16642         * modules/unigbrk/u8-grapheme-prev: New file.
16643         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16644         * lib/unigbrk.in.h: Add prototype for new function.
16645         * lib/unigbrk/u8-grapheme-prev.c: New file.
16646         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16647
16648         New module 'u16-grapheme-prev'.
16649         * modules/unigbrk/u16-grapheme-prev: New file.
16650         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16651         * lib/unigbrk.in.h: Add prototype for new function.
16652         * lib/unigbrk/u16-grapheme-prev.c: New file.
16653         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16654
16655         New module 'u32-grapheme-prev'.
16656         * modules/unigbrk/u32-grapheme-prev: New file.
16657         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16658         * lib/unigbrk.in.h: Add prototype for new function.
16659         * lib/unigbrk/u32-grapheme-prev.c: New file.
16660         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16661
16662         New module 'u8-grapheme-breaks'.
16663         * modules/unigbrk/u8-grapheme-breaks: New file.
16664         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16665         * lib/unigbrk.in.h: Add prototype for new function.
16666         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16667         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16668
16669         New module 'u16-grapheme-breaks'.
16670         * modules/unigbrk/u16-grapheme-breaks: New file.
16671         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16672         * lib/unigbrk.in.h: Add prototype for new function.
16673         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16674         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16675
16676         New module 'u32-grapheme-breaks'.
16677         * modules/unigbrk/u32-grapheme-breaks: New file.
16678         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16679         * lib/unigbrk.in.h: Add prototype for new function.
16680         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16681         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16682
16683         New module 'ulc-grapheme-breaks'.
16684         * modules/unigbrk/ulc-grapheme-breaks: New file.
16685         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16686         * m4/locale-ar.m4: New file.
16687         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16688         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16689         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16690
16691 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16692
16693         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16694         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16695         modified how this file was generated before I initially submitted
16696         the module, but failed to regenerate it.  This meant that several
16697         of the level2 entries were wrong.
16698         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16699         Remove the division-by-2 that is folded into the table now that
16700         gbrkprop.h has been regenerated properly.  Now -1 entries are
16701         handled correctly.
16702
16703         New module 'unigbrk/uc-gbrk-prop-tests'.
16704         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16705         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16706         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16707         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16708
16709 2011-01-01  Bruno Haible  <bruno@clisp.org>
16710
16711         Avoid use of hexadecimal escapes.
16712         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16713         instead of hexadecimal escapes.
16714
16715 2011-01-01  Jim Meyering  <meyering@redhat.com>
16716
16717         maint: new rule to update copyright year ranges
16718         * Makefile (update-copyright): New rule.
16719
16720         maint: indent with TABs in Makefile
16721         * Makefile: Expand leading sequences of spaces to TABs
16722
16723         version-etc: update the copyright year it reports
16724         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16725
16726 2010-12-31  Bruno Haible  <bruno@clisp.org>
16727
16728         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16729         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16730         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16731         zero.
16732
16733 2010-12-31  Bruno Haible  <bruno@clisp.org>
16734
16735         pwrite: Work around HP-UX 11.11 bug.
16736         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16737         works and set REPLACE_PWRITE if not.
16738         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16739         function.
16740         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16741
16742 2010-12-31  Bruno Haible  <bruno@clisp.org>
16743
16744         pread: Work around HP-UX 11 bugs.
16745         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16746         and set REPLACE_PREAD if not.
16747         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16748
16749 2010-12-31  Eric Blake  <eblake@redhat.com>
16750
16751         nl_langinfo: fix YESEXPR on Irix 6.5
16752         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16753         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16754         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16755         it.
16756
16757 2010-12-31  Bruno Haible  <bruno@clisp.org>
16758
16759         iconv: Document HP-UX 11 bug.
16760         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16761
16762 2010-12-31  Bruno Haible  <bruno@clisp.org>
16763
16764         ldexpl: Fix link error on HP-UX 11.
16765         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16766         LDEXPL_LIBM, using $ISNANL_LIBM.
16767
16768 2010-12-31  Eric Blake  <eblake@redhat.com>
16769
16770         ftello: avoid compilation failure with SunStudio c89
16771         * lib/ftello.c (ftello): Use lseek, not llseek.
16772
16773         tests: avoid failing coreutils tests on cygwin
16774         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16775         (create_exe_shims_): Return 0 when skipping.
16776
16777 2010-12-31  Bruno Haible  <bruno@clisp.org>
16778
16779         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16780         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16781
16782 2010-12-31  Bruno Haible  <bruno@clisp.org>
16783
16784         waitpid: Fix link error in C++ mode.
16785         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16786
16787 2010-12-31  Bruno Haible  <bruno@clisp.org>
16788
16789         isnan: Use GCC built-ins when possible.
16790         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16791         __builtin_isnan.
16792         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16793         (isnan): Define using GCC built-ins for GCC >= 4.0.
16794
16795 2010-12-31  Bruno Haible  <bruno@clisp.org>
16796
16797         isnand: Fix mistake.
16798         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16799         __builtin_isnand.
16800
16801 2010-12-31  Bruno Haible  <bruno@clisp.org>
16802
16803         open: Avoid C++ error on HP-UX 11.
16804         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16805
16806 2010-12-31  Bruno Haible  <bruno@clisp.org>
16807
16808         time_r: Add missing declarations on HP-UX 11.
16809         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16810         instead of HAVE_LOCALTIME_R.
16811         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16812         HAVE_LOCALTIME_R always.
16813         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16814         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16815         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16816         HAVE_LOCALTIME_R.
16817         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16818         * doc/posix-functions/localtime_r.texi: Likewise.
16819
16820 2010-12-29  Eric Blake  <eblake@redhat.com>
16821
16822         mountlist: tweak previous commit
16823         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16824         Reported by Paul Eggert.
16825
16826         mountlist: fix local drive detection on cygwin
16827         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16828         that works for cygwin.
16829
16830 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16831
16832         ftoastr, snprintf: ftoastr + snprintf module
16833         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16834         since the snprintf module now should be good enough here.
16835         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16836         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16837         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16838         GNULIB_SNPRINTF only for the test directory, and the latter
16839         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16840         seems to suffice by itself.
16841
16842 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16843
16844         alloca: one step towards thread-safety
16845         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16846         need for a static variable.  All callers changed.  This does not
16847         make the alloca replacement thread-safe, but it's one step.
16848
16849         tests: minor indenting change
16850         * tests/init.sh: Sync from coreutils housekeeping patch
16851         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16852         to keep lines within 80 columns.
16853
16854 2010-12-28  Jim Meyering  <meyering@redhat.com>
16855
16856         regex: don't infloop on persistent failing calloc
16857         * lib/regexec.c (build_trtable): Return failure indication upon
16858         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16859         In glibc, this was fixed for version 2.13:
16860         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16861
16862 2010-12-28  Bruno Haible  <bruno@clisp.org>
16863             Paul Eggert <eggert@cs.ucla.edu>
16864
16865         linkat: Make implementation robust against system behaviour variations.
16866         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16867         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16868         way, and to -2 if it needs a generic runtime test.
16869         * lib/linkat.c (solaris_optimized_link_immediate,
16870         solaris_optimized_link_follow): New functions.
16871         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16872         (check_same_link): Use it.
16873
16874 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16875
16876         New module 'unigbrk/base'.
16877         * modules/unigbrk/base: New file.
16878         * lib/unigbrk.in.h: New file.
16879
16880         New module 'unigbrk/uc-gbrk-prop'.
16881         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16882         * modules/unigbrk/uc-gbrk-prop: New file.
16883         * lib/unigbrk/gbrkprop.h: New file.
16884         * lib/unigbrk/uc-gbrk-prop.c: New file.
16885
16886         New module 'unigbrk/uc-is-grapheme-break'.
16887         * modules/unigbrk/uc-is-grapheme-break: New file.
16888         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16889         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16890         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16891         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16892         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16893
16894         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16895
16896 2010-12-27  Bruno Haible  <bruno@clisp.org>
16897
16898         linkat test: Avoid failure on Solaris 11 2010-11.
16899         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16900
16901 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16902
16903         utimens: work around glibc rounding bug on more platforms
16904         * lib/utimens.c (fdutimens): Work around rounding bug even if
16905         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16906         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16907
16908 2010-12-27  Bruno Haible  <bruno@clisp.org>
16909
16910         select tests: Improve comments.
16911         * tests/test-select.c (do_select): Add comments.
16912
16913 2010-12-27  Bruno Haible  <bruno@clisp.org>
16914
16915         select tests: Safer way of handling timeout.
16916         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16917         at every invocation.
16918
16919 2010-12-27  Bruno Haible  <bruno@clisp.org>
16920
16921         select tests: Use 'bool' where appropriate.
16922         * tests/test-select.c (connect_to_socket): Change argument type to
16923         'bool'.
16924
16925 2010-12-27  Bruno Haible  <bruno@clisp.org>
16926
16927         select tests: Use existing modules.
16928         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16929         (configure.ac): Don't test for unistd.h.
16930         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16931         declared in <unistd.h>.
16932
16933 2010-12-27  Bruno Haible  <bruno@clisp.org>
16934
16935         mbrtowc: Work around a Solaris 7 bug.
16936         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16937         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16938         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16939         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16940         MBRTOWC_NULL_ARG1_BUG.
16941         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16942         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16943         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16944         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16945
16946 2010-12-27  Jim Meyering  <meyering@redhat.com>
16947
16948         read-file.c: tweak syntax
16949         * lib/read-file.c (fread_file): Remove space after "*" in function
16950         definitions.
16951
16952 2010-12-27  Bruno Haible  <bruno@clisp.org>
16953
16954         times test: Avoid gcc warnings on OSF/1.
16955         * tests/test-times.c (main): Cast printf arguments from clock_t to
16956         'long int'.
16957
16958 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16959
16960         utimens: work around glibc rounding bug on older Linux kernels
16961         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16962         on Linux with a glibc whose utimes might not work, then work
16963         around a longstanding glibc bug involving rounding rather than
16964         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16965         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16966
16967 2010-12-26  Bruno Haible  <bruno@clisp.org>
16968
16969         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16970         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16971         _GL_CXXALIAS_SYS.
16972         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16973
16974 2010-12-26  Bruno Haible  <bruno@clisp.org>
16975
16976         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16977         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16978         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16979         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16980         looking for the declaration.
16981         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16982         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16983         problem.
16984         * doc/posix-functions/inet_pton.texi: Likewise.
16985
16986 2010-12-26  Bruno Haible  <bruno@clisp.org>
16987
16988         arpa_inet: Use the common idioms with C++ support.
16989         * lib/arpa_inet.in.h: Include c++defs.h.
16990         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16991         support.
16992         * modules/arpa_inet (Depends-on): Add c++defs.
16993         (Makefile.am): Substitute the contents of c++defs.h.
16994         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16995         * modules/arpa_inet-c++-tests: New file.
16996         * tests/test-arpa_inet-c++.cc: New file.
16997
16998 2010-12-25  Bruno Haible  <bruno@clisp.org>
16999
17000         Fix more C++ link errors on Solaris 8.
17001         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17002         $(LIB_EACCESS).
17003         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17004         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17005         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17006         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17007         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17008
17009 2010-12-25  Bruno Haible  <bruno@clisp.org>
17010
17011         printf-posix: Fix link error when a non-GCC compiler is used.
17012         * lib/stdio.in.h (printf): When not using GCC, override printf
17013         correctly.
17014         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17015
17016 2010-12-25  Bruno Haible  <bruno@clisp.org>
17017
17018         strerror_r-posix: Update doc.
17019         * doc/posix-functions/strerror_r.texi: Update doc about the return
17020         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17021
17022 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17023
17024         utimens: simplify the logic of the previous change
17025         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17026         This should not affect whether the test succeeds or fails.
17027
17028         utimens: configure better on hosts with NFS clock skew
17029         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17030         uses the clock of the local host.  It might use the clock of the
17031         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17032         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17033
17034 2010-12-25  Bruno Haible  <bruno@clisp.org>
17035
17036         ptsname test: Avoid failure on Solaris.
17037         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17038         open a pseudo-terminal; don't use BSD-style ptys.
17039         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17040
17041 2010-12-25  Bruno Haible  <bruno@clisp.org>
17042
17043         ptsname: Avoid ERANGE failure on some systems.
17044         * lib/ptsname.c (buffer): Increase size.
17045
17046 2010-12-25  Bruno Haible  <bruno@clisp.org>
17047
17048         rename, renameat: Avoid test failures at NFS mounted locations.
17049         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17050         so that subsequent mkdir calls succeed.
17051
17052 2010-12-25  Bruno Haible  <bruno@clisp.org>
17053
17054         iswblank: Fix C++ link error on Solaris 8.
17055         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17056         _GL_FUNCDECL_SYS.
17057
17058 2010-12-25  Bruno Haible  <bruno@clisp.org>
17059
17060         unistd: Fix C++ link error on Solaris 8.
17061         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17062
17063 2010-12-25  Bruno Haible  <bruno@clisp.org>
17064
17065         readlink doc: Mention an old glibc bug.
17066         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17067
17068 2010-12-25  Bruno Haible  <bruno@clisp.org>
17069
17070         fcntl-h: Fix for use of C++ on glibc systems.
17071         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17072         also on glibc systems in C++ mode.
17073         Reported by Gary V. Vaughan <gary@gnu.org>.
17074
17075 2010-12-25  Bruno Haible  <bruno@clisp.org>
17076
17077         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17078         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17079
17080 2010-12-25  Bruno Haible  <bruno@clisp.org>
17081
17082         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17083         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17084         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17085         test whether truncl works according to ISO C 99 with IEC 60559.
17086         * m4/truncl-ieee.m4: New file.
17087         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17088         m4/signbit.m4.
17089         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17090
17091 2010-12-25  Bruno Haible  <bruno@clisp.org>
17092
17093         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17094         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17095         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17096         test whether ceill works according to ISO C 99 with IEC 60559.
17097         * m4/ceill-ieee.m4: New file.
17098         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17099         m4/signbit.m4.
17100         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17101
17102 2010-12-25  Bruno Haible  <bruno@clisp.org>
17103
17104         Ensure all prerequisites of <wchar.h> are included.
17105         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17106         before <wchar.h>.
17107         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17108         gl_MBRLEN_NUL_RETVAL): Likewise.
17109         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17110         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17111         AC_FUNC_MBRTOWC): Likewise.
17112         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17113         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17114         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17115         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17116         Likewise.
17117         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17118         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17119         (gl_WCHAR_H): Improve comments.
17120         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17121
17122 2010-12-25  Bruno Haible  <bruno@clisp.org>
17123
17124         strtok_r: Fix C syntax error in autoconf macro.
17125         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17126         characters in test program.
17127
17128 2010-12-24  Bruno Haible  <bruno@clisp.org>
17129
17130         ceil, trunc, round: Fix gcc warnings.
17131         * lib/ceil.c (MIN): Undefine before redefining.
17132         * lib/trunc.c (MIN): Likewise.
17133         * lib/round.c (MIN): Likewise.
17134         Include <math.h> first.
17135
17136 2010-12-24  Bruno Haible  <bruno@clisp.org>
17137
17138         select tests: Avoid failures on OSF/1 5.1.
17139         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17140         failure of closing the last socket; it may fail with ECONNRESET.
17141
17142 2010-12-24  Eric Blake  <eblake@redhat.com>
17143
17144         stdint: avoid HP-UX 10.20 preprocessor bug
17145         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17146         than #if.
17147         * tests/test-floor2.c (main): Likewise.
17148         Reported by Peter O'Gorman.
17149
17150         pipe: make obsoletion transition easier
17151         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17152         * modules/pipe (Files): Include revived file.
17153         (Include): Drop reference, to mirror getdate's behavior.
17154
17155 2010-12-24  Bruno Haible  <bruno@clisp.org>
17156
17157         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17158         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17159         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17160         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17161
17162 2010-12-24  Bruno Haible  <bruno@clisp.org>
17163
17164         gethostname: Ensure declaration on NonStop Kernel.
17165         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17166         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17167
17168 2010-12-24  Bruno Haible  <bruno@clisp.org>
17169
17170         sys_select: Ensure all necessary types on NonStop Kernel.
17171         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17172         include <sys/time.h>.
17173         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17174         NonStop Kernel.
17175         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17176
17177 2010-12-24  Bruno Haible  <bruno@clisp.org>
17178
17179         sys_select: Remove unneeded include.
17180         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17181         have <sys/select.h>.
17182
17183 2010-12-24  Bruno Haible  <bruno@clisp.org>
17184
17185         gethostname: Provide a fallback for HOST_NAME_MAX.
17186         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17187         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17188         instead.
17189         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17190
17191 2010-12-24  Bruno Haible  <bruno@clisp.org>
17192
17193         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17194         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17195         (SA_RESTART): Likewise.
17196         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17197
17198 2010-12-24  Bruno Haible  <bruno@clisp.org>
17199
17200         signal: Define NSIG.
17201         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17202         * tests/test-signal.c (nsig): New variable.
17203         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17204
17205 2010-12-24  Bruno Haible  <bruno@clisp.org>
17206
17207         rename, renameat: Avoid test failures on OSF/1 5.1.
17208         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17209         alternative error codes.
17210         * tests/test-renameat.c (main): Likewise.
17211
17212 2010-12-24  Bruno Haible  <bruno@clisp.org>
17213
17214         *printf: Detect large precisions bug on Solaris 10/SPARC.
17215         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17216         by Paul Eggert.
17217         * tests/test-snprintf-posix.h (test_function): Add this test code here
17218         too.
17219         * tests/test-sprintf-posix.h (test_function): Likewise.
17220         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17221         * tests/test-vasprintf-posix.c (test_function): Likewise.
17222         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17223         around by gnulib.
17224         * doc/posix-functions/printf.texi: Likewise.
17225         * doc/posix-functions/snprintf.texi: Likewise.
17226         * doc/posix-functions/sprintf.texi: Likewise.
17227         * doc/posix-functions/vfprintf.texi: Likewise.
17228         * doc/posix-functions/vprintf.texi: Likewise.
17229         * doc/posix-functions/vsnprintf.texi: Likewise.
17230         * doc/posix-functions/vsprintf.texi: Likewise.
17231         * doc/posix-functions/dprintf.texi: Undo last commit.
17232         * doc/posix-functions/vdprintf.texi: Likewise.
17233
17234 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17235
17236         tests: port test-fdutimensat.c to Solaris 8
17237         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17238         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17239         On Solaris 8, it fails with errno == ENOSYS, because there is no
17240         futimens (so it can't use the fd), and there is no lutimens (so it
17241         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17242
17243         vsnprintf: make more consistent with snprintf; doc fixes
17244
17245         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17246         the byte count return problem was promoted from the snprintf-posix
17247         to the snprintf module.
17248         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17249         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17250         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17251         * tests/test-snprintf.c (main): Check the byte count returned.
17252         * tests/test-vsnprintf.c (main): Likewise.
17253
17254 2010-12-23  Eric Blake  <eblake@redhat.com>
17255
17256         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17257         * modules/sigpipe (License): Relax license.
17258
17259 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17260
17261         doc: document Solaris printf bug with large float precisions
17262         * doc/posix-functions/dprintf.texi (dprintf):
17263         * doc/posix-functions/fprintf.texi (fprintf):
17264         * doc/posix-functions/printf.texi (printf):
17265         * doc/posix-functions/snprintf.texi (snprintf):
17266         * doc/posix-functions/sprintf.texi (sprintf):
17267         * doc/posix-functions/vdprintf.texi (vdprintf):
17268         * doc/posix-functions/vfprintf.texi (vfprintf):
17269         * doc/posix-functions/vprintf.texi (vprintf):
17270         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17271         * doc/posix-functions/vsprintf.texi (vsprintf):
17272         Mention that these functions mishandle large floating point
17273         precisions on Solaris 10.  The same bug is also present in Solaris
17274         8, and I assume earlier.  This causes "cd gnulib-tests; make
17275         check" to fail on Solaris 8 (and I assume, later) when building
17276         the latest coreutils, in test-vasprintf-posix's call to
17277         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17278         the wide flavors (e.g., wprintf) so this patch just updates the
17279         documentation for the narrow ones.
17280
17281         test-posixtm.c: add two tests
17282         * tests/test-posixtm.c: Add two tests, to highlight the
17283         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17284         around this bug; this is merely to document it.
17285
17286 2010-12-22  Bruno Haible  <bruno@clisp.org>
17287
17288         getlogin_r: Work around portability problem on OSF/1.
17289         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17290         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17291         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17292         test for a truncated result.
17293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17294         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17295         * modules/getlogin_r (Depends-on): Add memchr.
17296         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17297
17298 2010-12-22  Bruno Haible  <bruno@clisp.org>
17299
17300         ptsname: Avoid test failure on OSF/1 5.1.
17301         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17302         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17303         (same_slave): New function.
17304         (main): Use it to compare ptsname's result with the expected file name.
17305
17306 2010-12-22  Bruno Haible  <bruno@clisp.org>
17307
17308         Port extended stdio modules to HP NonStop Kernel.
17309         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17310         macros.
17311         * lib/fbufmode.c: Update comments.
17312         * lib/fflush.c: Likewise.
17313         * lib/fpurge.c: Likewise.
17314         * lib/freadable.c: Likewise.
17315         * lib/freadahead.c: Likewise.
17316         * lib/freading.c: Likewise.
17317         * lib/freadptr.c: Likewise.
17318         * lib/freadseek.c: Likewise.
17319         * lib/fseeko.c: Likewise.
17320         * lib/fseterr.c: Likewise.
17321         * lib/fwritable.c: Likewise.
17322         * lib/fwriting.c: Likewise.
17323         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17324
17325 2010-12-22  Bruno Haible  <bruno@clisp.org>
17326
17327         ttyname_r: Work around bug on OSF/1 5.1.
17328         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17329         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17330         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17331         present.
17332         * lib/ttyname_r.c (ttyname_r): Update comments.
17333
17334 2010-12-22  Bruno Haible  <bruno@clisp.org>
17335
17336         round: Implement result sign according to IEEE 754.
17337         * lib/round.c (MIN, MINUS_ZERO): New macros.
17338         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17339         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17340         * tests/test-round-ieee.c (main): Likewise.
17341         * tests/test-roundl-ieee.c (main): Likewise.
17342
17343         trunc: Implement result sign according to IEEE 754.
17344         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17345         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17346         * tests/test-trunc2.c: Include minus-zero.h.
17347         (MINUS_ZERO): New macro.
17348         (trunc_reference): Keep in sync with lib/trunc.c.
17349         * tests/test-truncf2.c: Include minus-zero.h.
17350         (MINUS_ZERO): New macro.
17351         (truncf_reference): Keep in sync with lib/trunc.c.
17352         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17353         * tests/test-trunc-ieee.c (main): Likewise.
17354         * tests/test-truncl-ieee.c (main): Likewise.
17355
17356         ceil: Implement result sign according to IEEE 754.
17357         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17358         (FUNC): Return -0.0 for -1 < x < 0.
17359         * tests/test-ceil2.c: Include minus-zero.h.
17360         (MINUS_ZERO): New macro.
17361         (ceil_reference): Keep in sync with lib/ceil.c.
17362         * tests/test-ceilf2.c: Include minus-zero.h.
17363         (MINUS_ZERO): New macro.
17364         (ceilf_reference): Keep in sync with lib/ceil.c.
17365         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17366         * tests/test-ceil-ieee.c (main): Likewise.
17367         * tests/test-ceill-ieee.c (main): Likewise.
17368
17369         floor: Implement result sign according to IEEE 754.
17370         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17371         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17372         * tests/test-floorf2.c (floorf_reference): Likewise.
17373         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17374         * tests/test-floor-ieee.c (main): Likewise.
17375         * tests/test-floorl-ieee.c (main): Likewise.
17376
17377 2010-12-22  Bruno Haible  <bruno@clisp.org>
17378
17379         getaddrinfo: Update doc.
17380         * doc/posix-functions/gai_strerror.texi: Return type is also different
17381         on AIX and HP-UX.
17382
17383 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17384
17385         getaddrinfo, inet_ntop: Update doc for Solaris.
17386         * doc/posix-functions/gai_strerror.texi: Return type is also an
17387         issue on Solaris 9 and earlier.
17388         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17389         on Solaris 10 and earlier.
17390
17391 2010-12-21  Bruno Haible  <bruno@clisp.org>
17392
17393         New module 'roundl-ieee'.
17394         * modules/roundl-ieee: New file.
17395         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17396         test whether roundl works according to ISO C 99 with IEC 60559.
17397         * m4/roundl-ieee.m4: New file.
17398         * modules/roundl-ieee-tests: New file.
17399         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17400         * tests/test-roundl.c (main): Remove signbit tests.
17401         * modules/roundl-tests (Depends-on): Remove signbit.
17402         * doc/posix-functions/roundl.texi: Mention the new module.
17403
17404 2010-12-21  Bruno Haible  <bruno@clisp.org>
17405
17406         New module 'truncl-ieee'.
17407         * modules/truncl-ieee: New file.
17408         * modules/truncl-ieee-tests: New file.
17409         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17410         * tests/test-truncl.c (main): Remove signbit tests.
17411         * modules/truncl-tests (Depends-on): Remove signbit.
17412         * doc/posix-functions/truncl.texi: Mention the new module.
17413
17414 2010-12-21  Bruno Haible  <bruno@clisp.org>
17415
17416         New module 'ceill-ieee'.
17417         * modules/ceill-ieee: New file.
17418         * modules/ceill-ieee-tests: New file.
17419         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17420         * tests/test-ceill.c (main): Remove signbit tests.
17421         * modules/ceill-tests (Depends-on): Remove signbit.
17422         * doc/posix-functions/ceill.texi: Mention the new module.
17423
17424 2010-12-21  Bruno Haible  <bruno@clisp.org>
17425
17426         New module 'floorl-ieee'.
17427         * modules/floorl-ieee: New file.
17428         * modules/floorl-ieee-tests: New file.
17429         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17430         * tests/test-floorl.c (main): Remove signbit tests.
17431         * modules/floorl-tests (Depends-on): Remove signbit.
17432         * doc/posix-functions/floorl.texi: Mention the new module.
17433
17434 2010-12-21  Bruno Haible  <bruno@clisp.org>
17435
17436         New module 'round-ieee'.
17437         * modules/round-ieee: New file.
17438         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17439         whether round works according to ISO C 99 with IEC 60559.
17440         * m4/round-ieee.m4: New file.
17441         * modules/round-ieee-tests: New file.
17442         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17443         * tests/test-round1.c (main): Remove signbit tests.
17444         * modules/round-tests (Depends-on): Remove 'signbit'.
17445         * doc/posix-functions/round.texi: Mention the new module.
17446
17447 2010-12-21  Bruno Haible  <bruno@clisp.org>
17448
17449         New module 'trunc-ieee'.
17450         * modules/trunc-ieee: New file.
17451         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17452         whether trunc works according to ISO C 99 with IEC 60559.
17453         * m4/trunc-ieee.m4: New file.
17454         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17456         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17457         * modules/trunc-ieee-tests: New file.
17458         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17459         * tests/test-trunc1.c (main): Remove signbit tests.
17460         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17461         * doc/posix-functions/trunc.texi: Mention the new module.
17462
17463 2010-12-21  Bruno Haible  <bruno@clisp.org>
17464
17465         New module 'ceil-ieee'.
17466         * modules/ceil-ieee: New file.
17467         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17468         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17469         ISO C 99 with IEC 60559.
17470         * m4/ceil-ieee.m4: New file.
17471         * modules/ceil (Files): Add lib/ceil.c.
17472         (Depends-on): Add 'float'.
17473         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17474         * lib/math.in.h (ceil): New declaration.
17475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17476         REPLACE_CEIL.
17477         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17478         * modules/ceil-ieee-tests: New file.
17479         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17480         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17481         * doc/posix-functions/ceil.texi: Mention the new module.
17482
17483 2010-12-21  Bruno Haible  <bruno@clisp.org>
17484
17485         New module 'floor-ieee'.
17486         * modules/floor-ieee: New file.
17487         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17488         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17489         ISO C 99 with IEC 60559.
17490         * m4/floor-ieee.m4: New file.
17491         * modules/floor (Files): Add lib/floor.c.
17492         (Depends-on): Add 'float'.
17493         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17494         * lib/math.in.h (floor): New declaration.
17495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17496         REPLACE_FLOOR.
17497         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17498         * modules/floor-ieee-tests: New file.
17499         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17500         * tests/test-math-c++.cc: Check the signature of 'floor'.
17501         * doc/posix-functions/floor.texi: Mention the new module.
17502
17503 2010-12-21  Bruno Haible  <bruno@clisp.org>
17504
17505         New module 'roundf-ieee'.
17506         * modules/roundf-ieee: New file.
17507         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17508         test whether roundf works according to ISO C 99 with IEC 60559.
17509         * m4/roundf-ieee.m4: New file.
17510         * modules/roundf-ieee-tests: New file.
17511         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17512         * tests/test-roundf1.c (main): Remove signbit tests.
17513         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17514         * doc/posix-functions/roundf.texi: Mention the new module.
17515
17516 2010-12-21  Bruno Haible  <bruno@clisp.org>
17517
17518         New module 'truncf-ieee'.
17519         * modules/truncf-ieee: New file.
17520         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17521         test whether truncf works according to ISO C 99 with IEC 60559.
17522         * m4/truncf-ieee.m4: New file.
17523         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17525         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17526         * modules/truncf-ieee-tests: New file.
17527         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17528         * tests/test-truncf1.c (main): Remove signbit tests.
17529         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17530         * doc/posix-functions/truncf.texi: Mention the new module.
17531
17532 2010-12-21  Bruno Haible  <bruno@clisp.org>
17533
17534         New module 'ceilf-ieee'.
17535         * modules/ceilf-ieee: New file.
17536         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17537         test whether ceilf works according to ISO C 99 with IEC 60559.
17538         * m4/ceilf-ieee.m4: New file.
17539         * modules/ceilf-ieee-tests: New file.
17540         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17541         * tests/test-ceilf1.c (main): Remove signbit tests.
17542         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17543         * doc/posix-functions/ceilf.texi: Mention the new module.
17544
17545 2010-12-21  Bruno Haible  <bruno@clisp.org>
17546
17547         New module 'floorf-ieee'.
17548         * modules/floorf-ieee: New file.
17549         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17550         test whether floorf works according to ISO C 99 with IEC 60559.
17551         * m4/floorf-ieee.m4: New file.
17552         * modules/floorf-ieee-tests: New file.
17553         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17554         * tests/test-floorf1.c (main): Remove signbit tests.
17555         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17556         * doc/posix-functions/floorf.texi: Mention the new module.
17557
17558 2010-12-21  Bruno Haible  <bruno@clisp.org>
17559
17560         Support for minus zero in autoconf macros.
17561         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17562         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17563         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17564         * tests/minus-zero.h: Update comments.
17565
17566 2010-12-21  Bruno Haible  <bruno@clisp.org>
17567
17568         Tests for module 'ceil'.
17569         * modules/ceil-tests: New file.
17570         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17571         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17572
17573 2010-12-21  Bruno Haible  <bruno@clisp.org>
17574
17575         Tests for module 'floor'.
17576         * modules/floor-tests: New file.
17577         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17578         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17579
17580 2010-12-21  Bruno Haible  <bruno@clisp.org>
17581
17582         math: Fix indentation.
17583         * lib/math.in.h (floorf): Fix indentation.
17584
17585 2010-12-21  Bruno Haible  <bruno@clisp.org>
17586
17587         Fix cross-compilation guesses on Solaris.
17588         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17589         not match "solaris2.10".
17590         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17591         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17592         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17593
17594 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17595
17596         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17597         This fixes a problem observed with the latest coreutils snapshot
17598         that caused a test to fail on Solaris 8.  src/csplit.c's call
17599         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17600         earlier, instead of returning the number of bytes that would have
17601         been generated; this causes csplit to incorrectly report memory
17602         exhaustion.
17603         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17604         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17605         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17606         comments to match.
17607         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17608         Fix typo in matching older versions of Solaris: "solaris2.10"
17609         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17610         only for guessing while cross-compiling.
17611         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17612
17613 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17614
17615         ftoastr: fix comment again
17616         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17617         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17618         Also, simplify example a bit by using flags = 0.
17619
17620 2010-12-20  Bruno Haible  <bruno@clisp.org>
17621
17622         round*, trunc*: Update documentation regarding glibc.
17623         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17624         * doc/posix-functions/round.texi: Likewise.
17625         * doc/posix-functions/roundl.texi: Likewise.
17626         * doc/posix-functions/truncf.texi: Likewise.
17627         * doc/posix-functions/trunc.texi: Likewise.
17628         * doc/posix-functions/truncl.texi: Likewise.
17629
17630 2010-12-20  Bruno Haible  <bruno@clisp.org>
17631
17632         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17633         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17634         * doc/posix-functions/round.texi: Likewise.
17635         * doc/posix-functions/roundl.texi: Likewise.
17636
17637 2010-12-20  Bruno Haible  <bruno@clisp.org>
17638
17639         ttyname_r: Add missing declaration on HP-UX 11.
17640         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17641         HAVE_TTYNAME_R.
17642         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17643         declared. Set HAVE_TTYNAME_R always.
17644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17645         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17646         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17647         HAVE_TTYNAME_R.
17648         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17649
17650 2010-12-20  Bruno Haible  <bruno@clisp.org>
17651
17652         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17653         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17654         * doc/posix-functions/getlogin_r.texi: Likewise.
17655         * tests/test-getlogin.c: Include <errno.h>.
17656         (main): Avoid test failure on HP-UX 11.11.
17657         * tests/test-getlogin_r.c (main): Likewise.
17658
17659 2010-12-20  Bruno Haible  <bruno@clisp.org>
17660
17661         getlogin_r: Add missing declaration on HP-UX 11.
17662         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17663         declared also when it exists as a function.
17664         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17665
17666 2010-12-20  Bruno Haible  <bruno@clisp.org>
17667
17668         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17669         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17670         through wcrtomb.
17671
17672 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17673
17674         ftoastr: fix comment
17675         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17676         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17677
17678 2010-12-19  Bruno Haible  <bruno@clisp.org>
17679
17680         isnan: Ensure it is a macro.
17681         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17682         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17683         Solaris.
17684
17685 2010-12-19  Bruno Haible  <bruno@clisp.org>
17686
17687         ldexpl test: Fix link error on OSF/1 5.1.
17688         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17689
17690 2010-12-19  Bruno Haible  <bruno@clisp.org>
17691
17692         wctype: Make it work in C++ mode on OSF/1 5.1.
17693         * lib/wctype.in.h (iswblank): Declare but not define here.
17694         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17695         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17696         * modules/wctype (Files): Add lib/iswblank.c.
17697
17698 2010-12-19  Bruno Haible  <bruno@clisp.org>
17699
17700         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17701         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17702         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17703
17704 2010-12-19  Bruno Haible  <bruno@clisp.org>
17705
17706         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17708         _POSIX_PII_SOCKET.
17709         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17710         * doc/posix-functions/recvfrom.texi: Likewise.
17711         * doc/posix-functions/send.texi: Likewise.
17712         * doc/posix-functions/sendto.texi: Likewise.
17713
17714 2010-12-19  Bruno Haible  <bruno@clisp.org>
17715
17716         tcgetsid: Add missing declaration on OSF/1 5.1.
17717         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17718         HAVE_TCGETSID.
17719         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17720         Don't set HAVE_TCGETSID.
17721         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17722         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17723         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17724         HAVE_TCGETSID.
17725         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17726
17727 2010-12-19  Bruno Haible  <bruno@clisp.org>
17728
17729         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17730         * lib/stdio.in.h: During the include_next statement, let recursive
17731         includes of this file include only the system header file.
17732
17733 2010-12-19  Bruno Haible  <bruno@clisp.org>
17734
17735         iconv_open: Fix regression from 2010-12-04.
17736         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17737         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17738
17739 2010-12-19  Bruno Haible  <bruno@clisp.org>
17740
17741         stdbool test: Avoid a gcc warning.
17742         * tests/test-stdbool.c (main): Fail if e1 is false.
17743         Reported by Jim Meyering.
17744
17745 2010-12-19  Jim Meyering  <meyering@redhat.com>
17746
17747         setenv: restore to working order
17748         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17749         mistakenly removed.
17750         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17751         HAVE_SETENV.
17752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17753         HAVE_SETENV.
17754
17755 2010-12-19  Bruno Haible  <bruno@clisp.org>
17756
17757         Document some different function declarations on OSF/1 5.1.
17758         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17759         * doc/posix-functions/inet_ntop.texi: Likewise.
17760         * doc/posix-functions/gethostname.texi: Likewise.
17761         * lib/unistd.in.h (gethostname): Update comment.
17762
17763 2010-12-19  Bruno Haible  <bruno@clisp.org>
17764
17765         doc: Mention vasprintf-posix module.
17766         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17767         the 'vasprintf-posix' module.
17768         * doc/glibc-functions/vasprintf.texi: Likewise.
17769
17770 2010-12-19  Bruno Haible  <bruno@clisp.org>
17771
17772         unsetenv: Add missing declaration on OSF/1 5.1.
17773         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17774         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17775         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17777         not HAVE_UNSETENV.
17778         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17779         HAVE_UNSETENV.
17780         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17781
17782 2010-12-19  Bruno Haible  <bruno@clisp.org>
17783
17784         setenv: Add missing declaration on OSF/1 5.1.
17785         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17786         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17787         declared. Don't set HAVE_SETENV.
17788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17789         not HAVE_SETENV.
17790         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17791         HAVE_SETENV.
17792         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17793
17794 2010-12-19  Bruno Haible  <bruno@clisp.org>
17795
17796         nl_langinfo tests: Avoid gcc warning.
17797         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17798
17799 2010-12-19  Bruno Haible  <bruno@clisp.org>
17800
17801         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17802         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17803         _GL_CXXALIAS_SYS.
17804
17805 2010-12-19  Bruno Haible  <bruno@clisp.org>
17806
17807         stdbool: Relax test.
17808         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17809         address to 'bool' work in static initializer, for compilers other than
17810         GCC.
17811
17812 2010-12-19  Bruno Haible  <bruno@clisp.org>
17813
17814         ftello: Add missing declaration on OSF/1 5.1.
17815         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17816         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17818         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17819         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17820
17821 2010-12-19  Bruno Haible  <bruno@clisp.org>
17822
17823         fseeko: Add missing declaration on OSF/1 5.1.
17824         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17825         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17827         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17828         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17829
17830 2010-12-19  Bruno Haible  <bruno@clisp.org>
17831
17832         fchdir: Add missing declaration on OSF/1 5.1.
17833         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17836         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17837         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17838
17839 2010-12-19  Bruno Haible  <bruno@clisp.org>
17840
17841         relocatable-prog-wrapper: Separate from relocatable-prog.
17842         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17843         uninstall-relocwrapper rule here.
17844         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17845         Reported by Ian Beckwith <ianb@erislabs.net>.
17846
17847 2010-12-19  Bruno Haible  <bruno@clisp.org>
17848
17849         unistr/u8-mbsnlen: Add missing dependency.
17850         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17851         Reported by Ian Beckwith <ianb@erislabs.net>.
17852
17853 2010-12-19  Bruno Haible  <bruno@clisp.org>
17854
17855         iconv: Make it possible again to use this module without 'iconv-h'.
17856         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17857         if it is not defined.
17858         Reported by Ian Beckwith <ianb@erislabs.net>.
17859
17860 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17861
17862         acl: port to Solaris 8 when copying from tmpfs to ufs
17863         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17864         error number.  Problem observed on Solaris 8 with latest
17865         coreutils, with "mv A B", where A is on a tmpfs file system and B
17866         is on a ufs file system.  This caused coreutils' mv/part-symlink
17867         test to fail.
17868
17869         tests: set fail=0 at start
17870         * tests/init.sh (setup_): Move fail=0 initialization here ...
17871         (mktempd_): ... from here, so that tests can rely on fail being
17872         set to 0 initially.  This fixes a problem in coreutils; see:
17873         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17874
17875 2010-12-18  Bruno Haible  <bruno@clisp.org>
17876
17877         memmem-simple: Stylistic changes.
17878         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17879         Fix preprocessor directive indentation.
17880
17881 2010-12-15  Pádraig Brady <P@draigBrady.com>
17882
17883         memmem, memmem-simple: reorganize and expand empty needle check
17884         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17885         functional checks to memmem-simple so that one has a fully functional
17886         memmem by using just this module.
17887         Restrict the performance only check to the memmem module.
17888         Also expand the empty needle check to ensure the correct
17889         pointer is returned, not just a non NULL pointer.
17890         * doc/glibc-functions/memmem.texi: Rearrange the portability
17891         documentation to correlate with the rearranged checks.
17892         Clarify exactly how the memmem and memmem-simple modules
17893         relate to each other.
17894
17895 2010-12-15  Pádraig Brady <P@draigBrady.com>
17896             Bruno Haible  <bruno@clisp.org>
17897
17898         Improve cross-compilation guesses for uClibc.
17899         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17900         that uClibc does not have the glibc bug.
17901         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17902         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17903
17904 2010-12-14  Eric Blake  <eblake@redhat.com>
17905
17906         configmake: provide fallbacks for oldest supported autotools
17907         * m4/configmake.m4: New file.
17908         * modules/configmake (Files): Ship it.
17909         (configure.ac): Use it to guarantee fallbacks.
17910
17911 2010-12-13  Pádraig Brady <P@draigBrady.com>
17912
17913         read-file: Improve handling of large files
17914         * lib/read-file.c (fread_file): Minimize realloc()s
17915         for regular files, and better manage sizes around SIZE_MAX.
17916
17917 2010-12-13  Eric Blake  <eblake@redhat.com>
17918
17919         cloexec, fcntl: relax license
17920         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17921         consent from all contributors.
17922         * modules/fcntl (License): Likewise.
17923
17924 2010-12-10  Bruno Haible  <bruno@clisp.org>
17925
17926         Tests for module 'pipe-posix'.
17927         * modules/pipe-posix-tests: New file.
17928         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17929
17930 2010-12-10  Bruno Haible  <bruno@clisp.org>
17931
17932         pipe-posix: Make it work in C++ mode.
17933         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17934         (pipe): Use common idiom, not a macro definition.
17935         * lib/pipe.c: New file.
17936         * m4/pipe.m4: New file.
17937         * modules/pipe-posix (Description): Enhance.
17938         (Files): Add lib/pipe.c, m4/pipe.m4.
17939         (configure.ac): Invoke gl_FUNC_PIPE.
17940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17941         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17942         * tests/test-unistd-c++.cc: Check the signature of pipe.
17943
17944 2010-12-10  Bruno Haible  <bruno@clisp.org>
17945
17946         Rename module 'pipe' to 'spawn-pipe'.
17947         * modules/spawn-pipe: New file, renamed from modules/pipe.
17948         (Files, configure.ac, Makefile.am): Update.
17949         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17950         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17951         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17952         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17953         "spawn-pipe.h" instead of "pipe.h".
17954         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17955         to gl_SPAWN_PIPE.
17956         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17957         (Files, Makefile.am): Update.
17958         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17959         Update.
17960         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17961         Include "spawn-pipe.h" instead of "pipe.h".
17962         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17963         * lib/javacomp.c: Likewise.
17964         * lib/javaversion.c: Likewise.
17965         * lib/pipe-filter-gi.c: Likewise.
17966         * lib/pipe-filter-ii.c: Likewise.
17967         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17968         * modules/javacomp (Depends-on): Likewise.
17969         * modules/javaversion (Depends-on): Likewise.
17970         * modules/pipe-filter-gi (Depends-on): Likewise.
17971         * modules/pipe-filter-ii (Depends-on): Likewise.
17972         * MODULES.html.sh (Executing programs): Update.
17973         * NEWS: Mention the change.
17974
17975 2010-12-10  Eric Blake  <eblake@redhat.com>
17976
17977         pipe-posix: new module
17978         * modules/pipe-posix: New file.
17979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17980         (gl_UNISTD_H): Check for declaration.
17981         * modules/unistd (Makefile.am): Substitute it.
17982         * lib/unistd.in.h (pipe): Provide it for mingw.
17983         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17984         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17985
17986 2010-12-07  Bruno Haible  <bruno@clisp.org>
17987
17988         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17989         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17990         u8_strcmp_gnu.
17991         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17992
17993 2010-12-06  Bruno Haible  <bruno@clisp.org>
17994
17995         Update internal documentation.
17996         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17997
17998 2010-12-04  Bruno Haible  <bruno@clisp.org>
17999
18000         Put more information about failed tests into the test return codes.
18001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18002         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18003         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18004         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18005         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18006         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18007         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18008         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18009         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18011         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18012         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18013         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18014         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18015         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18016         returns a bit mask.
18017         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18018         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18019         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18020         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18021         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18022         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18023         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18024         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18025         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18026         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18027         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18028         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18029         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18030         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18031         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18032         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18033         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18034         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18035         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18036         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18037         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18038         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18039         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18040         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18041         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18042         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18043         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18044         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18045         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18046         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18047         gl_PRINTF_PRECISION): Likewise.
18048         * m4/regex.m4 (gl_REGEX): Likewise.
18049         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18050         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18051         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18052         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18053         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18054         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18055         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18056         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18057         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18058         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18059         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18060         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18061         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18062         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18063         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18064         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18065         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18066         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18068         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18069         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18070         enumerated value.
18071         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18072
18073 2010-12-04  Bruno Haible  <bruno@clisp.org>
18074
18075         Update for Solaris 11 2010-11.
18076         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18077         Express, released in November 2010.
18078
18079 2010-12-04  Bruno Haible  <bruno@clisp.org>
18080
18081         nproc: Relax license.
18082         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18083         and Paul Eggert.
18084         Requested by Ludovic Courtès <ludo@gnu.org>.
18085
18086 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18087
18088         utimecmp: fine-grained src to nearby coarse-grained dest
18089
18090         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18091         and the source is on a file system with higher-resolution time
18092         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18093         not work, and the time stamps are close together, the algorithm to
18094         determine the exact resolution from the read-back mtime was buggy:
18095         it had a "!=" where it should have had an "==".  This bug has been
18096         in the code ever since it was introduced to gnulib.
18097         Problem reported by Dan Jacobson in
18098         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18099
18100 2010-11-30  Bruno Haible  <bruno@clisp.org>
18101
18102         strerror_r-posix: Fix autoconf test.
18103         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18104
18105 2010-11-28  Bruno Haible  <bruno@clisp.org>
18106             Paul Eggert  <eggert@cs.ucla.edu>
18107
18108         Tests for module 'getdomainname'.
18109         * modules/getdomainname-tests: New file.
18110         * tests/test-getdomainname.c: New file, based on
18111         tests/test-gethostname.c.
18112
18113 2010-11-28  Bruno Haible  <bruno@clisp.org>
18114             Paul Eggert  <eggert@cs.ucla.edu>
18115
18116         getdomainname: Use the system function when possible.
18117         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18118         (getdomainname): Replace if needed. Provide the declaration if it is
18119         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18120         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18121         (getdomainname): When the system has getdomainname, call the system
18122         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18123         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18124         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18125         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18126         the function if its second argument is of type 'int' or if it is found
18127         in libnsl.
18128         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18129         <sys/systeminfo.h> and sysinfo().
18130         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18132         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18133         HAVE_GETDOMAINNAME.
18134         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18135         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18136         * doc/glibc-functions/getdomainname.texi: Document the problems with
18137         the getdomainname declaration.
18138
18139 2010-11-28  Bruno Haible  <bruno@clisp.org>
18140
18141         sys_socket: Ensure ss_family field on AIX.
18142         * lib/sys_socket.in.h (ss_family): New macro definition.
18143         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18144         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18145         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18146         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18147         * modules/sys_socket (Makefile.am): Substitute
18148         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18149         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18150
18151 2010-11-27  Bruno Haible  <bruno@clisp.org>
18152
18153         readline: Improve configure output.
18154         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18155         "checking for readline..." result understandable.
18156
18157 2010-11-27  Bruno Haible  <bruno@clisp.org>
18158
18159         *printf-posix: Detect a bug on Solaris 10/x86.
18160         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18161         for floating-point output.
18162         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18163         directive.
18164         * tests/test-snprintf-posix.h (test_function): Likewise.
18165         * tests/test-sprintf-posix.h (test_function): Likewise.
18166         * tests/test-vasprintf-posix.c (test_function): Likewise.
18167         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18168         * doc/posix-functions/printf.texi: Likewise.
18169         * doc/posix-functions/snprintf.texi: Likewise.
18170         * doc/posix-functions/sprintf.texi: Likewise.
18171         * doc/posix-functions/vfprintf.texi: Likewise.
18172         * doc/posix-functions/vprintf.texi: Likewise.
18173         * doc/posix-functions/vsnprintf.texi: Likewise.
18174         * doc/posix-functions/vsprintf.texi: Likewise.
18175         * doc/glibc-functions/obstack_printf.texi: Likewise.
18176         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18177
18178 2010-11-27  Bruno Haible  <bruno@clisp.org>
18179
18180         Fix link error when module libunistring-optional is in use.
18181         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18182         * modules/striconveha-tests (Makefile.am): Likewise.
18183
18184 2010-11-27  Bruno Haible  <bruno@clisp.org>
18185
18186         regex: Mention link dependencies.
18187         * modules/regex (Link): New section.
18188         * modules/rpmatch (Link): Likewise.
18189         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18190
18191 2010-11-27  Bruno Haible  <bruno@clisp.org>
18192
18193         ftoastr: Fix compilation error on Solaris.
18194         * lib/ftoastr.c: Include <config.h>.
18195
18196 2010-11-27  Bruno Haible  <bruno@clisp.org>
18197
18198         getloadavg: Update documentation.
18199         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18200
18201 2010-11-27  Bruno Haible  <bruno@clisp.org>
18202
18203         sys_socket: Fix test whether the functions are declared.
18204         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18205         not <sys/select.h>.
18206
18207 2010-11-27  Bruno Haible  <bruno@clisp.org>
18208
18209         getpass: Make sure to get system declaration on some platforms.
18210         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18211         gl_USE_SYSTEM_EXTENSIONS.
18212         * modules/getpass (Depends-on): Add extensions.
18213
18214 2010-11-26  Bruno Haible  <bruno@clisp.org>
18215
18216         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18217         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18218         'iconv' module is present.
18219         (ICONV_CONST): New macro.
18220         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18221         ICONV_CONST.
18222         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18223         set ICONV_CONST.
18224         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18225         here.
18226         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18227         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18228         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18229         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18230         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18231         present.
18232
18233 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18234
18235         ftoastr: comment fix
18236         * lib/ftoastr.c: "little" -> "little or no" in comment
18237
18238 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18239
18240         stdint: port to GCC 4.3 + OSX + Octave
18241         On this platform, stdint.h is buggy and defines int64_t to long
18242         long int.  The replacement defined it to long int, causing
18243         problems with C++ style name mangling.  Instead, trust the system
18244         definition if INT64_MAX is defined, and likewise for the unsigned
18245         variant.   Problem reported by Jarno Rajahalme in
18246         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18247         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18248         and don't mess with int64_t and INT64_MAX in this case.
18249         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18250
18251 2010-11-24  Bruno Haible  <bruno@clisp.org>
18252
18253         doc: Corrections regarding MacOS X 10.4 and 10.5.
18254         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18255         MacOS X.
18256         Reported by Simon Josefsson.
18257
18258 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18259
18260         Uninstall ".bin" files installed by relocwrapper.
18261         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18262         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18263         unless it is already there.
18264
18265 2010-11-21  Bruno Haible  <bruno@clisp.org>
18266
18267         Update for NetBSD 5.0.
18268         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18269         NetBSD; the test fails on NetBSD 5.0.
18270         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18271         about NetBSD.
18272
18273 2010-11-21  Bruno Haible  <bruno@clisp.org>
18274
18275         Update for HP-UX 11.23 and HP-UX 11.31.
18276         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18277         HP-UX.
18278
18279 2010-11-21  Bruno Haible  <bruno@clisp.org>
18280
18281         Update for MacOS X 10.5.
18282         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18283         MacOS X; the test fails on MacOS X 10.5.8.
18284         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18285         about MacOS X.
18286
18287 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18288
18289         bootstrap: add bootstrap_sync option.
18290         See discussion at
18291         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18292         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18293         * build-aux/bootstrap: Accept --bootstrap-sync to update
18294         bootstrap if it is not identical to the local gnulib's
18295         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18296         enable this by default.  Accept --no-bootstrap-sync to disable
18297         it.
18298
18299 2010-11-20  Bruno Haible  <bruno@clisp.org>
18300
18301         Ensure that <features.h> is included before __GLIBC__ is tested.
18302         * lib/printf-parse.h: Include <features.h>.
18303         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18304         Reported by Mike Frysinger <vapier@gentoo.org>.
18305
18306         Ensure that <features.h> is included before __GLIBC__ is tested.
18307         * lib/wchar.in.h: Include <features.h>.
18308         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18309         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18310         Reported by Mike Frysinger <vapier@gentoo.org>.
18311
18312         Ensure that <features.h> is included before __GLIBC__ is tested.
18313         * lib/arpa_inet.in.h: Include <features.h>.
18314         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18315         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18316         Reported by Mike Frysinger <vapier@gentoo.org>.
18317
18318         Ensure that <features.h> is included before __GLIBC__ is tested.
18319         * build-aux/link-warning.h: Include <features.h>.
18320         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18321         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18322         Reported by Mike Frysinger <vapier@gentoo.org>.
18323
18324         Ensure that <features.h> is included before __GLIBC__ is tested.
18325         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18326         Reported by Mike Frysinger <vapier@gentoo.org>.
18327
18328 2010-11-20  Bruno Haible  <bruno@clisp.org>
18329
18330         memmem: Fix autoconf test.
18331         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18332
18333 2010-11-20  Bruno Haible  <bruno@clisp.org>
18334
18335         Port to uClibc.
18336         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18337         * lib/fcntl.in.h: Likewise.
18338         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18339         * lib/mbrtowc.c (mbrtowc): Likewise.
18340         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18341         * lib/strerror_r.c: Likewise.
18342         * lib/unistr/u8-strnlen.c: Likewise.
18343         * lib/vasnprintf.c (decimal_point_char): Likewise.
18344         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18345         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18346         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18347         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18348         * tests/test-sigaction.c (handler, main): Likewise.
18349         * lib/freading.h: Treat uClibc like a non-glibc platform.
18350         * lib/freading.c: Likewise.
18351         * lib/gettext.h: Likewise.
18352         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18353         Likewise.
18354         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18355         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18356         * lib/propername.c (proper_name_utf8): Likewise.
18357         * lib/spawn.in.h: Likewise.
18358         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18359         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18360         mem_cd_iconveh_internal): Likewise.
18361         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18362         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18363         strstr, strcasestr): Likewise.
18364         * lib/unicodeio.c (unicode_to_mb): Likewise.
18365         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18366         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18367         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18368         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18369         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18370         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18371         * lib/unistr/u8-stpncpy.c: Likewise.
18372         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18373         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18374         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18375         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18376         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18377         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18378         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18379         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18380         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18381         Likewise.
18382         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18383         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18384         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18385         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18386         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18387         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18388         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18389         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18390         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18391         * tests/test-striconveha.c (main): Likewise.
18392         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18393         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18394         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18395         * doc/posix-functions/getline.texi: Likewise.
18396         Reported by Mike Frysinger <vapier@gentoo.org>.
18397
18398 2010-11-20  Bruno Haible  <bruno@clisp.org>
18399
18400         nproc: Fix condition.
18401         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18402         HAVE_PTHREAD_AFFINITY_NP.
18403
18404 2010-11-20  Bruno Haible  <bruno@clisp.org>
18405
18406         Fix a comment.
18407         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18408
18409 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18410
18411         ftoastr: don't assume snprintf
18412         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18413         Implement a subset of snprintf here, by using sprintf safely.
18414         * modules/ftoastr (Depends-on): Remove snprintf.
18415
18416 2010-11-19  Jim Meyering  <meyering@redhat.com>
18417
18418         test-rename.h: fix compilation failure
18419         * tests/test-rename.h (test_rename): Add omitted "}".
18420
18421 2010-11-17  Jim Meyering  <meyering@redhat.com>
18422
18423         maint.mk: add a URL discussing the no-@acronym policy
18424         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18425
18426 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18427
18428         ftoastr: depend on snprintf, improve comments
18429         * lib/ftoastr.c: Also mention Loitsch's draft.
18430         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18431         needed in the current implementation, but it might simplify
18432         speeding up the code later.
18433         * modules/ftoastr: Depend on snprintf; this improves portability.
18434         Suggested by Bruno Haible in the same email.
18435
18436         ftoastr: port to hosts lacking strtof and strtold
18437         Problem reported by Bruno Haible in
18438         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18439         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18440         environment and strtold (and presumably strtof) are not available.
18441         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18442         (configure.ac): Require gl_C99_STRTOLD.
18443
18444 2010-11-18  Bruno Haible  <bruno@clisp.org>
18445
18446         c-strtold: Avoid link error on AIX 7.
18447         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18448         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18449         (gl_C_STRTOLD): Test whether strtold_l exists.
18450         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18451
18452 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18453
18454         intprops: new macro INT_BITS_STRLEN_BOUND
18455         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18456         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18457         not exposed.  Also, it uses a slightly tighter bound than before;
18458         though this makes no practical difference, we might as well be as
18459         tight as we easily can.
18460
18461         ftoastr: new module, for lossless conversion of floats to short strings
18462         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18463         * modules/ftoastr: New files.
18464
18465 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18466
18467         bootstrap: port to Solaris sed
18468         * build-aux/bootstrap (get_version): Port to Solaris sed.
18469         See Ralf Wildenhues's note in
18470         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18471
18472 2010-11-14  Jim Meyering  <meyering@redhat.com>
18473
18474         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18475         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18476         and move definition closer to sole use.
18477
18478 2010-11-13  Jim Meyering  <meyering@redhat.com>
18479
18480         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18481         Now we require at least autoconf-2.59, which means the work-around
18482         is no longer needed.
18483         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18484         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18485         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18486         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18487         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18488
18489 2010-11-13  Bruno Haible  <bruno@clisp.org>
18490
18491         rename, renameat: Avoid test failures at NFS mounted locations.
18492         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18493         functions.
18494         (test_rename): Use assert_nonexistent.
18495         * tests/test-rename.c: Include <dirent.h>.
18496         * tests/test-renameat.c: Likewise.
18497         Reported by Gary V. Vaughan <gary@gnu.org>.
18498
18499         rename, renameat: Document Linux bug with NFS
18500         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18501         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18502         * doc/posix-functions/renameat.texi: Likewise.
18503         Suggested by Eric Blake.
18504
18505 2010-11-13  Bruno Haible  <bruno@clisp.org>
18506
18507         rename test: Add comments.
18508         * tests/test-rename.h (test_rename): Add structure and comments.
18509
18510 2010-11-13  Eric Blake  <eblake@redhat.com>
18511
18512         maintainer-makefile: cover a few more files
18513         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18514         scripts generated within C files, for libvirt.
18515
18516 2010-11-13  Bruno Haible  <bruno@clisp.org>
18517
18518         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18519         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18520         character, return the number of bytes that belong together, not always
18521         1.
18522         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18523         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18524         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18525         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18526         number of bytes of an invalid character.
18527         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18528         (main): Invoke it.
18529         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18530         results.
18531         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18532         malformed byte sequences.
18533         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18534         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18535         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18536         Reported by Ben Pfaff and Paolo Bonzini.
18537
18538 2010-11-13  Bruno Haible  <bruno@clisp.org>
18539
18540         openat: Work around glibc bug with fchownat() and empty file names.
18541         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18542         (gl_FUNC_FCHOWNAT): Invoke it.
18543         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18544         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18545         Reported by Gary V. Vaughan <gary@gnu.org>.
18546
18547 2010-11-13  Bruno Haible  <bruno@clisp.org>
18548
18549         openat: Ensure autoconf macro ordering.
18550         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18551         gl_USE_SYSTEM_EXTENSIONS.
18552         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18553
18554 2010-11-13  Bruno Haible  <bruno@clisp.org>
18555
18556         Update comments.
18557         * lib/unistr/u8-check.c: Update file name in comments.
18558         * lib/unistr/u8-mblen.c: Likewise.
18559         * lib/unistr/u8-prev.c: Likewise.
18560         * lib/unistr/u8-strmblen.c: Likewise.
18561         * lib/unistr/u8-strmbtouc.c: Likewise.
18562
18563 2010-11-13  Jim Meyering  <meyering@redhat.com>
18564
18565         tests: avoid test failure on Solaris 10 due to lack of PATH export
18566         * tests/test-update-copyright.sh: Don't forget to export PATH.
18567
18568         init.sh: ensure that IFS is defined, just in case...
18569         * tests/init.sh (setup_): Ensure that IFS is defined,
18570         so that saving and restoring it works as expected.  This
18571         appears to be useful at least for an old version of dash
18572         from a long time ago (RH 6).  See here for details:
18573         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18574
18575         maint.mk: tighten "test a == b" check
18576         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18577         test to files that contain something like #!/bin/sh.
18578         Without this, coreutils would get two false positives in
18579         the comments of C source files.
18580
18581 2010-11-12  Eric Blake  <eblake@redhat.com>
18582
18583         bootstrap: fix typo in previous attempt
18584         * build-aux/bootstrap (buildreq): Correct the grouping.
18585         Reported by Paul Eggert.
18586
18587         maintainer-makefile: prohibit test x == x
18588         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18589         Based on a report by Matthias Bolte.
18590
18591         bootstrap: allow FreeBSD gzip
18592         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18593         which has no '.' and goes to stderr.
18594         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18595         Reported by Matthias Bolte.
18596
18597         maintainer-makefile: check for i18n setup
18598         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18599         will likely work.
18600
18601 2010-11-12  Bruno Haible  <bruno@clisp.org>
18602
18603         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18604         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18605         * lib/nanosleep.c (nanosleep): Likewise.
18606
18607 2010-11-11  Bruno Haible  <bruno@clisp.org>
18608
18609         fcntl-h: Fix for use of C++ on glibc systems.
18610         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18611         also on glibc systems in C++ mode.
18612         Reported by Gary V. Vaughan <gary@gnu.org>.
18613
18614 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18615
18616         mknod: avoid false failure with dash
18617         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18618
18619 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18620
18621         unlink: Fix "is it should" typo in diagnostic.
18622         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18623         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18624
18625 2010-11-11  Bruno Haible  <bruno@clisp.org>
18626
18627         Tests for module 'strerror_r-posix'.
18628         * modules/strerror_r-posix-tests: New file.
18629         * tests/test-strerror_r.c: New file.
18630         * tests/test-string-c++.cc: Check the signature of strerror_r.
18631
18632         New module 'strerror_r-posix'.
18633         * lib/string.in.h (strerror_r): New declaration.
18634         * lib/strerror_r.c: New file.
18635         * m4/strerror_r.m4: New file.
18636         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18637         of strerror_r.
18638         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18639         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18640         * modules/strerror_r-posix: New file.
18641         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18642         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18643         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18644         portability problems.
18645
18646 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18647
18648         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18649         line is also considered for output. Quoted function name in shell
18650         command, so temporary files for functions like MyClass::operator()
18651         are removed correctly without errors.
18652
18653 2010-11-09  Bruno Haible  <bruno@clisp.org>
18654
18655         * doc/posix-functions/strerror.texi: List more failing platforms.
18656
18657         * doc/posix-functions/strerror.texi: Add a comment.
18658
18659 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18660
18661         fdopendir: fix bug on MacOS X when low on file descriptors
18662
18663         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18664         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18665         All callers changed.
18666         (fdopendir): Invoke save_cwd at the top level, not after using
18667         multiple dup() calls to use up file descriptors.  Then retry
18668         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18669         less than the maximum number of open file descriptors, because
18670         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18671         on Mac OS X 10.6.4 for tar 1.24
18672         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18673         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18674         and for tar 1.25
18675         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18676
18677 2010-11-07  Bruno Haible  <bruno@clisp.org>
18678
18679         vasnprintf: Support I flag on glibc systems.
18680         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18681         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18682         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18683         snprintf function.
18684         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18685         glibc systems.
18686         * tests/test-vasnprintf-posix3.c: New file.
18687         * modules/vasnprintf-posix-tests (Files): Add it.
18688         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18689
18690 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18691
18692         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18693         * MODULES.html.sh: For compiler warnings, use name
18694         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18695
18696 2010-11-05  Eric Blake  <eblake@redhat.com>
18697
18698         ceil, floor: avoid spurious failure with icc
18699         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18700         [denormals-as-zero] when optimizing without -mieee-fp option.
18701         * tests/test-floorf2.c (floorf_reference): Likewise.
18702         * tests/test-ceilf1.c (dummy): New function.
18703         (main): Use it to outsmart icc's optimization.
18704         * tests/test-floorf1.c (dummy, main): Likewise.
18705
18706         tests: require working signbit
18707         * modules/ceilf-tests (Depends-on): Add signbit.
18708         * modules/ceill-tests (Depends-on): Likewise.
18709         * modules/floorf-tests (Depends-on): Likewise.
18710         * modules/floorl-tests (Depends-on): Likewise.
18711         * modules/round-tests (Depends-on): Likewise.
18712         * modules/roundf-tests (Depends-on): Likewise.
18713         * modules/roundl-tests (Depends-on): Likewise.
18714         * modules/trunc-tests (Depends-on): Likewise.
18715         * modules/truncf-tests (Depends-on): Likewise.
18716         * modules/truncl-tests (Depends-on): Likewise.
18717
18718         strtod: work around icc bug
18719         * lib/strtod.c (minus_zero): Define to working value.
18720         (strtod): Use it to avoid icc bug.
18721
18722         copysign: enhance tests
18723         * modules/copysign-tests (Files): Add minus-zero.h.
18724         * tests/test-copysign.c (main): Also test zeros.
18725
18726 2010-11-04  Eric Blake  <eblake@redhat.com>
18727
18728         ceil, floor, round, trunc: enhance tests of -0
18729         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18730         * tests/test-ceill.c (main): Likewise.
18731         * tests/test-floorf1.c (main): Likewise.
18732         * tests/test-floorl.c (main): Likewise.
18733         * tests/test-round1.c (main): Likewise.
18734         * tests/test-roundf1.c (main): Likewise.
18735         * tests/test-roundl.c (main): Likewise.
18736         * tests/test-trunc1.c (main): Likewise.
18737         * tests/test-truncf1.c (main): Likewise.
18738         * tests/test-truncl.c (main): Likewise.
18739
18740 2010-11-04  Eric Blake  <eblake@redhat.com>
18741
18742         frexp, tests: work around ICC bug with -zero
18743         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18744         works with more compilers.
18745         * tests/minus-zero.h: New file.
18746         * modules/ceilf-tests (Files): Include it.
18747         * modules/ceill-tests (Files): Likewise.
18748         * modules/floorf-tests (Files): Likewise.
18749         * modules/floorl-tests (Files): Likewise.
18750         * modules/frexp-nolibm-tests (Files): Likewise.
18751         * modules/frexp-tests (Files): Likewise.
18752         * modules/frexpl-nolibm-tests (Files): Likewise.
18753         * modules/frexpl-tests (Files): Likewise.
18754         * modules/isnan-tests (Files): Likewise.
18755         * modules/isnand-nolibm-tests (Files): Likewise.
18756         * modules/isnand-tests (Files): Likewise.
18757         * modules/isnanf-nolibm-tests (Files): Likewise.
18758         * modules/isnanf-tests (Files): Likewise.
18759         * modules/isnanl-nolibm-tests (Files): Likewise.
18760         * modules/isnanl-tests (Files): Likewise.
18761         * modules/round-tests (Files): Likewise.
18762         * modules/roundf-tests (Files): Likewise.
18763         * modules/roundl-tests (Files): Likewise.
18764         * modules/ldexpl-tests (Files): Likewise.
18765         * modules/signbit-tests (Files): Likewise.
18766         * modules/snprintf-posix-tests (Files): Likewise.
18767         * modules/sprintf-posix-tests (Files): Likewise.
18768         * modules/strtod-tests (Files): Likewise.
18769         * modules/trunc-tests (Files): Likewise.
18770         * modules/truncf-tests (Files): Likewise.
18771         * modules/truncl-tests (Files): Likewise.
18772         * modules/vsnprintf-posix-tests (Files): Likewise.
18773         * modules/vsprintf-posix-tests (Files): Likewise.
18774         * modules/vasnprintf-posix-tests (Files): Likewise.
18775         * modules/vasprintf-posix-tests (Files): Likewise.
18776         * tests/test-ceilf1.c (main): Use it.
18777         * tests/test-ceill.c (main): Likewise.
18778         * tests/test-floorf1.c (main): Likewise.
18779         * tests/test-floorl.c (main): Likewise.
18780         * tests/test-frexp.c (main): Likewise.
18781         * tests/test-frexpl.c (main): Likewise.
18782         * tests/test-isnan.c (main): Likewise.
18783         * tests/test-isnand.h (main): Likewise.
18784         * tests/test-isnanf.h (main): Likewise.
18785         * tests/test-isnanl.h (main): Likewise.
18786         * tests/test-ldexpl.c (main): Likewise.
18787         * tests/test-round.c (main): Likewise.
18788         * tests/test-roundf.c (main): Likewise.
18789         * tests/test-roundl.c (main): Likewise.
18790         * tests/test-signbit.c (test_signbitf, test_signbitd)
18791         (test_signbitl): Likewise.
18792         * tests/test-snprintf-posix.h (test_function): Likewise.
18793         * tests/test-sprintf-posix.h (test_function): Likewise.
18794         * tests/test-strtod.c (main): Likewise.
18795         * tests/test-trunc1.c (main): Likewise.
18796         * tests/test-truncf1.c (main): Likewise.
18797         * tests/test-truncl.c (main): Likewise.
18798
18799         isnanl: work around icc bug
18800         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18801
18802 2010-11-03  Eric Blake  <eblake@redhat.com>
18803
18804         tests: fix compiler warnings
18805         * tests/test-getopt.h (test_getopt): Fix condition.
18806         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18807         * tests/test-pipe2.c (main): Likewise.
18808         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18809
18810         utimens: fix broken m4 test
18811         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18812
18813 2010-10-28  Bruno Haible  <bruno@clisp.org>
18814
18815         posix_spawn*, getdtablesize: Relax license.
18816         * modules/posix_spawn (License): Change to LGPLv2+.
18817         * modules/posix_spawnp (License): Likewise.
18818         * modules/posix_spawn-internal (License): Likewise.
18819         * modules/posix_spawnattr_init (License): Likewise.
18820         * modules/posix_spawnattr_getflags (License): Likewise.
18821         * modules/posix_spawnattr_setflags (License): Likewise.
18822         * modules/posix_spawnattr_getpgroup (License): Likewise.
18823         * modules/posix_spawnattr_setpgroup (License): Likewise.
18824         * modules/posix_spawnattr_getschedparam (License): Likewise.
18825         * modules/posix_spawnattr_setschedparam (License): Likewise.
18826         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18827         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18828         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18829         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18830         * modules/posix_spawnattr_getsigmask (License): Likewise.
18831         * modules/posix_spawnattr_setsigmask (License): Likewise.
18832         * modules/posix_spawnattr_destroy (License): Likewise.
18833         * modules/posix_spawn_file_actions_init (License): Likewise.
18834         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18835         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18836         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18837         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18838         * modules/getdtablesize (License): Likewise.
18839         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18840
18841 2010-10-26  Bruno Haible  <bruno@clisp.org>
18842
18843         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18844         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18845         Cygwin and mingw.
18846         Suggested by Eric Blake.
18847
18848 2010-10-26  Bruno Haible  <bruno@clisp.org>
18849
18850         stdio: Work around compilation error due to renameat() on Solaris 10.
18851         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18852         * lib/renameat.c: Don't include <unistd.h> here.
18853         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18854         Reported by Paul Eggert and Eric Blake.
18855
18856 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18857
18858         renameat: port to Solaris 10, which declares renameat in unistd.h
18859
18860         * lib/renameat.c: Include unistd.h before stdio.h, because
18861         Solaris 10 declares renameat in unistd.h.  Problem encountered
18862         when building GNU tar 1.24 on Solaris 10.
18863
18864 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18865
18866         fdopendir: fix C89 compilation
18867         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18868         compilers.
18869
18870 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18871
18872         inttostr: simplify by removing unnecessary redundancy
18873         * lib/anytostr.c: Don't include verify.h.
18874         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18875         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18876         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18877         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18878         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18879         Likewise.
18880         * modules/inttostr (Depends-on): Remove 'verify'.
18881
18882 2010-10-23  Bruno Haible  <bruno@clisp.org>
18883
18884         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18885         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18886         Reported by Eric Blake.
18887
18888 2010-10-23  Bruno Haible  <bruno@clisp.org>
18889
18890         Tests: Fix LOCALE_JA on MirBSD 10.
18891         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18892         to an UTF-8 locale.
18893         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18894         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18895         Reported by Eric Blake.
18896
18897 2010-10-21  Bruno Haible  <bruno@clisp.org>
18898
18899         nl_langinfo test: Avoid test failure on NetBSD 5.
18900         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18901         Reported by Eric Blake.
18902
18903 2010-10-21  Eric Blake  <eblake@redhat.com>
18904
18905         c-stack: work around libsigsegv 2.8 bug
18906         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18907         overflow on at least PowerPC64.
18908
18909 2010-10-17  Bruno Haible  <bruno@clisp.org>
18910
18911         userspec: Drop redundant file.
18912         * modules/userspec (Files): Remove lib/inttostr.h.
18913
18914 2010-10-17  Bruno Haible  <bruno@clisp.org>
18915
18916         nl_langinfo tests: Silence some warnings.
18917         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18918         Reported by Jim Meyering.
18919
18920 2010-10-17  Bruno Haible  <bruno@clisp.org>
18921
18922         Make use of GCC's attribute __alloc_size__.
18923         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18924         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18925         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18926         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18927         __alloc_size__.
18928         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18929         Suggested by Jim Meyering.
18930
18931 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18932
18933         bootstrap: anchor .gitignore entries.
18934         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18935         with...
18936         (insert_vc_ignore): ... this new function, which prepends `/' to
18937         all .gitignore entries before passing them to
18938         insert_sorted_if_absent.
18939
18940 2010-10-16  Bruno Haible  <bruno@clisp.org>
18941
18942         nextafter: Fix configure check.
18943         * modules/nextafter (configure.ac): Correct expected prototype.
18944
18945 2010-10-16  Bruno Haible  <bruno@clisp.org>
18946
18947         termios: Update documentation.
18948         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18949
18950 2010-10-16  Bruno Haible  <bruno@clisp.org>
18951
18952         tests: Make them compile with TinyCC.
18953         * tests/test-strstr.c (main): Remove parentheses around array
18954         initializer.
18955
18956 2010-10-15  Eric Blake  <eblake@redhat.com>
18957
18958         ignore-value: make header idempotent
18959         * lib/ignore-value.h: Add double-inclusion guards.
18960         Reported by Stefan Berger.
18961
18962 2010-10-15  Jim Meyering  <meyering@redhat.com>
18963
18964         GNUmakefile: handle "stable" target, not "major"
18965         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18966         lists in maint.mk and announce-gen.  Without this, "make stable"
18967         would fail to ensure that $(VERSION) is up to date.
18968
18969 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18970
18971         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18972         & co.
18973
18974 2010-10-14  Bruno Haible  <bruno@clisp.org>
18975
18976         vasnprintf: Don't set errno to 0.
18977         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18978         block that sets it to 0.
18979         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18980
18981 2010-10-14  Bruno Haible  <bruno@clisp.org>
18982
18983         socketlib: Fix.
18984         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18985         gl_PREREQ_SYS_H_WINSOCK2.
18986         Reported by Ian Beckwith <ianb@erislabs.net>.
18987
18988 2010-10-13  Jim Meyering  <meyering@redhat.com>
18989
18990         test-select-stdin.c: avoid warn_unused_result warnings
18991         * tests/test-select-stdin.c: Include "macros.h".
18992         ASSERT that read and fflush succeed.
18993
18994 2010-10-13  Jim Meyering  <meyering@redhat.com>
18995
18996         git-version-gen: do require git-VC'd files in cwd
18997         * build-aux/git-version-gen: Reject a git version string
18998         if there are no commits associated with the current directory.
18999         This avoids an unlikely false-positive (unrelated dir whose parent
19000         repository also contains a tag matching v*), as pointed out
19001         by Giuseppe Scrivano in
19002         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19003
19004 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19005
19006         argv-iter: omit nonconforming declaration
19007         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19008         enum arg_iter_err declaration, which doesn't conform to C99.
19009         Solaris 10 cc warns about this.
19010
19011 2010-10-13  Eric Blake  <eblake@redhat.com>
19012
19013         termios: fix compilation on mingw
19014         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19015         (gl_TERMIOS_H): Adjust it on mingw.
19016         * modules/termios (Makefile.am): Substitute new key.
19017         * lib/termios.in.h (includes): Make include_next conditional.
19018         * doc/posix-headers/termios.texi (termios.h): Update
19019         documentation.
19020         Reported by Daniel P. Berrange.
19021
19022 2010-10-13  Jim Meyering  <meyering@redhat.com>
19023
19024         git-version-gen: don't require that .git/ be in the current dir
19025         * build-aux/git-version-gen: Adjust this script so that it works
19026         when run from any working directory beneath the top-level .git/-
19027         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19028         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19029
19030         test-select: avoid warn_unused_result warnings
19031         * tests/test-select.c: Include "macros.h".
19032         ASSERT that each call to read, write, and pipe succeeds.
19033         While not technically required, also check each "close".
19034         * modules/select-tests (Files): Add tests/macros.h.
19035
19036         test-symlinkat: remove declaration of unused local
19037         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19038
19039         test-inttostr: avoid shadowing warnings
19040         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19041         and use malloc rather than the stack for the same reason as
19042         mentioned in the comment justifying the other allocation.
19043
19044 2010-10-11  Bruno Haible  <bruno@clisp.org>
19045
19046         stdlib: Allow multiple gnulib generated replacements to coexist.
19047         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19048         Reported by Sam Steingold <sds@gnu.org>.
19049
19050 2010-10-11  Jim Meyering  <meyering@redhat.com>
19051
19052         fix a documentation typo
19053         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19054
19055 2010-10-11  Eric Blake  <eblake@redhat.com>
19056
19057         futimens: work around Solaris 11 bug
19058         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19059         * tests/test-futimens.h (test_futimens): Enhance, rather than
19060         weaken test.
19061         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19062
19063 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19064
19065         Indentation.
19066         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19067         higher-level operators more to the left.
19068
19069 2010-10-11  Jim Meyering  <meyering@redhat.com>
19070
19071         test-futimens: avoid unwarranted test failure on Solaris 5.11
19072         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19073         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19074         because it tries to dereference the NULL name argument.
19075
19076 2010-10-11  Bruno Haible  <bruno@clisp.org>
19077
19078         Indentation.
19079         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19080         indentation.
19081
19082 2010-10-11  Jim Meyering  <meyering@redhat.com>
19083
19084         spawn.in.h: make indentation consistent with parentheses
19085         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19086         Make indentation consistent with parentheses.
19087
19088 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19089
19090         Fix mismatched parens in previous commit
19091         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19092         parens.
19093
19094 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19095
19096         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19097
19098         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19099         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19100         * lib/malloca.c: Include "verify.h".
19101         (verify1): Remove, replacing with a verify call.
19102         * lib/relocwrapper.c (verify1): Likewise.
19103         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19104         Likewise.
19105         * modules/malloca (Depends-on): Add 'verify'.
19106         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19107         * modules/vasnprintf (Depends-on): Add 'verify'.
19108         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19109         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19110         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19111         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19112         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19113         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19114         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19115
19116         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19117
19118         Formerly the style was sometimes 2*X - 1, because the C standard
19119         was wrongly thought to disallow ?: in integral constant expressions.
19120         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19121         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19122         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19123         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19124         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19125         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19126         verify that time_t cannot be floating.
19127
19128 2010-10-08  Eric Blake  <eblake@redhat.com>
19129
19130         time: enforce recent POSIX ruling that time_t is integral
19131         * lib/time.in.h (__time_t_must_be_integral): Detect any
19132         problematic systems, allowing the rest of gnulib to assume POSIX.
19133
19134 2010-10-08  Jim Meyering  <meyering@redhat.com>
19135
19136         fdopendir: fix a bug on systems lacking openat and /proc support
19137         OpenBSD 4.7 is one such system.  The most noticeable effect was
19138         failure of any application making nontrivial use of fts: rm, du,
19139         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19140           ./rm: traversal failed: `a': Bad file descriptor
19141         Debugging that, you see that even though FD 6 was closed just
19142         prior to the opendir call in fd_clone_opendir, its resulting
19143         dir->dd_fd was 8, rather than the expected value of 6:
19144
19145         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19146         93                close (fd);
19147         (gdb) n
19148         94                dir = fd_clone_opendir (dupfd);
19149         (gdb) n
19150         95                saved_errno = errno;
19151         (gdb) p dir->dd_fd
19152         $11 = 8
19153
19154         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19155         The problem is that on OpenBSD, fd_clone_opendir has to resort
19156         to using the old-style save/restore CWD mechanism, due to its
19157         lack of openat/proc support, and *that* would steal the FD (6)
19158         that opendir was supposed to use.
19159
19160         The fix is to squirrel away the desired FD so that save_cwd uses a
19161         different one, and then free the dest FD right before calling opendir.
19162         That guarantees opendir will use the required file descriptor.
19163
19164         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19165
19166 2010-10-08  Bruno Haible  <bruno@clisp.org>
19167
19168         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19169         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19170
19171 2010-10-08  Bruno Haible  <bruno@clisp.org>
19172
19173         nanosleep: Make replacement POSIX compliant.
19174         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19175         is out of range.
19176         Reported by Jim Meyering.
19177
19178 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19179
19180         bootstrap: add hook for altering gnulib.mk, for Bison
19181         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19182         the Bison bootstrapping process can rewrite file names and variables
19183         in this file before later parts of 'bootstrap' use the file.
19184         Bison wants to include lib/gnulib.mk from the top-level makefile,
19185         so it needs the file names in this file to be relative to the top
19186         level, not relative to lib; plus it needs variable names to be
19187         rewritten.
19188         (slurp): Use the new function.
19189
19190         bootstrap: reformat for readability
19191         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19192
19193 2010-10-08  Eric Blake  <eblake@redhat.com>
19194
19195         docs: update cygwin progress
19196         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19197         1.7.7.
19198         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19199         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19200         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19201         * doc/posix-functions/carg.texi (carg): Likewise.
19202         * doc/posix-functions/cargf.texi (cargf): Likewise.
19203         * doc/posix-functions/casin.texi (casin): Likewise.
19204         * doc/posix-functions/casinf.texi (casinf): Likewise.
19205         * doc/posix-functions/casinh.texi (casinh): Likewise.
19206         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19207         * doc/posix-functions/catan.texi (catan): Likewise.
19208         * doc/posix-functions/catanf.texi (catanf): Likewise.
19209         * doc/posix-functions/catanh.texi (catanh): Likewise.
19210         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19211         * doc/posix-functions/ccos.texi (ccos): Likewise.
19212         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19213         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19214         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19215         * doc/posix-functions/cexp.texi (cexp): Likewise.
19216         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19217         * doc/posix-functions/cimag.texi (cimag): Likewise.
19218         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19219         * doc/posix-functions/clog.texi (clog): Likewise.
19220         * doc/posix-functions/clogf.texi (clogf): Likewise.
19221         * doc/posix-functions/conj.texi (conj): Likewise.
19222         * doc/posix-functions/conjf.texi (conjf): Likewise.
19223         * doc/posix-functions/cpow.texi (cpow): Likewise.
19224         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19225         * doc/posix-functions/cproj.texi (cproj): Likewise.
19226         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19227         * doc/posix-functions/creal.texi (creal): Likewise.
19228         * doc/posix-functions/crealf.texi (crealf): Likewise.
19229         * doc/posix-functions/csin.texi (csin): Likewise.
19230         * doc/posix-functions/csinf.texi (csinf): Likewise.
19231         * doc/posix-functions/csinh.texi (csinh): Likewise.
19232         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19233         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19234         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19235         * doc/posix-functions/ctan.texi (ctan): Likewise.
19236         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19237         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19238         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19239         * doc/posix-headers/complex.texi (complex.h): Likewise.
19240
19241 2010-10-07  Jim Meyering  <meyering@redhat.com>
19242
19243         parse-datetime: avoid compilation failure on OpenBSD 4.7
19244         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19245         This works around a compilation failure on OpenBSD 4.7:
19246         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19247
19248 2010-10-07  Eric Blake  <eblake@redhat.com>
19249
19250         docs: update cygwin progress
19251         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19252         1.7.6.
19253         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19254         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19255         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19256         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19257         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19258         Likewise.
19259         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19260         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19261         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19262         Likewise.
19263         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19264         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19265         Likewise.
19266         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19267         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19268         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19269         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19270         Likewise.
19271         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19272         Likewise.
19273         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19274
19275         docs: update parse-datetime history
19276         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19277         documentation of this function's history and alternatives.
19278
19279         cygwin: use more robust version check
19280         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19281         exclude an eventual cygwin 1.9.1.
19282         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19283         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19284         (gl_FUNC_STRCASESTR): Likewise.
19285         Reported by Bruno Haible.
19286
19287 2010-10-06  Bruno Haible  <bruno@clisp.org>
19288
19289         string, sys_select: Avoid #including large headers unless necessary.
19290         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19291         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19292         OSF/1, BeOS, Haiku.
19293         Reported by Jim Meyering.
19294
19295 2010-10-05  Eric Blake  <eblake@redhat.com>
19296
19297         memmem, strstr, strcasestr: fix bug with long periodic needle
19298         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19299         periodic needle having false positive.
19300         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19301         and cygwin 1.7.7.
19302         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19303         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19304         (gl_FUNC_STRCASESTR): Likewise.
19305         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19306         * tests/test-memmem.c (main): Expose the bug.
19307         * tests/test-strcasestr.c (main): Likewise.
19308         * tests/test-strstr.c (main): Likewise.
19309         * tests/test-c-strcasestr.c (main): Likewise.
19310         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19311         * doc/posix-functions/strstr.texi (strstr): Likewise.
19312         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19313         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19314
19315 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19316
19317         parse-datetime: do some more renaming
19318         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19319         parse_datetime, not get_date.  Mention the renaming.
19320         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19321         in comments.
19322         * m4/bison.m4: Likewise.
19323
19324 2010-10-05  Eric Blake  <eblake@redhat.com>
19325
19326         parse-datetime: better name than get_date
19327         * NEWS: Reword the deprecation notice.
19328         * modules/get_date: Rename to modules/parse-datetime.
19329         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19330         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19331         * lib/get_date.y: Rename to lib/parse-datetime.y.
19332         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19333         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19334         * doc/getdate.texi: Provide fallback wrapper.
19335         * lib/getdate.h: Move guts, and wrap...
19336         * lib/parse-datetime.h: ...new file.
19337         * lib/parse-datetime.y (get_date): Rename...
19338         (parse_datetime): ...to this.
19339         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19340         (gl_PARSE_DATETIME): ...to this.
19341         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19342         documentation.
19343         * modules/getdate (Files): Provide fallback docs and header.
19344         (Notice, Depends-on): Update references.
19345         * tests/test-parse-datetime.c: Likewise.
19346         * DEPENDENCIES: Likewise.
19347         * MODULES.html.sh (Date and time <time.h>): Likewise.
19348         * doc/parse-datetime.texi (Date input formats)
19349         (Authors of parse_datetime): Likewise.
19350         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19351         (Include): Likewise.
19352         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19353         * gnulib-tool: Likewise.
19354         * m4/bison.m4 (gl_BISON): Likewise.
19355         Suggested by Bruno Haible.
19356
19357 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19358
19359         more ports to Solaris tr, which needs [] around ranges
19360         * gnulib-tool: Solaris tr needs [] around ranges.
19361         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19362         * tests/test-pipe-filter-gi1.c (main): Likewise.
19363         * tests/test-pipe-filter-ii1.c (main): Likewise.
19364
19365 2010-10-05  Eric Blake  <eblake@redhat.com>
19366
19367         bootstrap: fix Solaris regression
19368         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19369         around ranges.
19370         Reported by Pádraig Brady.
19371
19372         bootstrap: work with pkg-config
19373         * build-aux/bootstrap (check_versions): Also transliterate - in
19374         prerequisite name.
19375         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19376         prerequisites that were already found, to avoid confusion.
19377         Reported by Justin Clift.
19378
19379         faccessat: remove unused wrappers
19380         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19381         presence of these wrappers dragged in -lgen on Solaris.
19382         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19383
19384 2010-10-05  Jim Meyering  <meyering@redhat.com>
19385
19386         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19387         * Makefile (sc_pragma_columns): New syntax-check rule.
19388
19389 2010-10-04  Bruno Haible  <bruno@clisp.org>
19390
19391         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19392         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19393         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19394         Reported by Bruce Korb and Eric Blake.
19395
19396 2010-10-04  Bruno Haible  <bruno@clisp.org>
19397
19398         threadlib: Make option --with-libpth-prefix work.
19399         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19400         use $LIBPTH, not just -lpth.
19401
19402 2010-10-04  Bruno Haible  <bruno@clisp.org>
19403
19404         Avoid line length limitation from HP NonStop system header files.
19405         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19406         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19407         * lib/ctype.in.h: Likewise.
19408         * lib/dirent.in.h: Likewise.
19409         * lib/errno.in.h: Likewise.
19410         * lib/fcntl.in.h: Likewise.
19411         * lib/float.in.h: Likewise.
19412         * lib/getopt.in.h: Likewise.
19413         * lib/iconv.in.h: Likewise.
19414         * lib/inttypes.in.h: Likewise.
19415         * lib/langinfo.in.h: Likewise.
19416         * lib/locale.in.h: Likewise.
19417         * lib/math.in.h: Likewise.
19418         * lib/netdb.in.h: Likewise.
19419         * lib/netinet_in.in.h: Likewise.
19420         * lib/poll.in.h: Likewise.
19421         * lib/pthread.in.h: Likewise.
19422         * lib/pty.in.h: Likewise.
19423         * lib/sched.in.h: Likewise.
19424         * lib/se-selinux.in.h: Likewise.
19425         * lib/search.in.h: Likewise.
19426         * lib/signal.in.h: Likewise.
19427         * lib/spawn.in.h: Likewise.
19428         * lib/stdarg.in.h: Likewise.
19429         * lib/stddef.in.h: Likewise.
19430         * lib/stdint.in.h: Likewise.
19431         * lib/stdio.in.h: Likewise.
19432         * lib/stdlib.in.h: Likewise.
19433         * lib/string.in.h: Likewise.
19434         * lib/strings.in.h: Likewise.
19435         * lib/sys_file.in.h: Likewise.
19436         * lib/sys_ioctl.in.h: Likewise.
19437         * lib/sys_select.in.h: Likewise.
19438         * lib/sys_socket.in.h: Likewise.
19439         * lib/sys_stat.in.h: Likewise.
19440         * lib/sys_time.in.h: Likewise.
19441         * lib/sys_times.in.h: Likewise.
19442         * lib/sys_utsname.in.h: Likewise.
19443         * lib/sys_wait.in.h: Likewise.
19444         * lib/sysexits.in.h: Likewise.
19445         * lib/termios.in.h: Likewise.
19446         * lib/time.in.h: Likewise.
19447         * lib/unistd.in.h: Likewise.
19448         * lib/wchar.in.h: Likewise.
19449         * lib/wctype.in.h: Likewise.
19450         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19451         * modules/ctype (Makefile.am): Likewise.
19452         * modules/dirent (Makefile.am): Likewise.
19453         * modules/errno (Makefile.am): Likewise.
19454         * modules/fcntl-h (Makefile.am): Likewise.
19455         * modules/float (Makefile.am): Likewise.
19456         * modules/getopt-posix (Makefile.am): Likewise.
19457         * modules/iconv-h (Makefile.am): Likewise.
19458         * modules/inttypes (Makefile.am): Likewise.
19459         * modules/langinfo (Makefile.am): Likewise.
19460         * modules/locale (Makefile.am): Likewise.
19461         * modules/math (Makefile.am): Likewise.
19462         * modules/netdb (Makefile.am): Likewise.
19463         * modules/netinet_in (Makefile.am): Likewise.
19464         * modules/poll-h (Makefile.am): Likewise.
19465         * modules/pthread (Makefile.am): Likewise.
19466         * modules/pty (Makefile.am): Likewise.
19467         * modules/sched (Makefile.am): Likewise.
19468         * modules/search (Makefile.am): Likewise.
19469         * modules/selinux-h (Makefile.am): Likewise.
19470         * modules/signal (Makefile.am): Likewise.
19471         * modules/spawn (Makefile.am): Likewise.
19472         * modules/stdarg (Makefile.am): Likewise.
19473         * modules/stddef (Makefile.am): Likewise.
19474         * modules/stdint (Makefile.am): Likewise.
19475         * modules/stdio (Makefile.am): Likewise.
19476         * modules/stdlib (Makefile.am): Likewise.
19477         * modules/string (Makefile.am): Likewise.
19478         * modules/strings (Makefile.am): Likewise.
19479         * modules/sys_file (Makefile.am): Likewise.
19480         * modules/sys_ioctl (Makefile.am): Likewise.
19481         * modules/sys_select (Makefile.am): Likewise.
19482         * modules/sys_socket (Makefile.am): Likewise.
19483         * modules/sys_stat (Makefile.am): Likewise.
19484         * modules/sys_time (Makefile.am): Likewise.
19485         * modules/sys_times (Makefile.am): Likewise.
19486         * modules/sys_utsname (Makefile.am): Likewise.
19487         * modules/sys_wait (Makefile.am): Likewise.
19488         * modules/sysexits (Makefile.am): Likewise.
19489         * modules/termios (Makefile.am): Likewise.
19490         * modules/time (Makefile.am): Likewise.
19491         * modules/unistd (Makefile.am): Likewise.
19492         * modules/wchar (Makefile.am): Likewise.
19493         * modules/wctype (Makefile.am): Likewise.
19494
19495 2010-10-04  Bruno Haible  <bruno@clisp.org>
19496
19497         read-file tests: Avoid a test failure on NonStop Kernel.
19498         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19499         a regular file.
19500         Reported by Joachim Schmitz <schmitz@hp.com>.
19501
19502 2010-10-03  Bruno Haible  <bruno@clisp.org>
19503
19504         gnulib-tool: Fixes for --create-testdir with --libtool.
19505         * gnulib-tool (func_get_automake_snippet): Don't augment
19506         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19507         an executable.
19508         (func_create_testdir): Handle module 'alloca' like func_import.
19509         Reported by Bruce Korb <bruce.korb@gmail.com>.
19510
19511 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19512
19513         Avoid some lines longer than 80 characters.
19514         * lib/stdint.in.h: Break long comment lines.
19515         * lib/math.in.h: Likewise.
19516         (_GL_NUM_UINT_WORDS): New macro, for readability.
19517         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19518         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19519         * lib/stdlib.in.h: Likewise.
19520         * lib/spawn.in.h: Likewise.
19521         * lib/sys_socket.in.h: Update an URL.
19522         * lib/sys_stat.in.h: Break long line.
19523
19524 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19525
19526         Improve pmccabe2html.
19527         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19528         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19529         when the sources change. Remove the line in the HTML about "Used
19530         ranges" (which implied that there might be other unused ranges),
19531         rename "Resume" to "Summary" (easier to understand for more users).
19532         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19533         styles, and some unnecessary blank lines.
19534
19535 2010-10-03  Bruno Haible  <bruno@clisp.org>
19536             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19537
19538         acl: Add support for ACLs on NonStop Kernel.
19539         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19540         Check whether the function aclsort() exists.
19541         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19542         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19543         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19544         (acl_nontrivial [HAVE_ACLSORT]: New function.
19545         (file_has_acl): Implement for NonStop Kernel.
19546         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19547         (qset_acl): Implement for NonStop Kernel.
19548         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19549         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19550         (main): Implement for NonStop Kernel.
19551         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19552         Kernel. Handle this flavor.
19553         * tests/test-set-mode-acl.sh: Likewise.
19554         * tests/test-copy-acl.sh: Likewise.
19555         * tests/test-copy-file.sh: Likewise.
19556
19557 2010-10-03  Bruno Haible  <bruno@clisp.org>
19558
19559         Info about ACLs on NonStop Kernel.
19560         * doc/acl-resources.txt: Add info about NonStop Kernel.
19561         References by Joachim Schmitz <schmitz@hp.com>.
19562
19563 2010-10-02  Bruno Haible  <bruno@clisp.org>
19564
19565         Define missing EDQUOT on NonStop Kernel.
19566         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19567         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19568         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19569         missing.
19570         * doc/posix-headers/errno.texi: Mention the NSK bug.
19571         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19572         Reported by Joachim Schmitz <schmitz@hp.com>.
19573
19574 2010-10-02  Bruno Haible  <bruno@clisp.org>
19575
19576         Update doc for POSIX:2008.
19577         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19578         Update URL of POSIX specification.
19579
19580 2010-10-02  Bruno Haible  <bruno@clisp.org>
19581
19582         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19583         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19584         from gnulib, not from Automake.
19585
19586 2010-10-02  Bruno Haible  <bruno@clisp.org>
19587
19588         New module 'system-posix'.
19589         * modules/system-posix: New file.
19590         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19591         module is present.
19592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19593         GNULIB_SYSTEM_POSIX.
19594         * modules/stdlib (Depends-on): Remove sys_wait.
19595         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19596         * doc/posix-functions/system.texi: Mention the new module.
19597         * doc/posix-headers/stdlib.texi: Likewise.
19598         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19599         define test_sys_wait_macros to a no-op.
19600         Reported by Sam Steingold <sds@gnu.org>.
19601
19602 2010-09-30  Bruno Haible  <bruno@clisp.org>
19603
19604         More renaming from 'getdate' to 'get_date'.
19605         * doc/get_date.texi: Renamed from doc/getdate.texi.
19606         * modules/get_date (Files): Update.
19607         * MODULES.html.sh (Date and time <time.h>): Update.
19608         * DEPENDENCIES: Update.
19609         * gnulib-tool: Update comment.
19610         * m4/bison.m4 (gl_BISON): Likewise.
19611         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19612
19613 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19614
19615         bootstrap: support ACLOCAL_FLAGS during aclocal
19616         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19617         can add additional -I dir for third-party .m4 files.
19618
19619 2010-09-30  Eric Blake  <eblake@redhat.com>
19620
19621         bootstrap: use glibtoolize on MacOS
19622         * build-aux/bootstrap (check_versions): Convert libtool into
19623         libtoolize.
19624         (tool search): Move libtool check earlier, and look for
19625         glibtoolize for MacOS.
19626         (gnulib_tool_options): Auto-add --libtool when appropriate.
19627         Reported by Justin Clift.
19628
19629         poll: fix typo that broke test on MacOS
19630         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19631         Reported by Justin Clift.
19632
19633         getdate: rename to get_date
19634         Note: getdate.h is not renamed, to minimize client impact.
19635         * modules/getdate: Mark obsolete.  Move old contents...
19636         * modules/get_date: ...to new module name.
19637         * modules/getdate-tests: Move...
19638         * modules/get_date-tests: ...here.
19639         * m4/getdate.m4: Move...
19640         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19641         * lib/getdate.y: Move...
19642         * lib/get_date.y: ...here.
19643         * tests/test-getdate.c: Move...
19644         * tests/test-get_date.c: ...here.
19645         * doc/posix-functions/getdate.texi (getdate): Update name.
19646         * NEWS: Mention the change.
19647
19648 2010-09-29  Bruno Haible  <bruno@clisp.org>
19649
19650         Separate the module 'waitpid' from the module 'sys_wait'.
19651         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19652         present.
19653         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19654         gl_MODULE_INDICATOR_FOR_TESTS.
19655         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19656         * modules/sys_wait (Depends-on): Remove waitpid.
19657         (Makefile.am): Substitute GNULIB_WAITPID.
19658         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19659         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19660         signature only if the 'waitpid' module is present.
19661         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19662         * NEWS: Mention the change.
19663         * modules/grantpt (Depends-on): Add waitpid.
19664         * modules/wait-process (Depends-on): Likewise.
19665
19666 2010-09-29  Bruno Haible  <bruno@clisp.org>
19667
19668         More tests for module 'sys_wait'.
19669         * modules/sys_wait-c++-tests: New file.
19670         * tests/test-sys_wait-c++.cc: New file.
19671         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19672         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19673
19674 2010-09-29  Bruno Haible  <bruno@clisp.org>
19675
19676         New module 'waitpid'.
19677         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19678         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19679         Don't include <process.h>.
19680         (waitpid): Declare only, using modern idiom.
19681         * m4/waitpid.m4: New file.
19682         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19683         * modules/waitpid: New file.
19684         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19685         (Makefile.am): Update.
19686         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19687
19688 2010-09-28  Bruno Haible  <bruno@clisp.org>
19689
19690         poll: Assume ANSI C.
19691         * lib/poll.c (poll): Use an ANSI C declaration.
19692
19693 2010-09-28  Bruno Haible  <bruno@clisp.org>
19694
19695         poll-h: Create poll.h on all platforms.
19696         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19697         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19698         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19699         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19700         (gl_REPLACE_POLL_H): Don't set POLL_H.
19701         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19702         * modules/poll-h (Depends-on): Add include_next.
19703         (Makefile.am): Create poll.h unconditionally. Substitute also
19704         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19705
19706 2010-09-28  Bruno Haible  <bruno@clisp.org>
19707
19708         Tests for module 'poll-h'.
19709         * modules/poll-h-c++-tests: New file.
19710         * tests/test-poll-h-c++.cc: New file.
19711
19712         Tests for module 'poll-h'.
19713         * modules/poll-h-tests: New file.
19714         * tests/test-poll-h.c: New file.
19715
19716 2010-09-28  Bruno Haible  <bruno@clisp.org>
19717
19718         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19719         * modules/poll-h (Depends-on): Add 'extensions'.
19720
19721 2010-09-28  Bruno Haible  <bruno@clisp.org>
19722
19723         New module 'poll-h'.
19724         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19725         (poll): Use modern idiom.
19726         * modules/poll-h: New file.
19727         * modules/poll (Files): Remove lib/poll.in.h.
19728         (Depends-on): Add poll-h.
19729         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19730         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19731         * m4/poll_h.m4: New file.
19732         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19733         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19734         and invoke gl_REPLACE_POLL_H.
19735         * lib/poll.c: Use common idiom.
19736         * tests/test-poll.c: Likewise.
19737         * doc/posix-headers/poll.texi: Mention the poll-h module.
19738         Suggested by Eric Blake.
19739
19740 2010-09-26  Bruno Haible  <bruno@clisp.org>
19741
19742         sys_wait: Implement WSTOPSIG.
19743         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19744         Reported by Simon Josefsson.
19745
19746 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19747
19748         stdlib, sys_wait: Avoid compilation error on mingw.
19749         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19750
19751 2010-09-26  Bruno Haible  <bruno@clisp.org>
19752
19753         stdlib tests: Avoid code duplication.
19754         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19755         * modules/sys_wait-tests (Files): Likewise.
19756         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19757         * tests/test-stdlib.c: Include test-sys_wait.h.
19758         (main): Invoke test_sys_wait_macros.
19759         * tests/test-sys_wait.c: Include test-sys_wait.h.
19760         (main): Invoke test_sys_wait_macros.
19761
19762 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19763
19764         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19765         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19766         sure Windows sockets are working before calling getaddrinfo.
19767         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19768         * doc/gnulib.texi (Windows sockets): Fix typo.
19769
19770 2010-09-25  Bruno Haible  <bruno@clisp.org>
19771
19772         Tests for module 'regex-quote'.
19773         * modules/regex-quote-tests: New file.
19774         * tests/test-regex-quote.c: New file.
19775
19776         New module 'regex-quote'.
19777         * lib/regex-quote.h: New file.
19778         * lib/regex-quote.c: New file.
19779         * modules/regex-quote: New file.
19780         Suggested by Reuben Thomas <rrt@sc3d.org>.
19781
19782 2010-09-24  Bruno Haible  <bruno@clisp.org>
19783
19784         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19785         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19786
19787 2010-09-23  Bruno Haible  <bruno@clisp.org>
19788
19789         setenv: Relax license.
19790         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19791         Blake.
19792         Requested by Eric Blake.
19793
19794 2010-09-22  Bruno Haible  <bruno@clisp.org>
19795
19796         termios: Relax license.
19797         * modules/termios (License): Change to LGPLv2+.
19798         Requested by Eric Blake.
19799
19800 2010-09-22  Bruno Haible  <bruno@clisp.org>
19801
19802         threadlib: Allow the package to change the default to 'no'.
19803         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19804         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19805         Reported by Paul Eggert.
19806
19807 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19808             Bruno Haible  <bruno@clisp.org>
19809
19810         Fix endless loop in mbmemcasecoll.
19811         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19812         byte.
19813         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19814
19815 2010-09-22  Bruno Haible  <bruno@clisp.org>
19816
19817         Tests for module 'memcoll'.
19818         * modules/memcoll-tests: New file.
19819         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19820
19821         memcoll, xmemcoll: Clarify size vs. length.
19822         * modules/memcoll.c (memcoll0): Clarify specification.
19823         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19824         passed to collate_error.
19825
19826 2010-09-22  Bruno Haible  <bruno@clisp.org>
19827
19828         Tests for module 'memcasecmp'.
19829         * modules/memcasecmp-tests: New file.
19830         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19831
19832 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19833
19834         * lib/pthread.in.h: Add split double-inclusion guard, and include
19835         system <pthread.h> if there is one.  Use @@-style as in other
19836         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19837         pthread.h doesn't.
19838         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19839         (pthread_mutexattr_settype, pthread_mutex_trylock):
19840         New static inline functions, if there's no system <pthread.h>.
19841         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19842         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19843         Approximate with mutexes if the system lacks spinlocks, as in
19844         MacOS.
19845         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19846         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19847         @@-style.  Check for spinlocks separately.
19848         (gl_PTHREAD_DEFAULTS): New macro.
19849         * modules/pthread: Redo to use a more typical style for in.h files.
19850
19851 2010-09-21  Eric Blake  <eblake@redhat.com>
19852
19853         net_if: enhance tests
19854         * tests/test-net_if.c (main): Move signature checks earlier.
19855         Print failures to stderr.
19856         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19857         Document the bug that we do not yet fix.
19858
19859 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19860
19861         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19862         about gnulib, not GSS.
19863
19864 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19865
19866         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19867         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19868         for Emacs.
19869         * build-aux/pmccabe2html: Make Makefile.am example code more
19870         cut-and-paste friendly.
19871
19872 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19873
19874         * tests/test-net_if.c: New file.
19875         * modules/net_if-tests: New file.
19876
19877 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19878
19879         pthread: add pthread_spin_destroy
19880         * lib/pthread.in.h (pthread_spin_destroy): New function.
19881
19882 2010-09-19  Bruno Haible  <bruno@clisp.org>
19883
19884         gnulib-tool: Fix --help output.
19885         * gnulib-tool (func_usage): Fix help message.
19886         Reported by Reuben Thomas <rrt@sc3d.org>.
19887
19888 2010-09-18  Jim Meyering  <meyering@redhat.com>
19889
19890         maint.mk: avoid unexpanded \n in two diagnostics
19891         * top/maint.mk (sc_prohibit_always_true_header_tests):
19892         Don't use a literal \n in a halt=... assignment.  It would not be
19893         expanded, and the two \n bytes would appear in the diagnostic output
19894         rather than the desired newline.  Use halt=$$(printf ... instead.
19895         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19896
19897 2010-09-18  Bruno Haible  <bruno@clisp.org>
19898
19899         netinet_in: Doc tweak.
19900         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19901         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19902
19903 2010-09-18  Jim Meyering  <meyering@redhat.com>
19904
19905         init.sh: correct an outdated comment
19906         * tests/init.sh (create_exe_shims_):  s/function/alias/
19907
19908         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19909         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19910         a file named "*.exe" is removed between the glob expansion and the
19911         processing of that oddly named file.
19912
19913 2010-09-17  Eric Blake  <eblake@redhat.com>
19914
19915         mirbsd: add some more support
19916         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19917         in BSD family.
19918         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19919         devices as OpenBSD.
19920         * m4/host-os.m4 (mirbsd): Add MirBSD.
19921
19922         tests: fix unportable assumption on sys/wait.h
19923         * tests/test-sys_wait.c (main): Relax test.
19924         * tests/test-stdlib.c (main): Likewise.
19925
19926         init.sh: accomodate directory with no .exes
19927         * tests/init.sh: Accomodate directory containing only scripts.
19928
19929         tests: avoid compiler warning
19930         * tests/test-stdlib.c (main): Use the variable.
19931
19932         fdutimens, fdutimensat: update signature, again
19933         * lib/utimens.h (gl_futimens): Delete, and move signature...
19934         (fdutimens): ...here.
19935         (fdutimensat): Rearrange signature.
19936         (lutimensat): Rename variable for clarity.
19937         * lib/fdutimensat.c (fdutimensat): Update signature.
19938         * lib/utimens.c (fdutimens): Likewise.
19939         (gl_futimens): Delete.
19940         (utimens, lutimens): Update callers.
19941         * lib/futimens.c (futimens): Likewise.
19942         * tests/test-fdutimensat.c: Likewise.
19943         * tests/test-utimens.c: Likewise.
19944         * tests/test-futimens.h: Update comment.
19945         * NEWS: Mention this.
19946         Suggested by Paul Eggert.
19947
19948 2010-09-17  Bruno Haible  <bruno@clisp.org>
19949
19950         Take over the maintenance of some older macros from Autoconf.
19951         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19952         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19953         GNU Autoconf.
19954         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19955         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19956
19957 2010-09-17  Eric Blake  <eblake@redhat.com>
19958
19959         fdutimensat: drop atflag validation
19960         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19961         with valid fd, to close a race scenario where futimens is
19962         unsupported and FILE was replaced by a symlink.
19963         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19964         accordingly.
19965         Suggested by Paul Eggert.
19966
19967 2010-09-16  Bruno Haible  <bruno@clisp.org>
19968
19969         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19970         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19971
19972 2010-09-16  Bruno Haible  <bruno@clisp.org>
19973
19974         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19975         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19976         login_tty exists.
19977         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19978
19979 2010-09-16  Bruno Haible  <bruno@clisp.org>
19980
19981         login_tty: Make the replacement code work on BSD systems.
19982         * lib/login_tty.c: Include <sys/ioctl.h>.
19983         (login_tty): Use ioctl TIOCSCTTY when available.
19984         * modules/login_tty (Depends-on): Add sys_ioctl.
19985         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19986
19987 2010-09-16  Bruno Haible  <bruno@clisp.org>
19988
19989         login_tty: Stricter unit test.
19990         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19991         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19992         and tcgetsid() after login_tty.
19993         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19994
19995 2010-09-16  Bruno Haible  <bruno@clisp.org>
19996
19997         New module 'tcgetsid'.
19998         * lib/tcgetsid.c: New file.
19999         * m4/tcgetsid.m4: New file.
20000         * modules/tcgetsid: New file.
20001         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20002         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20003         GNULIB_TCGETSID, HAVE_TCGETSID.
20004         * lib/termios.in.h: Include <sys/types.h>.
20005         (tcgetsid): New declaration.
20006         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20007         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20008         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20009         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20010
20011 2010-09-16  Bruno Haible  <bruno@clisp.org>
20012
20013         Tests for module 'termios'.
20014         * modules/termios-c++-tests: New file.
20015         * modules/termios-tests: New file.
20016         * tests/test-termios-c++.cc: New file.
20017         * tests/test-termios.c: New file.
20018
20019         New module 'termios'.
20020         * modules/termios: New file.
20021         * lib/termios.in.h: New file.
20022         * m4/termios_h.m4: New file.
20023         * doc/posix-headers/termios.texi: Mention the new module.
20024
20025 2010-09-16  Eric Blake  <eblake@redhat.com>
20026
20027         fdutimensat: add an atflag parameter
20028         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20029         * lib/utimens.h (fdutimensat): Update prototype.
20030         * tests/test-fdutimensat.c: Adjust test to match.
20031         * NEWS: Document the change.
20032         Suggested by Paul Eggert.
20033
20034 2010-09-16  Bruno Haible  <bruno@clisp.org>
20035
20036         Fix typos in comments.
20037         * lib/striconveh.h: Fix typo in comment.
20038         * lib/login_tty.c (login_tty): Likewise.
20039
20040 2010-09-15  Bruno Haible  <bruno@clisp.org>
20041
20042         stdlib: clarify MirBSD WEXITSTATUS bug
20043         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20044         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20045
20046 2010-09-15  Eric Blake  <eblake@redhat.com>
20047
20048         stdlib: work around MirBSD WEXITSTATUS bug
20049         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20050         * modules/stdlib (Depends-on): Add sys_wait.
20051         * tests/test-sys_wait.c (main): Enhance test.
20052         * tests/test-stdlib.c (main): Likewise.
20053         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20054
20055         docs: mention MacOS issue with WEXITSTATUS(constant)
20056         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20057         issue.
20058         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20059
20060         strnlen: add tests
20061         * modules/strnlen-tests: New file.
20062         * tests/test-strnlen.c: Likewise.
20063
20064 2010-09-14  Bruno Haible  <bruno@clisp.org>
20065
20066         unistr/base: Avoid link errors when module 'libunistring' is also used.
20067         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20068         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20069         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20070         Declare also when HAVE_LIBUNISTRING is set.
20071         Reported by Pádraig Brady <P@draigbrady.com>.
20072
20073 2010-09-14  Eric Blake  <eblake@redhat.com>
20074
20075         test-rawmemchr: make more robust
20076         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20077         (Depends-on, configure.ac): Add needed prerequisites to use it.
20078         * modules/memchr-tests (Files, Depends-on, configure.ac):
20079         Likewise, to avoid implicit reliance on memchr module prereqs.
20080         * tests/test-memchr.c (main): Ensure proper masking.
20081         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20082         reads.
20083
20084         memchr: detect glibc Alpha bug
20085         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20086         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20087         Alpha.
20088         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20089         * tests/test-memchr.c (main): Enhance test.
20090         Reported by Nelson H. F. Beebe.
20091
20092 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20093
20094         fts, getcwd, glob: audit for dirfd returning -1
20095         * lib/fts.c (opendir): Remove #define; no longer used.
20096         (opendirat): New arg PDIR_FD.  All callers changed.
20097         (fts_build, _opendir2): Use new opendirat to avoid the need for
20098         dirfd, or for checking whether dirfd returns a negative value.
20099         Don't use opendir; always use openat followed by fdopendir.
20100         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20101         it.
20102         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20103         returns -1 here.
20104         * modules/fts (Depends-on): Remove dirfd.
20105         * modules/getcwd (Depends-on): Likewise.
20106
20107 2010-09-13  Eric Blake  <eblake@redhat.com>
20108
20109         float: fix broken MirBSD header
20110         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20111         * doc/posix-headers/float.texi (float.h): Document it.
20112
20113 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20114
20115         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20116         * lib/fts.c (opendirat): New arg extra_flags.
20117         (__opendir2): Use it to avoid following symlinks when opening
20118         a directory, if symlinks are not supposed to be followed.  See
20119         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20120
20121         fdopendir: preserve argument fd before returning
20122         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20123         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20124         (fdopendir): Use them, arranging for FD to be open to the same
20125         directory that it was when it started.  (It might be temporarily
20126         closed while fdopendir is running, so this not thread- or
20127         signal-safe.)  Be careful to do the right thing even when file
20128         descriptors are scarce and dup fails with errno == EMFILE.  See
20129         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20130
20131 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20132
20133         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20134         * NEWS: Document change.
20135         * m4/regex.m4: Disable test for regoff_t size.
20136
20137 2010-09-13  Jim Meyering  <meyering@redhat.com>
20138
20139         fts: don't operate on an invalid file descriptor after failed dup
20140         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20141         negative file descriptor.
20142
20143 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20144
20145         savedir: add streamsavedir, deprecate fdsavedir
20146         * NEWS: Mention deprecation of fdsavedir.
20147         * lib/savedir.c (streamsavedir): New extern function, whose name
20148         ends in "savedir" to be consistent with the others.  This differs
20149         from savedirstream in that it doesn't close its argument.  The
20150         next version of GNU tar will use this instead of fdsavedir, to
20151         avoid some race conditions and conserve file descriptors.
20152         (savedirstream): Reimplement as a wrapper around streamsavedir.
20153         (fdsavedir): Add a comment deprecating this function.  As far as
20154         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20155         * lib/savedir.h (streamsavedir): New decl.
20156         (fdsavedir): Add a comment deprecating this.
20157
20158 2010-09-10  Bruno Haible  <bruno@clisp.org>
20159
20160         langinfo: Fix last commit.
20161         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20162         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20164
20165 2010-09-10  Bruno Haible  <bruno@clisp.org>
20166
20167         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20168         * lib/progreloc.c (O_EXEC): Define fallback.
20169
20170 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20171
20172         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20173         * NEWS: Document recent changes to fcntl-h.
20174         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20175         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20176         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20177         Similarly for O_SEARCH; this last was already true, but not documented.
20178         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20179         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20180         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20181         Likewise.
20182         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20183         is zero, not whether it is defined.
20184         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20185         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20186         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20187
20188 2010-09-10  Bruno Haible  <bruno@clisp.org>
20189
20190         langinfo, nl_langinfo: Fix for IRIX 5.3.
20191         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20192         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20193         HAVE_LANGINFO_YESEXPR.
20194         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20195         HAVE_LANGINFO_YESEXPR.
20196         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20197         HAVE_LANGINFO_T_FMT_AMPM is 0.
20198         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20199         HAVE_LANGINFO_YESEXPR is 0.
20200         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20201         NOEXPR.
20202         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20203         * doc/posix-functions/nl_langinfo.texi: Likewise.
20204         Reported by Eric Blake.
20205
20206 2010-09-10  Bruno Haible  <bruno@clisp.org>
20207
20208         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20209         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20210         on FreeBSD 8.0 and OpenBSD 4.6.
20211         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20212         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20213         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20214         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20215         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20216         ac_includes_default.
20217         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20218
20219 2010-09-09  Eric Blake  <eblake@redhat.com>
20220
20221         strsignal: work around NetBSD bug
20222         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20223         * lib/string.in.h (includes): Likewise.
20224         * doc/posix-functions/strsignal.texi (strsignal): Document the
20225         bug.
20226         Reported by Nelson H. F. Beebe.
20227
20228         gnulib-tool: work with NetBSD /bin/sh
20229         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20230         (func_get_description, func_get_comment, func_get_status)
20231         (func_get_notice, func_get_applicability, func_get_filelist)
20232         (func_get_dependencies, func_get_autoconf_early_snippet)
20233         (func_get_autoconf_snippet, func_get_automake_snippet)
20234         (func_get_include_directive, func_get_link_directive)
20235         (func_get_license, func_get_maintainer, func_import): Avoid
20236         shell syntax errors from parsing syntax extensions.
20237
20238 2010-09-09  Bruno Haible  <bruno@clisp.org>
20239
20240         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20241         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20242         a reliable way to determine whether the 'alias' command works.
20243
20244 2010-09-08  Jim Meyering  <meyering@redhat.com>
20245
20246         init.sh: penalize a set-x-impaired shell; don't disqualify it
20247         * tests/init.sh: Too many shells corrupt application stderr when
20248         you set -x, so we can't afford to disqualify them, since at least
20249         on Irix-6.5, that would disqualify all bourne shells.
20250         Instead, use a two-pass approach.
20251         On the first pass, try to find a shell that meets the stricter
20252         condition that set -x does not corrupt stderr.
20253         If no shell meets the stricter condition, retest each candidate
20254         shell, but without that extra condition.  Finally, when
20255         VERBOSE=yes is requested and set -x might cause trouble, simply
20256         issue a warning and refrain from enabling debug output.
20257
20258 2010-09-08  Eric Blake  <eblake@redhat.com>
20259
20260         unsetenv: fix OpenBSD bug
20261         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20262         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20263         documentation.
20264         Reported by Jim Meyering.
20265
20266         strtod: work around IRIX 6.5 bug
20267         * lib/strtod.c (strtod): Reparse number on shorter string if
20268         exponent parse was invalid.
20269         * tests/test-strtod.c (main): Add check for "0x1p 2".
20270         Reported by Tom G. Christensen.
20271
20272         getopt: optimize previous patch
20273         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20274         empty variable.  Speed up awk script.
20275         Reported by Paolo Bonzini.
20276
20277 2010-09-08  Jim Meyering  <meyering@redhat.com>
20278
20279         test.sh: disqualify shells for which set -x corrupts stderr
20280         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20281         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20282         appear in stderr output.  For example, this command:
20283             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20284         prints "P=1" on those two systems:
20285
20286 2010-09-08  Bruno Haible  <bruno@clisp.org>
20287
20288         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20289         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20290         commands, because some shells ignore redirections when there is an
20291         error in the command lookup.
20292         Reported by Eric Blake.
20293
20294 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20295
20296         * lib/regex.h: Fix a mention of `regex_compile' (should be
20297         `re_compile_pattern').
20298         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20299         (re_set_registers): Correct name of parameter in comment.
20300
20301         * doc/regex.texi: Add documentation for missing syntax flags.
20302         Remove commented-out documentation of defunct syntax option
20303         RE_NO_EMPTY_ALTS.
20304         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20305         Add documentation of re_set_registers.
20306         Document trick to re-use a pattern buffer by setting fastmap manually.
20307         Update documentation of struct re_pattern_buffer per public members.
20308         Uncomment documentation of equivalence class operators and
20309         collating symbol operators, since they are now implemented,
20310         Explain leftmost-longest matching in relation to alternatives.
20311         Tidy documentation of substring matching.
20312         Remove POSIX documentation, which is done better in
20313         glibc, and refer the reader there. Keep BSD API documentation, as
20314         that is not readily available elsewhere.
20315
20316 2010-09-07  Eric Blake  <eblake@redhat.com>
20317
20318         getopt: handle POSIXLY_CORRECT set but not exported
20319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20320         export state of POSIXLY_CORRECT, due to bash set -o posix.
20321         Reported by Dustin J. Mitchell.
20322
20323 2010-09-05  Bruno Haible  <bruno@clisp.org>
20324
20325         gnulib-tool: Highlight the changed options.
20326         * gnulib-tool (func_usage): Display the --import, --add-import,
20327         --remove-import explanations in bold font.
20328
20329 2010-09-06  Karl Berry  <karl@gnu.org>
20330
20331         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20332
20333 2010-09-05  Bruno Haible  <bruno@clisp.org>
20334
20335         uniwidth/width: Update comment.
20336         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20337         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20338
20339 2010-09-05  Bruno Haible  <bruno@clisp.org>
20340
20341         isinf, isnan: Relax license.
20342         * modules/isinf (License): Change from GPL to LGPL, with consent from
20343         Ben Pfaff.
20344         * modules/isnan (License): Likewise.
20345         Requested by Ludovic Courtès.
20346
20347 2010-09-04  Bruno Haible  <bruno@clisp.org>
20348
20349         gnulib-tool: Help migration from --import to --add-import or --update.
20350         * gnulib-tool: Emit a verbose error message when --import is used
20351         without any module name.
20352
20353 2010-09-04  Bruno Haible  <bruno@clisp.org>
20354
20355         Update doc about gnulib-tool.
20356         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20357         'gnulib-tool --update' in more detail.
20358         Reported by Eric Blake.
20359
20360 2010-09-04  Bruno Haible  <bruno@clisp.org>
20361
20362         gnulib-tool: Change --import. New options --add/remove-import.
20363         * gnulib-tool: New options --add-import, --remove-import.
20364         (func_usage): Document them.
20365         (have_associative): Define always.
20366         (func_import): In import mode, don't merge the specified settings with
20367         the cached settings. Implement remove-import mode.
20368         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20369         Explain when to use them versus --import.
20370         (Simple update): Use --add-import instead of --import.
20371         * NEWS: Mention the change.
20372
20373 2010-09-04  Bruno Haible  <bruno@clisp.org>
20374
20375         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20376         separate gnulib.mk.
20377
20378 2010-09-04  Bruno Haible  <bruno@clisp.org>
20379
20380         gnulib-tool: Don't talk about CVS any more.
20381         * gnulib-tool (func_usage, func_import): Write "version control"
20382         instead of CVS.
20383
20384 2010-09-04  Jim Meyering  <meyering@redhat.com>
20385
20386         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20387         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20388         false positives (whose names may be ill-chosen) when searching
20389         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20390         would cause a false-positive.
20391
20392         avoid coreutils "make distcheck" failure
20393         Coreutils tests with an absolute build directory name that contains
20394         a space.  Not quoting this directory name caused a failure.
20395         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20396         * tests/test-vc-list-files-cvs.sh: Likewise.
20397
20398 2010-09-04  Bruno Haible  <bruno@clisp.org>
20399
20400         gnulib-tool: Avoid error when run in a package without Makefile.am.
20401         * gnulib-tool: When collecting the m4dirs in a package that does not
20402         have a Makefile.am, eliminate those directories that contain no
20403         gnulib-cache.m4. Fix expression that counts these directories.
20404
20405 2010-09-04  Bruno Haible  <bruno@clisp.org>
20406
20407         update-copyright test: Improve output when perl is missing or too old.
20408         * tests/test-update-copyright.sh: Move test of Perl version down after
20409         the test whether Perl exists. Provide an explanation relating Perl's
20410         error message to Automake's SKIP: message.
20411
20412 2010-09-04  Bruno Haible  <bruno@clisp.org>
20413
20414         Don't augment PATH in TESTS_ENVIRONMENT.
20415         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20416         set abs_aux_dir instead of augmenting PATH.
20417         * modules/vc-list-files-tests (Makefile.am): Likewise.
20418         * tests/test-update-copyright.sh: Augment PATH here.
20419         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20420         path_prepend_.
20421         * tests/test-vc-list-files-git.sh: Likewise.
20422
20423 2010-09-04  Jim Meyering  <meyering@redhat.com>
20424
20425         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20426         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20427
20428 2010-09-04  Bruno Haible  <bruno@clisp.org>
20429
20430         strdup: Fix compilation error in C++ mode.
20431         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20432         the macro.
20433
20434 2010-09-04  Bruno Haible  <bruno@clisp.org>
20435
20436         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20437         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20438         macro into a function.
20439         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20440
20441 2010-09-04  Bruno Haible  <bruno@clisp.org>
20442
20443         Set PATH_SEPARATOR the same way autoconf does.
20444         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20445         the value of PATH_SEPARATOR the same way autoconf-generated configure
20446         scripts do.
20447         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20448         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20449
20450 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20451
20452         Set PATH_SEPARATOR the same way autoconf does.
20453         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20454         the same way autoconf-generated configure scripts do.
20455         * posix-modules: Likewise.
20456
20457 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20458
20459         hash: fix safe_hasher const typo
20460         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20461         const; otherwise, there is a type error later.
20462
20463 2010-09-02  Jim Meyering  <meyering@redhat.com>
20464
20465         test-update-copyright.sh: require perl 5.8.0
20466         * tests/test-update-copyright.sh: Require 5.8.0,
20467         which Tom G. Christensen has confirmed is adequate,
20468         while 5.6.1 is not.
20469
20470 2010-09-02  Eric Blake  <eblake@redhat.com>
20471
20472         tests: init.sh improvements for re-exec'ing with zsh
20473         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20474         -vx through shell re-exec.
20475         Reported by Tom G. Christensen.
20476
20477         wctype: fix typo in previous commit
20478         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20479         Reported by Ludovic Courtès.
20480
20481 2010-09-02  Jim Meyering  <meyering@redhat.com>
20482
20483         test-update-copyright.sh: skip test if Perl is too old
20484         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20485         Reported by Tom G. Christensen.
20486
20487 2010-09-02  Bruno Haible  <bruno@clisp.org>
20488
20489         wctype: Avoid compilation error on IRIX 6.5.30.
20490         * lib/wctype.in.h (iswblank): Declare with a replacement if
20491         REPLACE_ISWBLANK is set.
20492         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20493         declared. Set REPLACE_ISWBLANK.
20494         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20495         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20496         * doc/posix-headers/wctype.texi: Likewise.
20497         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20498
20499 2010-09-01  Bruno Haible  <bruno@clisp.org>
20500
20501         New module 'socketlib'.
20502         * modules/socketlib: New file.
20503         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20504         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20505         * modules/sockets (Depends-on): Add socketlib.
20506         Suggested by Sam Steingold <sds@gnu.org>.
20507
20508 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20509
20510         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20511
20512         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20513         when one needs search access to a directory but not read access.
20514         On systems where it is available, it works in some cases where
20515         O_RDONLY does not, namely on directories that are searchable but
20516         not readable, and which need only to be searchable.  If O_SEARCH
20517         is not available, fall back to the traditional method of using
20518         O_RDONLY.
20519
20520         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20521         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20522         when opening a directory that needs only to be searchable.
20523         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20524         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20525         * lib/openat-proc.c (openat_proc_name): Likewise.
20526         * lib/openat.c (openat_needs_fchdir): Likewise.
20527         * lib/save-cwd.c (save_cwd): Likewise.
20528         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20529
20530 2010-08-28  Bruno Haible  <bruno@clisp.org>
20531
20532         New module 'host-cpu-c-abi'.
20533         * modules/host-cpu-c-abi: New file.
20534         * m4/host-cpu-c-abi.m4: New file, based on part of
20535         clisp/src/m4/general.m4.
20536         Requested by Sam Steingold <sds@gnu.org>.
20537
20538 2010-08-31  Eric Blake  <eblake@redhat.com>
20539         and Jim Meyering  <meyering@redhat.com>
20540
20541         hash: factor, and guard against misbehaving hasher function
20542         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20543         of table->hasher's return value.  Also protect against a hash value
20544         so large that adding it to table->bucket results in a NULL pointer.
20545         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20546         Use it in place of open-coded check-and-abort.
20547
20548 2010-08-30  Bruno Haible  <bruno@clisp.org>
20549
20550         hash: silence spurious clang warning
20551         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20552         Reported by Eric Blake.
20553
20554 2010-08-30  Eric Blake  <eblake@redhat.com>
20555
20556         strstr, memmem, strcasestr: avoid leaked shell message
20557         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20558         FreeBSD.
20559         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20560         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20561
20562         tests: silence clang warning
20563         * tests/test-malloca.c (do_allocation): Avoid dead store.
20564
20565 2010-08-29  Bruno Haible  <bruno@clisp.org>
20566
20567         gettext: Fix recent mistake.
20568         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20569
20570 2010-08-29  Bruno Haible  <bruno@clisp.org>
20571
20572         selinux-h: Offer a --without-selinux option.
20573         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20574         --without-selinux was specified, skip all tests and define
20575         HAVE_SELINUX_SELINUX_H to 0.
20576         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20577         set LIB_SELINUX to empty.
20578         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20579         gl_LIBSELINUX. If --without-selinux was specified, replace
20580         selinux/context.h.
20581         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20582
20583 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20584             Bruno Haible  <bruno@clisp.org>
20585
20586         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20587         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20588         of HAVE_REALLOC.
20589         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20590         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20591         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20592         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20593
20594 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20595             Bruno Haible  <bruno@clisp.org>
20596
20597         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20598         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20599         HAVE_CALLOC.
20600         * lib/xmalloc.c: Update accordingly.
20601         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20602         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20603         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20604
20605 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20606             Bruno Haible  <bruno@clisp.org>
20607
20608         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20609         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20610         HAVE_MALLOC.
20611         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20612         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20613         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20614
20615 2010-08-29  Bruno Haible  <bruno@clisp.org>
20616
20617         Update modules list.
20618         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20619         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20620         (String handling <string.h>): Add astrxfrm.
20621         (File system functions): Add readlinkat.
20622
20623 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20624
20625         Tests for module 'realloc-gnu'.
20626         * modules/realloc-gnu-tests: New file.
20627         * tests/test-realloc-gnu.c: New file.
20628
20629         Tests for module 'calloc-gnu'.
20630         * modules/calloc-gnu-tests: New file.
20631         * tests/test-calloc-gnu.c: New file.
20632
20633         Tests for module 'malloc-gnu'.
20634         * modules/malloc-gnu-tests: New file.
20635         * tests/test-malloc-gnu.c: New file.
20636
20637 2010-08-28  Bruno Haible  <bruno@clisp.org>
20638
20639         Rename module 'realloc' -> 'realloc-gnu'.
20640         * modules/realloc-gnu: New file, copied from modules/realloc.
20641         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20642         obsolete.
20643         * modules/mgetgroups (Depends-on): Update.
20644         * doc/posix-functions/realloc.texi: Update.
20645         * NEWS: Mention the change.
20646
20647         Rename module 'calloc' -> 'calloc-gnu'.
20648         * modules/calloc-gnu: New file, copied from modules/calloc.
20649         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20650         obsolete.
20651         * doc/posix-functions/calloc.texi: Update.
20652         * NEWS: Mention the change.
20653
20654         Rename module 'malloc' -> 'malloc-gnu'.
20655         * modules/malloc-gnu: New file, copied from modules/malloc.
20656         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20657         obsolete.
20658         * modules/argp (Depends-on): Update.
20659         * modules/regex (Depends-on): Update.
20660         * doc/posix-functions/malloc.texi: Update.
20661         * NEWS: Mention the change.
20662
20663 2010-08-28  Eric Blake  <eblake@redhat.com>
20664
20665         pread, pwrite: add missing dependency
20666         * modules/pread (Depends-on): Add extensions.
20667         * modules/pwrite (Depends-on): Likewise.
20668
20669 2010-08-28  Bruno Haible  <bruno@clisp.org>
20670
20671         unistr/u*-strchr: Fix tests dependencies.
20672         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20673         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20674         Reported by Ian Beckwith <ianb@erislabs.net>.
20675
20676 2010-08-28  Bruno Haible  <bruno@clisp.org>
20677
20678         read-file: Don't occupy too much unused memory.
20679         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20680
20681 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20682             Eric Blake  <eblake@redhat.com>
20683             Bruno Haible  <bruno@clisp.org>
20684
20685         read-file: Avoid memory reallocations with regular files.
20686         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20687         (fread_file): With regular files, use the remaining length as the
20688         initial buffer size.  Check against overflow.
20689         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20690         sys_stat.
20691
20692 2010-08-28  Bruno Haible  <bruno@clisp.org>
20693
20694         ftello: Relax license.
20695         * modules/ftello (License): Relax to LGPLv2+.
20696         Reported by Eric Blake.
20697
20698 2010-08-28  Bruno Haible  <bruno@clisp.org>
20699
20700         Avoid relocwrapper link errors due to gnulib replacement functions.
20701         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20702         function.
20703         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20704
20705 2010-08-28  Bruno Haible  <bruno@clisp.org>
20706
20707         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20708         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20709         defined.
20710         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20711         Suggested by Eric Blake.
20712
20713 2010-08-28  Bruno Haible  <bruno@clisp.org>
20714
20715         sys_socket, netdb: Ensure socklen_t gets defined.
20716         * modules/sys_socket (Depends-on): Add socklen.
20717         * modules/netdb (Depends-on): Likewise.
20718         * modules/getaddrinfo (Depends-on): Remove socklen.
20719         * modules/getsockopt (Depends-on): Likewise.
20720         * modules/setsockopt (Depends-on): Likewise.
20721         * tests/test-sys_socket.c: Check that socklen_t is defined.
20722         * tests/test-netdb.c: Likewise.
20723         * m4/socklen.m4: Update comments.
20724         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20725
20726 2010-08-27  Eric Blake  <eblake@redhat.com>
20727
20728         login_tty: add missing dependency
20729         * modules/login_tty (Depends-on): Add pty.
20730
20731 2010-08-26  Eric Blake  <eblake@redhat.com>
20732
20733         lib-symbol-versions: fix m4 quoting
20734         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20735         format for AC_LINK_IFELSE.
20736
20737         glob: fix compile test
20738         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20739
20740         btowc: fix missing file
20741         * modules/btowc (Files): Also ship locale-fr.m4.
20742
20743         lseek: fix link test
20744         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20745         AC_LINK_IFELSE.
20746
20747         include_next: silence autoconf 2.68 warning
20748         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20749         AC_COMPILE_IFELSE as special.
20750         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20751         autoconf < 2.68.
20752
20753         acl: fix compilation test
20754         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20755         AC_COMPILE_IFELSE.
20756
20757 2010-08-26  Bruno Haible  <bruno@clisp.org>
20758
20759         Modernize AC_TRY_RUN invocations.
20760         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20761         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20762         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20763         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20764         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20765         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20766         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20767         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20768         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20769         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20770         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20771         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20772         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20773         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20774         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20775         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20776         gl_MBRLEN_NUL_RETVAL): Likewise.
20777         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20778         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20779         Likewise.
20780         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20781         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20782         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20783         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20784         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20785         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20786         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20787         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20788         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20789         Likewise.
20790         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20791         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20793         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20794         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20795         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20796         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20797         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20798         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20800
20801 2010-08-26  Bruno Haible  <bruno@clisp.org>
20802
20803         Modernize AC_TRY_LINK invocations.
20804         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20805         AC_TRY_LINK.
20806         * m4/argp.m4 (gl_ARGP): Likewise.
20807         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20808         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20809         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20810         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20811         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20812         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20813         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20814         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20815         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20816         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20817         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20818         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20819         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20820         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20821         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20822         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20823         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20824         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20825         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20826         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20827         Likewise.
20828         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20829         Likewise.
20830         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20831         Likewise.
20832         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20833         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20834         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20835         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20836         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20837         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20838         * m4/servent.m4 (gl_SERVENT): Likewise.
20839         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20840         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20841         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20842         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20843         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20844         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20845         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20846         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20847         * modules/tsearch-tests (configure.ac): Likewise.
20848
20849 2010-08-26  Bruno Haible  <bruno@clisp.org>
20850
20851         Modernize AC_TRY_COMPILE invocations.
20852         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20853         AC_TRY_COMPILE.
20854         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20855         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20856         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20857         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20858         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20859         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20860         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20861         * m4/lock.m4 (gl_LOCK): Likewise.
20862         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20863         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20864         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20865         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20866         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20867         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20868         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20869         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20870         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20871         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20872         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20873         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20874         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20875         extraneous semicolon.
20876
20877 2010-08-26  Jim Meyering  <meyering@redhat.com>
20878
20879         stat-time: relax license LGPL
20880         * modules/stat-time (License): Change from GPL to LGPL,
20881         with consent from all contributors, for use in libguile.
20882         Requested by Ludovic Courtès.
20883
20884 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20885
20886         poll: return immediately on POLLHUP.
20887         * lib/poll.c (poll): Always set timeout before wait_timeout is
20888         computed.
20889
20890 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20891
20892         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20893         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20894         rmdir ("dir/.//"), unlinkat.
20895
20896 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20897
20898         stdbool: avoid spurious failure with modern xlc
20899         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20900
20901 2010-08-24  Bruno Haible  <bruno@clisp.org>
20902
20903         getloadavg: simplify code
20904         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20905         gl_have_func. Update comments.
20906
20907 2010-08-24  Eric Blake  <eblake@redhat.com>
20908
20909         getloadavg: don't define SVR4 on cygwin
20910         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20911         only define SVR4 when -lkvm is required.
20912         Reported by Yaakov Selkowitz.
20913
20914 2010-08-24  Bruno Haible  <bruno@clisp.org>
20915
20916         priv-set: fix comment
20917         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20918
20919 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20920
20921         priv-set: fix comments
20922         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20923         to match code, as suggested by David Bartley in:
20924         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20925
20926 2010-08-23  Eric Blake  <eblake@redhat.com>
20927
20928         stdbool: avoid rejecting clang
20929         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20930         * tests/test-stdbool.c: Enable more tests if using the system
20931         <stdbool.h> instead of the gnulib replacement.
20932         (main): Move xlc bug test to a runtime test for all compilers.
20933         Reported by Anders Kaseorg.
20934
20935         argz: fix shell quoting issue
20936         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20937         Reported by Charles Wilson.
20938
20939 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20940             Erik Faye-Lund <kusmabite@gmail.com>
20941
20942         poll, select: handle ERROR_BROKEN_PIPE.
20943         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20944         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20945         * lib/select.c (win32_compute_revents): Do not mark a pipe
20946         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20947
20948 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20949
20950         fts: allow compilation with C++
20951         * lib/fts_.h: Specify extern "C" linkage with C++.
20952
20953 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20954
20955         Fix gnulib-tool sed script de-commentation for AIX sed.
20956         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20957         sed.
20958
20959 2010-08-17  Eric Blake  <eblake@redhat.com>
20960
20961         test-stddef: test for (some) offsetof bugs
20962         * tests/test-stddef.c: Enhance test to ensure correct type of
20963         offsetof.
20964         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20965         that we are not fixing at this time.
20966
20967 2010-08-15  Bruno Haible  <bruno@clisp.org>
20968
20969         stpncpy: Allow stpncpy to be defined as a macro.
20970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20971         if it's already correctly declared.
20972         * lib/string.in.h (stpncpy): Undefine before redefining.
20973         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20974
20975 2010-08-14  Bruno Haible  <bruno@clisp.org>
20976
20977         Rename module 'memxfrm' to 'amemxfrm'.
20978         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20979         (amemxfrm): Renamed from memxfrm.
20980         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20981         (amemxfrm): Renamed from memxfrm.
20982         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20983         * NEWS: Mention the change.
20984         * MODULES.html.sh (String handling <string.h>): Update.
20985         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20986         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20987         * lib/unicase/u16-casexfrm.c: Likewise.
20988         * lib/unicase/u32-casexfrm.c: Likewise.
20989         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20990         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20991         * lib/uninorm/u16-normxfrm.c: Likewise.
20992         * lib/uninorm/u32-normxfrm.c: Likewise.
20993         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20994         memxfrm.
20995         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20996         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20997         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20998         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20999         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21000         Suggested by Paul Eggert.
21001
21002 2010-08-14  Bruno Haible  <bruno@clisp.org>
21003
21004         Tests for module 'astrxfrm'.
21005         * modules/astrxfrm-tests: New file.
21006         * tests/test-astrxfrm.c: New file.
21007
21008         New module 'astrxfrm'.
21009         * lib/astrxfrm.h: New file.
21010         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21011         * modules/astrxfrm: New file.
21012
21013 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21014
21015         regex: Tweak doc.
21016         * doc/regex.texi (Overview): Don't mention regex.c.
21017         (GNU Regular Expression Compiling): Likewise.
21018         (Match-end-of-line Operator): Mention 'not_eol'.
21019
21020 2010-08-14  Brian Gough  <bjg@gnu.org>
21021             Bruno Haible  <bruno@clisp.org>
21022
21023         git-merge-changelog: add doc relating to use with bzr and hg.
21024         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21025
21026 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21027
21028         pthread: fix pthread.h creation for srcdir != builddir
21029         * modules/pthread (Makefile.am): Fix the rule to work also in a
21030         non-srcdir build.
21031
21032 2010-08-13  Karl Berry  <karl@gnu.org>
21033
21034         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21035         * doc/posix-*/*: force line break before @url of POSIX
21036         specifications.
21037         Suggested by Werner Lemberg.
21038
21039 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21040
21041         strtod: fix const diagnostic
21042         * lib/strtod.c (strtod): Don't assign const char * to char *,
21043         as this elicits a warning from GCC when warnings are enabled.
21044
21045 2010-08-10  Pádraig Brady <P@draigbrady.com>
21046         and Eric Blake  <eblake@redhat.com>
21047
21048         copy-acl: ignore ENOTSUP on HP-UX
21049         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21050         so that it is available for HP-UX.
21051         * lib/copy-acl.c (qcopy_acl): Use it.
21052         Reported by Patrick M. Callahan.
21053
21054 2010-08-10  Eric Blake  <eblake@redhat.com>
21055
21056         open, chown: relax license
21057         * modules/open (License): Change to LGPLv2+, with consent by all
21058         authors, for use in augeas.
21059         * modules/chown (License): Likewise.
21060         * modules/lchown (Likewise): Likewise.
21061         Requested by Adam Stokes.
21062
21063 2010-08-09  Karl Berry  <karl@gnu.org>
21064
21065         * build-aux/ar-lib: new file, import from Automake.
21066         * config/srclist.txt: autocheck for updates.
21067
21068 2010-08-09  Eric Blake  <eblake@redhat.com>
21069
21070         readlinkat: adjust client modules
21071         * modules/areadlinkat (Depends-on): Use readlinkat, not
21072         symlinkat.
21073         * modules/areadlinkat-with-size (Depends-on): Likewise.
21074
21075         mknod: be more vocal about danger of running tests as root
21076         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21077         root, since that is just asking for problems.
21078         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21079
21080         readlinkat: split into its own module
21081         * modules/symlinkat: Split readlinkat...
21082         * modules/readlinkat: ...into separate module.
21083         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21084         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21085         * lib/symlinkat.c (readlinkat): Move...
21086         * lib/readlinkat.c: ...into new file.
21087         * modules/symlinkat-tests: Split readlinkat test...
21088         * modules/readlinkat-tests: ...into separate module.
21089         * tests/test-symlinkat.c: Split...
21090         * tests/test-readlinkat.c: ...into new file.
21091         * NEWS: Document the split.
21092         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21093         * lib/unistd.in.h (readlinkat): Likewise.
21094         Suggested by Bruno Haible.
21095
21096 2010-08-08  Bruno Haible  <bruno@clisp.org>
21097
21098         memxfrm: Speed up.
21099         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21100         that usually only one call to strxfrm is necessary for each string
21101         part.
21102         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21103
21104 2010-08-07  Karl Berry  <karl@gnu.org>
21105
21106         * doc/posix-headers/limits.texi,
21107         * doc/posix-functions/malloc.texi,
21108         * doc/posix-functions/strsignal.texi: missing @item.
21109         * doc/ld-version-script.texi: spurious leading i.
21110         * doc/regex.texi (Interval Operators): no commas inside @var.
21111
21112 2010-08-01  Bruno Haible  <bruno@clisp.org>
21113
21114         Integrate the regex documentation.
21115         * doc/gnulib.texi: Define 'cn' index.
21116         (Regular expressions): New a chapter that includes regex.texi and
21117         regexprops-generic.texi.
21118         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21119         syntax.
21120
21121         Whitespace cleanup.
21122         * doc/regex.texi: Remove trailing spaces.
21123
21124         Add regex documentation.
21125         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21126         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21127         Written by Kathy A. Hargreaves and Karl Berry.
21128
21129 2010-08-01  Bruno Haible  <bruno@clisp.org>
21130
21131         link: Update documentation.
21132         * doc/posix-functions/link.texi: Update regarding Solaris.
21133
21134 2010-07-31  Bruno Haible  <bruno@clisp.org>
21135
21136         Update modules list.
21137         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21138         (String handling <string.h>): Add memcmp2, memxfrm.
21139         (Container data structures): Add xlist, xsublist, xoset.
21140         (Core language properties): Add alignof, unused-parameter.
21141         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21142         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21143         (Unibyte characters <ctype.h>): New section.
21144         (String handling <string.h>): New section.
21145         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21146         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21147         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21148         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21149         tan, tanh, tanl, y0, y1, yn.
21150         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21151         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21152         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21153         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21154         unlockpt, vdprintf, vdprintf-posix.
21155         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21156         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21157         xconcat-filename.
21158         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21159         getdtablesize, pipe2, pipe2-safer.
21160         (Security): New section.
21161         (Networking functions): Add accept4.
21162         (Signal handling): Add sigpipe.
21163         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21164         mbmemcasecoll.
21165         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21166         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21167         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21168         pipe-filter-ii.
21169         (Misc): Add argp-version-etc, login_tty, parse-duration.
21170
21171 2010-07-31  Bruno Haible  <bruno@clisp.org>
21172
21173         Improve doc in MODULES.html.
21174         * modules/linkat (Description): Add the word "function".
21175         * modules/mkfifo (Description): Likewise.
21176         * modules/mknod (Description): Likewise.
21177         * modules/remove (Description): Likewise.
21178         * modules/renameat (Description): Likewise.
21179         * modules/stat (Description): Likewise.
21180         * modules/symlink (Description): Likewise.
21181         * modules/unlink (Description): Likewise.
21182
21183 2010-07-31  Bruno Haible  <bruno@clisp.org>
21184
21185         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21186         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21187         option --enable/disable-c++ instead of --enable/disable-cxx.
21188         * NEWS: Mention the change.
21189
21190 2010-07-31  Bruno Haible  <bruno@clisp.org>
21191
21192         readlink, areadlink: Relax test a bit.
21193         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21194         alternative to ENOTDIR.
21195         * tests/test-areadlink.h (test_areadlink): Likewise.
21196         Reported by Rainer Tammer.
21197
21198 2010-07-31  Bruno Haible  <bruno@clisp.org>
21199
21200         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21201         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21202         character, perform the search using U_STRCHR.
21203         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21204         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21205         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21206         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21207         Suggested by Paolo Bonzini.
21208
21209 2010-07-31  Bruno Haible  <bruno@clisp.org>
21210
21211         unistr/u*-strstr: Fix dependencies.
21212         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21213         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21214         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21215
21216 2010-07-31  Bruno Haible  <bruno@clisp.org>
21217
21218         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21219         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21220         the beginning of the loop.
21221         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21222         cases in 'switch' statement.
21223
21224         unistr/u8-strchr: Fix several bugs.
21225         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21226         the string. When not found, return NULL, not a pointer near the end.
21227
21228         More tests for unistr/u8-strchr.
21229         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21230         that the function does not read past the first occurrence of the byte
21231         being searched.
21232         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21233         * tests/unistr/test-u16-strchr.c (main): New function.
21234         * tests/unistr/test-u32-strchr.c (main): New function.
21235
21236 2010-07-31  Bruno Haible  <bruno@clisp.org>
21237
21238         posix-modules: Ignore backup files of documentation files.
21239         * posix-modules: grep only through files named *.texi.
21240
21241 2010-07-31  Bruno Haible  <bruno@clisp.org>
21242
21243         symlinkat: Fix documentation.
21244         * doc/posix-functions/readlinkat.texi: Fix module name.
21245
21246 2010-07-31  Bruno Haible  <bruno@clisp.org>
21247
21248         fchownat: Replace also when chown has the trailing slash bug.
21249         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21250         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21251         introduced on 2010-04-10.
21252         Reported by Rainer Tammer.
21253
21254 2010-07-31  Bruno Haible  <bruno@clisp.org>
21255
21256         linkat: Work around AIX 7.1 bug.
21257         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21258         whether linkat handles trailing slash correctly. If not, replace linkat
21259         and define LINKAT_TRAILING_SLASH_BUG.
21260         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21261         check whether (fd1,file1) points to a directory if file1 or file2 ends
21262         in a slash. Code taken from lib/link.c.
21263         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21264         Reported by Rainer Tammer.
21265
21266 2010-07-31  Bruno Haible  <bruno@clisp.org>
21267
21268         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21269         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21270         This disables an xlc optimization that was causing wrong test results.
21271         Reported by Rainer Tammer.
21272
21273 2010-07-31  Bruno Haible  <bruno@clisp.org>
21274
21275         iconv: Work around AIX 6.1..7.1 bug.
21276         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21277         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21278         cross-compiling, guess no on all versions of AIX.
21279         Reported by Rainer Tammer.
21280
21281 2010-07-31  Bruno Haible  <bruno@clisp.org>
21282
21283         readlink: Relax test a bit.
21284         * tests/test-readlink.h (test_readlink): Allow different errno value
21285         when readlink is called with a file name that ends in / and refers to
21286         a file.
21287         Suggested by Eric Blake.
21288         Reported by Rainer Tammer.
21289
21290 2010-07-31  Bruno Haible  <bruno@clisp.org>
21291
21292         copysign: Does not require -lm on glibc systems.
21293         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21294         gl_COMMON_DOUBLE_MATHFUNC.
21295         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21296
21297 2010-07-31  Bruno Haible  <bruno@clisp.org>
21298
21299         duplocale: Work around AIX 7.1 bug.
21300         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21301         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21302         * lib/duplocale.c (rpl_duplocale): Update comment.
21303         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21304         Reported by Rainer Tammer.
21305
21306 2010-07-30  Bruno Haible  <bruno@clisp.org>
21307
21308         dirfd: Avoid link error on AIX 7.1.
21309         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21310         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21311         exist, set REPLACE_DIRFD.
21312         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21313         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21314         * doc/posix-functions/dirfd.texi: Update.
21315         Reported by Rainer Tammer.
21316
21317 2010-07-30  Eric Blake  <eblake@redhat.com>
21318
21319         strtod: next round of AIX fixes
21320         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21321         exponent.
21322         * tests/test-strtod.c (main): Enhance tests.
21323         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21324         Reported by Rainer Tammer.
21325
21326         futimens: fix configure check
21327         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21328         Reported by Bruno Haible.
21329
21330 2010-07-30  Bruno Haible  <bruno@clisp.org>
21331
21332         getline: Update regarding AIX.
21333         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21334         Reported by Rainer Tammer.
21335
21336 2010-07-30  Bruno Haible  <bruno@clisp.org>
21337
21338         wcwidth: Drop replacement on AIX 7.
21339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21340         AIX 7.
21341         Reported by Rainer Tammer.
21342
21343 2010-07-30  Bruno Haible  <bruno@clisp.org>
21344
21345         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21346         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21347         a 'char *'.
21348         Reported by Rainer Tammer.
21349
21350 2010-07-30  Bruno Haible  <bruno@clisp.org>
21351
21352         unlink: Update regarding AIX.
21353         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21354         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21355         Reported by Rainer Tammer.
21356
21357 2010-07-30  Bruno Haible  <bruno@clisp.org>
21358
21359         symlink: Update regarding AIX.
21360         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21361         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21362         Reported by Rainer Tammer.
21363
21364 2010-07-30  Bruno Haible  <bruno@clisp.org>
21365
21366         strndup: Update regarding AIX.
21367         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21368         AIX 7.
21369         Reported by Rainer Tammer.
21370
21371 2010-07-30  Bruno Haible  <bruno@clisp.org>
21372
21373         stat: Update regarding AIX.
21374         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21375         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21376         Reported by Rainer Tammer.
21377
21378 2010-07-30  Bruno Haible  <bruno@clisp.org>
21379
21380         truncl: Fix autoconf test.
21381         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21382         whether truncl works.
21383         Reported by Rainer Tammer.
21384
21385 2010-07-30  Bruno Haible  <bruno@clisp.org>
21386
21387         round: Update regarding AIX.
21388         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21389         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21390         Reported by Rainer Tammer.
21391
21392 2010-07-30  Bruno Haible  <bruno@clisp.org>
21393
21394         rename: Update regarding AIX.
21395         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21396         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21397         Reported by Rainer Tammer.
21398
21399 2010-07-30  Bruno Haible  <bruno@clisp.org>
21400
21401         printf.m4: Update regarding AIX.
21402         * m4/printf.m4: Update comments regarding AIX.
21403         Reported by Rainer Tammer.
21404
21405 2010-07-30  Bruno Haible  <bruno@clisp.org>
21406
21407         iconv: Update regarding AIX.
21408         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21409         AIX 7.
21410         Reported by Rainer Tammer.
21411
21412 2010-07-30  Bruno Haible  <bruno@clisp.org>
21413
21414         getopt: Update regarding AIX.
21415         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21416         no on AIX.
21417         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21418         Reported by Rainer Tammer.
21419
21420 2010-07-30  Bruno Haible  <bruno@clisp.org>
21421
21422         ldexpl; Update regarding AIX.
21423         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21424         on AIX 7.
21425         Reported by Rainer Tammer.
21426
21427 2010-07-30  Bruno Haible  <bruno@clisp.org>
21428
21429         frexpl: Update regarding AIX.
21430         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21431         on AIX 7.
21432         Reported by Rainer Tammer.
21433
21434 2010-07-30  Bruno Haible  <bruno@clisp.org>
21435
21436         open, fopen: Update regarding AIX.
21437         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21438         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21439         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21440         * doc/posix-functions/fopen.texi: Likewise.
21441         Reported by Rainer Tammer.
21442
21443 2010-07-30  Bruno Haible  <bruno@clisp.org>
21444
21445         chown: Update doc regarding AIX.
21446         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21447         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21448         Reported by Rainer Tammer.
21449
21450 2010-07-30  Eric Blake  <eblake@redhat.com>
21451
21452         strtod: fix bug in replacement function on AIX
21453         * lib/strtod.c (strtod): Special case broken "0x" parse in
21454         underlying strtod.
21455         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21456         * doc/posix-functions/strtod.texi (strtod): Likewise.
21457         Reported by Rainer Tammer.
21458
21459 2010-07-30  Bruno Haible  <bruno@clisp.org>
21460
21461         mbrlen: Fix cross-compilation guess for AIX.
21462         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21463         guess. Leftover from 2008-12-22.
21464
21465 2010-07-30  Bruno Haible  <bruno@clisp.org>
21466
21467         mbrtowc: Fix cross-compilation guess for AIX.
21468         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21469         guess. Leftover from 2008-12-21.
21470
21471 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21472
21473         init.sh: work around trap limitation of some shells
21474         * tests/init.sh (setup_): Move exit trap outside of shell function.
21475
21476 2010-07-29  Eric Blake  <eblake@redhat.com>
21477
21478         strtod: aid debugging
21479         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21480         understanding why strtod is rejected.
21481
21482 2010-07-28  Bruno Haible  <bruno@clisp.org>
21483
21484         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21485         * lib/unistr/u8-chr.c: Include <string.h>.
21486         * tests/unistr/test-u8-chr.c: Likewise.
21487         * tests/unistr/test-u16-chr.c: Likewise.
21488         * tests/unistr/test-u32-chr.c: Likewise.
21489         * tests/unistr/test-u8-strchr.c: Likewise.
21490         * tests/unistr/test-u16-strchr.c: Likewise.
21491         * tests/unistr/test-u32-strchr.c: Likewise.
21492         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21493         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21494         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21495         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21496
21497 2010-07-28  Bruno Haible  <bruno@clisp.org>
21498
21499         Use spaces for indentation, not tabs.
21500         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21501
21502 2010-07-27  Bruno Haible  <bruno@clisp.org>
21503
21504         mbspcasecmp: Fix function specification.
21505         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21506         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21507         Reported by Eric Blake <eblake@redhat.com>.
21508
21509 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21510
21511         timespec: use cast and not conditional, as truncation isn't possible
21512         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21513         instead of a conditional.  Comment about the situation in more detail.
21514         This undoes most of the 2009-10-29 patch.
21515
21516 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21517
21518         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21519         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21520         * lib/unistr/u8-strchr.c: Likewise.
21521         * modules/unistr/u8-chr: Depend on memchr.
21522
21523         unistr/u*-strchr: add tests
21524         * modules/unistr/u8-strchr-tests: New file.
21525         * modules/unistr/u16-strchr-tests: New file.
21526         * modules/unistr/u32-strchr-tests: New file.
21527         * tests/unistr/test-strchr.h: New file.
21528         * tests/unistr/test-u8-strchr.c: New file.
21529         * tests/unistr/test-u16-strchr.c: New file.
21530         * tests/unistr/test-u32-strchr.c: New file.
21531
21532         unistr/u*-chr: test multibyte sequences more
21533         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21534         test vector.
21535         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21536         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21537         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21538
21539         unistr/u*-chr: test multibyte sequences
21540         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21541
21542         unistr/u*-chr: prepare for multibyte tests
21543         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21544         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21545         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21546         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21547         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21548         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21549
21550 2010-07-18  Bruno Haible  <bruno@clisp.org>
21551
21552         unistr/u8-strchr: Optimize non-ASCII argument case.
21553         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21554         because the first byte often matches anyway.
21555         Reported by Pádraig Brady <P@draigbrady.com>.
21556
21557 2010-07-15  Karl Berry  <karl@gnu.org>
21558
21559         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21560
21561 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21562
21563         getcwd: on Solaris, work better if ancestors are inaccessible
21564         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21565         buffer and size, try again with a large buffer.  This works better
21566         on Solaris, since its getcwd succeeds even if the path to the root
21567         is inaccessible, and this is helpful in common cases such as .zfs
21568         hidden directories.  Problem reported by J Chapman Flack in
21569         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21570         Use system getcwd if it's declared, not merely if it's partly
21571         working; use the partly-working test only to avoid needless effort
21572         if the system getcwd fails.
21573         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21574         comment that was already obsolete and is now even more obsolete.
21575         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21576         now might call strdup.
21577
21578 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21579
21580         pthread: Add enough so that coreutils/src/sort.c compiles.
21581         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21582         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21583         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21584         Include <sys/types.h>, in case it defines pthread_t.
21585         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21586         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21587         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21588         (pthread_rwlockattr_t, pthread_spinlock_t):
21589         New typedefs, if HAVE_PTHREAD_T is not defined.
21590         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21591         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21592         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21593         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21594         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21595         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21596         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21597         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21598         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21599         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21600         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21601         New macros.
21602         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21603         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21604         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21605         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21606         (pthread_spin_unlock): New dummy functions.
21607         (pthread_create): Return EAGAIN; don't set errno.
21608         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21609         require AC_C_INLINE.
21610         * modules/pthread (Depends-on): Add sched, time.
21611         (pthread.h): Use AM_V_GEN.
21612
21613 2010-07-13  Bruno Haible  <bruno@clisp.org>
21614
21615         striconveh: Don't malloc memory if the result buffer is sufficient.
21616         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21617         buffer if its size is sufficient.
21618         Reported by Ludovic Courtès <ludo@gnu.org>.
21619
21620 2010-07-13  Bruno Haible  <bruno@clisp.org>
21621
21622         strtod: Add safety check.
21623         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21624
21625 2010-07-12  Bruno Haible  <bruno@clisp.org>
21626
21627         Unify tests that set gl_cv_func_ldexpl_no_libm.
21628         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21629         gl_FUNC_LDEXPL.
21630         (gl_FUNC_LDEXPL): Invoke it.
21631         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21632
21633 2010-07-12  Bruno Haible  <bruno@clisp.org>
21634
21635         Unify tests that set gl_cv_func_ldexp_no_libm.
21636         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21637         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21638         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21639         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21640         * modules/strtod (Files): Add m4/ldexp.m4.
21641
21642 2010-07-12  Bruno Haible  <bruno@clisp.org>
21643
21644         Unify tests that set gl_cv_func_frexpl_no_libm.
21645         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21646         gl_FUNC_FREXPL_NO_LIBM.
21647         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21648         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21649
21650 2010-07-12  Bruno Haible  <bruno@clisp.org>
21651
21652         Unify tests that set gl_cv_func_frexp_no_libm.
21653         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21654         gl_FUNC_FREXP_NO_LIBM.
21655         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21656         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21657
21658 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21659
21660         memcoll: clarify sizes versus lengths, document better, and tweak perf
21661         * lib/memcoll.c (strcoll_loop, memcoll0):
21662         Improve quality of descriptive comments.  Name variables
21663         consistently as to whether they are lengths (which do not include
21664         terminating null) versus sizes (which do).
21665         * lib/xmemcoll.c (xmemcoll0): Likewise.
21666         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21667         returned when s1size == 0; this is easier to compile and saves
21668         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21669
21670 2010-07-12  Bruno Haible  <bruno@clisp.org>
21671
21672         Tests for module '_Exit'.
21673         * modules/_Exit-tests: New file.
21674         * tests/test-_Exit.sh: New file.
21675         * tests/test-_Exit.c: New file.
21676
21677         New module '_Exit'.
21678         * lib/stdlib.in.h (__attribute__): New macro.
21679         (_Exit): New declaration.
21680         * lib/_Exit.c: New file.
21681         * m4/_Exit.m4: New file.
21682         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21683         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21684         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21685         * modules/_Exit: New file.
21686         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21687         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21688
21689 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21690
21691         strtod: make it more-accurate typically, and don't require libm
21692         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21693         Include limits.h.  Don't include string.h.
21694         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21695         (locale_isspace): New function, so that no casts are needed to
21696         check whether *s is a space.
21697         (ldexp): Provide an unused dummy if not available.
21698         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21699         (strtod): Use them.  This implementation prefers to use the
21700         underlying strtod if available, falling back on our own code
21701         only to fix known bugs.  This is more likely to produce an
21702         accurate result.  Also, it avoids the use of libm functions.
21703         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21704         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21705         was absent, but it caused a test failure with coreutils.
21706         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21707         with libm.
21708         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21709         * modules/strtod-tests (Makefile.am): Likewise.
21710
21711 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21712             Bruno Haible  <bruno@clisp.org>
21713
21714         unistr/u8-strchr: Optimize ASCII argument case.
21715         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21716
21717 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21718
21719         (x)memcoll: minor tweaks
21720         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21721         is after the type that it qualifies.
21722         (memcoll0): Likewise.
21723         * lib/memcoll.h (memcoll0): Likewise.
21724         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21725         * lib/xmemcoll.h (xmemcoll0): Likewise.
21726         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21727         differs from memcoll in that the NUL byte is part of the argument.
21728         Omit the abort-checks, as performance is a real issue here.  Plus,
21729         the checks were wrong anyway (an off-by-one error).  Omit local
21730         variable 'diff', as it's a bit clearer that way.
21731         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21732         no longer needed.
21733
21734 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21735
21736         (x)memcoll: speedup when input is known to be NUL delimited
21737         * lib/memcoll.c: Include stdlib.
21738         (memcoll0): New function.
21739         (strcoll_loop): New function, refactored for use in both memcoll
21740         and memcoll0.
21741         * lib/memcoll.h (memcoll0): Add prototype.
21742         * lib/xmemcoll.c (xmemcoll0): New function.
21743         (collate_error): New function, refactored for use in both xmemcoll
21744         and xmemcoll0.
21745         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21746         * m4/memcoll.m4: add inline invocation.
21747
21748 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21749
21750         * build-aux/bootstrap: Remove any local translations
21751         from the translation project synchronization directory,
21752         so that local only translations are not distributed.
21753
21754 2010-07-04  Bruno Haible  <bruno@clisp.org>
21755
21756         fsusage: Clarify which code applies to which platforms.
21757         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21758         platform.
21759         * lib/fsusage.c (get_fs_usage): Likewise.
21760
21761 2010-07-04  Bruno Haible  <bruno@clisp.org>
21762
21763         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21764         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21765         Reported by Martin Lambers <marlam@marlam.de>.
21766
21767 2010-07-04  Jim Meyering  <meyering@redhat.com>
21768
21769         hash: once again explicitly disallow insertion of NULL
21770         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21771         inserting a NULL pointer cannot work with these functions.
21772         Add a comment with details.
21773         This reverts part of the 2010-07-01 commit, 5bef1a35
21774         "hash: extend module to deal with non-pointer keys".
21775
21776 2010-07-01  Bruno Haible  <bruno@clisp.org>
21777
21778         stdbool: Update doc.
21779         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21780         Info from Christian Weisgerber <naddy@mips.inka.de>.
21781
21782 2010-07-01  Jim Meyering  <meyering@redhat.com>
21783
21784         hash: extend module to deal with non-pointer keys
21785         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21786         but that allows insertion of non-pointer entries.
21787         Do not disallow an ENTRY value of NULL.
21788         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21789         * lib/hash.h (hash_insert0): Declare.
21790
21791 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21792
21793         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21794         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21795         not present (i.e. with autoconf 2.59 and when using gettextize, not
21796         gnulib), require AC_GNU_SOURCE instead.
21797
21798 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21799
21800         idpriv-drop: Fix tests.
21801         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21802         not to the test-idpriv-droptemp program.
21803
21804 2010-06-29  Bruno Haible  <bruno@clisp.org>
21805
21806         string: Fix syntax error with g++ 2.96.
21807         * lib/string.in.h (__pure__): Remove definition.
21808         (_GL_ATTRIBUTE_PURE): New macro.
21809         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21810         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21811         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21812
21813 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21814
21815         unitypes: Fix bug introduced on 2010-05-18.
21816         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21817
21818 2010-06-22  Eric Blake  <eblake@redhat.com>
21819
21820         memmem: slight optimization
21821         * lib/str-two-way.h (critical_factorization): Update comments.
21822         Reduce work during factorization phase.
21823         Reported by Carlos Bueno <carlos@bueno.org>.
21824
21825 2010-06-21  Bruno Haible  <bruno@clisp.org>
21826
21827         Fix HAVE_CALLOC_POSIX misnomer.
21828         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21829         !HAVE_CALLOC_POSIX.
21830         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21831         HAVE_CALLOC_POSIX.
21832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21833         instead of HAVE_CALLOC_POSIX.
21834         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21835         HAVE_CALLOC_POSIX.
21836
21837         Use modern idiom for calloc() replacement.
21838         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21839         AC_FUNC_CALLOC.
21840         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21841         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21842         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21843         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21844         (gl_REPLACE_CALLOC): New macro.
21845
21846 2010-06-21  Bruno Haible  <bruno@clisp.org>
21847
21848         Fix HAVE_REALLOC_POSIX misnomer.
21849         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21850         !HAVE_REALLOC_POSIX.
21851         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21852         HAVE_REALLOC_POSIX.
21853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21854         instead of HAVE_REALLOC_POSIX.
21855         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21856         HAVE_REALLOC_POSIX.
21857
21858         Use modern idiom for realloc() replacement.
21859         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21860         AC_FUNC_REALLOC.
21861         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21862         Autoconf's AC_FUNC_REALLOC.
21863         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21864         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21865         (gl_REPLACE_REALLOC): New macro.
21866         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21867
21868 2010-06-21  Bruno Haible  <bruno@clisp.org>
21869
21870         Fix HAVE_MALLOC_POSIX misnomer.
21871         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21872         !HAVE_MALLOC_POSIX.
21873         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21874         HAVE_MALLOC_POSIX.
21875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21876         instead of HAVE_MALLOC_POSIX.
21877         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21878         HAVE_MALLOC_POSIX.
21879
21880         Use modern idiom for malloc() replacement.
21881         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21882         AC_FUNC_MALLOC.
21883         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21884         Autoconf's AC_FUNC_MALLOC.
21885         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21886         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21887         (gl_REPLACE_MALLOC): New macro.
21888         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21889
21890 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21891
21892         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21893         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21894         This macro takes 3 arguments, not 4.
21895
21896 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21897
21898         ipv6: fix detection under mingw
21899         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21900         in6_addr.
21901
21902 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21903
21904         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21905         that strtod() works when cross-compiling to a glibc version known
21906         to work.
21907
21908 2010-06-15  Bruno Haible  <bruno@clisp.org>
21909
21910         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21911
21912 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21913
21914         select: Correct timeout.
21915         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21916
21917 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21918
21919         git-version-gen: init shell var to avoid env var influence
21920         * build-aux/git-version-gen (v): Init shell var to empty.
21921
21922 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21923
21924         priv-set: Don't assume that priv.h exists merely because getppriv does.
21925         See Jan Andersen's bug report about AIX 5L in
21926         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21927         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21928         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21929         * lib/priv-set.h: Likewise.
21930         * tests/test-priv-set.c: Likewise.
21931
21932 2010-06-13  Bruno Haible  <bruno@clisp.org>
21933
21934         relocatable: Make it easier to test whether to install wrappers.
21935         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21936         RELOCATABLE_VIA_WRAPPER.
21937
21938 2010-06-13  Bruno Haible  <bruno@clisp.org>
21939
21940         gnulib-tool: Display specified modules and dependencies differently.
21941         * gnulib-tool (func_show_module_list): New function.
21942         (func_import, func_create_testdir): Invoke it.
21943         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21944
21945 2010-06-13  Bruno Haible  <bruno@clisp.org>
21946
21947         gnulib-tool: Align code of func_import and func_create_testdir.
21948         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21949         specified_modules.
21950
21951 2010-06-12  Jim Meyering  <meyering@redhat.com>
21952
21953         test-inttostr: avoid spurious failure on Solaris 9
21954         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21955         to accept "%ju".  Reported by Bruno Haible.
21956
21957 2010-06-11  Jim Meyering  <meyering@redhat.com>
21958
21959         test-sys_socket: mark variables as used more readably
21960         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21961         as "used" explicitly via (void) statement casts.  This is more
21962         readable than using them in an artificial return expression.
21963         Suggestion from Bruno Haible.
21964
21965 2010-06-11  Bruno Haible  <bruno@clisp.org>
21966
21967         Avoid some more warnings from "gcc -Wwrite-strings".
21968         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21969         to 'const char *'.
21970         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21971         * tests/test-c-strcasestr.c (main): Likewise.
21972         * tests/test-mbscasestr1.c (main): Likewise.
21973         * tests/test-mbscasestr2.c (main): Likewise.
21974         * tests/test-memmem.c (main): Likewise.
21975         * tests/test-strstr.c (main): Likewise.
21976         * tests/test-strcasestr.c (main): Likewise.
21977
21978 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21979
21980         init.sh: change framework_failure_ to fail with status 99, not 1
21981         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21982         automake's parallel-tests rule that this is an unexpected failure,
21983         even if the test is listed in XFAIL_TESTS.
21984
21985 2010-06-11  Jim Meyering  <meyering@redhat.com>
21986
21987         test-inttostr: avoid warnings about 4-6KB literal strings
21988         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21989         Include "macros.h", for its definition of ASSERT.
21990         (CK): s/assert/ASSERT/
21991         * modules/inttostr-tests (Files): Add macros.h.
21992
21993         init.sh: don't use $ME_ or skip_ before they are defined
21994         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21995         their first uses.  Also hoist their companions: warn_, fail_,
21996         framework_failure_, $stderr_fileno.  Prompted by a patch from
21997         Stefano Lattarini.
21998
21999         test-sys_socket: avoid set-but-not-used warnings from gcc
22000         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22001         avoid warning about set-but-not-used variables.
22002
22003         test-xvasprintf: avoid 'const' discard warnings
22004         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22005         "const" when assigning from literal strings.
22006         (test_xasprintf): Add "void" in function argument list to placate
22007         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22008
22009         tests: avoid compilation warnings in argmatch and exclude tests...
22010         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22011         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22012         Since it always exits, declare with the "noreturn" attribute.
22013         * tests/test-argmatch.c: Likewise.
22014
22015         tests: avoid 'const' discard warnings in mbsstr tests
22016         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22017         * tests/test-mbsstr2.c (main): Likewise.
22018
22019         test-verify: avoid warning from gcc's -Wmissing-declarations
22020         * tests/test-verify.c (function): Declare to be static.
22021
22022         test-inttostr.c: include <string.h> for use of strcmp
22023         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22024
22025         test-linkat: avoid failed assertion on "other" architectures
22026         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22027         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22028         sparc: https://bugs.launchpad.net/bugs/591968
22029
22030 2010-06-11  Jim Meyering  <meyering@redhat.com>
22031
22032         printf.m4: avoid autoconf's "Expanded Before Required" warning
22033         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22034         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22035         autoconf warning.
22036
22037 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22038
22039         Replacement header templates are now named with ".in", not "_".
22040         * doc/gnulib-intro.texi: Correct.
22041
22042 2010-06-10  Jim Meyering  <meyering@redhat.com>
22043
22044         inttostr-tests: depend on snprintf, not snprintf-posix
22045         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22046         snprintf-posix, to avoid this aclocal failure:
22047           missing file gnulib-tests/vasnprintf.c
22048           configure.ac:45: error: expected source file, required through \
22049           AC_LIBSOURCES, not found
22050
22051 2010-06-10  Jim Meyering  <meyering@redhat.com>
22052
22053         inttostr: add a new function, inttostr, and tests
22054         The namesake function was not available.  The existence of the
22055         template file, inttostr.c makes its addition nontrivial.
22056         * lib/anytostr.c: Rename from inttostr.c.
22057         (anytostr): Rename from inttostr.
22058         * lib/inttostr.c: New file.
22059         * modules/inttostr (Files): Add anytostr.c.
22060         (Makefile.am): Set lib_SOURCES instead of ...
22061         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22062         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22063         * lib/offtostr.c: Likewise.
22064         * lib/uinttostr.c: Likewise.
22065         * lib/umaxtostr.c: Likewise.
22066         * modules/inttostr-tests: New file.
22067         * tests/test-inttostr.c: New file.  Test these functions.
22068
22069 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22070             Bruno Haible  <bruno@clisp.org>
22071
22072         Add "Extending Gnulib" chapter to manual.
22073         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22074         chapter.
22075         (Extending Gnulib): New chapter.
22076         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22077         chapter.
22078
22079 2010-06-09  Bruno Haible  <bruno@clisp.org>
22080
22081         Avoid relocwrapper link errors due to gnulib replacement functions.
22082         * lib/areadlink.c: Use the system's malloc, realloc functions.
22083         (areadlink): Set errno to ENOMEM explicitly.
22084         * modules/areadlink (Depends-on): Remove malloc-posix.
22085         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22086
22087 2010-06-09  Bruno Haible  <bruno@clisp.org>
22088
22089         Avoid relocwrapper link errors due to gnulib replacement functions.
22090         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22091         * lib/malloca.c: Likewise.
22092         * lib/relocatable.c: Likewise.
22093         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22094         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22095         * lib/setenv.c: Use the system's malloc, realloc functions.
22096         * lib/strerror.c: Use the system's sprintf function.
22097         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22098
22099 2010-06-04  Bruno Haible  <bruno@clisp.org>
22100
22101         Prefer documented low-level autoconf macro names.
22102         * m4/lib-link.m4: Use m4_translit instead of translit.
22103         * m4/environ.m4: Likewise.
22104         * m4/mathfunc.m4: Likewise.
22105         * m4/onceonly.m4: Likewise.
22106         * m4/stdint.m4: Likewise.
22107         Suggested by Eric Blake.
22108
22109 2010-06-04  Martin Lambers  <marlam@marlam.de>
22110             Bruno Haible  <bruno@clisp.org>
22111
22112         havelib: Allow library names with '+' characters.
22113         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22114         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22115
22116 2010-06-09  Bruno Haible  <bruno@clisp.org>
22117
22118         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22119         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22120         realloc failed.
22121
22122 2010-06-08  Peter Simons  <simons@cryp.to>
22123
22124         maint.mk: make the news-check rule more configurable
22125         * top/maint.mk (news-check-lines-spec): New variable.
22126         (news-check): Use "sed -n 1,10p" in place of "head".
22127
22128 2010-06-07  Jim Meyering  <meyering@redhat.com>
22129
22130         do-release-commit-and-tag: fix typo in --help
22131         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22132
22133         regex: avoid new dead-code warning with gcc-4.6.0
22134         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22135         if-block containing a while-loop.  It's been unused for at least
22136         5 years.
22137
22138 2010-06-05  Bruno Haible  <bruno@clisp.org>
22139
22140         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22141         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22142
22143 2010-06-04  Bruno Haible  <bruno@clisp.org>
22144
22145         Update to GNU gettext 0.18.1.
22146         * modules/gettext (configure.ac): Require gettext infrastructure from
22147         version 0.18.1.
22148
22149 2010-06-03  Bruno Haible  <bruno@clisp.org>
22150
22151         Don't use AC_LIBOBJ with file names in subdirectories.
22152         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22153         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22154         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22155         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22156         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22157         gl_LIBUNISTRING_LIBSOURCE.
22158         (Makefile.am): Augment lib_SOURCES here, conditionally.
22159         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22160
22161 2010-06-03  Bruno Haible  <bruno@clisp.org>
22162
22163         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22164         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22165         expansion does not end with a newline.
22166         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22167         unnecessary newline.
22168
22169 2010-06-03  Bruno Haible  <bruno@clisp.org>
22170
22171         Reduce dependencies.
22172         * tests/test-quotearg.h: New file, extracted from
22173         tests/test-quotearg.c.
22174         * tests/test-quotearg-simple.c: New file, extracted from
22175         tests/test-quotearg.c.
22176         * tests/test-quotearg.c: Don't include <ctype.h>.
22177         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22178         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22179         use_quote_double_quotes, use_quotearg_colon): Moved to
22180         tests/test-quotearg.h.
22181         (results_g, flag_results, custom_quotes, custom_results): Moved
22182         to tests/test-quotearg-simple.c.
22183         (main): Moved the part that does not depend on gettext to
22184         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22185         performed.
22186         * modules/quotearg-simple: New file.
22187         * modules/quotearg-simple-tests: New file.
22188         * modules/quotearg (Depends-on): Add quotearg-simple.
22189         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22190         (Files): Add tests/test-quotearg.h.
22191         Reported by Paolo Bonzini.
22192
22193 2010-06-03  Bruno Haible  <bruno@clisp.org>
22194
22195         Reduce dependencies.
22196         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22197
22198 2010-06-03  Bruno Haible  <bruno@clisp.org>
22199
22200         time: Undefine more broken macros.
22201         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22202         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22203         Reported by Eric Blake.
22204
22205 2010-06-03  Bruno Haible  <bruno@clisp.org>
22206
22207         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22208         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22209         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22210         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22211         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22212         Reported by Ludovic Courtès <ludo@gnu.org>.
22213
22214 2010-06-02  Eric Blake  <eblake@redhat.com>
22215
22216         time: work with mingw + pthreads-win32 library
22217         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22218         if timespec is defined only in pthread.h.
22219         * modules/time (Makefile.am): Substitute it.
22220         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22221         <pthread.h>, when needed.
22222         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22223         from the library.
22224
22225 2010-05-31  Bruno Haible  <bruno@clisp.org>
22226
22227         Avoid expanding two macros in the wrong order.
22228         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22229         gl_LIBUNISTRING if it is defined.
22230         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22231         autoconf >= 2.64.
22232         Reported by Ludovic Courtès <ludo@gnu.org>.
22233
22234 2010-05-27  Jim Meyering  <meyering@redhat.com>
22235
22236         maint.mk: also prohibit "#undef" of always-defined symbols
22237         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22238         Allow more than one space before the symbol name.
22239         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22240         the regexp uses alternation.
22241
22242 2010-05-26  Eric Blake  <eblake@redhat.com>
22243
22244         maint.mk: avoid echo -e
22245         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22246         Convert all uses of echo -* to printf.
22247         Reported by Matthias Bolte.
22248
22249 2010-05-25  Bruno Haible  <bruno@clisp.org>
22250
22251         Update to GNU gettext 0.18, part 2.
22252         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22253         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22254
22255 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22256
22257         Add missing include in test-pwrite.c.
22258         * tests/test-pwrite.c: Include string.h, for strcmp.
22259
22260 2010-05-24  Bruno Haible  <bruno@clisp.org>
22261
22262         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22263
22264 2010-05-24  Bruno Haible  <bruno@clisp.org>
22265
22266         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22267         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22268         iconveh_error argument.
22269         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22270         U_STRCONV_TO_LOCALE.
22271         * lib/unistr/u16-strcoll.c: Likewise.
22272         * lib/unistr/u32-strcoll.c: Likewise.
22273         * modules/unistr/u8-strcoll (Depends-on): Add
22274         uniconv/u8-strconv-to-enc, localcharset. Remove
22275         uniconv/u8-strconv-to-locale.
22276         (configure.ac): Bump version number.
22277         * modules/unistr/u16-strcoll (Depends-on): Add
22278         uniconv/u16-strconv-to-enc, localcharset. Remove
22279         uniconv/u16-strconv-to-locale.
22280         (configure.ac): Bump version number.
22281         * modules/unistr/u32-strcoll (Depends-on): Add
22282         uniconv/u32-strconv-to-enc, localcharset. Remove
22283         uniconv/u32-strconv-to-locale.
22284         (configure.ac): Bump version number.
22285
22286 2010-05-24  Bruno Haible  <bruno@clisp.org>
22287
22288         Avoid a test failure on NetBSD 5.0.
22289         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22290         an iconv() bug.
22291
22292 2010-05-24  Bruno Haible  <bruno@clisp.org>
22293
22294         Adjust #include directive style.
22295         * modules/regex (Includes): Recommend to write <regex.h>.
22296
22297 2010-05-24  Bruno Haible  <bruno@clisp.org>
22298
22299         regex: Don't require alloca.
22300         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22301         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22302         only inside if (0).
22303
22304 2010-05-23  Jim Meyering  <meyering@redhat.com>
22305
22306         test-renameat.c: include <sys/stat.h>
22307         * tests/test-renameat.c: Include <sys/stat.h>; required for
22308         definition of S_IS* macros.
22309
22310 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22311
22312         Update maintainer documentation for 'relocatable-prog' module.
22313         * doc/relocatable-maint.texi: Update.
22314         Comments by Bruno Haible.
22315
22316 2010-05-23  Bruno Haible  <bruno@clisp.org>
22317
22318         git-merge-changelog: Enable --split-merged-entry by default.
22319         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22320         (usage): Don't mention this option any more.
22321         Reported by Ralf Wildenhues.
22322
22323 2010-05-23  Jim Meyering  <meyering@redhat.com>
22324
22325         test-pwrite: do not leave behind a test file named "out"
22326         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22327         The trivial-looking use of init.sh is really necessary.
22328         It ensures that the temporary file, "out", is created in
22329         a temporary directory, and removed upon termination.
22330         * tests/test-pwrite.sh: Re-add file.
22331         * modules/pwrite-tests: Reference it.
22332
22333 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22334
22335         Fix output redirection buglet in init.sh.
22336         * tests/init.sh: Fix redirection of stderr.
22337
22338 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22339
22340         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22341
22342 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22343
22344         * modules/valgrind-tests: New file.
22345         * m4/valgrind-tests.m4: New file.
22346         * doc/valgrind-tests.texi: New file.
22347         * doc/gnulib.texi (Running self-tests under valgrind): New
22348         section.
22349
22350 2010-05-19  Bruno Haible  <bruno@clisp.org>
22351
22352         Clean up dead code in recent commit.
22353         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22354         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22355         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22356         Suggested by Paolo Bonzini.
22357
22358 2010-05-19  Bruno Haible  <bruno@clisp.org>
22359
22360         Avoid valgrind error reports from libunistring.
22361         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22362         * modules/libunistring (Files): Add it.
22363         * modules/libunistring-optional (Files): Likewise.
22364
22365 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22366             Bruno Haible  <bruno@clisp.org>
22367
22368         New module 'libunistring-optional'.
22369         * modules/libunistring-optional: New file.
22370         * m4/libunistring-base.m4: New file.
22371         * m4/libunistring-optional.m4: New file.
22372         * lib/unicase.in.h: Renamed from lib/unicase.h.
22373         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22374         * lib/unictype.in.h: Renamed from lib/unictype.h.
22375         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22376         * lib/uniname.in.h: Renamed from lib/uniname.h.
22377         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22378         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22379         * lib/unistr.in.h: Renamed from lib/unistr.h.
22380         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22381         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22382         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22383         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22384         gl_LIBUNISTRING. If the library was found, determine the installed
22385         version and set LIBUNISTRING_VERSION.
22386         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22387         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22388         handle a configuration option --with-included-libunistring.
22389         * modules/libunistring (Files): Add m4/absolute-header.m4.
22390         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22391         Add m4/libunistring-base.m4.
22392         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22393         (Makefile.am): Build unicase.h from unicase.in.h.
22394         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22395         Add m4/libunistring-base.m4.
22396         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22397         (Makefile.am): Build uniconv.h from uniconv.in.h.
22398         * modules/unictype/base (Files): Use unictype.in.h instead of
22399         unictype.h. Add m4/libunistring-base.m4.
22400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22401         (Makefile.am): Build unictype.h from unictype.in.h.
22402         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22403         Add m4/libunistring-base.m4.
22404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22405         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22406         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22407         Add m4/libunistring-base.m4.
22408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22409         (Makefile.am): Build uniname.h from uniname.in.h.
22410         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22411         Add m4/libunistring-base.m4.
22412         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22413         (Makefile.am): Build uninorm.h from uninorm.in.h.
22414         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22415         unistdio.h. Add m4/libunistring-base.m4.
22416         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22417         (Makefile.am): Build unistdio.h from unistdio.in.h.
22418         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22419         Add m4/libunistring-base.m4.
22420         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22421         (Makefile.am): Build unistr.h from unistr.in.h.
22422         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22423         Add m4/libunistring-base.m4.
22424         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22425         (Makefile.am): Build unitypes.h from unitypes.in.h.
22426         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22427         Add m4/libunistring-base.m4.
22428         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22429         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22430         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22431         uniwidth.h. Add m4/libunistring-base.m4.
22432         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22433         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22434         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22435         instead of augmenting lib_SOURCES.
22436         * modules/unicase/empty-suffix-context: Likewise.
22437         * modules/unicase/locale-language: Likewise.
22438         * modules/unicase/tolower: Likewise.
22439         * modules/unicase/totitle: Likewise.
22440         * modules/unicase/toupper: Likewise.
22441         * modules/unicase/u8-casecmp: Likewise.
22442         * modules/unicase/u8-casecoll: Likewise.
22443         * modules/unicase/u8-casefold: Likewise.
22444         * modules/unicase/u8-casexfrm: Likewise.
22445         * modules/unicase/u8-ct-casefold: Likewise.
22446         * modules/unicase/u8-ct-tolower: Likewise.
22447         * modules/unicase/u8-ct-totitle: Likewise.
22448         * modules/unicase/u8-ct-toupper: Likewise.
22449         * modules/unicase/u8-is-cased: Likewise.
22450         * modules/unicase/u8-is-casefolded: Likewise.
22451         * modules/unicase/u8-is-lowercase: Likewise.
22452         * modules/unicase/u8-is-titlecase: Likewise.
22453         * modules/unicase/u8-is-uppercase: Likewise.
22454         * modules/unicase/u8-prefix-context: Likewise.
22455         * modules/unicase/u8-suffix-context: Likewise.
22456         * modules/unicase/u8-tolower: Likewise.
22457         * modules/unicase/u8-totitle: Likewise.
22458         * modules/unicase/u8-toupper: Likewise.
22459         * modules/unicase/u16-casecmp: Likewise.
22460         * modules/unicase/u16-casecoll: Likewise.
22461         * modules/unicase/u16-casefold: Likewise.
22462         * modules/unicase/u16-casexfrm: Likewise.
22463         * modules/unicase/u16-ct-casefold: Likewise.
22464         * modules/unicase/u16-ct-tolower: Likewise.
22465         * modules/unicase/u16-ct-totitle: Likewise.
22466         * modules/unicase/u16-ct-toupper: Likewise.
22467         * modules/unicase/u16-is-cased: Likewise.
22468         * modules/unicase/u16-is-casefolded: Likewise.
22469         * modules/unicase/u16-is-lowercase: Likewise.
22470         * modules/unicase/u16-is-titlecase: Likewise.
22471         * modules/unicase/u16-is-uppercase: Likewise.
22472         * modules/unicase/u16-prefix-context: Likewise.
22473         * modules/unicase/u16-suffix-context: Likewise.
22474         * modules/unicase/u16-tolower: Likewise.
22475         * modules/unicase/u16-totitle: Likewise.
22476         * modules/unicase/u16-toupper: Likewise.
22477         * modules/unicase/u32-casecmp: Likewise.
22478         * modules/unicase/u32-casecoll: Likewise.
22479         * modules/unicase/u32-casefold: Likewise.
22480         * modules/unicase/u32-casexfrm: Likewise.
22481         * modules/unicase/u32-ct-casefold: Likewise.
22482         * modules/unicase/u32-ct-tolower: Likewise.
22483         * modules/unicase/u32-ct-totitle: Likewise.
22484         * modules/unicase/u32-ct-toupper: Likewise.
22485         * modules/unicase/u32-is-cased: Likewise.
22486         * modules/unicase/u32-is-casefolded: Likewise.
22487         * modules/unicase/u32-is-lowercase: Likewise.
22488         * modules/unicase/u32-is-titlecase: Likewise.
22489         * modules/unicase/u32-is-uppercase: Likewise.
22490         * modules/unicase/u32-prefix-context: Likewise.
22491         * modules/unicase/u32-suffix-context: Likewise.
22492         * modules/unicase/u32-tolower: Likewise.
22493         * modules/unicase/u32-totitle: Likewise.
22494         * modules/unicase/u32-toupper: Likewise.
22495         * modules/unicase/ulc-casecmp: Likewise.
22496         * modules/unicase/ulc-casecoll: Likewise.
22497         * modules/unicase/ulc-casexfrm: Likewise.
22498         * modules/uniconv/u8-conv-from-enc: Likewise.
22499         * modules/uniconv/u8-conv-to-enc: Likewise.
22500         * modules/uniconv/u8-strconv-from-enc: Likewise.
22501         * modules/uniconv/u8-strconv-from-locale: Likewise.
22502         * modules/uniconv/u8-strconv-to-enc: Likewise.
22503         * modules/uniconv/u8-strconv-to-locale: Likewise.
22504         * modules/uniconv/u16-conv-from-enc: Likewise.
22505         * modules/uniconv/u16-conv-to-enc: Likewise.
22506         * modules/uniconv/u16-strconv-from-enc: Likewise.
22507         * modules/uniconv/u16-strconv-from-locale: Likewise.
22508         * modules/uniconv/u16-strconv-to-enc: Likewise.
22509         * modules/uniconv/u16-strconv-to-locale: Likewise.
22510         * modules/uniconv/u32-conv-from-enc: Likewise.
22511         * modules/uniconv/u32-conv-to-enc: Likewise.
22512         * modules/uniconv/u32-strconv-from-enc: Likewise.
22513         * modules/uniconv/u32-strconv-from-locale: Likewise.
22514         * modules/uniconv/u32-strconv-to-enc: Likewise.
22515         * modules/uniconv/u32-strconv-to-locale: Likewise.
22516         * modules/unictype/bidicategory-byname: Likewise.
22517         * modules/unictype/bidicategory-name: Likewise.
22518         * modules/unictype/bidicategory-of: Likewise.
22519         * modules/unictype/bidicategory-test: Likewise.
22520         * modules/unictype/block-list: Likewise.
22521         * modules/unictype/block-test: Likewise.
22522         * modules/unictype/category-C: Likewise.
22523         * modules/unictype/category-Cc: Likewise.
22524         * modules/unictype/category-Cf: Likewise.
22525         * modules/unictype/category-Cn: Likewise.
22526         * modules/unictype/category-Co: Likewise.
22527         * modules/unictype/category-Cs: Likewise.
22528         * modules/unictype/category-L: Likewise.
22529         * modules/unictype/category-Ll: Likewise.
22530         * modules/unictype/category-Lm: Likewise.
22531         * modules/unictype/category-Lo: Likewise.
22532         * modules/unictype/category-Lt: Likewise.
22533         * modules/unictype/category-Lu: Likewise.
22534         * modules/unictype/category-M: Likewise.
22535         * modules/unictype/category-Mc: Likewise.
22536         * modules/unictype/category-Me: Likewise.
22537         * modules/unictype/category-Mn: Likewise.
22538         * modules/unictype/category-N: Likewise.
22539         * modules/unictype/category-Nd: Likewise.
22540         * modules/unictype/category-Nl: Likewise.
22541         * modules/unictype/category-No: Likewise.
22542         * modules/unictype/category-P: Likewise.
22543         * modules/unictype/category-Pc: Likewise.
22544         * modules/unictype/category-Pd: Likewise.
22545         * modules/unictype/category-Pe: Likewise.
22546         * modules/unictype/category-Pf: Likewise.
22547         * modules/unictype/category-Pi: Likewise.
22548         * modules/unictype/category-Po: Likewise.
22549         * modules/unictype/category-Ps: Likewise.
22550         * modules/unictype/category-S: Likewise.
22551         * modules/unictype/category-Sc: Likewise.
22552         * modules/unictype/category-Sk: Likewise.
22553         * modules/unictype/category-Sm: Likewise.
22554         * modules/unictype/category-So: Likewise.
22555         * modules/unictype/category-Z: Likewise.
22556         * modules/unictype/category-Zl: Likewise.
22557         * modules/unictype/category-Zp: Likewise.
22558         * modules/unictype/category-Zs: Likewise.
22559         * modules/unictype/category-and: Likewise.
22560         * modules/unictype/category-and-not: Likewise.
22561         * modules/unictype/category-byname: Likewise.
22562         * modules/unictype/category-name: Likewise.
22563         * modules/unictype/category-none: Likewise.
22564         * modules/unictype/category-of: Likewise.
22565         * modules/unictype/category-or: Likewise.
22566         * modules/unictype/category-test: Likewise.
22567         * modules/unictype/combining-class: Likewise.
22568         * modules/unictype/ctype-alnum: Likewise.
22569         * modules/unictype/ctype-alpha: Likewise.
22570         * modules/unictype/ctype-blank: Likewise.
22571         * modules/unictype/ctype-cntrl: Likewise.
22572         * modules/unictype/ctype-digit: Likewise.
22573         * modules/unictype/ctype-graph: Likewise.
22574         * modules/unictype/ctype-lower: Likewise.
22575         * modules/unictype/ctype-print: Likewise.
22576         * modules/unictype/ctype-punct: Likewise.
22577         * modules/unictype/ctype-space: Likewise.
22578         * modules/unictype/ctype-upper: Likewise.
22579         * modules/unictype/ctype-xdigit: Likewise.
22580         * modules/unictype/decimal-digit: Likewise.
22581         * modules/unictype/digit: Likewise.
22582         * modules/unictype/mirror: Likewise.
22583         * modules/unictype/numeric: Likewise.
22584         * modules/unictype/property-alphabetic: Likewise.
22585         * modules/unictype/property-ascii-hex-digit: Likewise.
22586         * modules/unictype/property-bidi-arabic-digit: Likewise.
22587         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22588         * modules/unictype/property-bidi-block-separator: Likewise.
22589         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22590         * modules/unictype/property-bidi-common-separator: Likewise.
22591         * modules/unictype/property-bidi-control: Likewise.
22592         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22593         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22594         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22595         * modules/unictype/property-bidi-european-digit: Likewise.
22596         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22597         * modules/unictype/property-bidi-left-to-right: Likewise.
22598         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22599         * modules/unictype/property-bidi-other-neutral: Likewise.
22600         * modules/unictype/property-bidi-pdf: Likewise.
22601         * modules/unictype/property-bidi-segment-separator: Likewise.
22602         * modules/unictype/property-bidi-whitespace: Likewise.
22603         * modules/unictype/property-byname: Likewise.
22604         * modules/unictype/property-combining: Likewise.
22605         * modules/unictype/property-composite: Likewise.
22606         * modules/unictype/property-currency-symbol: Likewise.
22607         * modules/unictype/property-dash: Likewise.
22608         * modules/unictype/property-decimal-digit: Likewise.
22609         * modules/unictype/property-default-ignorable-code-point: Likewise.
22610         * modules/unictype/property-deprecated: Likewise.
22611         * modules/unictype/property-diacritic: Likewise.
22612         * modules/unictype/property-extender: Likewise.
22613         * modules/unictype/property-format-control: Likewise.
22614         * modules/unictype/property-grapheme-base: Likewise.
22615         * modules/unictype/property-grapheme-extend: Likewise.
22616         * modules/unictype/property-grapheme-link: Likewise.
22617         * modules/unictype/property-hex-digit: Likewise.
22618         * modules/unictype/property-hyphen: Likewise.
22619         * modules/unictype/property-id-continue: Likewise.
22620         * modules/unictype/property-id-start: Likewise.
22621         * modules/unictype/property-ideographic: Likewise.
22622         * modules/unictype/property-ids-binary-operator: Likewise.
22623         * modules/unictype/property-ids-trinary-operator: Likewise.
22624         * modules/unictype/property-ignorable-control: Likewise.
22625         * modules/unictype/property-iso-control: Likewise.
22626         * modules/unictype/property-join-control: Likewise.
22627         * modules/unictype/property-left-of-pair: Likewise.
22628         * modules/unictype/property-line-separator: Likewise.
22629         * modules/unictype/property-logical-order-exception: Likewise.
22630         * modules/unictype/property-lowercase: Likewise.
22631         * modules/unictype/property-math: Likewise.
22632         * modules/unictype/property-non-break: Likewise.
22633         * modules/unictype/property-not-a-character: Likewise.
22634         * modules/unictype/property-numeric: Likewise.
22635         * modules/unictype/property-other-alphabetic: Likewise.
22636         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22637         * modules/unictype/property-other-grapheme-extend: Likewise.
22638         * modules/unictype/property-other-id-continue: Likewise.
22639         * modules/unictype/property-other-id-start: Likewise.
22640         * modules/unictype/property-other-lowercase: Likewise.
22641         * modules/unictype/property-other-math: Likewise.
22642         * modules/unictype/property-other-uppercase: Likewise.
22643         * modules/unictype/property-paired-punctuation: Likewise.
22644         * modules/unictype/property-paragraph-separator: Likewise.
22645         * modules/unictype/property-pattern-syntax: Likewise.
22646         * modules/unictype/property-pattern-white-space: Likewise.
22647         * modules/unictype/property-private-use: Likewise.
22648         * modules/unictype/property-punctuation: Likewise.
22649         * modules/unictype/property-quotation-mark: Likewise.
22650         * modules/unictype/property-radical: Likewise.
22651         * modules/unictype/property-sentence-terminal: Likewise.
22652         * modules/unictype/property-soft-dotted: Likewise.
22653         * modules/unictype/property-space: Likewise.
22654         * modules/unictype/property-terminal-punctuation: Likewise.
22655         * modules/unictype/property-test: Likewise.
22656         * modules/unictype/property-titlecase: Likewise.
22657         * modules/unictype/property-unassigned-code-value: Likewise.
22658         * modules/unictype/property-unified-ideograph: Likewise.
22659         * modules/unictype/property-uppercase: Likewise.
22660         * modules/unictype/property-variation-selector: Likewise.
22661         * modules/unictype/property-white-space: Likewise.
22662         * modules/unictype/property-xid-continue: Likewise.
22663         * modules/unictype/property-xid-start: Likewise.
22664         * modules/unictype/property-zero-width: Likewise.
22665         * modules/unictype/scripts: Likewise.
22666         * modules/unictype/syntax-c-ident: Likewise.
22667         * modules/unictype/syntax-c-whitespace: Likewise.
22668         * modules/unictype/syntax-java-ident: Likewise.
22669         * modules/unictype/syntax-java-whitespace: Likewise.
22670         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22671         * modules/unilbrk/u8-width-linebreaks: Likewise.
22672         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22673         * modules/unilbrk/u16-width-linebreaks: Likewise.
22674         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22675         * modules/unilbrk/u32-width-linebreaks: Likewise.
22676         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22677         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22678         * modules/uniname/uniname: Likewise.
22679         * modules/uninorm/canonical-decomposition: Likewise.
22680         * modules/uninorm/composition: Likewise.
22681         * modules/uninorm/decomposing-form: Likewise.
22682         * modules/uninorm/decomposition: Likewise.
22683         * modules/uninorm/filter: Likewise.
22684         * modules/uninorm/nfc: Likewise.
22685         * modules/uninorm/nfd: Likewise.
22686         * modules/uninorm/nfkc: Likewise.
22687         * modules/uninorm/nfkd: Likewise.
22688         * modules/uninorm/u8-normalize: Likewise.
22689         * modules/uninorm/u8-normcmp: Likewise.
22690         * modules/uninorm/u8-normcoll: Likewise.
22691         * modules/uninorm/u8-normxfrm: Likewise.
22692         * modules/uninorm/u16-normalize: Likewise.
22693         * modules/uninorm/u16-normcmp: Likewise.
22694         * modules/uninorm/u16-normcoll: Likewise.
22695         * modules/uninorm/u16-normxfrm: Likewise.
22696         * modules/uninorm/u32-normalize: Likewise.
22697         * modules/uninorm/u32-normcmp: Likewise.
22698         * modules/uninorm/u32-normcoll: Likewise.
22699         * modules/uninorm/u32-normxfrm: Likewise.
22700         * modules/unistdio/u8-asnprintf: Likewise.
22701         * modules/unistdio/u8-asprintf: Likewise.
22702         * modules/unistdio/u8-snprintf: Likewise.
22703         * modules/unistdio/u8-sprintf: Likewise.
22704         * modules/unistdio/u8-u8-asnprintf: Likewise.
22705         * modules/unistdio/u8-u8-asprintf: Likewise.
22706         * modules/unistdio/u8-u8-snprintf: Likewise.
22707         * modules/unistdio/u8-u8-sprintf: Likewise.
22708         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22709         * modules/unistdio/u8-u8-vasprintf: Likewise.
22710         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22711         * modules/unistdio/u8-u8-vsprintf: Likewise.
22712         * modules/unistdio/u8-vasnprintf: Likewise.
22713         * modules/unistdio/u8-vasprintf: Likewise.
22714         * modules/unistdio/u8-vsnprintf: Likewise.
22715         * modules/unistdio/u8-vsprintf: Likewise.
22716         * modules/unistdio/u16-asnprintf: Likewise.
22717         * modules/unistdio/u16-asprintf: Likewise.
22718         * modules/unistdio/u16-snprintf: Likewise.
22719         * modules/unistdio/u16-sprintf: Likewise.
22720         * modules/unistdio/u16-u16-asnprintf: Likewise.
22721         * modules/unistdio/u16-u16-asprintf: Likewise.
22722         * modules/unistdio/u16-u16-snprintf: Likewise.
22723         * modules/unistdio/u16-u16-sprintf: Likewise.
22724         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22725         * modules/unistdio/u16-u16-vasprintf: Likewise.
22726         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22727         * modules/unistdio/u16-u16-vsprintf: Likewise.
22728         * modules/unistdio/u16-vasnprintf: Likewise.
22729         * modules/unistdio/u16-vasprintf: Likewise.
22730         * modules/unistdio/u16-vsnprintf: Likewise.
22731         * modules/unistdio/u16-vsprintf: Likewise.
22732         * modules/unistdio/u32-asnprintf: Likewise.
22733         * modules/unistdio/u32-asprintf: Likewise.
22734         * modules/unistdio/u32-snprintf: Likewise.
22735         * modules/unistdio/u32-sprintf: Likewise.
22736         * modules/unistdio/u32-u32-asnprintf: Likewise.
22737         * modules/unistdio/u32-u32-asprintf: Likewise.
22738         * modules/unistdio/u32-u32-snprintf: Likewise.
22739         * modules/unistdio/u32-u32-sprintf: Likewise.
22740         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22741         * modules/unistdio/u32-u32-vasprintf: Likewise.
22742         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22743         * modules/unistdio/u32-u32-vsprintf: Likewise.
22744         * modules/unistdio/u32-vasnprintf: Likewise.
22745         * modules/unistdio/u32-vasprintf: Likewise.
22746         * modules/unistdio/u32-vsnprintf: Likewise.
22747         * modules/unistdio/u32-vsprintf: Likewise.
22748         * modules/unistdio/ulc-asnprintf: Likewise.
22749         * modules/unistdio/ulc-asprintf: Likewise.
22750         * modules/unistdio/ulc-fprintf: Likewise.
22751         * modules/unistdio/ulc-snprintf: Likewise.
22752         * modules/unistdio/ulc-sprintf: Likewise.
22753         * modules/unistdio/ulc-vasnprintf: Likewise.
22754         * modules/unistdio/ulc-vasprintf: Likewise.
22755         * modules/unistdio/ulc-vfprintf: Likewise.
22756         * modules/unistdio/ulc-vsnprintf: Likewise.
22757         * modules/unistdio/ulc-vsprintf: Likewise.
22758         * modules/unistr/u8-check: Likewise.
22759         * modules/unistr/u8-chr: Likewise.
22760         * modules/unistr/u8-cmp: Likewise.
22761         * modules/unistr/u8-cmp2: Likewise.
22762         * modules/unistr/u8-cpy: Likewise.
22763         * modules/unistr/u8-cpy-alloc: Likewise.
22764         * modules/unistr/u8-endswith: Likewise.
22765         * modules/unistr/u8-mblen: Likewise.
22766         * modules/unistr/u8-mbsnlen: Likewise.
22767         * modules/unistr/u8-mbtouc: Likewise.
22768         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22769         * modules/unistr/u8-mbtoucr: Likewise.
22770         * modules/unistr/u8-move: Likewise.
22771         * modules/unistr/u8-next: Likewise.
22772         * modules/unistr/u8-prev: Likewise.
22773         * modules/unistr/u8-set: Likewise.
22774         * modules/unistr/u8-startswith: Likewise.
22775         * modules/unistr/u8-stpcpy: Likewise.
22776         * modules/unistr/u8-stpncpy: Likewise.
22777         * modules/unistr/u8-strcat: Likewise.
22778         * modules/unistr/u8-strchr: Likewise.
22779         * modules/unistr/u8-strcmp: Likewise.
22780         * modules/unistr/u8-strcoll: Likewise.
22781         * modules/unistr/u8-strcpy: Likewise.
22782         * modules/unistr/u8-strcspn: Likewise.
22783         * modules/unistr/u8-strdup: Likewise.
22784         * modules/unistr/u8-strlen: Likewise.
22785         * modules/unistr/u8-strmblen: Likewise.
22786         * modules/unistr/u8-strmbtouc: Likewise.
22787         * modules/unistr/u8-strncat: Likewise.
22788         * modules/unistr/u8-strncmp: Likewise.
22789         * modules/unistr/u8-strncpy: Likewise.
22790         * modules/unistr/u8-strnlen: Likewise.
22791         * modules/unistr/u8-strpbrk: Likewise.
22792         * modules/unistr/u8-strrchr: Likewise.
22793         * modules/unistr/u8-strspn: Likewise.
22794         * modules/unistr/u8-strstr: Likewise.
22795         * modules/unistr/u8-strtok: Likewise.
22796         * modules/unistr/u8-to-u16: Likewise.
22797         * modules/unistr/u8-to-u32: Likewise.
22798         * modules/unistr/u8-uctomb: Likewise.
22799         * modules/unistr/u16-check: Likewise.
22800         * modules/unistr/u16-chr: Likewise.
22801         * modules/unistr/u16-cmp: Likewise.
22802         * modules/unistr/u16-cmp2: Likewise.
22803         * modules/unistr/u16-cpy: Likewise.
22804         * modules/unistr/u16-cpy-alloc: Likewise.
22805         * modules/unistr/u16-endswith: Likewise.
22806         * modules/unistr/u16-mblen: Likewise.
22807         * modules/unistr/u16-mbsnlen: Likewise.
22808         * modules/unistr/u16-mbtouc: Likewise.
22809         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22810         * modules/unistr/u16-mbtoucr: Likewise.
22811         * modules/unistr/u16-move: Likewise.
22812         * modules/unistr/u16-next: Likewise.
22813         * modules/unistr/u16-prev: Likewise.
22814         * modules/unistr/u16-set: Likewise.
22815         * modules/unistr/u16-startswith: Likewise.
22816         * modules/unistr/u16-stpcpy: Likewise.
22817         * modules/unistr/u16-stpncpy: Likewise.
22818         * modules/unistr/u16-strcat: Likewise.
22819         * modules/unistr/u16-strchr: Likewise.
22820         * modules/unistr/u16-strcmp: Likewise.
22821         * modules/unistr/u16-strcoll: Likewise.
22822         * modules/unistr/u16-strcpy: Likewise.
22823         * modules/unistr/u16-strcspn: Likewise.
22824         * modules/unistr/u16-strdup: Likewise.
22825         * modules/unistr/u16-strlen: Likewise.
22826         * modules/unistr/u16-strmblen: Likewise.
22827         * modules/unistr/u16-strmbtouc: Likewise.
22828         * modules/unistr/u16-strncat: Likewise.
22829         * modules/unistr/u16-strncmp: Likewise.
22830         * modules/unistr/u16-strncpy: Likewise.
22831         * modules/unistr/u16-strnlen: Likewise.
22832         * modules/unistr/u16-strpbrk: Likewise.
22833         * modules/unistr/u16-strrchr: Likewise.
22834         * modules/unistr/u16-strspn: Likewise.
22835         * modules/unistr/u16-strstr: Likewise.
22836         * modules/unistr/u16-strtok: Likewise.
22837         * modules/unistr/u16-to-u32: Likewise.
22838         * modules/unistr/u16-to-u8: Likewise.
22839         * modules/unistr/u16-uctomb: Likewise.
22840         * modules/unistr/u32-check: Likewise.
22841         * modules/unistr/u32-chr: Likewise.
22842         * modules/unistr/u32-cmp: Likewise.
22843         * modules/unistr/u32-cmp2: Likewise.
22844         * modules/unistr/u32-cpy: Likewise.
22845         * modules/unistr/u32-cpy-alloc: Likewise.
22846         * modules/unistr/u32-endswith: Likewise.
22847         * modules/unistr/u32-mblen: Likewise.
22848         * modules/unistr/u32-mbsnlen: Likewise.
22849         * modules/unistr/u32-mbtouc: Likewise.
22850         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22851         * modules/unistr/u32-mbtoucr: Likewise.
22852         * modules/unistr/u32-move: Likewise.
22853         * modules/unistr/u32-next: Likewise.
22854         * modules/unistr/u32-prev: Likewise.
22855         * modules/unistr/u32-set: Likewise.
22856         * modules/unistr/u32-startswith: Likewise.
22857         * modules/unistr/u32-stpcpy: Likewise.
22858         * modules/unistr/u32-stpncpy: Likewise.
22859         * modules/unistr/u32-strcat: Likewise.
22860         * modules/unistr/u32-strchr: Likewise.
22861         * modules/unistr/u32-strcmp: Likewise.
22862         * modules/unistr/u32-strcoll: Likewise.
22863         * modules/unistr/u32-strcpy: Likewise.
22864         * modules/unistr/u32-strcspn: Likewise.
22865         * modules/unistr/u32-strdup: Likewise.
22866         * modules/unistr/u32-strlen: Likewise.
22867         * modules/unistr/u32-strmblen: Likewise.
22868         * modules/unistr/u32-strmbtouc: Likewise.
22869         * modules/unistr/u32-strncat: Likewise.
22870         * modules/unistr/u32-strncmp: Likewise.
22871         * modules/unistr/u32-strncpy: Likewise.
22872         * modules/unistr/u32-strnlen: Likewise.
22873         * modules/unistr/u32-strpbrk: Likewise.
22874         * modules/unistr/u32-strrchr: Likewise.
22875         * modules/unistr/u32-strspn: Likewise.
22876         * modules/unistr/u32-strstr: Likewise.
22877         * modules/unistr/u32-strtok: Likewise.
22878         * modules/unistr/u32-to-u16: Likewise.
22879         * modules/unistr/u32-to-u8: Likewise.
22880         * modules/unistr/u32-uctomb: Likewise.
22881         * modules/uniwbrk/u8-wordbreaks: Likewise.
22882         * modules/uniwbrk/u16-wordbreaks: Likewise.
22883         * modules/uniwbrk/u32-wordbreaks: Likewise.
22884         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22885         * modules/uniwbrk/wordbreak-property: Likewise.
22886         * modules/uniwidth/u8-strwidth: Likewise.
22887         * modules/uniwidth/u8-width: Likewise.
22888         * modules/uniwidth/u16-strwidth: Likewise.
22889         * modules/uniwidth/u16-width: Likewise.
22890         * modules/uniwidth/u32-strwidth: Likewise.
22891         * modules/uniwidth/u32-width: Likewise.
22892         * modules/uniwidth/width: Likewise.
22893         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22894         with $(LIBUNISTRING).
22895         * modules/unicase/ignorable-tests: Likewise.
22896         * modules/unicase/locale-language-tests: Likewise.
22897         * modules/unicase/tolower-tests: Likewise.
22898         * modules/unicase/totitle-tests: Likewise.
22899         * modules/unicase/toupper-tests: Likewise.
22900         * modules/unicase/u8-casecmp-tests: Likewise.
22901         * modules/unicase/u8-casecoll-tests: Likewise.
22902         * modules/unicase/u8-casefold-tests: Likewise.
22903         * modules/unicase/u8-is-cased-tests: Likewise.
22904         * modules/unicase/u8-is-casefolded-tests: Likewise.
22905         * modules/unicase/u8-is-lowercase-tests: Likewise.
22906         * modules/unicase/u8-is-titlecase-tests: Likewise.
22907         * modules/unicase/u8-is-uppercase-tests: Likewise.
22908         * modules/unicase/u8-tolower-tests: Likewise.
22909         * modules/unicase/u8-totitle-tests: Likewise.
22910         * modules/unicase/u8-toupper-tests: Likewise.
22911         * modules/unicase/u16-casecmp-tests: Likewise.
22912         * modules/unicase/u16-casecoll-tests: Likewise.
22913         * modules/unicase/u16-casefold-tests: Likewise.
22914         * modules/unicase/u16-is-cased-tests: Likewise.
22915         * modules/unicase/u16-is-casefolded-tests: Likewise.
22916         * modules/unicase/u16-is-lowercase-tests: Likewise.
22917         * modules/unicase/u16-is-titlecase-tests: Likewise.
22918         * modules/unicase/u16-is-uppercase-tests: Likewise.
22919         * modules/unicase/u16-tolower-tests: Likewise.
22920         * modules/unicase/u16-totitle-tests: Likewise.
22921         * modules/unicase/u16-toupper-tests: Likewise.
22922         * modules/unicase/u32-casecmp-tests: Likewise.
22923         * modules/unicase/u32-casecoll-tests: Likewise.
22924         * modules/unicase/u32-casefold-tests: Likewise.
22925         * modules/unicase/u32-is-cased-tests: Likewise.
22926         * modules/unicase/u32-is-casefolded-tests: Likewise.
22927         * modules/unicase/u32-is-lowercase-tests: Likewise.
22928         * modules/unicase/u32-is-titlecase-tests: Likewise.
22929         * modules/unicase/u32-is-uppercase-tests: Likewise.
22930         * modules/unicase/u32-tolower-tests: Likewise.
22931         * modules/unicase/u32-totitle-tests: Likewise.
22932         * modules/unicase/u32-toupper-tests: Likewise.
22933         * modules/unicase/ulc-casecmp-tests: Likewise.
22934         * modules/unicase/ulc-casecoll-tests: Likewise.
22935         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22936         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22937         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22938         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22939         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22940         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22941         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22942         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22943         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22944         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22945         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22946         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22947         * modules/unictype/bidicategory-byname-tests: Likewise.
22948         * modules/unictype/bidicategory-name-tests: Likewise.
22949         * modules/unictype/bidicategory-of-tests: Likewise.
22950         * modules/unictype/bidicategory-test-tests: Likewise.
22951         * modules/unictype/block-list-tests: Likewise.
22952         * modules/unictype/block-of-tests: Likewise.
22953         * modules/unictype/block-test-tests: Likewise.
22954         * modules/unictype/category-C-tests: Likewise.
22955         * modules/unictype/category-Cc-tests: Likewise.
22956         * modules/unictype/category-Cf-tests: Likewise.
22957         * modules/unictype/category-Cn-tests: Likewise.
22958         * modules/unictype/category-Co-tests: Likewise.
22959         * modules/unictype/category-Cs-tests: Likewise.
22960         * modules/unictype/category-L-tests: Likewise.
22961         * modules/unictype/category-Ll-tests: Likewise.
22962         * modules/unictype/category-Lm-tests: Likewise.
22963         * modules/unictype/category-Lo-tests: Likewise.
22964         * modules/unictype/category-Lt-tests: Likewise.
22965         * modules/unictype/category-Lu-tests: Likewise.
22966         * modules/unictype/category-M-tests: Likewise.
22967         * modules/unictype/category-Mc-tests: Likewise.
22968         * modules/unictype/category-Me-tests: Likewise.
22969         * modules/unictype/category-Mn-tests: Likewise.
22970         * modules/unictype/category-N-tests: Likewise.
22971         * modules/unictype/category-Nd-tests: Likewise.
22972         * modules/unictype/category-Nl-tests: Likewise.
22973         * modules/unictype/category-No-tests: Likewise.
22974         * modules/unictype/category-P-tests: Likewise.
22975         * modules/unictype/category-Pc-tests: Likewise.
22976         * modules/unictype/category-Pd-tests: Likewise.
22977         * modules/unictype/category-Pe-tests: Likewise.
22978         * modules/unictype/category-Pf-tests: Likewise.
22979         * modules/unictype/category-Pi-tests: Likewise.
22980         * modules/unictype/category-Po-tests: Likewise.
22981         * modules/unictype/category-Ps-tests: Likewise.
22982         * modules/unictype/category-S-tests: Likewise.
22983         * modules/unictype/category-Sc-tests: Likewise.
22984         * modules/unictype/category-Sk-tests: Likewise.
22985         * modules/unictype/category-Sm-tests: Likewise.
22986         * modules/unictype/category-So-tests: Likewise.
22987         * modules/unictype/category-Z-tests: Likewise.
22988         * modules/unictype/category-Zl-tests: Likewise.
22989         * modules/unictype/category-Zp-tests: Likewise.
22990         * modules/unictype/category-Zs-tests: Likewise.
22991         * modules/unictype/category-and-not-tests: Likewise.
22992         * modules/unictype/category-and-tests: Likewise.
22993         * modules/unictype/category-byname-tests: Likewise.
22994         * modules/unictype/category-name-tests: Likewise.
22995         * modules/unictype/category-none-tests: Likewise.
22996         * modules/unictype/category-of-tests: Likewise.
22997         * modules/unictype/category-or-tests: Likewise.
22998         * modules/unictype/category-test-withtable-tests: Likewise.
22999         * modules/unictype/combining-class-tests: Likewise.
23000         * modules/unictype/ctype-alnum-tests: Likewise.
23001         * modules/unictype/ctype-alpha-tests: Likewise.
23002         * modules/unictype/ctype-blank-tests: Likewise.
23003         * modules/unictype/ctype-cntrl-tests: Likewise.
23004         * modules/unictype/ctype-digit-tests: Likewise.
23005         * modules/unictype/ctype-graph-tests: Likewise.
23006         * modules/unictype/ctype-lower-tests: Likewise.
23007         * modules/unictype/ctype-print-tests: Likewise.
23008         * modules/unictype/ctype-punct-tests: Likewise.
23009         * modules/unictype/ctype-space-tests: Likewise.
23010         * modules/unictype/ctype-upper-tests: Likewise.
23011         * modules/unictype/ctype-xdigit-tests: Likewise.
23012         * modules/unictype/decimal-digit-tests: Likewise.
23013         * modules/unictype/digit-tests: Likewise.
23014         * modules/unictype/mirror-tests: Likewise.
23015         * modules/unictype/numeric-tests: Likewise.
23016         * modules/unictype/property-alphabetic-tests: Likewise.
23017         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23018         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23019         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23020         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23021         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23022         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23023         * modules/unictype/property-bidi-control-tests: Likewise.
23024         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23025         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23026         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23027         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23028         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23029         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23030         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23031         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23032         * modules/unictype/property-bidi-pdf-tests: Likewise.
23033         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23034         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23035         * modules/unictype/property-byname-tests: Likewise.
23036         * modules/unictype/property-combining-tests: Likewise.
23037         * modules/unictype/property-composite-tests: Likewise.
23038         * modules/unictype/property-currency-symbol-tests: Likewise.
23039         * modules/unictype/property-dash-tests: Likewise.
23040         * modules/unictype/property-decimal-digit-tests: Likewise.
23041         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23042         * modules/unictype/property-deprecated-tests: Likewise.
23043         * modules/unictype/property-diacritic-tests: Likewise.
23044         * modules/unictype/property-extender-tests: Likewise.
23045         * modules/unictype/property-format-control-tests: Likewise.
23046         * modules/unictype/property-grapheme-base-tests: Likewise.
23047         * modules/unictype/property-grapheme-extend-tests: Likewise.
23048         * modules/unictype/property-grapheme-link-tests: Likewise.
23049         * modules/unictype/property-hex-digit-tests: Likewise.
23050         * modules/unictype/property-hyphen-tests: Likewise.
23051         * modules/unictype/property-id-continue-tests: Likewise.
23052         * modules/unictype/property-id-start-tests: Likewise.
23053         * modules/unictype/property-ideographic-tests: Likewise.
23054         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23055         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23056         * modules/unictype/property-ignorable-control-tests: Likewise.
23057         * modules/unictype/property-iso-control-tests: Likewise.
23058         * modules/unictype/property-join-control-tests: Likewise.
23059         * modules/unictype/property-left-of-pair-tests: Likewise.
23060         * modules/unictype/property-line-separator-tests: Likewise.
23061         * modules/unictype/property-logical-order-exception-tests: Likewise.
23062         * modules/unictype/property-lowercase-tests: Likewise.
23063         * modules/unictype/property-math-tests: Likewise.
23064         * modules/unictype/property-non-break-tests: Likewise.
23065         * modules/unictype/property-not-a-character-tests: Likewise.
23066         * modules/unictype/property-numeric-tests: Likewise.
23067         * modules/unictype/property-other-alphabetic-tests: Likewise.
23068         * modules/unictype/property-other-default-ignorable-code-point-tests:
23069         Likewise.
23070         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23071         * modules/unictype/property-other-id-continue-tests: Likewise.
23072         * modules/unictype/property-other-id-start-tests: Likewise.
23073         * modules/unictype/property-other-lowercase-tests: Likewise.
23074         * modules/unictype/property-other-math-tests: Likewise.
23075         * modules/unictype/property-other-uppercase-tests: Likewise.
23076         * modules/unictype/property-paired-punctuation-tests: Likewise.
23077         * modules/unictype/property-paragraph-separator-tests: Likewise.
23078         * modules/unictype/property-pattern-syntax-tests: Likewise.
23079         * modules/unictype/property-pattern-white-space-tests: Likewise.
23080         * modules/unictype/property-private-use-tests: Likewise.
23081         * modules/unictype/property-punctuation-tests: Likewise.
23082         * modules/unictype/property-quotation-mark-tests: Likewise.
23083         * modules/unictype/property-radical-tests: Likewise.
23084         * modules/unictype/property-sentence-terminal-tests: Likewise.
23085         * modules/unictype/property-soft-dotted-tests: Likewise.
23086         * modules/unictype/property-space-tests: Likewise.
23087         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23088         * modules/unictype/property-test-tests: Likewise.
23089         * modules/unictype/property-titlecase-tests: Likewise.
23090         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23091         * modules/unictype/property-unified-ideograph-tests: Likewise.
23092         * modules/unictype/property-uppercase-tests: Likewise.
23093         * modules/unictype/property-variation-selector-tests: Likewise.
23094         * modules/unictype/property-white-space-tests: Likewise.
23095         * modules/unictype/property-xid-continue-tests: Likewise.
23096         * modules/unictype/property-xid-start-tests: Likewise.
23097         * modules/unictype/property-zero-width-tests: Likewise.
23098         * modules/unictype/scripts-tests: Likewise.
23099         * modules/unictype/syntax-c-ident-tests: Likewise.
23100         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23101         * modules/unictype/syntax-java-ident-tests: Likewise.
23102         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23103         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23104         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23105         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23106         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23107         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23108         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23109         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23110         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23111         * modules/uniname/uniname-tests: Likewise.
23112         * modules/uninorm/canonical-decomposition-tests: Likewise.
23113         * modules/uninorm/compat-decomposition-tests: Likewise.
23114         * modules/uninorm/composition-tests: Likewise.
23115         * modules/uninorm/decomposing-form-tests: Likewise.
23116         * modules/uninorm/decomposition-tests: Likewise.
23117         * modules/uninorm/filter-tests: Likewise.
23118         * modules/uninorm/nfc-tests: Likewise.
23119         * modules/uninorm/nfd-tests: Likewise.
23120         * modules/uninorm/nfkc-tests: Likewise.
23121         * modules/uninorm/nfkd-tests: Likewise.
23122         * modules/uninorm/u8-normcmp-tests: Likewise.
23123         * modules/uninorm/u8-normcoll-tests: Likewise.
23124         * modules/uninorm/u16-normcmp-tests: Likewise.
23125         * modules/uninorm/u16-normcoll-tests: Likewise.
23126         * modules/uninorm/u32-normcmp-tests: Likewise.
23127         * modules/uninorm/u32-normcoll-tests: Likewise.
23128         * modules/unistdio/u8-asnprintf-tests: Likewise.
23129         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23130         * modules/unistdio/u8-vasprintf-tests: Likewise.
23131         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23132         * modules/unistdio/u8-vsprintf-tests: Likewise.
23133         * modules/unistdio/u16-asnprintf-tests: Likewise.
23134         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23135         * modules/unistdio/u16-vasprintf-tests: Likewise.
23136         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23137         * modules/unistdio/u16-vsprintf-tests: Likewise.
23138         * modules/unistdio/u32-asnprintf-tests: Likewise.
23139         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23140         * modules/unistdio/u32-vasprintf-tests: Likewise.
23141         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23142         * modules/unistdio/u32-vsprintf-tests: Likewise.
23143         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23144         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23145         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23146         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23147         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23148         * modules/unistr/u8-check-tests: Likewise.
23149         * modules/unistr/u8-chr-tests: Likewise.
23150         * modules/unistr/u8-cmp-tests: Likewise.
23151         * modules/unistr/u8-cmp2-tests: Likewise.
23152         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23153         * modules/unistr/u8-cpy-tests: Likewise.
23154         * modules/unistr/u8-mblen-tests: Likewise.
23155         * modules/unistr/u8-mbsnlen-tests: Likewise.
23156         * modules/unistr/u8-mbtouc-tests: Likewise.
23157         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23158         * modules/unistr/u8-mbtoucr-tests: Likewise.
23159         * modules/unistr/u8-move-tests: Likewise.
23160         * modules/unistr/u8-next-tests: Likewise.
23161         * modules/unistr/u8-prev-tests: Likewise.
23162         * modules/unistr/u8-set-tests: Likewise.
23163         * modules/unistr/u8-stpcpy-tests: Likewise.
23164         * modules/unistr/u8-stpncpy-tests: Likewise.
23165         * modules/unistr/u8-strcat-tests: Likewise.
23166         * modules/unistr/u8-strcmp-tests: Likewise.
23167         * modules/unistr/u8-strcoll-tests: Likewise.
23168         * modules/unistr/u8-strcpy-tests: Likewise.
23169         * modules/unistr/u8-strdup-tests: Likewise.
23170         * modules/unistr/u8-strlen-tests: Likewise.
23171         * modules/unistr/u8-strmblen-tests: Likewise.
23172         * modules/unistr/u8-strmbtouc-tests: Likewise.
23173         * modules/unistr/u8-strncat-tests: Likewise.
23174         * modules/unistr/u8-strncmp-tests: Likewise.
23175         * modules/unistr/u8-strncpy-tests: Likewise.
23176         * modules/unistr/u8-strnlen-tests: Likewise.
23177         * modules/unistr/u8-to-u16-tests: Likewise.
23178         * modules/unistr/u8-to-u32-tests: Likewise.
23179         * modules/unistr/u8-uctomb-tests: Likewise.
23180         * modules/unistr/u16-check-tests: Likewise.
23181         * modules/unistr/u16-chr-tests: Likewise.
23182         * modules/unistr/u16-cmp-tests: Likewise.
23183         * modules/unistr/u16-cmp2-tests: Likewise.
23184         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23185         * modules/unistr/u16-cpy-tests: Likewise.
23186         * modules/unistr/u16-mblen-tests: Likewise.
23187         * modules/unistr/u16-mbsnlen-tests: Likewise.
23188         * modules/unistr/u16-mbtouc-tests: Likewise.
23189         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23190         * modules/unistr/u16-mbtoucr-tests: Likewise.
23191         * modules/unistr/u16-move-tests: Likewise.
23192         * modules/unistr/u16-next-tests: Likewise.
23193         * modules/unistr/u16-prev-tests: Likewise.
23194         * modules/unistr/u16-set-tests: Likewise.
23195         * modules/unistr/u16-stpcpy-tests: Likewise.
23196         * modules/unistr/u16-stpncpy-tests: Likewise.
23197         * modules/unistr/u16-strcat-tests: Likewise.
23198         * modules/unistr/u16-strcmp-tests: Likewise.
23199         * modules/unistr/u16-strcoll-tests: Likewise.
23200         * modules/unistr/u16-strcpy-tests: Likewise.
23201         * modules/unistr/u16-strdup-tests: Likewise.
23202         * modules/unistr/u16-strlen-tests: Likewise.
23203         * modules/unistr/u16-strmblen-tests: Likewise.
23204         * modules/unistr/u16-strmbtouc-tests: Likewise.
23205         * modules/unistr/u16-strncat-tests: Likewise.
23206         * modules/unistr/u16-strncmp-tests: Likewise.
23207         * modules/unistr/u16-strncpy-tests: Likewise.
23208         * modules/unistr/u16-strnlen-tests: Likewise.
23209         * modules/unistr/u16-to-u32-tests: Likewise.
23210         * modules/unistr/u16-to-u8-tests: Likewise.
23211         * modules/unistr/u16-uctomb-tests: Likewise.
23212         * modules/unistr/u32-check-tests: Likewise.
23213         * modules/unistr/u32-chr-tests: Likewise.
23214         * modules/unistr/u32-cmp-tests: Likewise.
23215         * modules/unistr/u32-cmp2-tests: Likewise.
23216         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23217         * modules/unistr/u32-cpy-tests: Likewise.
23218         * modules/unistr/u32-mblen-tests: Likewise.
23219         * modules/unistr/u32-mbsnlen-tests: Likewise.
23220         * modules/unistr/u32-mbtouc-tests: Likewise.
23221         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23222         * modules/unistr/u32-mbtoucr-tests: Likewise.
23223         * modules/unistr/u32-move-tests: Likewise.
23224         * modules/unistr/u32-next-tests: Likewise.
23225         * modules/unistr/u32-prev-tests: Likewise.
23226         * modules/unistr/u32-set-tests: Likewise.
23227         * modules/unistr/u32-stpcpy-tests: Likewise.
23228         * modules/unistr/u32-stpncpy-tests: Likewise.
23229         * modules/unistr/u32-strcat-tests: Likewise.
23230         * modules/unistr/u32-strcmp-tests: Likewise.
23231         * modules/unistr/u32-strcoll-tests: Likewise.
23232         * modules/unistr/u32-strcpy-tests: Likewise.
23233         * modules/unistr/u32-strdup-tests: Likewise.
23234         * modules/unistr/u32-strlen-tests: Likewise.
23235         * modules/unistr/u32-strmblen-tests: Likewise.
23236         * modules/unistr/u32-strmbtouc-tests: Likewise.
23237         * modules/unistr/u32-strncat-tests: Likewise.
23238         * modules/unistr/u32-strncmp-tests: Likewise.
23239         * modules/unistr/u32-strncpy-tests: Likewise.
23240         * modules/unistr/u32-strnlen-tests: Likewise.
23241         * modules/unistr/u32-to-u16-tests: Likewise.
23242         * modules/unistr/u32-to-u8-tests: Likewise.
23243         * modules/unistr/u32-uctomb-tests: Likewise.
23244         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23245         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23246         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23247         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23248         * modules/uniwidth/u8-strwidth-tests: Likewise.
23249         * modules/uniwidth/u8-width-tests: Likewise.
23250         * modules/uniwidth/u16-strwidth-tests: Likewise.
23251         * modules/uniwidth/u16-width-tests: Likewise.
23252         * modules/uniwidth/u32-strwidth-tests: Likewise.
23253         * modules/uniwidth/u32-width-tests: Likewise.
23254         * modules/uniwidth/width-tests: Likewise.
23255
23256 2010-05-18  Richard Jones  <rjones@redhat.com>
23257
23258         doc: users.txt: list hivex
23259         * users.txt: Add hivex.
23260
23261 2010-05-18  Richard Jones  <rjones@redhat.com>
23262
23263         doc: users.txt: list febootstrap
23264         * users.txt: Add febootstrap.
23265
23266 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23267
23268         bootstrap: fix an error when gnulib is not used as a git submodule
23269         * build-aux/bootstrap (gnulib_path): If its length is zero then
23270         assign "gnulib" to it.
23271         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23272
23273 2010-05-16  Bruno Haible  <bruno@clisp.org>
23274
23275         Avoid autoconf warnings about AM_ICONV.
23276         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23277         2.64.
23278
23279 2010-05-16  Bruno Haible  <bruno@clisp.org>
23280
23281         absolute-header: Make the macro usable in more situations.
23282         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23283         from gl_ABSOLUTE_HEADER.
23284         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23285
23286 2010-05-16  James Youngman  <jay@gnu.org>
23287
23288         doc: update users.txt
23289         * users.txt: Add CSSC.
23290
23291 2010-05-16  Jim Meyering  <meyering@redhat.com>
23292
23293         init.sh: fix an error in the previous change; add more comments
23294         * tests/init.sh: Compare exit code in loop against 9, not 2.
23295         Patch by Bruno Haible.
23296         Make the two tests more similar by adding an empty "then" clause.
23297         Add comments.
23298
23299         init.sh: avoid unnecessary shell re-exec
23300         * tests/init.sh: Improve the re-exec-required check to first test the
23301         current shell.  If it passes the test, do not search for a shell that
23302         does pass, and do not re-exec.  This test is particularly contorted to
23303         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23304         of $(...) evokes a syntax error and causes immediate shell exit with
23305         status 2.  Bruno Haible reported that the re-exec made it impossible
23306         to single-step through any init.sh-using script.
23307
23308 2010-05-16  Bruno Haible  <bruno@clisp.org>
23309
23310         Fix collision between gnulib's and libintl's printf replacements.
23311         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23312         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23313         (printf): When using GNU C, map the __printf__ function to rpl_printf
23314         via __asm__. When not using GNU C, define rpl_printf instead of
23315         __printf__.
23316         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23317         commit.
23318         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23319         commit.
23320         * m4/asm-underscore.m4: New file.
23321         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23322         * modules/stdio (Files): Add m4/asm-underscore.m4.
23323         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23324         Reported by Ben Pfaff.
23325
23326 2010-05-16  Bruno Haible  <bruno@clisp.org>
23327
23328         verify: Avoid skipping the test on openSUSE 11.0.
23329         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23330
23331 2010-05-13  Bruno Haible  <bruno@clisp.org>
23332
23333         Avoid useless warnings from G++.
23334         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23335         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23336         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23337
23338 2010-05-11  Jim Meyering  <meyering@redhat.com>
23339
23340         maint.mk: tweak preceding change
23341         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23342         regexps tighter by anchoring at EOL, and make the new group "shy"
23343         for slightly decreased overhead.
23344
23345 2010-05-11  Eric Blake  <eblake@redhat.com>
23346
23347         maint.mk: gnulib doesn't guarantee NSIG
23348         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23349
23350 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23351
23352         test-pwrite.c: Remove unused variable declaration.
23353         * tests/test-pwrite.c (main): Remove read_buf declaration.
23354
23355         Remove useless test-pwrite.sh file.
23356         * tests/test-pwrite.sh: Delete file.
23357         * modules/pwrite-tests: Remove references.
23358         Reported by Bruno Haible.
23359
23360 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23361
23362         init.sh: fix a typo
23363         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23364
23365 2010-05-10  Jim Meyering  <meyering@redhat.com>
23366
23367         maint.mk: avoid using a temporary file in the always-defined-macros check
23368         * top/maint.mk (.re-defmac): Remove rule.
23369         (gl_trap_): Remove definition.
23370         (sc_prohibit_always-defined_macros): Rewrite not to create and
23371         depend on a temporary file.  Instead, depend on GNU grep's ability
23372         to read a list of regular expressions from stdin when given "-f -".
23373
23374 2010-05-09  Bruno Haible  <bruno@clisp.org>
23375
23376         Update to GNU gettext 0.18, part 1.
23377         * m4/gettext.m4: Update to GNU gettext 0.18.
23378         * m4/intl.m4: Likewise.
23379         * m4/po.m4: Likewise.
23380         * modules/gettext (Files): Add m4/fcntl-o.m4.
23381         (configure.ac): Require gettext infrastructure from version 0.18.
23382
23383 2010-05-09  Jim Meyering  <meyering@redhat.com>
23384
23385         init.sh: enable MALLOC_PERTURB_
23386         * tests/init.sh: Enable glibc's malloc-perturbing option.
23387
23388         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23389         With my recent change in init.sh from the two-line form:
23390             -#   : ${srcdir=.}
23391             -#   . "$srcdir/init.sh"; path_prepend_ .
23392             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23393         I noticed that using the one-line form would cause this test
23394         to fail with a false-positive, or to stop working altogether,
23395         depending on whether help-version changed or all the tests did.
23396         * top/maint.mk (_hv_regex): Remove this definition.
23397         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23398         (_hv_regex_strong): Use a stronger regex to check for conformance.
23399         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23400         Give a separate diagnostic for lack of conforming use.
23401
23402         maint.mk: prohibit definition of symbols defined by gnulib
23403         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23404         definition of symbols defined by gnulib.
23405
23406 2010-05-09  Bruno Haible  <bruno@clisp.org>
23407
23408         acl: Avoid test failure on Cygwin-hosted mingw.
23409         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23410
23411 2010-05-09  Bruno Haible  <bruno@clisp.org>
23412
23413         error: Use system's fcntl function.
23414         * lib/error.c (fcntl): Undefine.
23415
23416 2010-05-09  Jim Meyering  <meyering@redhat.com>
23417
23418         verify: adjust formatting to be more consistent
23419         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23420         argument-list '('s, and after one comma.
23421
23422 2010-05-09  Bruno Haible  <bruno@clisp.org>
23423
23424         error: More reliable output on mingw.
23425         * lib/error.c: Include <windows.h>.
23426         (is_open): New function.
23427         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23428         defined.
23429
23430 2010-05-09  Bruno Haible  <bruno@clisp.org>
23431
23432         vasnprintf: Fix syntax errors in libintl build on mingw.
23433         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23434         pad_ourselves and prec_ourselves after use.
23435
23436 2010-05-08  Bruno Haible  <bruno@clisp.org>
23437
23438         * lib/config.charset: Update comments for Cygwin 1.7.
23439         * lib/localcharset.c: Likewise.
23440
23441 2010-05-07  Jim Meyering  <meyering@redhat.com>
23442
23443         init.sh: improve comments
23444         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23445         . "${srcdir=.}/init.sh"; path_prepend_ .
23446         Add a note about path_prepend_ and the alternative of using
23447         TESTS_ENVIRONMENT.
23448
23449 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23450
23451         exclude: Unescape hashed patterns in wildcard mode.
23452         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23453         to the hash list.
23454         * tests/test-exclude8.sh: New test case.
23455         * modules/exclude-tests: Add new test.
23456
23457 2010-05-05  Eric Blake  <eblake@redhat.com>
23458
23459         verify: automate tests
23460         * modules/verify-tests: New module.
23461         * tests/test-verify.sh: New file.
23462         * tests/test-verify.c: Guard each negative test with a unique id.
23463         Also avoid warning about unused left hand of comma expressions.
23464
23465 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23466
23467         Further improvements to verify.h, suggested by Eric Blake.
23468         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23469         the GL_* versions, to avoid collision with OpenGL.
23470         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23471         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23472         than testing merely whether it's defined.
23473
23474         Modify verify.h to pacify gcc -Wredundant_decls.
23475         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23476         These use the prefix "GL_" since they're likely to be useful elsewhere.
23477         We may need to break them out into a different .h file.
23478         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23479         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23480         of verify_function__.
23481
23482 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23483
23484         Tests for module pwrite.
23485         * modules/pwrite-tests: New file.
23486         * tests/test-pwrite.sh: New file.
23487         * tests/test-pwrite.c: New file.
23488
23489         New module pwrite.
23490         * lib/unistd.in.h (pwrite): New declaration.
23491         * lib/pwrite.c: New file, from glibc with modifications.
23492         * m4/pwrite.m4: New file.
23493         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23494         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23495         REPLACE_PWRITE.
23496         * modules/pwrite: New file.
23497         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23498         REPLACE_PWRITE.
23499         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23500         * doc/posix-functions/pwrite.texi: Mention the new module.
23501
23502 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23503
23504         pread: Update documentation.
23505         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23506
23507 2010-05-04  Eric Blake  <eblake@redhat.com>
23508
23509         docs: update cygwin progress
23510         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23511         this bug.
23512         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23513         Added in cygwin 1.7.2.
23514         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23515         Likewise.
23516         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23517         Likewise.
23518         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23519         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23520         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23521         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23522         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23523         Mention nproc module.
23524         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23525         bug in cygwin 1.7.5 addition.
23526         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23527         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23528         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23529         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23530         1.7.5.
23531         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23532         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23533         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23534         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23535         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23536         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23537         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23538         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23539         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23540         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23541         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23542         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23543         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23544         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23545         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23546         Likewise.
23547         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23548         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23549         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23550         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23551         Likewise.
23552         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23553         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23554         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23555         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23556         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23557         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23558         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23559         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23560         Likewise.
23561         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23562         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23563         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23564         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23565         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23566         Likewise.
23567         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23568         Likewise.
23569         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23570         Likewise.
23571         * doc/glibc-functions/xdrrec_endofrecord.texi
23572         (xdrrec_endofrecord): Likewise.
23573         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23574         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23575         Likewise.
23576         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23577         Likewise.
23578
23579 2010-05-04  Jim Meyering  <meyering@redhat.com>
23580
23581         gendocs.sh: make its "-s FILE" option more useful
23582         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23583         $PACKAGE to reflect the probably-different basename of "FILE".
23584
23585 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23586
23587         bootstrap: don't ignore download_po_files failure
23588         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23589         failure.
23590
23591 2010-05-03  Jim Meyering  <meyering@redhat.com>
23592
23593         maint.mk: allow to pass options to gendocs.sh
23594         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23595         (gendocs_options_): New overridable variable.
23596
23597         gnu-web-doc-update: don't ignore configure or build failure
23598         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23599
23600         announce-gen: backslash-escape '@'s in --help output
23601         * build-aux/announce-gen: Fix syntax errors.
23602
23603         maint.mk, announce-gen: allow project-specific announcement mail headers
23604         * top/maint.mk (translation_project_): Define default.
23605         (announcement_Cc_, announcement_mail_headers_): Likewise.
23606         (announcement): Invoke announce-gen with new --mail-headers option.
23607         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23608
23609         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23610         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23611         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23612         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23613         line in the "err2" output file when running "make check" in verbose
23614         mode (i.e., with set -x enabled).
23615
23616 2010-05-03  Bruno Haible  <bruno@clisp.org>
23617
23618         wctob: Fix for weird platforms.
23619         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23620         argument value.
23621
23622 2010-05-03  Jim Meyering  <meyering@redhat.com>
23623
23624         maint.mk: prohibit unwarranted use of <strings.h>
23625         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23626         strings.h in a file that does not also use strcasecmp, strncasecmp,
23627         ffs or ffsll.
23628
23629         maint.mk: remove obsolete comments
23630         * top/maint.mk: Remove stale, commented-out rules.
23631
23632 2010-05-02  Bruno Haible  <bruno@clisp.org>
23633
23634         wcwidth: Declare also when it's aliased.
23635         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23636         macro.
23637
23638 2010-05-02  Bruno Haible  <bruno@clisp.org>
23639
23640         Fix regression from 2010-04-25.
23641         * gnulib-tool (func_modules_transitive_closure): Check the status of
23642         all modules, not only of the tests that are of the form foo-tests where
23643         foo is a module.
23644
23645 2010-05-02  Bruno Haible  <bruno@clisp.org>
23646
23647         wctob: Work around nasty Cygwin 1.7.2 bug.
23648         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23649         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23650
23651 2010-05-01  Bruno Haible  <bruno@clisp.org>
23652
23653         fpurge: Sharper test.
23654         * tests/test-fpurge.c (main): Add one more ftell check.
23655         * modules/fpurge-tests (Depends-on): Add ftell.
23656         Suggested by Eric Blake.
23657
23658 2010-05-01  Bruno Haible  <bruno@clisp.org>
23659
23660         ftello: Another test.
23661         * tests/test-ftello3.c: New file.
23662         * modules/ftello-tests (Files): Add it.
23663         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23664         MOSTLYCLEANFILES.
23665
23666         ftell: Another test.
23667         * tests/test-ftell3.c: New file.
23668         * modules/ftell-tests (Files): Add it.
23669         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23670         MOSTLYCLEANFILES.
23671
23672 2010-05-01  Bruno Haible  <bruno@clisp.org>
23673
23674         ftell, ftello: Work around Solaris bug.
23675         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23676         * lib/ftello.c: Include stdio-impl.h.
23677         (ftello): On Solaris, when _IOWRT is set, compute the result without
23678         looking at _IOREAD.
23679         * modules/ftello (Files): Add lib/stdio-impl.h.
23680         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23681         * doc/posix-functions/ftello.texi: Likewise.
23682         Reported by Eric Blake.
23683
23684 2010-05-01  Bruno Haible  <bruno@clisp.org>
23685
23686         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23687         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23688         the _IOWRT flag is also set.
23689
23690 2010-05-01  Bruno Haible  <bruno@clisp.org>
23691
23692         Fix doc about a HP-UX stdio bug.
23693         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23694         * doc/posix-functions/ftello.texi: Likewise.
23695
23696 2010-05-01  Bruno Haible  <bruno@clisp.org>
23697
23698         lseek test: Fix failure on Solaris.
23699         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23700         output.
23701
23702 2010-04-30  Jim Meyering  <meyering@redhat.com>
23703
23704         bootstrap: don't ignore failure to generate po*/Makevars
23705         * build-aux/bootstrap (with_gettext): Don't ignore failure
23706         to create po/Makevars or runtime-po/Makevars.
23707
23708 2010-04-29  Eric Blake  <eblake@redhat.com>
23709
23710         headers: relax license to LGPLv2+
23711         * modules/fcntl-h (License): Relax license.
23712         * modules/getopt-posix (License): Likewise.
23713         * modules/locale (License): Likewise.
23714         * modules/math (License): Likewise.
23715         * modules/pty (License): Likewise.
23716         * modules/sched (License): Likewise.
23717         * modules/search (License): Likewise.
23718         * modules/spawn (License): Likewise.
23719         * modules/stdarg (License): Likewise.
23720         * modules/sysexits (License): Likewise.
23721
23722 2010-04-29  Jim Meyering  <meyering@redhat.com>
23723
23724         inttypes: relax license to LGPLv2+
23725         * modules/inttypes (License): Relax license.
23726
23727 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23728
23729         * top/maint.mk (indent): Run twice to produce idempotent results.
23730
23731 2010-04-28  Bruno Haible  <bruno@clisp.org>
23732
23733         getdate: Generate getdate.c in the source directory.
23734         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23735         MOSTLYCLEANFILES.
23736         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23737
23738 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23739
23740         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23741         is not declared as a const *; avoid warnings in that case.
23742
23743 2010-04-28  Eric Blake  <eblake@redhat.com>
23744
23745         canonicalize-lgpl: avoid compiler warning
23746         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23747         declaration' / 'extraneous semicolon' warning with some compilers.
23748         Reported by Andreas Gruenbacher.
23749
23750 2010-04-28  Jim Meyering  <meyering@redhat.com>
23751
23752         init.sh: ensure a more reliable exit status when exiting via trap
23753         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23754         Inspired by patches from Dmitry V. Levin.
23755         Also trap on signal 3 (SIGQUIT).
23756
23757 2010-04-27  Bruno Haible  <bruno@clisp.org>
23758
23759         Update doc about utimes().
23760         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23761         'utimens' module.
23762         Reported by Andreas Gruenbacher <agruen@suse.de>.
23763
23764 2010-04-27  Eric Blake  <eblake@redhat.com>
23765
23766         full-read, full-write: relax license
23767         * modules/full-read (License): Drop to LGPLv2+.
23768         * modules/full-write (License): Likewise.
23769         * modules/safe-read (License): Likewise.
23770         * modules/safe-write (License): Likewise.
23771
23772         pthread: mention library for linking
23773         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23774
23775 2010-04-27  Jim Meyering  <meyering@redhat.com>
23776
23777         maint.mk: fix a bug introduced in last change
23778         * top/maint.mk (gl_assured_headers_): Now that all names are on
23779         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23780         is not anchored to end of word, it should be adequate.
23781
23782         maint.mk: avoid side-effect in latest syntax-check
23783         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23784         to run commands via $(shell...), and hence to incur cost only when
23785         the new rule is actually run.
23786
23787         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23788         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23789         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23790         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23791         (gl_assured_headers_, az_, AZ_): Define.
23792         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23793
23794 2010-04-26  Jim Meyering  <jim@meyering.net>
23795             Bruno Haible  <bruno@clisp.org>
23796
23797         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23798         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23799         Prompted by an exchange with Gilles Espinasse.
23800
23801 2010-04-26  Jim Meyering  <meyering@redhat.com>
23802
23803         git-version-gen: aesthetic tweak
23804         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23805         so that the command remains on a single line.
23806
23807 2010-04-26  Eric Blake  <eblake@redhat.com>
23808
23809         git-version-gen: allow use on EBCDIC hosts
23810         * build-aux/git-version-gen (dirty): Use literal rather than tying
23811         ourselves to ascii.
23812         Reported by Steve Goetze.
23813
23814 2010-04-25  Bruno Haible  <bruno@clisp.org>
23815
23816         netdb: Add support for GNULIB_POSIXCHECK.
23817         * lib/netdb.in.h: Include warn-on-use.h.
23818         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23819         functions are used when GNULIB_POSIXCHECK is defined and the
23820         getaddrinfo module is not in use.
23821         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23822         freeaddrinfo, gai_strerror, getnameinfo are declared.
23823         * modules/netdb (Depends-on): Add warn-on-use.
23824         (Makefile.am): Include warn-on-use.h in netdb.h.
23825
23826 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23827
23828         build: avoid "make check" failure without .git/ directory
23829         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23830         there is no .git/ directory.
23831
23832 2010-04-25  Bruno Haible  <bruno@clisp.org>
23833
23834         ptsname: Fix misuse of ttyname_r.
23835         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23836         of errno.
23837
23838 2010-04-25  Bruno Haible  <bruno@clisp.org>
23839
23840         ttyname_r: Make it work on Solaris 10.
23841         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23842         if the system function has the POSIX declaration. Test whether the
23843         function fails if the buffer is less than 128 bytes large.
23844         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23845         system's ttyname_r function. Provide a reasonably large buffer.
23846         * modules/ttyname_r (Depends-on): Add extensions.
23847         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23848
23849 2010-04-25  Bruno Haible  <bruno@clisp.org>
23850
23851         Use the 'extensions' module for some more functions on Solaris.
23852         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23853         module.
23854         * doc/posix-functions/ctime_r.texi: Likewise.
23855         * doc/posix-functions/getgrgid_r.texi: Likewise.
23856         * doc/posix-functions/getgrnam_r.texi: Likewise.
23857         * doc/posix-functions/getpwnam_r.texi: Likewise.
23858         * doc/posix-functions/getpwuid_r.texi: Likewise.
23859         * doc/posix-functions/readdir_r.texi: Likewise.
23860         * doc/posix-functions/sigwait.texi: Likewise.
23861         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23862         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23863
23864 2010-04-25  Bruno Haible  <bruno@clisp.org>
23865
23866         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23867         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23868         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23869         * lib/ttyname_r.c: Include <limits.h>.
23870         (ttyname_r): Define using the system's ttyname_r function, if it exists
23871         and not on Solaris.
23872         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23873         set.
23874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23875         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23876         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23877         Reported by Simon Josefsson.
23878
23879 2010-04-25  Bruno Haible  <bruno@clisp.org>
23880
23881         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23882         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23883         * doc/posix-functions/ctime_r.texi: Likewise.
23884         * doc/posix-functions/getgrgid_r.texi: Likewise.
23885         * doc/posix-functions/getgrnam_r.texi: Likewise.
23886         * doc/posix-functions/getlogin_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         * doc/posix-functions/ttyname_r.texi: Likewise.
23892         Reported by Simon Josefsson.
23893
23894 2010-04-25  Bruno Haible  <bruno@clisp.org>
23895
23896         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23897         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23898         also to --create-testdir.
23899         (func_acceptable): Don't consider the status of *-tests modules here.
23900         (func_modules_transitive_closure): Consider it here, before including a
23901         test module.
23902         (func_import, func_create_testdir): Set inc_all_direct_tests,
23903         inc_all_indirect_tests.
23904         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23905         --create-testdir and --create-megatestdir.
23906
23907 2010-04-25  Bruno Haible  <bruno@clisp.org>
23908
23909         gnulib-tool: Add --without-*-tests options.
23910         * gnulib-tool (func_usage): Document the --without-*-tests options.
23911         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23912         excl_unportable_tests): New variables.
23913         Fail if they are specified with --import or --update.
23914         (func_acceptable): Respect the excl_*_tests variables.
23915         (func_import): Set the excl_*_tests variables to empty.
23916
23917 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23918             Bruno Haible  <bruno@clisp.org>
23919
23920         Work around a MacOS X 10.4 bug with openpty.
23921         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23922         * tests/test-openpty.c (main): Close the master side explicitly.
23923
23924 2010-04-25  Bruno Haible  <bruno@clisp.org>
23925
23926         strnlen: Fix a C++ test error on MacOS X and Solaris.
23927         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23928         the function is not declared.
23929         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23930         Simon Josefsson.
23931
23932 2010-04-24  Bruno Haible  <bruno@clisp.org>
23933
23934         Avoid a gcc warning.
23935         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23936         of correct type for %08lx directive.
23937         Reported by Eric Blake.
23938
23939 2010-04-24  Bruno Haible  <bruno@clisp.org>
23940
23941         vasnprintf: Correct errno value in case of out-of-memory.
23942         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23943         or sprintf. Use the errno value from SNPRINTF or sprintf.
23944         Reported by Ian Beckwith <ianb@erislabs.net>.
23945
23946 2010-04-24  Bruno Haible  <bruno@clisp.org>
23947
23948         ansi-c++-opt: Find correct compiler when cross-compiling.
23949         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23950         AC_CHECK_PROGS.
23951         Reported by Simon Josefsson.
23952
23953 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23954
23955         vc-list-files: Add support for subversion
23956         * build-aux/vc-list-files: Use "svn list" to generate the list of
23957         files controlled by subversion.
23958
23959 2010-04-23  Jim Meyering  <meyering@redhat.com>
23960
23961         vc-list-files tests: convert to use init.sh
23962         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23963         path_prepend_.
23964         Use Exit, not exit.
23965         Use skip_ rather than open coding it.
23966         Remove trap set-up and compare definitions.
23967         * tests/test-vc-list-files-git.sh: Likewise.
23968         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23969
23970 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23971
23972         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23973         backup files.
23974
23975 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23976
23977         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23978
23979 2010-04-20  Eric Blake  <eblake@redhat.com>
23980
23981         tests: be robust to ignored SIGPIPE
23982         * tests/test-select-in.sh: Consume all output.
23983         * tests/test-lseek.sh: Check correct exit status, while avoiding
23984         EPIPE.
23985
23986 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23987             Bruno Haible  <bruno@clisp.org>
23988
23989         visibility: Don't use -fvisibility if it leads to a warning.
23990         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23991         yes, don't pretend that visibility works if it leads to a warning.
23992         Reported by Mike Gran <spk121@yahoo.com>.
23993
23994 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23995
23996         * build-aux/bootstrap: Use "git -h" for testing for supported options
23997         instead of "git --help".  The short-form option only shows a summary,
23998         and doesn't layout the full man page.  Grep for the full option name
23999         in the summary, too.
24000
24001 2010-04-19  Bruno Haible  <bruno@clisp.org>
24002
24003         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24004         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24005         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24006         mention of RELOCATABLE_STRIP.
24007         Reported by Sylvain Beucler <beuc@beuc.net>.
24008
24009 2010-04-19  Bruno Haible  <bruno@clisp.org>
24010
24011         * lib/diffseq.h: Fix typo in comment.
24012         Reported by Eric Blake.
24013
24014 2010-04-19  Bruno Haible  <bruno@clisp.org>
24015
24016         ioctl: Move autoconf macro to a .m4 file.
24017         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24018         * modules/ioctl (Files): Add it.
24019         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24020         Reported by Ian Beckwith <ianb@erislabs.net>.
24021
24022 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24023             Bruno Haible  <bruno@clisp.org>
24024
24025         diffseq: Accommodate use-case with abstract arrays.
24026         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24027         is not defined.
24028         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24029         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24030
24031 2010-04-18  Bruno Haible  <bruno@clisp.org>
24032
24033         * doc/posix-headers/stdbool.texi: More precise wording.
24034
24035 2010-04-17  Jim Meyering  <meyering@redhat.com>
24036
24037         maint.mk: use gnu-style indentation in an embedded perl script
24038         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24039         Rename variable: s/two/last_two_bytes/
24040
24041 2010-04-16  Eric Blake  <eblake@redhat.com>
24042
24043         test-stdbool: skip test that fails with Solaris CC
24044         * tests/test-stdbool.c (f): Skip test that causes compilation
24045         error under buggy C++ compiler.
24046         * lib/stdbool.in.h: Document the limitation.
24047         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24048
24049         setenv: allow compilation with C++
24050         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24051         register keyword.
24052
24053         stdint: allow test to pass with C++
24054         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24055
24056         getopt: allow compilation with C++
24057         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24058         struct.
24059         * lib/getopt.c (_getopt_internal_r): Use correct type.
24060         Reported by Dagobert Michelson, via Joel E. Denny.
24061
24062 2010-04-16  Bruno Haible  <bruno@clisp.org>
24063
24064         Override netdb.h always.
24065         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24066         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24067         Reported by Ludovic Courtès <ludo@gnu.org>.
24068
24069 2010-04-15  Bruno Haible  <bruno@clisp.org>
24070
24071         openpty: Fix mistake from 2010-03-21.
24072         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24073         Reported by Simon Josefsson.
24074
24075 2010-04-15  Eric Blake  <eblake@redhat.com>
24076
24077         test-forkpty: fix expected signature
24078         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24079         Reported by Simon Josefsson.
24080
24081 2010-04-15  Jim Meyering  <meyering@redhat.com>
24082
24083         maint.mk: texinfo_suffix_re_: correct the default regexp
24084         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24085
24086         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24087         make it configurable via texinfo_suffix_re_.
24088
24089 2010-04-14  Eric Blake  <eblake@redhat.com>
24090
24091         strtok_r: relax license to LGPLv2+
24092         * modules/strtok_r (License): Relax license.
24093         Reported by Matthias Bolte.
24094
24095 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24096
24097         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24098         version 1.4.4 by default instead of requiring the libgcrypt
24099         version used during build.  This makes it possible to use the
24100         application with older but still binary compatible libgcrypt
24101         versions.
24102
24103 2010-04-13  Eric Blake  <eblake@redhat.com>
24104
24105         getopt-gnu: match recent glibc fixes and posix ruling
24106         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24107         '+' handling, when requesting extensions.
24108         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24109         'W;' handling.
24110         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24111         * doc/posix-functions/getopt.texi (getopt): Document this.
24112         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24113         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24114         Likewise.
24115
24116         getopt: merge bug fixes from glibc
24117         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24118         diagnostics.  Honor '+:' correctly.  Reject ';'.
24119
24120         getopt-posix: detect MacOS bug
24121         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24122         optind when missing a required argument.
24123         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24124         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24125         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24126         Likewise.
24127
24128         getopt-posix: avoid spurious failure on Solaris
24129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24130         an indicator that setting optind=1 is sufficient for reset.
24131
24132         getopt-posix: avoid spurious failure on FreeBSD
24133         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24134         in POSIX mode, since the m4 test uses it.
24135
24136         gnulib-tool: silence warning on BSD sh
24137         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24138
24139 2010-04-13  Jim Meyering  <meyering@redhat.com>
24140
24141         doc: users.txt: GNU patch now uses gnulib
24142         * users.txt: Add patch.
24143
24144 2010-04-12  Jim Meyering  <meyering@redhat.com>
24145
24146         maint.mk: generate more concise timing data for syntax-check rules
24147         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24148         " done" from each line that reports a syntax-check test duration.
24149
24150 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24151
24152         git-version-gen: use "git update-index..." rather than "git status"
24153         * build-aux/git-version-gen: Use git update-index --refresh, not
24154         "git status".  With some versions of git, "git status" would fail
24155         to update the index and result in an unwarranted "-dirty" suffix.
24156
24157 2010-04-11  Jim Meyering  <meyering@redhat.com>
24158
24159         openat: correct formatting (no semantic change)
24160         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24161         Suggested by Bruno Haible.
24162
24163 2010-04-11  Bruno Haible  <bruno@clisp.org>
24164
24165         Stricter declaration checking in testdirs.
24166         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24167         If for_tests is true, augment AM_CPPFLAGS to define
24168         GNULIB_STRICT_CHECKING.
24169         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24170         GNULIB_STRICT_CHECKING is defined, verify that the function is
24171         declared.
24172
24173 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24174             Bruno Haible  <bruno@clisp.org>
24175
24176         libunistring: Improve configure output.
24177         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24178         Don't say "consider installing GNU libunistring" when checking again
24179         with libiconv.
24180
24181 2010-04-11  Bruno Haible  <bruno@clisp.org>
24182
24183         libunistring: Correct value of $LTLIBUNISTRING.
24184         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24185         correct the value of $LTLIBUNISTRING.
24186
24187 2010-04-11  Bruno Haible  <bruno@clisp.org>
24188
24189         havelib: Add static libraries to LIBS in the right order.
24190         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24191         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24192
24193 2010-04-11  Bruno Haible  <bruno@clisp.org>
24194
24195         libunistring: Detect libunistring also when it depends on libiconv.
24196         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24197         the second AC_LIB_HAVE_LINKFLAGS invocation.
24198
24199 2010-04-11  James Youngman  <jay@gnu.org>
24200
24201         close-stream: declare local scalars to be "const"
24202         * lib/close-stream.c (close_stream): Make boolean variables const
24203         to document the fact that we set but do not change them.
24204
24205 2010-04-11  Bruno Haible  <bruno@clisp.org>
24206
24207         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24208
24209 2010-04-11  Jim Meyering  <meyering@redhat.com>
24210
24211         maint.mk: don't include dist-check.mk
24212         * top/maint.mk: Remove bogus include directive.
24213
24214         maint.mk: improve empty-line-at-EOF check
24215         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24216         solution, rather than tail+Perl-based one.  The latter would read
24217         a few kilobytes from the end of each file, and did not handle empty
24218         files properly.
24219
24220         maint.mk: print the elapsed time for each syntax-check rule
24221         * top/maint.mk (sc_m_rules_): Save start time in a file.
24222         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24223         (local-check): Interpose the .z rules
24224
24225 2010-04-11  Jim Meyering  <meyering@redhat.com>
24226
24227         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24228         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24229         empty file with one that ends in an empty line.
24230
24231 2010-04-10  Bruno Haible  <bruno@clisp.org>
24232
24233         mkdir: Make it work on mingw64.
24234         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24235         * lib/mkdir.c: Update comment.
24236         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24237
24238 2010-04-10  Bruno Haible  <bruno@clisp.org>
24239
24240         Don't override improved macro from newer autoconf.
24241         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24242         autoconf >= 2.62.
24243         Reported by Joel E. Denny <jdenny@clemson.edu>.
24244
24245 2010-04-10  Jim Meyering  <meyering@redhat.com>
24246
24247         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24248         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24249
24250         maint.mk: correct a diagnostic
24251         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24252         in diagnostic; now use $prohibit.
24253
24254 2010-04-10  Bruno Haible  <address@hidden>
24255
24256         fchownat: Fix a C++ test error on Solaris 8.
24257         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24258         the function does not exist.
24259
24260 2010-04-10  Bruno Haible  <bruno@clisp.org>
24261
24262         vasnprintf: Add more tests.
24263         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24264         (test_function): Test converting an invalid wide string.
24265
24266         vasnprintf: Correct handling of unconvertible wide string arguments.
24267         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24268         VASNPRINTF.
24269         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24270         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24271         smaller than the expected maximum need for the directive. Set errno to
24272         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24273         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24274         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24275         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24276         * modules/vasnprintf (Files): Add m4/printf.m4.
24277         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24278
24279 2010-04-10  Bruno Haible  <bruno@clisp.org>
24280
24281         vasnprintf: Fix crash in %ls directive.
24282         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24283         string is passed as argument to %ls, with no precision and no width.
24284         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24285
24286 2010-04-10  Bruno Haible  <bruno@clisp.org>
24287
24288         vasnprintf: Fix multiple test failures on mingw.
24289         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24290         _snprintf, or snwprintf, not _snwprintf.
24291
24292 2010-04-10  Bruno Haible  <bruno@clisp.org>
24293
24294         write: Fix a C++ test error on mingw.
24295         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24296
24297 2010-04-10  Bruno Haible  <bruno@clisp.org>
24298
24299         vasnprintf test: Reduce code duplication.
24300         * tests/test-vasnprintf.c (test_function): New function, extracted from
24301         test_vasnprintf.
24302         (test_vasnprintf, test_asnprintf): Invoke it.
24303
24304 2010-04-10  Bruno Haible  <bruno@clisp.org>
24305
24306         strnlen: Fix warning in C++ mode on MacOS X.
24307         * lib/string.in.h (strnlen): Use the modern idiom.
24308         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24309         defining strnlen as a macro already in <config.h>.
24310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24311         REPLACE_STRNLEN.
24312         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24313         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24314
24315 2010-04-08  James Youngman  <jay@gnu.org>
24316
24317         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24318         the example.
24319
24320 2010-04-09  Jim Meyering  <meyering@redhat.com>
24321
24322         maint.mk: print better diagnostic when there is no $(_hv_file)
24323         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24324         announce that when $(_hv_file) (aka help-version) does not exist.
24325
24326         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24327         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24328         not try to interpret its random input bytes.  Jarno Rajahalme reported
24329         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24330         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24331         (mktempd_): Likewise, just in case.
24332
24333         ftruncate: add two years to projected module removal date: 2012
24334         * m4/ftruncate.m4: Adjust comments.
24335
24336         ftruncate: mark module as obsolete; even MinGW provides it, now
24337         * modules/ftruncate (Status): Obsolete.
24338         (Notice): Say that.
24339         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24340         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24341
24342 2010-04-08  Bruno Haible  <bruno@clisp.org>
24343
24344         Fix side effects from tests-related modules.
24345         * modules/dprintf-posix (Comment): New section.
24346         * modules/fprintf-posix (Comment): Likewise.
24347         * modules/obstack-printf-posix (Comment): Likewise.
24348         * modules/printf-posix (Comment): Likewise.
24349         * modules/snprintf-posix (Comment): Likewise.
24350         * modules/sprintf-posix (Comment): Likewise.
24351         * modules/vasnprintf-posix (Comment): Likewise.
24352         * modules/vasprintf-posix (Comment): Likewise.
24353         * modules/vdprintf-posix (Comment): Likewise.
24354         * modules/vfprintf-posix (Comment): Likewise.
24355         * modules/vprintf-posix (Comment): Likewise.
24356         * modules/vsnprintf-posix (Comment): Likewise.
24357         * modules/vsprintf-posix (Comment): Likewise.
24358         * modules/xprintf-posix (Comment): Likewise.
24359         * modules/xvasprintf-posix (Comment): Likewise.
24360         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24361         * modules/floorf-tests (Depends-on): Likewise.
24362         * modules/round-tests (Depends-on): Likewise.
24363         * modules/roundf-tests (Depends-on): Likewise.
24364         * modules/trunc-tests (Depends-on): Likewise.
24365         * modules/truncf-tests (Depends-on): Likewise.
24366         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24367         'fprintf-posix' module is not present.
24368         * tests/test-floorf2.c (check): Likewise.
24369         * tests/test-trunc2.c (check): Likewise.
24370         * tests/test-truncf2.c (check): Likewise.
24371         * tests/test-round2.c (equal): Likewise.
24372         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24373
24374 2010-04-07  Karl Berry  <karl@gnu.org>
24375
24376         * config/srclist.txt,
24377         * config/srclistvars.sh,
24378         * config/srclist-update: doc fixes.
24379
24380 2010-04-07  Jim Meyering  <meyering@redhat.com>
24381
24382         maint.mk: add a PATH crosschecking syntax-check rule
24383         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24384         Useful if you use a test like the one in help-version (coreutils,
24385         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24386         printed by prog --version.
24387
24388 2010-04-06  Bruno Haible  <bruno@clisp.org>
24389
24390         Fix link error on mingw.
24391         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24392         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24393
24394 2010-04-06  Bruno Haible  <bruno@clisp.org>
24395
24396         Assume rmdir exists.
24397         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24398
24399 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24400
24401         doc: update users.txt
24402         * users.txt: Add gcal.
24403
24404 2010-04-06  Jim Meyering  <meyering@redhat.com>
24405
24406         init.sh: simply unset TMPDIR rather than risking env -i
24407         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24408         although it probably works fine on all Unix-based systems, some
24409         systems (Cygwin?) cannot tolerate a totally cleared environment.
24410         Suggestion from Eric Blake.
24411
24412 2010-04-06  Jim Meyering  <meyering@redhat.com>
24413
24414         init.sh: portability fix: use env's POSIX-specified -i option not -u
24415         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24416         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24417
24418 2010-04-05  Bruno Haible  <bruno@clisp.org>
24419
24420         btowc: Work around Cygwin 1.7.2 bug.
24421         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24422         does not map NUL to 0.
24423         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24424
24425 2010-04-05  Bruno Haible  <bruno@clisp.org>
24426
24427         Make the multithread modules work on Cygwin 1.7.2.
24428         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24429         imported symbols can be declared weak, so that it returns "no" on
24430         Cygwin 1.7.2.
24431
24432 2010-04-05  Bruno Haible  <bruno@clisp.org>
24433
24434         Use the module 'strncat'.
24435         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24436
24437         Tests for module 'strncat'.
24438         * modules/strncat-tests: New file.
24439         * tests/test-strncat.c: New file.
24440
24441         New module 'strncat'.
24442         * lib/string.in.h (strncat): New declaration.
24443         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24444         * m4/strncat.m4: New file, based on m4/memchr.m4.
24445         * modules/strncat: New file.
24446         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24447         is declared.
24448         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24449         REPLACE_STRNCAT.
24450         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24451         REPLACE_STRNCAT.
24452         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24453         module.
24454         * tests/test-string-c++.cc: Check signature of strncat.
24455
24456 2010-04-05  Jim Meyering  <meyering@redhat.com>
24457
24458         xstrtoumax-tests: convert to use init.sh
24459         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24460         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24461         Use Exit, not exit.
24462         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24463
24464         xstrtoimax-tests: convert to use init.sh
24465         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24466         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24467         Use Exit, not exit.
24468         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24469
24470 2010-04-05  Bruno Haible  <bruno@clisp.org>
24471
24472         sys_socket: Avoid #define replacements in C++ mode.
24473         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24474         warning to the function if possible, rather than #defining the symbol
24475         to a dysfunctional alias.
24476
24477 2010-04-05  Bruno Haible  <bruno@clisp.org>
24478
24479         fseeko: Fix C++ test error on mingw.
24480         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24481         gl_FUNC_FSEEKO.
24482         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24483         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24484         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24485         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24486
24487 2010-04-05  Bruno Haible  <bruno@clisp.org>
24488
24489         duplocale: Improve test output.
24490         * tests/test-duplocale.c (main): Print reason for skipped test.
24491
24492 2010-04-05  Bruno Haible  <bruno@clisp.org>
24493
24494         Assume rmdir exists.
24495         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24496         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24497
24498 2010-04-05  Bruno Haible  <bruno@clisp.org>
24499
24500         Fix link error on Solaris 8 with cc.
24501         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24502
24503 2010-04-05  Bruno Haible  <bruno@clisp.org>
24504
24505         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24506         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24507
24508 2010-04-05  Bruno Haible  <bruno@clisp.org>
24509
24510         vasprintf: Update documentation.
24511         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24512
24513 2010-04-05  Bruno Haible  <bruno@clisp.org>
24514
24515         ptsname: Improve test.
24516         * tests/test-ptsname.c (main): Also try the various master names of BSD
24517         systems.
24518
24519 2010-04-05  Bruno Haible  <bruno@clisp.org>
24520
24521         memchr: Avoid a possible C++ test error.
24522         * lib/string.in.h (memchr): Provide declaration if function is missing.
24523         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24524         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24526         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24527
24528 2010-04-05  Bruno Haible  <bruno@clisp.org>
24529
24530         strtok_r: Improve idiom.
24531         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24532         AC_LIBOBJ is used.
24533
24534 2010-04-05  Bruno Haible  <bruno@clisp.org>
24535
24536         strdup: Improve idiom.
24537         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24538         AC_LIBOBJ is used.
24539         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24540         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24541         when AC_LIBOBJ is used.
24542
24543 2010-04-05  Bruno Haible  <bruno@clisp.org>
24544
24545         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24546         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24547         don't set REPLACE_MBSINIT to 1.
24548         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24549         don't set REPLACE_MBRTOWC to 1.
24550         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24551         exist, don't set REPLACE_MBSRTOWCS to 1.
24552         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24553         exist, don't set REPLACE_MBSNRTOWCS to 1.
24554         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24555         don't set REPLACE_WCRTOMB to 1.
24556         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24557         exist, don't set REPLACE_WCSRTOMBS to 1.
24558         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24559         exist, don't set REPLACE_WCSNRTOMBS to 1.
24560
24561 2010-04-05  Bruno Haible  <bruno@clisp.org>
24562
24563         ldexpl: Improve idiom.
24564         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24565         make sure to set HAVE_DECL_LDEXPL to 0.
24566
24567 2010-04-05  Jim Meyering  <meyering@redhat.com>
24568
24569         xstrtol-tests: convert to use init.sh
24570         * modules/xstrtol-tests (Files): Add tests/init.sh.
24571         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24572         Use Exit, not exit.
24573         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24574
24575         atexit-tests: convert to use init.sh
24576         * modules/atexit-tests (Files): Add tests/init.sh.
24577         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24578         Use Exit, not exit.
24579         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24580
24581         init.sh: fix typo
24582         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24583
24584         init.sh: make it easier for a test script to write to the tty, ...
24585         when using automake's parallel-tests mode.
24586         * tests/init.sh (stderr_fileno_): Define overridable variable.
24587         (warn_): New function, to use it.
24588         (fail_, skip_, framework_failure_): Use warn_.
24589
24590 2010-04-04  Bruno Haible  <bruno@clisp.org>
24591
24592         btowc: Avoid warning.
24593         * lib/btowc.c: Include <stdlib.h>.
24594         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24595
24596 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24597             Bruno Haible  <bruno@clisp.org>
24598
24599         wchar: Port to NetBSD 1.5.
24600         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24601         * lib/wctype.in.h (WEOF): Likewise.
24602
24603 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24604             Bruno Haible  <bruno@clisp.org>
24605
24606         Port extended stdio to NetBSD 1.5.
24607         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24608         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24609         older.
24610
24611 2010-04-04  Bruno Haible  <bruno@clisp.org>
24612
24613         string: Remove unused substitution.
24614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24615         HAVE_DECL_STRERROR.
24616         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24617
24618 2010-04-04  Bruno Haible  <bruno@clisp.org>
24619
24620         strtod: Avoid a possible C++ test error.
24621         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24622         set REPLACE_STRTOD.
24623
24624 2010-04-04  Bruno Haible  <bruno@clisp.org>
24625
24626         strerror: Update documentation.
24627         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24628
24629 2010-04-04  Bruno Haible  <bruno@clisp.org>
24630
24631         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24632         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24633         _GL_CXXALIAS_SYS_CAST.
24634
24635 2010-04-04  Bruno Haible  <bruno@clisp.org>
24636
24637         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24638         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24639         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24640         REPLACE_FREXPL to 1.
24641         * doc/posix-functions/frexpl.texi: Update documentation.
24642
24643 2010-04-04  Bruno Haible  <bruno@clisp.org>
24644
24645         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24646         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24647
24648 2010-04-04  Bruno Haible  <bruno@clisp.org>
24649
24650         Implement nanosleep for native Windows.
24651         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24652
24653 2010-04-04  Bruno Haible  <bruno@clisp.org>
24654
24655         math: Fix some C++ test errors on Solaris 8.
24656         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24657
24658 2010-04-04  Bruno Haible  <bruno@clisp.org>
24659
24660         math: Fix some C++ test errors on Cygwin.
24661         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24662         truncl): Provide declaration if the system does not have it.
24663         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24664         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24665         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24666         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24667         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24668         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24669         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24670         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24671         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24672         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24673         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24674         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24675         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24676         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24677         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24678         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24680         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24681         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24682         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24683         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24684         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24685
24686 2010-04-04  Bruno Haible  <bruno@clisp.org>
24687
24688         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24689         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24690         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24691         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24692         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24693         * m4/isinf.m4 (gl_ISINF): Likewise.
24694         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24695
24696 2010-04-04  Bruno Haible  <bruno@clisp.org>
24697
24698         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24699         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24700
24701 2010-04-04  Bruno Haible  <bruno@clisp.org>
24702
24703         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24704         * modules/tmpfile (configure.ac): Update.
24705
24706         tmpfile: Fix C++ test error on mingw.
24707         * lib/stdio.in.h (tmpfile): New declaration.
24708         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24709         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24710         * modules/tmpfile (Depends-on): Add stdio.
24711         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24712         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24713         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24714         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24715         REPLACE_TMPFILE.
24716         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24717
24718 2010-04-04  Bruno Haible  <bruno@clisp.org>
24719
24720         ioctl: Fix C++ test error on mingw.
24721         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24722         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24723         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24724
24725 2010-04-03  Bruno Haible  <bruno@clisp.org>
24726
24727         wcwidth: Fix C++ test error on mingw.
24728         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24730         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24731
24732 2010-04-03  Bruno Haible  <bruno@clisp.org>
24733
24734         nanosleep: Fix C++ test error on mingw.
24735         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24736         * lib/time.in.h (nanosleep): Use modern idiom.
24737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24738         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24739         REPLACE_NANOSLEEP to 1.
24740         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24741         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24742
24743 2010-04-03  Bruno Haible  <bruno@clisp.org>
24744
24745         strptime: Fix C++ test error on mingw.
24746         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24747         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24748         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24749         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24750         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24751         not REPLACE_STRPTIME.
24752         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24753         REPLACE_STRPTIME.
24754
24755 2010-04-03  Bruno Haible  <bruno@clisp.org>
24756
24757         timegm: Fix C++ test error on mingw.
24758         * lib/time.in.h (timegm): Use modern idiom.
24759         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24760         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24761         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24762         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24763
24764 2010-04-03  Bruno Haible  <bruno@clisp.org>
24765
24766         timegm: Assume declaration if function exists.
24767         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24768         if it exists. Don't clobber ac_cv_func_timegm.
24769
24770 2010-04-03  Bruno Haible  <bruno@clisp.org>
24771
24772         time_r: Fix C++ test error on mingw.
24773         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24774         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24775         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24776         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24777         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24778
24779 2010-04-03  Bruno Haible  <bruno@clisp.org>
24780
24781         time_r: Minor updates.
24782         * modules/time_r (Description): Mention the provided functions.
24783         * lib/time_r.c: Don't include <string.h>.
24784         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24785         * doc/posix-functions/localtime_r.texi: Likewise.
24786
24787 2010-04-03  Bruno Haible  <bruno@clisp.org>
24788
24789         time: Fix regression introduced on 2010-03-08.
24790         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24791         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24792
24793 2010-04-03  Jim Meyering  <meyering@redhat.com>
24794
24795         maint.mk: don't silently disable project-specific syntax-check rules
24796         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24797         that they need to convert their project-specific syntax-check rules
24798         to use the new _sc_search_regexp.
24799
24800 2010-04-03  Bruno Haible  <bruno@clisp.org>
24801
24802         fchdir: Fix regression introduced on 2010-03-08.
24803         * lib/unistd.in.h (fchdir): Fix declaration.
24804         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24806         REPLACE_FCHDIR.
24807         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24808         REPLACE_FCHDIR.
24809
24810 2010-04-03  Bruno Haible  <bruno@clisp.org>
24811
24812         getpagesize: Fix C++ test error on mingw.
24813         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24814         system does not declare the function.
24815         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24816         declared.
24817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24818         HAVE_DECL_GETPAGESIZE.
24819         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24820
24821 2010-04-03  Bruno Haible  <bruno@clisp.org>
24822
24823         stdio: Make C++ tests work on mingw.
24824         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24825         does not declare the function.
24826
24827 2010-04-03  Bruno Haible  <bruno@clisp.org>
24828
24829         ftello: Fix C++ test error on mingw.
24830         * lib/stdio.in.h (ftello): Use modern idiom.
24831         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24832         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24833         is missing and that it needs to be replaced.
24834         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24836         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24837
24838 2010-04-03  Bruno Haible  <bruno@clisp.org>
24839
24840         fseeko: Fix C++ test error on mingw.
24841         * lib/stdio.in.h (fseeko): Use modern idiom.
24842         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24843         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24844         is missing and that it needs to be replaced.
24845         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24847         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24848
24849 2010-04-03  Bruno Haible  <bruno@clisp.org>
24850
24851         mkstemp: Fix C++ test error on mingw.
24852         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24853         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24854         function is missing and that it needs to be replaced.
24855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24856         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24857
24858 2010-04-03  Bruno Haible  <bruno@clisp.org>
24859
24860         stpncpy: Fix C++ test error on mingw.
24861         * lib/string.in.h (stpncpy): Use modern idiom.
24862         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24863         function is missing and that it needs to be replaced.
24864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24865         REPLACE_STPNCPY.
24866         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24867
24868 2010-04-03  Bruno Haible  <bruno@clisp.org>
24869
24870         sys_stat: Fix C++ test error on mingw.
24871         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24872         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24873
24874 2010-04-03  Bruno Haible  <bruno@clisp.org>
24875
24876         pty: Update doc.
24877         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24878
24879 2010-04-03  Bruno Haible  <bruno@clisp.org>
24880
24881         unistd: Fix C++ test error on mingw.
24882         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24883
24884 2010-04-03  Bruno Haible  <bruno@clisp.org>
24885
24886         Update doc regarding mingw.
24887         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24888         * doc/glibc-functions/login_tty.texi: Likewise.
24889         * doc/glibc-functions/forkpty.texi: Likewise.
24890
24891 2010-04-03  Bruno Haible  <bruno@clisp.org>
24892
24893         stdlib: Avoid compilation failure of c-strtold on mingw.
24894         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24895
24896 2010-04-03  Bruno Haible  <bruno@clisp.org>
24897
24898         locale: Make C++ tests work on Cygwin and mingw.
24899         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24900         cannot provide the function.
24901         Reported by Simon Josefsson.
24902
24903 2010-04-03  Bruno Haible  <bruno@clisp.org>
24904
24905         localename: Port to MacOS X 10.6.
24906         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24907         memory layout of the locales in MacOS X 10.6 as well.
24908         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24909
24910 2010-04-02  Bruno Haible  <bruno@clisp.org>
24911
24912         gnulib-tool: Ensure that long-running tests are executed last.
24913         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24914         running tests after the one for the other tests.
24915
24916 2010-04-02  Bruno Haible  <bruno@clisp.org>
24917
24918         gnulib-tool: Ensure the tests in the main directory are executed first.
24919         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24920         start with the current directory.
24921
24922 2010-04-02  Bruno Haible  <bruno@clisp.org>
24923
24924         Tests for module 'havelib', moved here from GNU gettext.
24925         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24926         modifications.
24927         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24928         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24929         with modifications.
24930         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24931         modifications.
24932         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24933         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24934         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24935         with modifications.
24936         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24937         with modifications.
24938         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24939         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24940         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24941         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24942         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24943         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24944         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24945         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24946         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24947         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24948         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24949         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24950         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24951         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24952         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24953         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24954         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24955         with modifications.
24956         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24957         with modifications.
24958         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24959         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24960         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24961         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24962         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24963         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24964         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24965         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24966         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24967         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24968         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24969         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24970         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24971         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24972         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24973         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24974         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24975         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24976         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24977         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24978         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24979         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24980         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24981         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24982         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24983         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24984         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24985         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24986         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24987         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24988         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24989         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24990         * tests/havelib/rpathx/rpathx.c: New file, from
24991         gettext/autoconf-lib-link.
24992         * tests/havelib/rpathx/Makefile.am: New file, from
24993         gettext/autoconf-lib-link.
24994         * tests/havelib/rpathx/configure.ac: New file, from
24995         gettext/autoconf-lib-link with modifications.
24996         * tests/havelib/rpathy/rpathy.c: New file, from
24997         gettext/autoconf-lib-link.
24998         * tests/havelib/rpathy/Makefile.am: New file, from
24999         gettext/autoconf-lib-link.
25000         * tests/havelib/rpathy/configure.ac: New file, from
25001         gettext/autoconf-lib-link with modifications.
25002         * tests/havelib/rpathz/rpathz.c: New file, from
25003         gettext/autoconf-lib-link.
25004         * tests/havelib/rpathz/Makefile.am: New file, from
25005         gettext/autoconf-lib-link.
25006         * tests/havelib/rpathz/configure.ac: New file, from
25007         gettext/autoconf-lib-link with modifications.
25008         * tests/havelib/rpathlx/usex.c: New file, from
25009         gettext/autoconf-lib-link.
25010         * tests/havelib/rpathlx/Makefile.am: New file, from
25011         gettext/autoconf-lib-link.
25012         * tests/havelib/rpathlx/configure.ac: New file, from
25013         gettext/autoconf-lib-link with modifications.
25014         * tests/havelib/rpathly/usey.c: New file, from
25015         gettext/autoconf-lib-link.
25016         * tests/havelib/rpathly/Makefile.am: New file, from
25017         gettext/autoconf-lib-link.
25018         * tests/havelib/rpathly/configure.ac: New file, from
25019         gettext/autoconf-lib-link with modifications.
25020         * tests/havelib/rpathlz/usez.c: New file, from
25021         gettext/autoconf-lib-link.
25022         * tests/havelib/rpathlz/Makefile.am: New file, from
25023         gettext/autoconf-lib-link.
25024         * tests/havelib/rpathlz/configure.ac: New file, from
25025         gettext/autoconf-lib-link with modifications.
25026         * tests/havelib/rpathlyx/usey.c: New file, from
25027         gettext/autoconf-lib-link.
25028         * tests/havelib/rpathlyx/Makefile.am: New file, from
25029         gettext/autoconf-lib-link.
25030         * tests/havelib/rpathlyx/configure.ac: New file, from
25031         gettext/autoconf-lib-link with modifications.
25032         * tests/havelib/rpathlzyx/usez.c: New file, from
25033         gettext/autoconf-lib-link.
25034         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25035         gettext/autoconf-lib-link.
25036         * tests/havelib/rpathlzyx/configure.ac: New file, from
25037         gettext/autoconf-lib-link with modifications.
25038         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25039         with modifications.
25040
25041 2010-04-02  Bruno Haible  <bruno@clisp.org>
25042
25043         gnulib-tool: Create distributed built sources also for the tests.
25044         * gnulib-tool (func_create_testdir): Also generate distributed built
25045         sources in the tests directory.
25046
25047 2010-04-02  Bruno Haible  <bruno@clisp.org>
25048
25049         gnulib-tool: Obey user's environment variables.
25050         * gnulib-tool (func_create_testdir): When creating built sources,
25051         respect the environment variables for autoconf, automake, etc. given by
25052         the user.
25053
25054 2010-04-02  Bruno Haible  <bruno@clisp.org>
25055
25056         gnulib-tool: Provide the value of --m4-base to modules.
25057         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25058         of gl_m4_base.
25059
25060 2010-04-02  Eric Blake  <eblake@redhat.com>
25061
25062         maint.mk: fix some fallout
25063         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25064         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25065
25066 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25067
25068         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25069         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25070         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25071         (sc_cast_of_x_alloc_return_value): Likewise.
25072         (sc_cast_of_alloca_return_value): Likewise.
25073         (sc_space_tab): Likewise.
25074         (sc_prohibit_atoi_atof): Likewise.
25075         (sc_prohibit_magic_number_exit): Likewise.
25076         (sc_error_exit_success): Likewise.
25077         (sc_file_system): Likewise.
25078         (sc_prohibit_have_config_h): Likewise.
25079         (sc_require_config_h): Likewise.
25080         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25081         (sc_obsolete_symbols): Likewise.
25082         (sc_changelog): Likewise.
25083         (sc_program_name): Likewise.
25084         (sc_the_the): Likewise.
25085         (sc_trailing_blank): Likewise.
25086         (sc_two_space_separator_in_usage): Likewise.
25087         (sc_useless_cpp_parens): Likewise.
25088         (sc_GPL_version): Likewise.
25089         (sc_GFDL_version): Likewise.
25090         (sc_texinfo_acronym): Likewise.
25091         (sc_prohibit_cvs_keyword): Likewise.
25092         (sc_prohibit_stat_st_blocks): Likewise.
25093         (sc_prohibit_S_IS_definition): Likewise.
25094         (sc_redundant_const): Likewise.
25095         (sc_makefile_TAB_only_indentation): Likewise.
25096         (sc_m4_quote_check): Likewise.
25097         (sc_makefile_path_separator_check): Likewise.
25098         (sc_copyright_check): Likewise.
25099         (sc_Wundef_boolean): Likewise.
25100         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25101
25102         maint.mk: match 0 or more whitespace-before-function-call '('
25103         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25104         that have zero or two-and-more spaces between the function name
25105         and the open parenthesis.
25106         (sc_error_message_warn_fatal): Likewise.
25107         (sc_error_message_uppercase): Likewise.
25108         (sc_error_message_period): Likewise.
25109
25110 2010-03-31  Eric Blake  <eblake@redhat.com>
25111
25112         maint.mk: check for [ as well as test
25113         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25114         Based on a libvirt report by Matthias Bolte.
25115
25116         gnumakefile: don't squelch _version output
25117         * top/GNUmakefile (_version): Create one-shot dependency rather
25118         than using $(shell) when version must be regenerated.
25119         (_autoreconf): Run verbosely, by default.
25120
25121         sys_time: avoid compiler warnings
25122         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25123         unconditional, fixing regression from 2010-03-29.
25124         Reported by Simon Josefsson.
25125
25126 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25127
25128         maint.mk: s/_header_without_use/_sc_header_without_use/
25129         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25130         (sc_prohibit_assert_without_use): Use the new name.
25131         (sc_prohibit_close_stream_without_use): Likewise.
25132         (sc_prohibit_getopt_without_use): Likewise.
25133         (sc_prohibit_quotearg_without_use): Likewise.
25134         (sc_prohibit_quote_without_use): Likewise.
25135         (sc_prohibit_long_options_without_use): Likewise.
25136         (sc_prohibit_inttostr_without_use): Likewise.
25137         (sc_prohibit_ignore_value_without_use): Likewise.
25138         (sc_prohibit_error_without_use): Likewise.
25139         (sc_prohibit_xalloc_without_use): Likewise.
25140         (sc_prohibit_hash_without_use): Likewise.
25141         (sc_prohibit_hash_pjw_without_use): Likewise.
25142         (sc_prohibit_safe_read_without_use): Likewise.
25143         (sc_prohibit_argmatch_without_use): Likewise.
25144         (sc_prohibit_canonicalize_without_use): Likewise.
25145         (sc_prohibit_root_dev_ino_without_use): Likewise.
25146         (sc_prohibit_openat_without_use): Likewise.
25147         (sc_prohibit_c_ctype_without_use): Likewise.
25148         (sc_prohibit_signal_without_use): Likewise.
25149         (sc_prohibit_intprops_without_use): Likewise.
25150
25151 2010-03-30  Eric Blake  <eblake@redhat.com>
25152
25153         maint: improve module indicators
25154         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25155         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25156         columns, and avoid extra macro expansion.
25157
25158         fdopendir: work around FreeBSD bug
25159         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25160         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25161         * modules/dirent (Makefile.am): Substitute it.
25162         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25163         declaration.
25164         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25165         fix.
25166         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25167
25168 2010-03-29  Bruno Haible  <bruno@clisp.org>
25169
25170         Emit #pragma system_header after the inclusion guard, not before.
25171         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25172         guard that spans the entire file, not before. This enables an
25173         optimization in GCC's preprocessor.
25174         * lib/ctype.in.h: Likewise.
25175         * lib/dirent.in.h: Likewise.
25176         * lib/errno.in.h: Likewise.
25177         * lib/float.in.h: Likewise.
25178         * lib/getopt.in.h: Likewise.
25179         * lib/iconv.in.h: Likewise.
25180         * lib/langinfo.in.h: Likewise.
25181         * lib/locale.in.h: Likewise.
25182         * lib/math.in.h: Likewise.
25183         * lib/netdb.in.h: Likewise.
25184         * lib/netinet_in.in.h: Likewise.
25185         * lib/pty.in.h: Likewise.
25186         * lib/sched.in.h: Likewise.
25187         * lib/se-selinux.in.h: Likewise.
25188         * lib/search.in.h: Likewise.
25189         * lib/spawn.in.h: Likewise.
25190         * lib/stdarg.in.h: Likewise.
25191         * lib/stdint.in.h: Likewise.
25192         * lib/string.in.h: Likewise.
25193         * lib/strings.in.h: Likewise.
25194         * lib/sys_file.in.h: Likewise.
25195         * lib/sys_ioctl.in.h: Likewise.
25196         * lib/sys_time.in.h: Likewise.
25197         * lib/sys_times.in.h: Likewise.
25198         * lib/sys_utsname.in.h: Likewise.
25199         * lib/sys_wait.in.h: Likewise.
25200         * lib/sysexits.in.h: Likewise.
25201         * lib/wctype.in.h: Likewise.
25202
25203 2010-03-28  James Youngman  <jay@gnu.org>
25204
25205         save-cwd: don't leak a file descriptor when the caller execs.
25206         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25207         saved file descriptor.
25208         * modules/save-cwd (Depends-on): Depend on cloexec.
25209
25210 2010-03-29  Bruno Haible  <bruno@clisp.org>
25211
25212         Remove vestiges of fts-lgpl module.
25213         * lib/fts_.h: Assume GNULIB_FTS is 1.
25214         * lib/fts.c: Likewise.
25215         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25216
25217 2010-03-28  Bruno Haible  <bruno@clisp.org>
25218
25219         Fix definition of tests witness macro.
25220         * gnulib-tool (func_import): Fix definition of witness macro.
25221
25222 2010-03-28  Bruno Haible  <bruno@clisp.org>
25223
25224         Fix ioctl's protoype on glibc systems.
25225         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25226         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25227         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25228         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25229         signature. If not, arrange to replace the ioctl function.
25230         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25231         REPLACE_IOCTL.
25232         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25233         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25234         Reported by Ludovic Courtès <ludo@gnu.org>.
25235
25236 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25237
25238         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25239         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25240         made it so grep -r --include=GLOB* ... did not work.
25241
25242 2010-03-26  Jim Meyering  <meyering@redhat.com>
25243             Eric Blake  <eblake@redhat.com>
25244
25245         maint.mk: prohibit use of test's -o and -a operators
25246         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25247
25248 2010-03-28  Bruno Haible  <bruno@clisp.org>
25249
25250         Remove unused GNULIB_XYZ macro definitions.
25251         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25252         invocation.
25253
25254 2010-03-28  Bruno Haible  <bruno@clisp.org>
25255
25256         Mark privileged tests modules.
25257         * modules/idpriv-drop-tests (Status): New section.
25258         * modules/idpriv-droptemp-tests (Status): New section.
25259
25260 2010-03-28  Bruno Haible  <bruno@clisp.org>
25261
25262         Split C++ tests into separate tests modules.
25263         * modules/dirent-c++-tests: New file, extracted from
25264         modules/dirent-tests.
25265         * modules/dirent-tests: Depend on it.
25266         * modules/fcntl-h-c++-tests: New file, extracted from
25267         modules/fcntl-h-tests.
25268         * modules/fcntl-h-tests: Depend on it.
25269         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25270         * modules/glob-tests: Depend on it.
25271         * modules/iconv-h-c++-tests: New file, extracted from
25272         modules/iconv-h-tests.
25273         * modules/iconv-h-tests: Depend on it.
25274         * modules/langinfo-c++-tests: New file, extracted from
25275         modules/langinfo-tests.
25276         * modules/langinfo-tests: Depend on it.
25277         * modules/locale-c++-tests: New file, extracted from
25278         modules/locale-tests.
25279         * modules/locale-tests: Depend on it.
25280         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25281         * modules/math-tests: Depend on it.
25282         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25283         * modules/pty-tests: Depend on it.
25284         * modules/search-c++-tests: New file, extracted from
25285         modules/search-tests.
25286         * modules/search-tests: Depend on it.
25287         * modules/signal-c++-tests: New file, extracted from
25288         modules/signal-tests.
25289         * modules/signal-tests: Depend on it.
25290         * modules/spawn-c++-tests: New file, extracted from
25291         modules/spawn-tests.
25292         * modules/spawn-tests: Depend on it.
25293         * modules/stdio-c++-tests: New file, extracted from
25294         modules/stdio-tests.
25295         * modules/stdio-tests: Depend on it.
25296         * modules/stdlib-c++-tests: New file, extracted from
25297         modules/stdlib-tests.
25298         * modules/stdlib-tests: Depend on it.
25299         * modules/string-c++-tests: New file, extracted from
25300         modules/string-tests.
25301         * modules/string-tests: Depend on it.
25302         * modules/sys_ioctl-c++-tests: New file, extracted from
25303         modules/sys_ioctl-tests.
25304         * modules/sys_ioctl-tests: Depend on it.
25305         * modules/sys_select-c++-tests: New file, extracted from
25306         modules/sys_select-tests.
25307         * modules/sys_select-tests: Depend on it.
25308         * modules/sys_socket-c++-tests: New file, extracted from
25309         modules/sys_socket-tests.
25310         * modules/sys_socket-tests: Depend on it.
25311         * modules/sys_stat-c++-tests: New file, extracted from
25312         modules/sys_stat-tests.
25313         * modules/sys_stat-tests: Depend on it.
25314         * modules/sys_time-c++-tests: New file, extracted from
25315         modules/sys_time-tests.
25316         * modules/sys_time-tests: Depend on it.
25317         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25318         * modules/time-tests: Depend on it.
25319         * modules/unistd-c++-tests: New file, extracted from
25320         modules/unistd-tests.
25321         * modules/unistd-tests: Depend on it.
25322         * modules/wchar-c++-tests: New file, extracted from
25323         modules/wchar-tests.
25324         * modules/wchar-tests: Depend on it.
25325         * modules/wctype-c++-tests: New file, extracted from
25326         modules/wctype-tests.
25327         * modules/wctype-tests: Depend on it.
25328         Reported by Simon Josefsson.
25329
25330 2010-03-28  Bruno Haible  <bruno@clisp.org>
25331
25332         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25333         * gnulib-tool (func_exists_module): New function, extracted from
25334         func_verify_module.
25335         (func_verify_module): Use it.
25336         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25337         'foo' only if 'foo' exists.
25338         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25339         module.
25340
25341 2010-03-28  Bruno Haible  <bruno@clisp.org>
25342
25343         gnulib-tool: Add support for special categories of tests.
25344         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25345         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25346         (func_usage): Document them.
25347         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25348         inc_unportable_tests, inc_all_tests): New variables.
25349         (func_acceptable): Consider these variables.
25350         (func_modules_transitive_closure): Make it work when the 'Status' field
25351         consists of multiple words.
25352         (func_import): Store and restore the values of inc_cxx_tests,
25353         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25354         inc_all_tests in gnulib-comp.m4.
25355         (func_create_testdir): Set inc_all_tests to true.
25356         * doc/gnulib.texi (Extra tests modules): New section.
25357         Suggested by Jim Meyering.
25358
25359 2010-03-28  Bruno Haible  <bruno@clisp.org>
25360
25361         ansi-c++-opt: Allow turning off the C++ build by default.
25362         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25363         gl_CXX_CHOICE_DEFAULT_NO is defined.
25364         Requested by Eric Blake.
25365
25366 2010-03-28  Bruno Haible  <bruno@clisp.org>
25367
25368         unistd: Avoid #define replacements in C++ mode.
25369         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25370         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25371         setsockopt, shutdown, select): In C++, attach a warning to the function
25372         if possible, rather than #defining the symbol to a dysfunctional alias.
25373         Reported by John W. Eaton <jwe@gnu.org>.
25374
25375 2010-03-28  Bruno Haible  <bruno@clisp.org>
25376
25377         Fix link errors on mingw.
25378         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25379         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25380         $(LIBSOCKET).
25381         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25382         $(LIBSOCKET).
25383
25384 2010-03-28  Bruno Haible  <bruno@clisp.org>
25385             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25386
25387         lib-ignore: Determine different options for different compilers.
25388         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25389         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25390         Add comments.
25391         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25392         * NEWS: Mention the change.
25393
25394 2010-03-27  Bruno Haible  <bruno@clisp.org>
25395
25396         Remove unused GNULIB_XYZ macro definitions.
25397         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25398         * modules/fseek (configure.ac): Likewise.
25399         * modules/ioctl (configure.ac): Likewise.
25400         * modules/open (configure.ac): Likewise.
25401         * modules/stdlib-safer (configure.ac): Likewise.
25402
25403 2010-03-27  Bruno Haible  <bruno@clisp.org>
25404
25405         Add a remark about certain modules.
25406         * modules/malloc (Comment): New section.
25407         * modules/realloc (Comment): Likewise.
25408         * modules/sigpipe (Comment): Likewise.
25409
25410 2010-03-27  Bruno Haible  <bruno@clisp.org>
25411
25412         Resolve conflict between the two kinds of module indicators.
25413         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25414         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25415         * modules/canonicalize (configure.ac): Invoke
25416         gl_MODULE_INDICATOR_FOR_TESTS.
25417         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25418         GNULIB_XYZ.
25419         * tests/test-dirent-c++.cc: Likewise.
25420         * tests/test-dirent-safer.c: Likewise.
25421         * tests/test-dup2.c: Likewise.
25422         * tests/test-fchdir.c: Likewise.
25423         * tests/test-fcntl-h-c++.cc: Likewise.
25424         * tests/test-getopt.c: Likewise.
25425         * tests/test-getopt.h: Likewise.
25426         * tests/test-langinfo-c++.cc: Likewise.
25427         * tests/test-locale-c++.cc: Likewise.
25428         * tests/test-math-c++.cc: Likewise.
25429         * tests/test-pty-c++.cc: Likewise.
25430         * tests/test-search-c++.cc: Likewise.
25431         * tests/test-signal-c++.cc: Likewise.
25432         * tests/test-spawn-c++.cc: Likewise.
25433         * tests/test-stdio-c++.cc: Likewise.
25434         * tests/test-stdlib-c++.cc: Likewise.
25435         * tests/test-string-c++.cc: Likewise.
25436         * tests/test-sys_ioctl-c++.cc: Likewise.
25437         * tests/test-sys_select-c++.cc: Likewise.
25438         * tests/test-sys_socket-c++.cc: Likewise.
25439         * tests/test-sys_stat-c++.cc: Likewise.
25440         * tests/test-sys_time-c++.cc: Likewise.
25441         * tests/test-time-c++.cc: Likewise.
25442         * tests/test-unistd-c++.cc: Likewise.
25443         * tests/test-wchar-c++.cc: Likewise.
25444         * tests/uninorm/test-u8-nfc.c: Likewise.
25445         * tests/uninorm/test-u8-nfd.c: Likewise.
25446         * tests/uninorm/test-u8-nfkc.c: Likewise.
25447         * tests/uninorm/test-u8-nfkd.c: Likewise.
25448         * tests/uninorm/test-u16-nfc.c: Likewise.
25449         * tests/uninorm/test-u16-nfd.c: Likewise.
25450         * tests/uninorm/test-u16-nfkc.c: Likewise.
25451         * tests/uninorm/test-u16-nfkd.c: Likewise.
25452         * tests/uninorm/test-u32-nfc.c: Likewise.
25453         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25454         * tests/uninorm/test-u32-nfd.c: Likewise.
25455         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25456         * tests/uninorm/test-u32-nfkc.c: Likewise.
25457         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25458         * tests/uninorm/test-u32-nfkd.c: Likewise.
25459         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25460         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25461
25462 2010-03-27  Bruno Haible  <bruno@clisp.org>
25463
25464         Distinguish two kinds of module indicators.
25465         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25466         gl_MODULE_INDICATOR.
25467         (gl_MODULE_INDICATOR): New macro.
25468         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25469         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25470         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25471         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25472         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25473         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25474         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25475         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25476         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25477         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25478         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25479         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25481         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25482         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25483         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25484         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25485         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25486         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25487         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25488         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25489         * modules/cloexec (configure.ac): Likewise.
25490         * modules/getopt-gnu (configure.ac): Likewise.
25491         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25492         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25493         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25494         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25495
25496 2010-03-27  Bruno Haible  <bruno@clisp.org>
25497
25498         New module description field 'Comment'.
25499         * gnulib-tool: New option --extract-comment.
25500         (func_usage): Document it.
25501         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25502         (func_get_comment): New function.
25503         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25504
25505 2010-03-27  Bruno Haible  <bruno@clisp.org>
25506
25507         Addendum to 2010-02-07 commit.
25508         * gnulib-tool (func_usage): Document --extract-applicability option.
25509
25510 2010-03-27  Bruno Haible  <bruno@clisp.org>
25511
25512         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25513         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25514         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25515         rather than link errors.
25516
25517 2010-03-27  Bruno Haible  <bruno@clisp.org>
25518
25519         Avoid side effects from tests-related modules on the compilation of lib.
25520         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25521         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25522         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25523         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25524         macro.
25525         (func_import): Define a witness macro. Assign it a value that depends
25526         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25527         tests-related modules.
25528         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25529         Reported by Jim Meyering.
25530
25531 2010-03-27  Bruno Haible  <bruno@clisp.org>
25532
25533         Factorize common .m4 code.
25534         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25535         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25536         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25537         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25538         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25539         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25540         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25541         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25542         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25543         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25544         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25545         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25546         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25547         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25548         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25549         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25550         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25551         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25552         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25553         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25554         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25555         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25556         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25557         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25558         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25559         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25560         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25561         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25562         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25563         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25564         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25565         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25566
25567 2010-03-27  Bruno Haible  <bruno@clisp.org>
25568
25569         Fix a compilation error on Cygwin with g++ >= 4.3.
25570         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25571         if it is undefined or if we alias it to chmod.
25572         (lstat): Don't warn about the use of this function if it is undefined
25573         or if we alias it to stat.
25574         Reported by Simon Josefsson.
25575
25576 2010-03-27  Bruno Haible  <bruno@clisp.org>
25577
25578         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25579         * modules/getlogin (configure.ac): Update.
25580
25581         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25582         * modules/getlogin_r (configure.ac): Update.
25583
25584         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25585         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25586         * modules/inet_ntop (configure.ac): Update.
25587
25588         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25589         * modules/inet_pton (configure.ac): Update.
25590
25591         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25592         * modules/mbslen (configure.ac): Update.
25593
25594         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25595         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25596         * modules/forkpty (configure.ac): Update.
25597         * modules/openpty (configure.ac): Update.
25598
25599 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25600
25601         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25602         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25603
25604 2010-03-25  Eric Blake  <eblake@redhat.com>
25605
25606         maint: use pragma consistently across replacement headers
25607         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25608         * lib/dirent.in.h (system_header): Likewise.
25609         * lib/errno.in.h (system_header): Likewise.
25610         * lib/float.in.h (system_header): Likewise.
25611         * lib/getopt.in.h (system_header): Likewise.
25612         * lib/iconv.in.h (system_header): Likewise.
25613         * lib/inttypes.in.h (system_header): Likewise.
25614         * lib/langinfo.in.h (system_header): Likewise.
25615         * lib/locale.in.h (system_header): Likewise.
25616         * lib/math.in.h (system_header): Likewise.
25617         * lib/netdb.in.h (system_header): Likewise.
25618         * lib/netinet_in.in.h (system_header): Likewise.
25619         * lib/pty.in.h (system_header): Likewise.
25620         * lib/sched.in.h (system_header): Likewise.
25621         * lib/se-selinux.in.h (system_header): Likewise.
25622         * lib/search.in.h (system_header): Likewise.
25623         * lib/spawn.in.h (system_header): Likewise.
25624         * lib/stdarg.in.h (system_header): Likewise.
25625         * lib/stdint.in.h (system_header): Likewise.
25626         * lib/string.in.h (system_header): Likewise.
25627         * lib/strings.in.h (system_header): Likewise.
25628         * lib/sys_file.in.h (system_header): Likewise.
25629         * lib/sys_ioctl.in.h (system_header): Likewise.
25630         * lib/sys_socket.in.h (system_header): Likewise.
25631         * lib/sys_times.in.h (system_header): Likewise.
25632         * lib/sys_utsname.in.h (system_header): Likewise.
25633         * lib/sys_wait.in.h (system_header): Likewise.
25634         * lib/sysexits.in.h (system_header): Likewise.
25635         * lib/unistd.in.h (system_header): Likewise.
25636         * lib/wctype.in.h (system_header): Likewise.
25637
25638         arpa/inet: fix mingw compilation warning
25639         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25640         Reported by Matthew Bolte.
25641
25642 2010-03-25  Bruno Haible  <bruno@clisp.org>
25643
25644         Avoid collision between gnulib wrapper and libintl wrapper.
25645         * lib/printf.c (printf): Don't define if a printf wrapper is already
25646         defined in intl/printf.c.
25647         Reported by Michel Boaventura <michel@michelboaventura.com>.
25648
25649 2010-03-25  Bruno Haible  <bruno@clisp.org>
25650
25651         Use ANSI C.
25652         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25653
25654 2010-03-25  Bruno Haible  <bruno@clisp.org>
25655
25656         Minor formatting changes.
25657         * lib/acosl.c: Insert space before function argument list.
25658         * lib/argz.c: Likewise.
25659         * lib/asinl.c: Likewise.
25660         * lib/expl.c: Likewise.
25661         * lib/gen-uni-tables.c: Likewise.
25662         * lib/gettext.h: Likewise.
25663         * lib/glthread/lock.h: Likewise.
25664         * lib/tanl.c: Likewise.
25665         * lib/uniname/uniname.c: Likewise.
25666         * tests/test-idpriv-drop.c: Likewise.
25667         * tests/test-idpriv-droptemp.c: Likewise.
25668         * tests/test-lock.c: Likewise.
25669         * tests/test-tls.c: Likewise.
25670         * lib/argp-help.c: Insert space before function-like macro argument
25671         list.
25672         * lib/memcmp.c: Likewise.
25673         * tests/test-base64.c: Likewise.
25674         * lib/localename.c: Insert space before sizeof's argument list.
25675         * lib/safe-alloc.h: Likewise.
25676         * lib/file-set.h: Insert space before macro argument list.
25677         * tests/test-argp.c: Likewise.
25678         * lib/argp-namefrob.h: Insert space before function parameter list.
25679         * lib/getaddrinfo.c: Likewise.
25680         * lib/netdb.in.h: Likewise.
25681         * lib/parse-duration.h: Likewise.
25682         * lib/parse-duration.c: Likewise.
25683         * lib/poll.c: Likewise.
25684         * lib/select.c: Likewise.
25685         * lib/trim.h: Likewise.
25686         * tests/test-usleep.c: Likewise.
25687         * lib/ldexpl.c: Insert space before function parameter list and before
25688         function argument list.
25689         * lib/logl.c: Likewise.
25690         * lib/sqrtl.c: Likewise.
25691         * lib/trim.c: Likewise.
25692         * lib/cosl.c: Use GNU style indentation. Insert space before function
25693         argument list.
25694         * lib/sinl.c: Likewise.
25695         * lib/tsearch.c: Insert space after 'for'.
25696         Reported by Jim Meyering.
25697
25698 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25699
25700         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25701         config header before grepping, as it's not present before
25702         autoreconf/configure are run.  Reported by Simon Josefsson.
25703
25704 2010-03-23  Bruno Haible  <bruno@clisp.org>
25705
25706         pt_chown: Make it work with automake < 1.11.
25707         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25708         Reported by Simon Josefsson.
25709
25710 2010-03-23  Bruno Haible  <bruno@clisp.org>
25711
25712         pt_chown: Don't depend on GPLed modules.
25713         * lib/pt_chown.c: Don't include idpriv.h.
25714         (main): Don't drop privileges.
25715         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25716         Reported by Simon Josefsson.
25717
25718 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25719
25720         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25721         suggestions from karl@freefriends.org (Karl Berry).
25722
25723 2010-03-22  Eric Blake  <eblake@redhat.com>
25724
25725         gethostname: further tweaks
25726         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25727         are overriding gethostname.
25728         Suggested by Bruno Haible.
25729
25730 2010-03-21  Bruno Haible  <bruno@clisp.org>
25731
25732         Fix comments.
25733         * lib/forkpty.c (rpl_forkpty): Fix comment.
25734         * lib/openpty.c (rpl_openpty): Likewise.
25735         Reported by Eric Blake.
25736
25737 2010-03-22  Eric Blake  <eblake@redhat.com>
25738
25739         gethostname: fix build on mingw
25740         * lib/unistd.in.h (includes): Work around fact that mingw
25741         <winsock2.h> re-includes <unistd.h>, by avoiding any
25742         redeclarations if we are being included by <winsock2.h>.
25743         Reported by Matthias Bolte.
25744
25745 2010-03-21  Bruno Haible  <bruno@clisp.org>
25746
25747         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25748         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25749         modifications.
25750         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25751         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25752         provide the replacement.
25753         * modules/forkpty (Depends-on): Add openpty, login_tty.
25754         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25755         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25756         * doc/glibc-functions/forkpty.texi: More supported platforms.
25757         * config/srclist.txt: Add forkpty.c (commented).
25758
25759 2010-03-21  Bruno Haible  <bruno@clisp.org>
25760
25761         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25762         (Makefile.am): Verify that PTY_LIB is defined.
25763
25764         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25765
25766 2010-03-21  Bruno Haible  <bruno@clisp.org>
25767
25768         Tests for module 'login_tty'.
25769         * modules/login_tty-tests: New file.
25770         * tests/test-login_tty.c: New file.
25771
25772         New module 'login_tty'.
25773         * lib/login_tty.c: New file.
25774         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25775         * modules/login_tty: New file.
25776         * doc/glibc-functions/login_tty.texi: Mention the new module.
25777
25778 2010-03-21  Bruno Haible  <bruno@clisp.org>
25779
25780         login_tty: Documentation.
25781         * doc/glibc-functions/login_tty.texi: New file.
25782         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25783
25784 2010-03-21  Bruno Haible  <bruno@clisp.org>
25785
25786         pty: Consistent macro naming.
25787         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25788         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25789         * modules/pty (configure.ac): Update.
25790
25791 2010-03-21  Bruno Haible  <bruno@clisp.org>
25792
25793         Tests for openpty: Make stricter.
25794         * tests/test-openpty.c (main): Add test of canonical processing and
25795         erase.
25796         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25797
25798         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25799         * lib/openpty.c (openpty): New replacement function.
25800         * lib/pty.in.h: Include <termios.h>.
25801         (openpty): Update declaration. Add comments.
25802         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25803         is not declared, arrange to provide the replacement. Check for _getpty
25804         and posix_openpt.
25805         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25806         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25807         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25808         * modules/pty-tests (test_pty_c___LDADD): New variable.
25809         * doc/glibc-functions/openpty.texi: More supported platforms.
25810
25811 2010-03-21  Bruno Haible  <bruno@clisp.org>
25812
25813         setenv: Tweaks.
25814         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25815         the test program.
25816         * doc/posix-functions/setenv.texi: Update platforms list.
25817
25818 2010-03-21  Bruno Haible  <bruno@clisp.org>
25819
25820         New module 'unlockpt'.
25821         * lib/unlockpt.c: New file, from glibc with modifications.
25822         * m4/unlockpt.m4: New file.
25823         * modules/unlockpt: New file.
25824         * lib/stdlib.in.h (unlockpt): New declaration.
25825         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25826         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25827         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25828         HAVE_UNLOCKPT.
25829         * doc/posix-functions/unlockpt.texi: Mention the new module.
25830         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25831         * config/srclist.txt: Add unlockpt.c (commented).
25832
25833 2010-03-21  Jim Meyering  <meyering@redhat.com>
25834
25835         maint.mk: prohibit inclusion of "intprops.h" without use
25836         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25837
25838 2010-03-21  Bruno Haible  <bruno@clisp.org>
25839
25840         New module 'grantpt'.
25841         * lib/grantpt.c: New file, from glibc with modifications.
25842         * m4/grantpt.m4: New file.
25843         * modules/grantpt: New file.
25844         * lib/stdlib.in.h (grantpt): New declaration.
25845         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25846         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25847         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25848         HAVE_GRANTPT.
25849         * doc/posix-functions/grantpt.texi: Mention the new module.
25850         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25851         * config/srclist.txt: Add grantpt.c (commented).
25852
25853 2010-03-21  Bruno Haible  <bruno@clisp.org>
25854
25855         New module 'pt_chown'.
25856         * lib/pt_chown.c: New file, from glibc with modifications.
25857         * lib/pty-private.h: New file, from glibc with modifications.
25858         * modules/pt_chown: New file.
25859         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25860
25861 2010-03-21  Bruno Haible  <bruno@clisp.org>
25862
25863         Tests for module 'ptsname'.
25864         * modules/ptsname-tests: New file.
25865         * tests/test-ptsname.c: New file.
25866
25867         New module 'ptsname'.
25868         * lib/ptsname.c: New file, from glibc with modifications.
25869         * m4/ptsname.m4: New file.
25870         * modules/ptsname: New file.
25871         * lib/stdlib.in.h (ptsname): New declaration.
25872         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25873         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25874         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25875         HAVE_PTSNAME.
25876         * doc/posix-functions/ptsname.texi: Mention the new module.
25877         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25878         * config/srclist.txt: Add ptsname.c (commented).
25879
25880 2010-03-21  Bruno Haible  <bruno@clisp.org>
25881
25882         Tests for module 'ttyname_r'.
25883         * modules/ttyname_r-tests: New file.
25884         * tests/test-ttyname_r.c: New file.
25885
25886         New module 'ttyname_r'.
25887         * lib/ttyname_r.c: New file.
25888         * m4/ttyname_r.m4: New file.
25889         * modules/ttyname_r: New file.
25890         * lib/unistd.in.h (ttyname_r): New declaration.
25891         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25892         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25893         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25894         HAVE_TTYNAME_R.
25895         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25896         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25897
25898 2010-03-20  Bruno Haible  <bruno@clisp.org>
25899
25900         signal: Undefine macro definitions in C++ mode.
25901         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25902         sigfillset): Undefine macro definitions from the system header in C++
25903         mode.
25904         Reported by John W. Eaton <jwe@gnu.org>.
25905
25906 2010-03-20  Bruno Haible  <bruno@clisp.org>
25907
25908         Ensure no #include statements inside extern "C" { ... }.
25909         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25910         contain #include statements.
25911         * lib/time.in.h: Likewise.
25912
25913 2010-03-20  Bruno Haible  <bruno@clisp.org>
25914
25915         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25916         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25917         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25918         Reported by John W. Eaton <jwe@gnu.org>.
25919
25920 2010-03-20  Bruno Haible  <bruno@clisp.org>
25921
25922         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25923         Reported by Jim Meyering.
25924
25925 2010-03-20  Bruno Haible  <bruno@clisp.org>
25926
25927         pipe: Set errno upon failure.
25928         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25929         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25930         errno value in error message.
25931
25932 2010-03-20  Bruno Haible  <bruno@clisp.org>
25933             Jim Meyering  <meyering@redhat.com>
25934
25935         lchown: Avoid "unused variable" warning.
25936         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25937
25938 2010-03-20  Bruno Haible  <bruno@clisp.org>
25939
25940         Work around unlink() bug on MacOS X 10.5.6.
25941         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25942         attempting to unlink a parent directory.
25943         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25944         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25945         activate for the replacement function.
25946         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25947
25948 2010-03-20  Bruno Haible  <bruno@clisp.org>
25949
25950         Fix link errors on Solaris 8.
25951         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25952         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25953
25954 2010-03-19  Jim Meyering  <meyering@redhat.com>
25955
25956         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25957         The _LIBC implementation of build_range_exp correctly honors the
25958         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25959         However, the non-_LIBC implementation would ignore that syntax-bit
25960         flag and return REG_ERANGE unconditionally.
25961         This change makes it honor that flag.
25962         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25963         Make two pointer parameters "const".
25964         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25965         (parse_bracket_exp): Update caller.
25966
25967         regex.m4: correct the reversed range endpoint ([b-a]) test
25968         * m4/regex.m4: When requiring that [b-a] evoke failure,
25969         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25970         test pass once again for x86-based systems.
25971
25972 2010-03-19  Bruno Haible  <bruno@clisp.org>
25973
25974         scandir: Fix link error on Solaris 8.
25975         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25976         macros.
25977
25978 2010-03-19  Bruno Haible  <bruno@clisp.org>
25979
25980         getusershell: Fix documentation.
25981         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25982         module.
25983         * doc/glibc-functions/setusershell.texi: Likewise.
25984
25985         getusershell: Provide declaration, missing on Solaris 9.
25986         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25987         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25988         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25989         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25991         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25992         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25993         HAVE_GETUSERSHELL.
25994         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25995
25996 2010-03-19  Bruno Haible  <bruno@clisp.org>
25997
25998         wctype: Provide iswblank function.
25999         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26000         exists and is fine.
26001         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26002         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26003         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26004         * doc/posix-functions/iswblank.texi: Update.
26005
26006 2010-03-19  Bruno Haible  <bruno@clisp.org>
26007
26008         Tests of module 'pty' in C++ mode.
26009         * modules/pty-tests: New file.
26010         * tests/test-pty-c++.cc: New file.
26011         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26012
26013 2010-03-19  Eric Blake  <eblake@redhat.com>
26014
26015         logb: fix documentation
26016         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26017         1.5 declaration bug.
26018
26019         forkpty, openpty: prefer glibc's const-safe prototype
26020         * lib/forkpty.c (rpl_forkpty): New file.
26021         * lib/openpty.c (rpl_openpty): Likewise.
26022         * modules/forkpty (Files): Distribute it.
26023         * modules/openpty (Files): Likewise.
26024         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26025         check...
26026         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26027         replacement for for non-const BSD signature.
26028         * modules/pty (Makefile.am): Substitute witnesses.
26029         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26030         * tests/test-forkpty.c: Update signature check.
26031         * tests/test-openpty.c: Likewise.
26032         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26033         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26034
26035         forkpty, openpty: split functions into new modules
26036         * modules/pty (Makefile.am): Substitute new witnesses.
26037         (Libraries): Move library detection...
26038         * modules/forkpty: ...into new module.
26039         * modules/openpty: Another new module.
26040         * modules/pty-tests: Rename and split...
26041         * modules/forkpty-tests: ...to this...
26042         * modules/openpty-tests: ...and this.
26043         * tests/test-pty.c: Rename and split...
26044         * tests/test-forkpty.c: ...to this...
26045         * tests/test-openpty.c: ...and this.
26046         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26047         (gl_PTY): Split library searching...
26048         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26049         (gl_FORKPTY, gl_OPENPTY): New macros.
26050         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26051         * NEWS: Mention the split.
26052         * MODULES.html.sh (Misc): Document the modules.
26053         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26054         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26055
26056         pty: improve replacement header
26057         * lib/pty.in.h: New file.
26058         * modules/pty (Files): Ship it.
26059         (Makefile.am): Always build replacement.
26060         * m4/pty.m4: Rename...
26061         * m4/pty_h.m4: ...to this.
26062         (gl_PTY): Modernize setting of witness macros; update check of
26063         forkpty to take proper advantage of cache.
26064         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26065
26066         getopt: avoid compiler warning
26067         * lib/getopt.c (attribute_hidden): Remove unused macro.
26068
26069 2010-03-18  Bruno Haible  <bruno@clisp.org>
26070
26071         Fix link errors on Solaris 8.
26072         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26073         * modules/search-tests (test_search_c___LDADD): Likewise.
26074         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26075         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26076         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26077         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26078         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26079         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26080         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26081
26082 2010-03-18  Bruno Haible  <bruno@clisp.org>
26083
26084         Fix bug introduced on 2010-03-14.
26085         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26086         (gl_SPAWN_H): Require it.
26087         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26088         Reported by Simon Josefsson.
26089
26090 2010-03-18  Bruno Haible  <bruno@clisp.org>
26091
26092         Fix typo introduced on 2009-12-31.
26093         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26094         posix_spawn_file_actions_adddup2.
26095
26096 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26097         and Eric Blake  <eblake@redhat.com>
26098
26099         test-vc-list-files-git: make more robust
26100         * tests/test-vc-list-files-git.sh: Unset problematic environment
26101         variables.  Chain commands together.
26102
26103 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26104
26105         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26106         `AC_CHECK_DECL' invocation.
26107
26108 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26109
26110         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26111         appears before executable statements. Suggested by Petr Sumbera
26112         <Petr.Sumbera@Sun.COM>.
26113
26114 2010-03-14  Bruno Haible  <bruno@clisp.org>
26115
26116         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26117         portability problems. Instead use a simpler test.
26118         (main): Check that invalid arguments are rejected only on Linux.
26119
26120 2010-03-14  Bruno Haible  <bruno@clisp.org>
26121
26122         Fix bug introduced on 2009-12-31.
26123         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26124         gl_PREREQ_SYS_H_WINSOCK2 always.
26125         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26126         SYS_SOCKET_H variable.
26127         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26128         Update comments.
26129         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26130         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26131         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26132         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26133         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26134
26135 2010-03-14  Bruno Haible  <bruno@clisp.org>
26136
26137         Fix values returned by sinl, cosl.
26138         * lib/trigl.h: Add specification comments.
26139         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26140         that combines the values from the precomputed table with the values of
26141         the Chebyshev polynomials.
26142
26143 2010-03-14  Bruno Haible  <bruno@clisp.org>
26144
26145         Fix compilation error when modules 'posix_spawn[p]' are not used.
26146         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26147         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26148
26149 2010-03-14  Bruno Haible  <bruno@clisp.org>
26150
26151         Fix compilation error on mingw when module 'time_r' is not used.
26152         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26153         is 1.
26154         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26155         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26156         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26157         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26158
26159 2010-03-14  Bruno Haible  <bruno@clisp.org>
26160
26161         Fix compilation error with Sun C.
26162         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26163         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26164         instead of GCC specific ULONG_LONG_MAX.
26165         * lib/xstrtoll.c: Likewise.
26166         * lib/xstrtoull.c: Likewise.
26167
26168 2010-03-13  Bruno Haible  <bruno@clisp.org>
26169
26170         Allow the user to disable C++ code and tests.
26171         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26172         (gl_PROG_ANSI_CXX): Require it.
26173
26174 2010-03-13  Bruno Haible  <bruno@clisp.org>
26175
26176         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26177         cases.
26178
26179 2010-03-13  Bruno Haible  <bruno@clisp.org>
26180
26181         Test that gnulib does not break the standard C++ headers.
26182         * tests/test-locale-c++2.cc: New file.
26183         * modules/locale-tests (Files): Add it.
26184         (Makefile.am): Compile it for test-locale-c++.
26185         * tests/test-math-c++2.cc: New file.
26186         * modules/math-tests (Files): Add it.
26187         (Makefile.am): Compile it for test-math-c++.
26188         * tests/test-signal-c++2.cc: New file.
26189         * modules/signal-tests (Files): Add it.
26190         (Makefile.am): Compile it for test-signal-c++.
26191         * tests/test-stdio-c++2.cc: New file.
26192         * modules/stdio-tests (Files): Add it.
26193         (Makefile.am): Compile it for test-stdio-c++.
26194         * tests/test-stdlib-c++2.cc: New file.
26195         * modules/stdlib-tests (Files): Add it.
26196         (Makefile.am): Compile it for test-stdlib-c++.
26197         * tests/test-string-c++2.cc: New file.
26198         * modules/string-tests (Files): Add it.
26199         (Makefile.am): Compile it for test-string-c++.
26200         * tests/test-time-c++2.cc: New file.
26201         * modules/time-tests (Files): Add it.
26202         (Makefile.am): Compile it for test-time-c++.
26203         Reported by John W. Eaton <jwe@gnu.org>.
26204
26205 2010-03-13  Bruno Haible  <bruno@clisp.org>
26206
26207         * gnulib-tool (func_usage): Clarify which options are available for
26208         --create-testdir and --create-megatestdir.
26209
26210 2010-03-13  Bruno Haible  <bruno@clisp.org>
26211
26212         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26213         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26214         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26215         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26216         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26217         when appropriate.
26218         Reported by Jim Meyering.
26219
26220 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26221
26222         * gnulib-tool (func_import): Explain origin of code.
26223
26224 2010-03-12  Bruno Haible  <bruno@clisp.org>
26225
26226         Fix problem with automake's definition of CXXLINK.
26227         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26228         Reported by Simon Josefsson and Ludovic Courtès.
26229
26230 2010-03-12  Bruno Haible  <bruno@clisp.org>
26231
26232         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26233         stable releases.
26234
26235 2010-03-11  Bruno Haible  <bruno@clisp.org>
26236
26237         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26238         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26239         whether the system provides one variant or multiple variants of the
26240         function.
26241         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26242         C++ compilers.
26243         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26244         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26245         Reported by Jim Meyering.
26246
26247 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26248
26249         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26250
26251 2010-03-08  Bruno Haible  <bruno@clisp.org>
26252
26253         gnulib-tool: Add support for --libtool in --create-testdir.
26254         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26255         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26256
26257 2010-03-08  Eric Blake  <eblake@redhat.com>
26258
26259         gnulib-tool.texi: mention possibility of git submodule
26260         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26261         submodules.
26262         * doc/.gitignore: Ignore another generated file.
26263
26264 2010-03-08  Karl Berry  <karl@gnu.org>
26265
26266         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26267         of committing gnulib files while skipping others.
26268
26269 2010-03-07  Bruno Haible  <bruno@clisp.org>
26270
26271         Tests of module 'wctype' in C++ mode.
26272         * tests/test-wctype-c++.cc: New file.
26273         * modules/wctype-tests (Files): Add it and tests/signature.h.
26274         (Depends-on): Add ansi-c++-opt.
26275         (Makefile.am): Arrange to compile and run test-wctype-c++.
26276
26277         Tests of module 'wchar' in C++ mode.
26278         * tests/test-wchar-c++.cc: New file.
26279         * modules/wchar-tests (Files): Add it and tests/signature.h.
26280         (Depends-on): Add ansi-c++-opt.
26281         (Makefile.am): Arrange to compile and run test-wchar-c++.
26282         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26283         gl_MODULE_INDICATOR.
26284
26285         Tests of module 'unistd' in C++ mode.
26286         * tests/test-unistd-c++.cc: New file.
26287         * modules/unistd-tests (Files): Add it and tests/signature.h.
26288         (Depends-on): Add ansi-c++-opt.
26289         (Makefile.am): Arrange to compile and run test-unistd-c++.
26290         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26291         gl_MODULE_INDICATOR.
26292
26293         Tests of module 'time' in C++ mode.
26294         * tests/test-time-c++.cc: New file.
26295         * modules/time-tests (Files): Add it and tests/signature.h.
26296         (Depends-on): Add ansi-c++-opt.
26297         (Makefile.am): Arrange to compile and run test-time-c++.
26298         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26299
26300         Tests of module 'sys_time' in C++ mode.
26301         * tests/test-sys_time-c++.cc: New file.
26302         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26303         (Depends-on): Add ansi-c++-opt.
26304         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26305         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26306         gl_MODULE_INDICATOR.
26307
26308         Tests of module 'sys_stat' in C++ mode.
26309         * tests/test-sys_stat-c++.cc: New file.
26310         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26311         (Depends-on): Add ansi-c++-opt.
26312         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26313         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26314         gl_MODULE_INDICATOR.
26315
26316         Tests of module 'sys_socket' in C++ mode.
26317         * tests/test-sys_socket-c++.cc: New file.
26318         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26319         (Depends-on): Add ansi-c++-opt.
26320         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26321         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26322         gl_MODULE_INDICATOR.
26323
26324         Tests of module 'sys_select' in C++ mode.
26325         * tests/test-sys_select-c++.cc: New file.
26326         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26327         (Depends-on): Add ansi-c++-opt.
26328         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26329         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26330         gl_MODULE_INDICATOR.
26331
26332         Tests of module 'sys_ioctl' in C++ mode.
26333         * tests/test-sys_ioctl-c++.cc: New file.
26334         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26335         (Depends-on): Add ansi-c++-opt.
26336         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26337         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26338         gl_MODULE_INDICATOR.
26339
26340         Tests of module 'string' in C++ mode.
26341         * tests/test-string-c++.cc: New file.
26342         * modules/string-tests (Files): Add it and tests/signature.h.
26343         (Depends-on): Add ansi-c++-opt.
26344         (Makefile.am): Arrange to compile and run test-string-c++.
26345         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26346         gl_MODULE_INDICATOR.
26347
26348         Tests of module 'stdlib' in C++ mode.
26349         * tests/test-stdlib-c++.cc: New file.
26350         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26351         (Depends-on): Add ansi-c++-opt.
26352         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26353         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26354         gl_MODULE_INDICATOR.
26355
26356         Tests of module 'stdio' in C++ mode.
26357         * tests/test-stdio-c++.cc: New file.
26358         * modules/stdio-tests (Files): Add it and tests/signature.h.
26359         (Depends-on): Add ansi-c++-opt.
26360         (Makefile.am): Arrange to compile and run test-stdio-c++.
26361         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26362         gl_MODULE_INDICATOR.
26363
26364         Tests of module 'spawn' in C++ mode.
26365         * tests/test-spawn-c++.cc: New file.
26366         * modules/spawn-tests (Files): Add it and tests/signature.h.
26367         (Depends-on): Add ansi-c++-opt.
26368         (Makefile.am): Arrange to compile and run test-spawn-c++.
26369         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26370         gl_MODULE_INDICATOR.
26371
26372         Tests of module 'signal' in C++ mode.
26373         * tests/test-signal-c++.cc: New file.
26374         * modules/signal-tests (Files): Add it and tests/signature.h.
26375         (Depends-on): Add ansi-c++-opt.
26376         (Makefile.am): Arrange to compile and run test-signal-c++.
26377         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26378         gl_MODULE_INDICATOR.
26379
26380         Tests of module 'search' in C++ mode.
26381         * tests/test-search-c++.cc: New file.
26382         * modules/search-tests (Files): Add it and tests/signature.h.
26383         (Depends-on): Add ansi-c++-opt.
26384         (Makefile.am): Arrange to compile and run test-search-c++.
26385         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26386         gl_MODULE_INDICATOR.
26387
26388         Tests of module 'math' in C++ mode.
26389         * tests/test-math-c++.cc: New file.
26390         * modules/math-tests (Files): Add it and tests/signature.h.
26391         (Depends-on): Add ansi-c++-opt.
26392         (Makefile.am): Arrange to compile and run test-math-c++.
26393         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26394
26395         Tests of module 'locale' in C++ mode.
26396         * tests/test-locale-c++.cc: New file.
26397         * modules/locale-tests (Files): Add it and tests/signature.h.
26398         (Depends-on): Add ansi-c++-opt.
26399         (Makefile.am): Arrange to compile and run test-locale-c++.
26400         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26401         gl_MODULE_INDICATOR.
26402
26403         Tests of module 'langinfo' in C++ mode.
26404         * tests/test-langinfo-c++.cc: New file.
26405         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26406         (Depends-on): Add ansi-c++-opt.
26407         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26408         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26409         gl_MODULE_INDICATOR.
26410
26411         Tests of module 'iconv-h' in C++ mode.
26412         * tests/test-iconv-h-c++.cc: New file.
26413         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26414         (Depends-on): Add ansi-c++-opt.
26415         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26416
26417         Tests of module 'glob' in C++ mode.
26418         * tests/test-glob-c++.cc: New file.
26419         * modules/glob-tests (Files): Add it.
26420         (Depends-on): Add ansi-c++-opt.
26421         (Makefile.am): Arrange to compile and run test-glob-c++.
26422
26423         Tests of module 'fcntl-h' in C++ mode.
26424         * tests/test-fcntl-h-c++.cc: New file.
26425         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26426         (Depends-on): Add ansi-c++-opt.
26427         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26428         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26429         gl_MODULE_INDICATOR.
26430
26431         Tests of module 'dirent' in C++ mode.
26432         * tests/test-dirent-c++.cc: New file.
26433         * modules/dirent-tests (Files): Add it and tests/signature.h.
26434         (Depends-on): Add ansi-c++-opt.
26435         (Makefile.am): Arrange to compile and run test-dirent-c++.
26436         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26437         gl_MODULE_INDICATOR.
26438
26439         New module 'ansi-c++-opt'.
26440         * modules/ansi-c++-opt: New file.
26441         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26442
26443         Document C++ namespace mode.
26444         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26445
26446         wctype: Avoid #define replacements in C++ mode.
26447         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26448         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26449         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26450         In C++, define a namespaced alias symbol.
26451         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26452         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26453         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26454         rule.
26455
26456         wchar: Avoid #define replacements in C++ mode.
26457         * lib/wchar.in.h: Include c++defs.h.
26458         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26459         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26460         symbol.
26461         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26462         * modules/wchar (Depends-on): Add c++defs.
26463         (Makefile.am): Update wchar.h rule.
26464
26465         unistd: Avoid #define replacements in C++ mode.
26466         * lib/unistd.in.h: Include c++defs.h.
26467         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26468         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26469         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26470         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26471         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26472         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26473         symbol.
26474         (environ): Update.
26475         * modules/unistd (Depends-on): Add c++defs.
26476         (Makefile.am): Update unistd.h rule.
26477
26478         time: Avoid #define replacements in C++ mode.
26479         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26480         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26481         define a namespaced alias symbol.
26482         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26483         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26484         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26485         * modules/time (Depends-on): Add c++defs, warn-on-use.
26486         (Makefile.am): Update time.h rule.
26487         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26488         * modules/nanosleep (configure.ac): Likewise.
26489         * modules/strptime (configure.ac): Likewise.
26490         * modules/timegm (configure.ac): Likewise.
26491
26492         sys_time: Avoid #define replacements in C++ mode.
26493         * lib/sys_time.in.h: Include c++defs.h.
26494         (gettimeofday): In C++, define a namespaced alias symbol.
26495         * modules/sys_time (Depends-on): Add c++defs.
26496         (Makefile.am): Update sys/time.h rule.
26497
26498         sys_stat: Avoid #define replacements in C++ mode.
26499         * lib/sys_stat.in.h: Include c++defs.h.
26500         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26501         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26502         namespaced alias symbol.
26503         In C++, define a namespaced alias symbol.
26504         * modules/sys_stat (Depends-on): Add c++defs.
26505         (Makefile.am): Update sys/stat.h rule.
26506
26507         sys_socket: Avoid #define replacements in C++ mode.
26508         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26509         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26510         definitions also when the system has a <sys/socket.h>.
26511         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26512         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26513         In C++, define a namespaced alias symbol.
26514         * modules/sys_socket (Depends-on): Add c++defs.
26515         (Makefile.am): Update sys/socket.h rule.
26516
26517         sys_select: Avoid #define replacements in C++ mode.
26518         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26519         definitions also when the system has a <sys/select.h>.
26520         (select): In C++, define a namespaced alias symbol.
26521         * modules/sys_select (Depends-on): Add c++defs.
26522         (Makefile.am): Update sys/select.h rule.
26523
26524         sys_ioctl: Avoid #define replacements in C++ mode.
26525         * lib/sys_ioctl.in.h: Include c++defs.h.
26526         (ioctl): In C++, define a namespaced alias symbol.
26527         * modules/sys_ioctl (Depends-on): Add c++defs.
26528         (Makefile.am): Update sys/ioctl.h rule.
26529
26530         string: Avoid #define replacements in C++ mode.
26531         * lib/string.in.h: Include c++defs.h.
26532         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26533         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26534         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26535         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26536         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26537         * modules/string (Depends-on): Add c++defs.
26538         (Makefile.am): Update string.h rule.
26539
26540         stdlib: Avoid #define replacements in C++ mode.
26541         * lib/stdlib.in.h: Include c++defs.h.
26542         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26543         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26544         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26545         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26546         symbol.
26547         * modules/stdlib (Depends-on): Add c++defs.
26548         (Makefile.am): Update stdlib.h rule.
26549
26550         stdio: Avoid #define replacements in C++ mode.
26551         * lib/stdio.in.h: Include c++defs.h.
26552         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26553         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26554         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26555         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26556         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26557         namespaced alias symbol.
26558         * modules/stdio (Depends-on): Add c++defs.
26559         (Makefile.am): Update stdio.h rule.
26560
26561         spawn: Avoid #define replacements in C++ mode.
26562         * lib/spawn.in.h: Include c++defs.h.
26563         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26564         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26565         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26566         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26567         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26568         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26569         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26570         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26571         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26572         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26573         In C++, define a namespaced alias symbol.
26574         * modules/spawn (Depends-on): Add c++defs.
26575         (Makefile.am): Update spawn.h rule.
26576
26577         signal: Avoid #define replacements in C++ mode.
26578         * lib/signal.in.h: Include c++defs.h.
26579         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26580         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26581         namespaced alias symbol.
26582         * modules/signal (Depends-on): Add c++defs.
26583         (Makefile.am): Update signal.h rule.
26584
26585         search: Avoid #define replacements in C++ mode.
26586         * lib/search.in.h: Include c++defs.h.
26587         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26588         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26589         symbol.
26590         * modules/search (Depends-on): Add c++defs.
26591         (Makefile.am): Update search.h rule.
26592
26593         math: Avoid #define replacements in C++ mode.
26594         * lib/math.in.h: Include c++defs.h.
26595         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26596         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26597         trunc, truncl): In C++, define a namespaced alias symbol.
26598         * modules/math (Depends-on): Add c++defs.
26599         (Makefile.am): Update math.h rule.
26600
26601         locale: Avoid #define replacements in C++ mode.
26602         * lib/locale.in.h: Include c++defs.h.
26603         (duplocale): In C++, define a namespaced alias symbol.
26604         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26605         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26606         * modules/locale (Depends-on): Add c++defs.
26607         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26608
26609         langinfo: Avoid #define replacements in C++ mode.
26610         * lib/langinfo.in.h: Include c++defs.h.
26611         (nl_langinfo): In C++, define a namespaced alias symbol.
26612         * modules/langinfo (Depends-on): Add c++defs.
26613         (Makefile.am): Update langinfo.h rule.
26614
26615         iconv-h: Avoid #define replacements in C++ mode.
26616         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26617         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26618         symbol.
26619         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26620         whenever iconv is present.
26621         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26622         (Makefile.am): Update iconv.h rule.
26623
26624         glob: Avoid #define replacements in C++ mode.
26625         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26626         (_gl_glob_errfunc_fn): New type.
26627         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26628         symbol.
26629         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26630         (Makefile.am): Update glob.h rule.
26631
26632         fcntl-h: Avoid #define replacements in C++ mode.
26633         * lib/fcntl.in.h: Include c++defs.h.
26634         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26635         * modules/fcntl-h (Depends-on): Add c++defs.
26636         (Makefile.am): Update fcntl.h rule.
26637
26638         dirent: Avoid #define replacements in C++ mode.
26639         * lib/dirent.in.h: Include c++defs.h.
26640         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26641         namespaced alias symbol.
26642         (dirfd): Update declaration.
26643         * modules/dirent (Depends-on): Add c++defs.
26644         (Makefile.am): Update dirent.h rule.
26645
26646         ctype: Make it usable in C++ code.
26647         * lib/ctype.in.h: Include c++defs.h.
26648         (isblank): Declare as extern "C".
26649         * modules/ctype (Depends-on): Add c++defs.
26650         (Makefile.am): Update ctype.h rule.
26651
26652         New module 'c++defs'.
26653         * modules/c++defs: New file.
26654         * build-aux/c++defs.h: New file.
26655         Reported by John W. Eaton <jwe@gnu.org>.
26656
26657 2010-03-07  Bruno Haible  <bruno@clisp.org>
26658
26659         logb: Provide missing declaration for Cygwin.
26660         * lib/math.in.h (logb): New declaration.
26661         * m4/logb.m4: New file.
26662         * modules/logb (Files): Add m4/logb.m4.
26663         (Depends-on): Add math.
26664         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26665         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26667         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26668         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26669
26670 2010-03-07  Bruno Haible  <bruno@clisp.org>
26671
26672         Fix test-cond link error.
26673         * tests/test-cond.c: Include <stdio.h>.
26674
26675 2010-03-07  Bruno Haible  <bruno@clisp.org>
26676
26677         Fix test-dirent-safer link error.
26678         * modules/dirent-safer-tests (Makefile.am): Define
26679         test_dirent_safer_LDADD.
26680
26681 2010-03-07  Bruno Haible  <bruno@clisp.org>
26682
26683         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26684         among default module list.
26685
26686 2010-03-07  Bruno Haible  <bruno@clisp.org>
26687
26688         Fix link error on platforms with GNU libiconv.
26689         * modules/unistr/u8-strcoll-tests (Makefile): Define
26690         test_u8_strcoll_LDADD.
26691         * modules/unistr/u16-strcoll-tests (Makefile): Define
26692         test_u16_strcoll_LDADD.
26693         * modules/unistr/u32-strcoll-tests (Makefile): Define
26694         test_u32_strcoll_LDADD.
26695
26696 2010-03-07  Bruno Haible  <bruno@clisp.org>
26697
26698         Use POSIX declarations for socket functions.
26699         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26700         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26701         rpl_sendto): Change declaration to match POSIX.
26702         * lib/connect.c (rpl_connect): Likewise.
26703         * lib/accept.c (rpl_accept): Likewise.
26704         * lib/bind.c (rpl_bind): Likewise.
26705         * lib/getpeername.c (rpl_getpeername): Likewise.
26706         * lib/getsockname.c (rpl_getsockname): Likewise.
26707         * lib/recv.c (rpl_recv): Likewise.
26708         * lib/send.c (rpl_send): Likewise.
26709         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26710         * lib/sendto.c (rpl_sendto): Likewise.
26711
26712 2010-03-06  Bruno Haible  <bruno@clisp.org>
26713
26714         Clarify access, euidaccess, faccessat.
26715         * doc/posix-functions/faccessat.texi: Mention security problem under
26716         "Other problems", not "Portability problems".
26717         * doc/posix-functions/access.texi: Likewise. Mention a related security
26718         problem.
26719         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26720         * lib/euidaccess.c: Add comments about platforms.
26721         * lib/unistd.in.h (access, euidaccess): Add warnings.
26722
26723 2010-03-07  Bruno Haible  <bruno@clisp.org>
26724
26725         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26726         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26727         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26728         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26729         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26730         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26731         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26732         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26733         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26734         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26735         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26736         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26737         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26738         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26739         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26740         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26741         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26742         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26743         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26744         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26745         Likewise.
26746         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26747         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26748         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26749         Likewise.
26750         * tests/test-spawn.c (main): Make it work when
26751         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26752
26753 2010-03-07  Bruno Haible  <bruno@clisp.org>
26754
26755         Fix incorrect Makefile.am generation in German locale.
26756         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26757         Execute sed command with character range in C locale.
26758
26759 2010-03-06  Bruno Haible  <bruno@clisp.org>
26760
26761         Tests for module 'iconv-h'.
26762         * modules/iconv-h-tests: New file.
26763         * tests/test-iconv-h.c: New file.
26764
26765         New module 'iconv-h'.
26766         * modules/iconv-h: New file.
26767         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26768         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26769         (configure.ac): Remove gl_ICONV_H.
26770         (Makefile.am): Remove rule for iconv.h.
26771
26772 2010-03-06  Bruno Haible  <bruno@clisp.org>
26773
26774         More consistent naming of *.m4 files.
26775         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26776         * modules/wctype (Files): Update.
26777
26778         More consistent naming of *.m4 files.
26779         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26780         * modules/wchar (Files): Update.
26781
26782 2010-03-06  Jim Meyering  <meyering@redhat.com>
26783
26784         euidaccess: relax license to LGPLv2+
26785         * modules/euidaccess (License): Relax to LGPLv2+.
26786
26787 2010-03-06  Bruno Haible  <bruno@clisp.org>
26788
26789         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26790         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26791         (Makefile.am): Augment lib_SOURCES instead.
26792
26793 2010-03-04  Jim Meyering  <meyering@redhat.com>
26794
26795         utime: remove obsolete module
26796         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26797         unnecessary for years, and has been marked as obsolete for 10 months.
26798         * modules/utime: Remove file.
26799         * lib/utime.c: Remove file.
26800         * m4/utime.m4: Remove file.
26801         * m4/utimes-null.m4: Remove file.
26802         * doc/posix-functions/utime.texi (utime): Remove reference to
26803         the module.  Move the sole "fixed by gnulib" item into the
26804         "problems not fixed by Gnulib" list.
26805         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26806
26807 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26808
26809         * modules/exit (License): Relax license to LGPLv2+.
26810         (Status): Mark as obsolete.
26811         * NEWS: Mention deprecated 'exit' module.
26812         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26813         of now obsolete 'exit'.
26814
26815 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26816
26817         fts-lgpl: remove unused module
26818         * modules/fts-lgpl: Remove.
26819         * MODULES.html.sh (func_all_modules): Adjust.
26820         * check-module (find_included_lib_files): Adjust.
26821         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26822
26823 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26824
26825         copy-acl: enhance Solaris ACL error handling
26826         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26827         * lib/set-mode-acl.c (qset_acl): Likewise.
26828
26829 2010-03-02  Bruno Haible  <bruno@clisp.org>
26830
26831         spawn: Don't override the system defined values on FreeBSD 8.
26832         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26833         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26834         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26835         if HAVE_POSIX_SPAWN is 1.
26836         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26837
26838 2010-03-01  Bruno Haible  <bruno@clisp.org>
26839
26840         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26841         regarding Automake.
26842
26843 2010-02-25  Bruno Haible  <bruno@clisp.org>
26844
26845         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26846         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26847         setting, not afterwards.
26848         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26849
26850 2010-02-24  Eric Blake  <eblake@redhat.com>
26851
26852         bootstrap, git-version-gen: use timestamp
26853         * build-aux/git-version-gen (scriptversion): Force UTC.
26854         * build-aux/bootstrap (scriptversion): New variable.
26855
26856         bootstrap: allow older git
26857         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26858         older than 1.6.4.  Requested by the libvirt project.
26859
26860 2010-02-23  Eric Blake  <eblake@redhat.com>
26861
26862         warn-on-use: work with old autoconf
26863         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26864         AS_VAR semantics of autoconf 2.60.
26865         Reported by Bruno Haible.
26866
26867         bootstrap: improve some comments
26868         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26869         clarification comments.
26870
26871         gettimeofday: provide correct function
26872         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26873         when replacement is declared, otherwise provide gettimeofday.
26874         Reported by Michael Goffioul.
26875
26876 2010-02-23  Jim Meyering  <meyering@redhat.com>
26877
26878         lib-ignore: relax license to "unlimited", not LGPLv2+
26879         * modules/lib-ignore (License): Relax to "unlimited".
26880
26881 2010-02-23  Jim Meyering  <meyering@redhat.com>
26882
26883         lib-ignore: relax license to LGPLv2+
26884         * modules/lib-ignore (License): Relax to LGPLv2+.
26885
26886 2010-02-22  Eric Blake  <eblake@redhat.com>
26887
26888         lseek: avoid bash 3.2 broken pipe bug
26889         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26890         warning from bash 3.2.
26891         Reported by Ben Pfaff, with analysis from Bruno Haible.
26892
26893         bootstrap: support non-FSF copyright holder
26894         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26895         bootstrap.conf override of COPYRIGHT_HOLDER.
26896         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26897
26898         bootstrap: interoperate with gettext 0.14.1
26899         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26900
26901         bootstrap: allow for alternate submodule location
26902         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26903         hardcoding submodule location.
26904         (gnulib_mk): Allow direct use of Makefile.am.
26905
26906         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26907         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26908         rather than reconfiguring where the submodule points.
26909
26910         gettimeofday: restore support for platforms that lack function
26911         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26912         replacement if function is missing.
26913         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26914         * modules/sys_time (Makefile.am): Substitute it.
26915         * lib/sys_time.in.h (gettimeofday): Check it.
26916         Reported by Michael Goffioul.
26917
26918 2010-02-21  Bruno Haible  <bruno@clisp.org>
26919
26920         * lib/stdio.in.h (obstack_printf): Fix typo.
26921
26922 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26923
26924         vc-list-files: use bzr ls's -R option
26925         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26926         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26927
26928 2010-02-21  Jim Meyering  <meyering@redhat.com>
26929
26930         init.sh: fix EXEEXT shims to work also for names like test-prog
26931         * tests/init.sh: Re-exec a better shell, when needed.
26932         If the current shell lacks support for posix $(...), an init.sh-using
26933         test will now try to find a shell that supports that.  If EXEEXT is
26934         nonempty, we also require support for hyphen-in-alias-name and shell
26935         substitutions like ${var#glob}.  Failure to find such a shell results
26936         in a skipped test.
26937
26938 2010-02-21  Bruno Haible  <bruno@clisp.org>
26939
26940         Really work around around "broken pipe" error message from bash 3.2.
26941         * gnulib-tool (func_reset_sigpipe): Remove function.
26942         (echo): In bash 3.2, define to a function that uses printf.
26943         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26944
26945 2010-02-20  Bruno Haible  <bruno@clisp.org>
26946
26947         Restore support for automake 1.9.6 with autoconf 2.61.
26948         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26949         Reported by James Youngman <jay@gnu.org>.
26950
26951 2010-02-20  Bruno Haible  <bruno@clisp.org>
26952
26953         Improve *printf warning condition.
26954         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26955         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26956         and the function is overridden due to SIGPIPE emulation.
26957
26958 2010-02-20  Bruno Haible  <bruno@clisp.org>
26959
26960         * lib/stdio.in.h: Tweak comments.
26961
26962 2010-02-19  Bruno Haible  <bruno@clisp.org>
26963
26964         Make it easier to find modules. New gnulib-tool option '--find'.
26965         * gnulib-tool: New option --find.
26966         (func_usage): Document it.
26967         (func_sanitize_modulelist): New function, extracted from
26968         func_all_modules.
26969         (func_all_modules): Invoke it.
26970         * doc/gnulib-tool.texi (Which modules?): New node.
26971
26972 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26973
26974         * lib/sys_select.in.h: Provide select replacement even if
26975         sys/select.h exists on a system, for Interix.
26976
26977 2010-02-18  Jim Meyering  <meyering@redhat.com>
26978
26979         init.sh: don't use $(...) just yet
26980         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26981         to accommodate e.g., Solaris' /bin/sh.
26982
26983 2010-02-17  Bruno Haible  <bruno@clisp.org>
26984
26985         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26986         Reported by Ludovic Courtès <ludo@gnu.org>.
26987
26988 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26989
26990         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26991         linking with -lintl.
26992
26993 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26994
26995         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26996         if not provided by the system's netdb.h.  Reported by
26997         ludo@gnu.org (Ludovic Courtès).
26998
26999 2010-02-15  Jim Meyering  <meyering@redhat.com>
27000
27001         init.sh: improve portability and efficiency
27002         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27003         "dummy" in a for loop.
27004         Use '!', not '^' to select the complement of a character set used
27005         in a "case" statement.
27006         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27007         Suggestions from Eric Blake.
27008
27009         init.sh: automatically accommodate programs with the .exe suffix
27010         Automatically arrange for an invocation of "prog" to execute the
27011         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27012         may use the simpler "prog", yet still work when built on a system
27013         that requires specifying the added suffix.
27014         Do this by constructing a function named "prog" that invokes
27015         "prog.exe" for each .exe file in selected directories.
27016         * tests/init.sh (find_exe_basenames_): New function.
27017         (create_exe_shim_functions_): New function.
27018         (path_prepend_): Use it.
27019
27020         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27021         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27022         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27023
27024 2010-02-14  Jim Meyering  <meyering@redhat.com>
27025
27026         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27027         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27028         (sc_prohibit_hash_pjw_without_use): New rule.
27029
27030         maint.mk: allow the default upload destination dir to be overridden
27031         * top/maint.mk (upload_dest_dir_): Define with a default that
27032         preserves the status quo.
27033         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27034         Reported by Peter Simons.
27035
27036         maint.mk: prohibit inclusion of "hash.h" without_use
27037         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27038
27039 2010-02-10  Jim Meyering  <meyering@redhat.com>
27040
27041         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27042         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27043
27044 2010-02-09  Eric Blake  <ebb9@byu.net>
27045         and Bruno Haible  <bruno@clisp.org>
27046
27047         obstack-printf-posix: ensure declaration
27048         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27049         extracted from gl_FUNC_OBSTACK_PRINTF.
27050         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27051         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27052         Likewise.
27053         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27054         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27055         0.
27056
27057 2010-02-08  Bruno Haible  <bruno@clisp.org>
27058
27059         gnulib-tool: Fix typo in 2010-02-07 commit.
27060         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27061         Reported by Eric Blake.
27062
27063 2010-02-07  Bruno Haible  <bruno@clisp.org>
27064
27065         gnulib-tool: Fix up caching patches.
27066         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27067         option --no-cache. Use associative arrays when supported by the shell.
27068         (sed_comments): New variable.
27069         (modcache): Renamed from do_cache.
27070         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27071         abbreviate unnecessarily.
27072         (have_associative): New variable.
27073         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27074         way also for ksh and zsh.
27075         (func_init_sed_convert_to_cache_statements): New function, extracted
27076         from func_cache_lookup_module. Add support for associative arrays.
27077         Don't set the c_MODULE_cached variable here. Ignore all lines before
27078         the first field header. Remove only the final newline, not all trailing
27079         newlines. Support empty fields correctly. Limit the use of 'eval' to
27080         assignments.
27081         (func_get_description, func_get_status, func_get_notice,
27082         func_get_applicability, func_get_filelist, func_get_dependencies,
27083         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27084         func_get_automake_snippet, func_get_include_directive,
27085         func_get_link_directive, func_get_license, func_get_maintainer):
27086         Update documentation. List the unoptimized code first. Add support for
27087         associative arrays. Limit the use of 'eval' to assignments.
27088         (func_get_applicability): Undo stylistic pessimisations.
27089         (func_get_automake_snippet, func_get_include_directive): Reduce code
27090         duplication.
27091         (func_modules_transitive_closure, func_modules_add_dummy,
27092         func_modules_notice, func_modules_to_filelist, func_add_file,
27093         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27094         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27095         func_create_testdir, func_create_megatestdir): Update documentation.
27096
27097 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27098
27099         * gnulib-tool (func_cache_lookup_module): Store the module name
27100         belonging to the cache variable; error out if two different
27101         module names map to the same cache variable name.
27102
27103 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27104
27105         gnulib-tool: Make caching optional.
27106         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27107         Update matching short versions of --no-changelog.
27108         (func_usage): Update.
27109         (sed_extract_cache_prog): Renamed from ...
27110         (sed_extract_prog): ... this; revert to old extraction script.
27111         (func_get_description, func_get_status)
27112         (func_get_notice, func_get_applicability, func_get_filelist)
27113         (func_get_dependencies, func_get_autoconf_early_snippet)
27114         (func_get_autoconf_snippet, func_get_automake_snippet)
27115         (func_get_include_directive, func_get_link_directive)
27116         (func_get_license, func_get_maintainer): If $do_cache is false,
27117         use old, non-caching extraction scripts.
27118         Suggestion by Bruno Haible.
27119
27120 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27121
27122         gnulib-tool: cache module metainformation.
27123         * gnulib-tool (sed_extract_prog): Match newline before each
27124         header, and rewrite header to a shell variable suffix.
27125         (func_cache_var, func_cache_lookup_module): New functions,
27126         to turn a module name into a cache variable prefix, and to
27127         look up and cache module metainformation.
27128         (func_get_description, func_get_status)
27129         (func_get_notice, func_get_applicability, func_get_filelist)
27130         (func_get_dependencies, func_get_autoconf_early_snippet)
27131         (func_get_autoconf_snippet, func_get_automake_snippet)
27132         (func_get_include_directive, func_get_link_directive)
27133         (func_get_license, func_get_maintainer): Use
27134         func_cache_lookup_module.
27135
27136 2010-02-07  Bruno Haible  <bruno@clisp.org>
27137
27138         fnctl: Fix missing dependency.
27139         * modules/fcntl (Depends-on): Add getdtablesize.
27140         Reported by John W. Eaton <jwe@gnu.org>.
27141
27142 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27143
27144         Argp: fix recognition of short alias options.
27145
27146         * lib/argp-parse.c (convert_options): Fix improper use of
27147         `|' between character values.
27148         * tests/test-argp.c (group1_option): New alias option
27149         --read (-r).
27150         (group1_parser): Special handling for 'r'.
27151         (test15): New test case.
27152         (test_fun): Add test15.
27153         * tests/test-argp-2.sh: Update expected --help and --usage
27154         outputs.
27155
27156 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27157
27158         * tests/test-argp.c: Fix indentation.
27159
27160 2010-02-04  Eric Blake  <ebb9@byu.net>
27161
27162         gettimeofday: expose type of second argument
27163         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27164         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27165         * tests/test-gettimeofday.c: Use it to silence warning.
27166         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27167         the issue.
27168
27169 2010-02-03  Jim Meyering  <meyering@redhat.com>
27170
27171         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27172         * lib/regcomp.c (TYPE_SIGNED): Define.
27173         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27174
27175         regcomp.c: avoid a new -Wshadow warning
27176         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27177
27178 2010-02-01  Jim Meyering  <meyering@redhat.com>
27179
27180         removing useless parentheses in cpp #define directives
27181         For motivation, see commit c0221df4, "define STREQ(a,b)
27182         consistently, removing useless parentheses"
27183         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27184         * lib/mountlist.c (MNT_IGNORE): Likewise.
27185         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27186
27187 2010-02-01  Eric Blake  <ebb9@byu.net>
27188
27189         sys_time: use link-warning
27190         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27191         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27192         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27193         * modules/sys_time (Depends-on): Add warn-on-use.
27194         (Makefile.am): Always build replacement.
27195         (configure.ac): Update substitutions.
27196         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27197         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27198         bother with SYS_TIME_H.
27199         * modules/gettimeofday (configure.ac): Declare indicator.
27200         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27201         in use.
27202
27203         closein-tests: silence compiler warning
27204         * tests/test-closein.c (main): Ignore fread result.
27205         * modules/closein-tests (Depends-on): Add ignore-value.
27206
27207         tests: silence warning about system return
27208         * tests/test-areadlink-with-size.c (main): Ignore system result.
27209         * tests/test-areadlink.c (main): Likewise.
27210         * tests/test-areadlinkat-with-size.c (main): Likewise.
27211         * tests/test-areadlinkat.c (main): Likewise.
27212         * tests/test-canonicalize-lgpl.c (main): Likewise.
27213         * tests/test-canonicalize.c (main): Likewise.
27214         * tests/test-chown.c (main): Likewise.
27215         * tests/test-fchownat.c (main): Likewise.
27216         * tests/test-fdutimensat.c (main): Likewise.
27217         * tests/test-fstatat.c (main): Likewise.
27218         * tests/test-futimens.c (main): Likewise.
27219         * tests/test-lchown.c (main): Likewise.
27220         * tests/test-link.c (main): Likewise.
27221         * tests/test-linkat.c (main): Likewise.
27222         * tests/test-lstat.c (main): Likewise.
27223         * tests/test-mkdir.c (main): Likewise.
27224         * tests/test-mkdirat.c (main): Likewise.
27225         * tests/test-mkfifo.c (main): Likewise.
27226         * tests/test-mkfifoat.c (main): Likewise.
27227         * tests/test-mknod.c (main): Likewise.
27228         * tests/test-readlink.c (main): Likewise.
27229         * tests/test-remove.c (main): Likewise.
27230         * tests/test-rename.c (main): Likewise.
27231         * tests/test-renameat.c (main): Likewise.
27232         * tests/test-rmdir.c (main): Likewise.
27233         * tests/test-symlink.c (main): Likewise.
27234         * tests/test-symlinkat.c (main): Likewise.
27235         * tests/test-unlink.c (main): Likewise.
27236         * tests/test-unlinkat.c (main): Likewise.
27237         * tests/test-utimens.c (main): Likewise.
27238         * tests/test-utimensat.c (main): Likewise.
27239         * modules/areadlink-tests (Depends-on): Add ignore-value.
27240         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27241         * modules/areadlinkat-tests (Depends-on): Likewise.
27242         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27243         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27244         * modules/canonicalize-tests (Depends-on): Likewise.
27245         * modules/chown-tests (Depends-on): Likewise.
27246         * modules/fdutimensat-tests (Depends-on): Likewise.
27247         * modules/futimens-tests (Depends-on): Likewise.
27248         * modules/lchown-tests (Depends-on): Likewise.
27249         * modules/link-tests (Depends-on): Likewise.
27250         * modules/linkat-tests (Depends-on): Likewise.
27251         * modules/lstat-tests (Depends-on): Likewise.
27252         * modules/mkdir-tests (Depends-on): Likewise.
27253         * modules/mkfifo-tests (Depends-on): Likewise.
27254         * modules/mkfifoat-tests (Depends-on): Likewise.
27255         * modules/mknod-tests (Depends-on): Likewise.
27256         * modules/openat-tests (Depends-on): Likewise.
27257         * modules/readlink-tests (Depends-on): Likewise.
27258         * modules/remove-tests (Depends-on): Likewise.
27259         * modules/rename-tests (Depends-on): Likewise.
27260         * modules/renameat-tests (Depends-on): Likewise.
27261         * modules/rmdir-tests (Depends-on): Likewise.
27262         * modules/symlink-tests (Depends-on): Likewise.
27263         * modules/symlinkat-tests (Depends-on): Likewise.
27264         * modules/unlink-tests (Depends-on): Likewise.
27265         * modules/utimens-tests (Depends-on): Likewise.
27266         * modules/utimensat-tests (Depends-on): Likewise.
27267
27268 2010-01-31  Bruno Haible  <bruno@clisp.org>
27269
27270         Perform the same test for many <math.h> functions.
27271         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27272         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27273         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27274         of gl_MATHFUNC.
27275         * modules/acos (configure.ac): Likewise.
27276         * modules/asin (configure.ac): Likewise.
27277         * modules/atan (configure.ac): Likewise.
27278         * modules/atan2 (configure.ac): Likewise.
27279         * modules/cbrt (configure.ac): Likewise.
27280         * modules/copysign (configure.ac): Likewise.
27281         * modules/cos (configure.ac): Likewise.
27282         * modules/cosh (configure.ac): Likewise.
27283         * modules/erf (configure.ac): Likewise.
27284         * modules/erfc (configure.ac): Likewise.
27285         * modules/exp (configure.ac): Likewise.
27286         * modules/fmod (configure.ac): Likewise.
27287         * modules/hypot (configure.ac): Likewise.
27288         * modules/j0 (configure.ac): Likewise.
27289         * modules/j1 (configure.ac): Likewise.
27290         * modules/jn (configure.ac): Likewise.
27291         * modules/lgamma (configure.ac): Likewise.
27292         * modules/log (configure.ac): Likewise.
27293         * modules/log10 (configure.ac): Likewise.
27294         * modules/log1p (configure.ac): Likewise.
27295         * modules/pow (configure.ac): Likewise.
27296         * modules/remainder (configure.ac): Likewise.
27297         * modules/sin (configure.ac): Likewise.
27298         * modules/sinh (configure.ac): Likewise.
27299         * modules/tan (configure.ac): Likewise.
27300         * modules/tanh (configure.ac): Likewise.
27301         * modules/y0 (configure.ac): Likewise.
27302         * modules/y1 (configure.ac): Likewise.
27303         * modules/yn (configure.ac): Likewise.
27304         Suggested by Paolo Bonzini.
27305
27306 2010-01-31  Bruno Haible  <bruno@clisp.org>
27307
27308         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27309
27310 2010-01-31  Bruno Haible  <bruno@clisp.org>
27311
27312         Work around getdelim() bug on FreeBSD 8.0.
27313         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27314         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27315         not work.
27316         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27317         is 1.
27318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27319         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27320         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27321         a non-zero size.
27322         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27323
27324 2010-01-31  Bruno Haible  <bruno@clisp.org>
27325
27326         Work around getline() bug on FreeBSD 8.0.
27327         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27328         and a non-zero size.
27329         * tests/test-getline.c (main): Likewise.
27330         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27331         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27332
27333 2010-01-28  Eric Blake  <ebb9@byu.net>
27334
27335         regex: fix build failure
27336         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27337         platforms.
27338
27339 2010-01-28  Jim Meyering  <meyering@redhat.com>
27340
27341         regex: do not ignore memory allocation failure
27342         * lib/regex_internal.c (create_cd_newstate): Detect
27343         re_node_set_init_copy failure.   Extracted from glibc commit
27344         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27345
27346         regex: sync more white-space changes from libc
27347         * lib/regex_internal.c: White-space only changes.
27348         * lib/regexec.c: Likewise.
27349
27350         regex: add many uses of __attribute_warn_unused_result__
27351         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27352         * lib/regexec.c: Likewise.
27353         Extracted from a messy glibc commit.
27354
27355         regcomp.c: spelling and merge-artifact from glibc
27356         * lib/regcomp.c: Merge remainder of glibc's
27357         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27358
27359         regcomp.c: sync white-space changes from glibc
27360         * lib/regcomp.c: Merge to accommodate white space
27361         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27362
27363         regcomp.c: do not ignore internal return values
27364         * lib/regcomp.c: Do not ignore internal return values.
27365         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27366         but without its white-space changes and spelling fixes.
27367
27368         regex_internal.h: define __attribute_warn_unused_result__
27369         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27370
27371         maint: add a syntax-check rule to check for vulnerable Makefile.in
27372         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27373
27374 2010-01-27  Jim Meyering  <meyering@redhat.com>
27375
27376         ncftpput-ftp: clean up spaces
27377         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27378         Remove trailing blanks.
27379
27380 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27381
27382         * build-aux/git-version-gen: Fix copyright statement.
27383         * build-aux/gnupload: Likewise.
27384         * tests/test-arcfour.c: Likewise.
27385         * tests/test-arctwo.c: Likewise.
27386         * tests/test-count-one-bits.c: Likewise.
27387         * tests/test-crc.c: Likewise.
27388         * tests/test-des.c: Likewise.
27389         * tests/test-gc-arcfour.c: Likewise.
27390         * tests/test-gc-arctwo.c: Likewise.
27391         * tests/test-gc-des.c: Likewise.
27392         * tests/test-gc-hmac-md5.c: Likewise.
27393         * tests/test-gc-hmac-sha1.c: Likewise.
27394         * tests/test-gc-md2.c: Likewise.
27395         * tests/test-gc-md4.c: Likewise.
27396         * tests/test-gc-md5.c: Likewise.
27397         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27398         * tests/test-gc-rijndael.c: Likewise.
27399         * tests/test-gc-sha1.c: Likewise.
27400         * tests/test-gc.c: Likewise.
27401         * tests/test-gethostname.c: Likewise.
27402         * tests/test-gettimeofday.c: Likewise.
27403         * tests/test-hash.c: Likewise.
27404         * tests/test-hmac-md5.c: Likewise.
27405         * tests/test-hmac-sha1.c: Likewise.
27406         * tests/test-md2.c: Likewise.
27407         * tests/test-md4.c: Likewise.
27408         * tests/test-md5.c: Likewise.
27409         * tests/test-memchr.c: Likewise.
27410         * tests/test-memchr2.c: Likewise.
27411         * tests/test-memcmp.c: Likewise.
27412         * tests/test-memmem.c: Likewise.
27413         * tests/test-memrchr.c: Likewise.
27414         * tests/test-rawmemchr.c: Likewise.
27415         * tests/test-read-file.c: Likewise.
27416         * tests/test-rijndael.c: Likewise.
27417         * tests/test-sockets.c: Likewise.
27418         * tests/test-strchrnul.c: Likewise.
27419         * tests/test-strstr.c: Likewise.
27420         * tests/test-strtod.c: Likewise.
27421         * build-aux/ncftpput-ftp: Likewise.
27422
27423 2010-01-26  Eric Blake  <ebb9@byu.net>
27424
27425         ignore-value: update recommended header name
27426         * modules/ignore-value (Include): Only use <> for headers that
27427         exist in glibc.
27428
27429 2010-01-26  Jim Meyering  <meyering@redhat.com>
27430
27431         test-userspec.c: avoid compiler warnings
27432         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27433         and "initialization discards qualifiers..." warnings.
27434         Put the first "uid" in its own scope, and make char* members "const".
27435
27436 2010-01-25  Bruno Haible  <bruno@clisp.org>
27437
27438         gnulib-tool: Make warning diagnostics consistent.
27439         * gnulib-tool (func_warning): New function.
27440         Use it everywhere where gnulib-tool produces output to stderr and it is
27441         not a fatal error.
27442
27443 2010-01-25  Bruno Haible  <bruno@clisp.org>
27444
27445         Fix test dependencies.
27446         * modules/xstrtol-tests (Depends-on): Add inttypes.
27447         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27448
27449 2010-01-25 Pádraig Brady <P@draigBrady.com>
27450
27451         syntax-check: detect incorrect boolean macro values in config.h
27452         * modules/maintainer-makefile (configure.ac): Parameterize the location
27453         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27454         The logic is from Eric Blake and the location indicated by Jim Meyering.
27455         Note the more natural CONFIG_HEADER name is prohibited by automake
27456         for backwards compatibility reasons.
27457         * top/maint.mk (sc_Wundef_boolean): New rule.
27458
27459 2010-01-25  Jim Meyering  <meyering@redhat.com>
27460
27461         bootstrap: detect MacOS 10.6's shasum, too
27462         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27463         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27464
27465 2010-01-23  Jim Meyering  <meyering@redhat.com>
27466
27467         xstrtoll: new module
27468         * modules/xstrtoll: New file.
27469         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27470         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27471         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27472         ./configure fails if you use this module and lack "long long".
27473         * modules/xstrtoll-tests: New module.
27474         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27475         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27476         new init.sh-based test framework.
27477
27478 2010-01-24  Bruno Haible  <bruno@clisp.org>
27479
27480         Tests for module 'yn'.
27481         * modules/yn-tests: New file.
27482         * tests/test-yn.c: New file.
27483
27484         Tests for module 'y1'.
27485         * modules/y1-tests: New file.
27486         * tests/test-y1.c: New file.
27487
27488         Tests for module 'y0'.
27489         * modules/y0-tests: New file.
27490         * tests/test-y0.c: New file.
27491
27492         Tests for module 'tanh'.
27493         * modules/tanh-tests: New file.
27494         * tests/test-tanh.c: New file.
27495
27496         Tests for module 'tan'.
27497         * modules/tan-tests: New file.
27498         * tests/test-tan.c: New file.
27499
27500         Tests for module 'sqrt'.
27501         * modules/sqrt-tests: New file.
27502         * tests/test-sqrt.c: New file.
27503
27504         Tests for module 'sinh'.
27505         * modules/sinh-tests: New file.
27506         * tests/test-sinh.c: New file.
27507
27508         Tests for module 'sin'.
27509         * modules/sin-tests: New file.
27510         * tests/test-sin.c: New file.
27511
27512         Tests for module 'rint'.
27513         * modules/rint-tests: New file.
27514         * tests/test-rint.c: New file.
27515
27516         Tests for module 'remainder'.
27517         * modules/remainder-tests: New file.
27518         * tests/test-remainder.c: New file.
27519
27520         Tests for module 'pow'.
27521         * modules/pow-tests: New file.
27522         * tests/test-pow.c: New file.
27523
27524         Tests for module 'nextafter'.
27525         * modules/nextafter-tests: New file.
27526         * tests/test-nextafter.c: New file.
27527
27528         Tests for module 'modf'.
27529         * modules/modf-tests: New file.
27530         * tests/test-modf.c: New file.
27531
27532         Tests for module 'logb'.
27533         * modules/logb-tests: New file.
27534         * tests/test-logb.c: New file.
27535
27536         Tests for module 'log1p'.
27537         * modules/log1p-tests: New file.
27538         * tests/test-log1p.c: New file.
27539
27540         Tests for module 'log10'.
27541         * modules/log10-tests: New file.
27542         * tests/test-log10.c: New file.
27543
27544         Tests for module 'log'.
27545         * modules/log-tests: New file.
27546         * tests/test-log.c: New file.
27547
27548         Tests for module 'lgamma'.
27549         * modules/lgamma-tests: New file.
27550         * tests/test-lgamma.c: New file.
27551
27552         Tests for module 'ldexp'.
27553         * modules/ldexp-tests: New file.
27554         * tests/test-ldexp.c: New file.
27555
27556         Tests for module 'jn'.
27557         * modules/jn-tests: New file.
27558         * tests/test-jn.c: New file.
27559
27560         Tests for module 'j1'.
27561         * modules/j1-tests: New file.
27562         * tests/test-j1.c: New file.
27563
27564         Tests for module 'j0'.
27565         * modules/j0-tests: New file.
27566         * tests/test-j0.c: New file.
27567
27568         Tests for module 'hypot'.
27569         * modules/hypot-tests: New file.
27570         * tests/test-hypot.c: New file.
27571
27572         Tests for module 'fmod'.
27573         * modules/fmod-tests: New file.
27574         * tests/test-fmod.c: New file.
27575
27576         Tests for module 'fabs'.
27577         * modules/fabs-tests: New file.
27578         * tests/test-fabs.c: New file.
27579
27580         Tests for module 'exp'.
27581         * modules/exp-tests: New file.
27582         * tests/test-exp.c: New file.
27583
27584         Tests for module 'erfc'.
27585         * modules/erfc-tests: New file.
27586         * tests/test-erfc.c: New file.
27587
27588         Tests for module 'erf'.
27589         * modules/erf-tests: New file.
27590         * tests/test-erf.c: New file.
27591
27592         Tests for module 'cosh'.
27593         * modules/cosh-tests: New file.
27594         * tests/test-cosh.c: New file.
27595
27596         Tests for module 'cos'.
27597         * modules/cos-tests: New file.
27598         * tests/test-cos.c: New file.
27599
27600         Tests for module 'copysign'.
27601         * modules/copysign-tests: New file.
27602         * tests/test-copysign.c: New file.
27603
27604         Tests for module 'cbrt'.
27605         * modules/cbrt-tests: New file.
27606         * tests/test-cbrt.c: New file.
27607
27608         Tests for module 'atan2'.
27609         * modules/atan2-tests: New file.
27610         * tests/test-atan2.c: New file.
27611
27612         Tests for module 'atan'.
27613         * modules/atan-tests: New file.
27614         * tests/test-atan.c: New file.
27615
27616         Tests for module 'asin'.
27617         * modules/asin-tests: New file.
27618         * tests/test-asin.c: New file.
27619
27620         Tests for module 'acos'.
27621         * modules/acos-tests: New file.
27622         * tests/test-acos.c: New file.
27623
27624 2010-01-24  Bruno Haible  <bruno@clisp.org>
27625
27626         Fix tests for common <math.h> functions.
27627         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27628         code snippet that references the function pointer, rather than merely
27629         calling the function. Substitute the FUNC_LIBM variable.
27630         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27631         * modules/acos (configure.ac): Likewise.
27632         * modules/asin (configure.ac): Likewise.
27633         * modules/atan (configure.ac): Likewise.
27634         * modules/atan2 (configure.ac): Likewise.
27635         * modules/cbrt (configure.ac): Likewise.
27636         * modules/copysign (configure.ac): Likewise.
27637         * modules/cos (configure.ac): Likewise.
27638         * modules/cosh (configure.ac): Likewise.
27639         * modules/erf (configure.ac): Likewise.
27640         * modules/erfc (configure.ac): Likewise.
27641         * modules/exp (configure.ac): Likewise.
27642         * modules/fabs (configure.ac): Likewise.
27643         * modules/fmod (configure.ac): Likewise.
27644         * modules/hypot (configure.ac): Likewise.
27645         * modules/j0 (configure.ac): Likewise.
27646         * modules/j1 (configure.ac): Likewise.
27647         * modules/jn (configure.ac): Likewise.
27648         * modules/ldexp (configure.ac): Likewise.
27649         * modules/lgamma (configure.ac): Likewise.
27650         * modules/log (configure.ac): Likewise.
27651         * modules/log10 (configure.ac): Likewise.
27652         * modules/log1p (configure.ac): Likewise.
27653         * modules/logb (configure.ac): Likewise.
27654         * modules/modf (configure.ac): Likewise.
27655         * modules/nextafter (configure.ac): Likewise.
27656         * modules/pow (configure.ac): Likewise.
27657         * modules/remainder (configure.ac): Likewise.
27658         * modules/rint (configure.ac): Likewise.
27659         * modules/sin (configure.ac): Likewise.
27660         * modules/sinh (configure.ac): Likewise.
27661         * modules/tan (configure.ac): Likewise.
27662         * modules/tanh (configure.ac): Likewise.
27663         * modules/y0 (configure.ac): Likewise.
27664         * modules/y1 (configure.ac): Likewise.
27665         * modules/yn (configure.ac): Likewise.
27666
27667 2010-01-24  Bruno Haible  <bruno@clisp.org>
27668
27669         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27670         * tests/test-acosl.c (x): New variable.
27671         (main): Store argument in x and fetch it from x.
27672         * tests/test-asinl.c (x): New variable.
27673         (main): Store argument in x and fetch it from x.
27674         * tests/test-atanl.c (x): New variable.
27675         (main): Store argument in x and fetch it from x.
27676         * tests/test-cosl.c (x): New variable.
27677         (main): Store argument in x and fetch it from x.
27678         * tests/test-expl.c (x): New variable.
27679         (main): Store argument in x and fetch it from x.
27680         * tests/test-logl.c (x): New variable.
27681         (main): Store argument in x and fetch it from x.
27682         * tests/test-sinl.c (x): New variable.
27683         (main): Store argument in x and fetch it from x.
27684         * tests/test-sqrtl.c (x): New variable.
27685         (main): Store argument in x and fetch it from x.
27686         * tests/test-tanl.c (x): New variable.
27687         (main): Store argument in x and fetch it from x.
27688
27689 2010-01-24  Bruno Haible  <bruno@clisp.org>
27690
27691         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27692         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27693         assignments to the initial TESTS_ENVIRONMENT.
27694         * doc/gnulib.texi (Unit test modules): Document it.
27695         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27696         TESTS_ENVIRONMENT.
27697         * modules/btowc-tests (Makefile.am): Likewise.
27698         * modules/c-stack-tests (Makefile.am): Likewise.
27699         * modules/c-strcase-tests (Makefile.am): Likewise.
27700         * modules/copy-file-tests (Makefile.am): Likewise.
27701         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27702         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27703         * modules/mbrtowc-tests (Makefile.am): Likewise.
27704         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27705         * modules/mbscasestr-tests (Makefile.am): Likewise.
27706         * modules/mbschr-tests (Makefile.am): Likewise.
27707         * modules/mbscspn-tests (Makefile.am): Likewise.
27708         * modules/mbsinit-tests (Makefile.am): Likewise.
27709         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27710         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27711         * modules/mbspbrk-tests (Makefile.am): Likewise.
27712         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27713         * modules/mbsrchr-tests (Makefile.am): Likewise.
27714         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27715         * modules/mbsspn-tests (Makefile.am): Likewise.
27716         * modules/mbsstr-tests (Makefile.am): Likewise.
27717         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27718         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27719         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27720         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27721         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27722         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27723         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27724         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27725         * modules/wcrtomb-tests (Makefile.am): Likewise.
27726         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27727         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27728         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27729         assignments from TESTS_ENVIRONMENT.
27730         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27731         augmentation.
27732         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27733         * modules/atexit-tests (Makefile.am): Likewise.
27734         * modules/binary-io-tests (Makefile.am): Likewise.
27735         * modules/closein-tests (Makefile.am): Likewise.
27736         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27737         * modules/exclude-tests (Makefile.am): Likewise.
27738         * modules/fflush-tests (Makefile.am): Likewise.
27739         * modules/fpending-tests (Makefile.am): Likewise.
27740         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27741         * modules/freadahead-tests (Makefile.am): Likewise.
27742         * modules/freadptr-tests (Makefile.am): Likewise.
27743         * modules/freadseek-tests (Makefile.am): Likewise.
27744         * modules/fseek-tests (Makefile.am): Likewise.
27745         * modules/fseeko-tests (Makefile.am): Likewise.
27746         * modules/ftell-tests (Makefile.am): Likewise.
27747         * modules/ftello-tests (Makefile.am): Likewise.
27748         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27749         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27750         * modules/lseek-tests (Makefile.am): Likewise.
27751         * modules/parse-duration-tests (Makefile.am): Likewise.
27752         * modules/perror-tests (Makefile.am): Likewise.
27753         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27754         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27755         * modules/pipe-tests (Makefile.am): Likewise.
27756         * modules/pread-tests (Makefile.am): Likewise.
27757         * modules/printf-posix-tests (Makefile.am): Likewise.
27758         * modules/select-tests (Makefile.am): Likewise.
27759         * modules/sigpipe-tests (Makefile.am): Likewise.
27760         * modules/tsearch-tests (Makefile.am): Likewise.
27761         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27762         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27763         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27764         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27765         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27766         * modules/version-etc-tests (Makefile.am): Likewise.
27767         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27768         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27769         * modules/xalloc-die-tests (Makefile.am): Likewise.
27770         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27771         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27772         * modules/xstrtol-tests (Makefile.am): Likewise.
27773         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27774         * modules/yesno-tests (Makefile.am): Likewise.
27775         Suggested by Jim Meyering.
27776
27777 2010-01-24  Bruno Haible  <bruno@clisp.org>
27778
27779         More documentation.
27780         * doc/gnulib.texi (Writing modules): New chapter.
27781         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27782         the new chapter.
27783
27784 2010-01-24  Jim Meyering  <meyering@redhat.com>
27785
27786         maint.mk: do not prepend "./" after filtering
27787         * top/maint.mk (_prepend_srcdir_prefix): New variable
27788         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27789         "./" when $(srcdir) is ".".
27790
27791         define STREQ(a,b) consistently, removing useless parentheses
27792         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27793         since the only risk is that "a" or "b" contains an unparenthesized
27794         comma, but if either did that, STREQ would have 3 or more arguments.
27795         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27796         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27797         * lib/hash-triple.c (STREQ): Likewise.
27798         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27799         * lib/getugroups.c (STREQ): Likewise.
27800
27801 2010-01-23  Jim Meyering  <meyering@redhat.com>
27802
27803         maint.mk: fix syntax-check in a non-srcdir build directory
27804         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27805         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27806
27807 2010-01-22  Jim Meyering  <meyering@redhat.com>
27808
27809         userspec: add unit tests
27810         * tests/test-userspec.c: New file.
27811         * modules/userspec-tests: Likewise.
27812
27813 2010-01-21  Jim Meyering  <meyering@redhat.com>
27814
27815         maint.mk: handle source file names containing "." robustly
27816         * top/maint.mk (_dot_escaped_srcdir): Define.
27817         (VC_LIST): Use it in LHS of sed substitution.
27818
27819 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27820
27821         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27822         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27823         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27824         from a non-srcdir build.
27825
27826 2010-01-20  Eric Blake  <ebb9@byu.net>
27827
27828         warn-on-use: use instead of link-warning
27829         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27830         * modules/unistd (Depends-on, Makefile.am): Likewise.
27831         * modules/arpa_inet (Depends-on): Replace link-warning with
27832         warn-on-use.
27833         (Makefile.am): Update rules accordingly.
27834         * modules/ctype (Depends-on, Makefile.am): Likewise.
27835         * modules/dirent (Depends-on, Makefile.am): Likewise.
27836         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27837         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27838         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27839         * modules/locale (Depends-on, Makefile.am): Likewise.
27840         * modules/math (Depends-on, Makefile.am): Likewise.
27841         * modules/search (Depends-on, Makefile.am): Likewise.
27842         * modules/signal (Depends-on, Makefile.am): Likewise.
27843         * modules/spawn (Depends-on, Makefile.am): Likewise.
27844         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27845         * modules/string (Depends-on, Makefile.am): Likewise.
27846         * modules/strings (Depends-on, Makefile.am): Likewise.
27847         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27848         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27849         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27850         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27851         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27852         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27853         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27854         * modules/wchar (Depends-on, Makefile.am): Likewise.
27855         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27856         should be poisoned.
27857         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27858         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27859         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27860         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27861         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27862         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27863         * m4/math_h.m4 (gl_MATH_H): Likewise.
27864         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27865         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27866         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27867         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27868         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27869         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27870         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27871         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27872         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27873         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27874         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27875         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27876         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27877         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27878         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27879         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27880         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27881         GL_LINK_WARNING.
27882         * lib/ctype.in.h: Likewise.
27883         * lib/dirent.in.h: Likewise.
27884         * lib/fcntl.in.h: Likewise.
27885         * lib/inttypes.in.h: Likewise.
27886         * lib/langinfo.in.h: Likewise.
27887         * lib/locale.in.h: Likewise.
27888         * lib/math.in.h: Likewise.
27889         * lib/search.in.h: Likewise.
27890         * lib/signal.in.h: Likewise.
27891         * lib/spawn.in.h: Likewise.
27892         * lib/stdio.in.h: Likewise.
27893         * lib/stdlib.in.h: Likewise.
27894         * lib/string.in.h: Likewise.
27895         * lib/strings.in.h: Likewise.
27896         * lib/sys_file.in.h: Likewise.
27897         * lib/sys_ioctl.in.h: Likewise.
27898         * lib/sys_select.in.h: Likewise.
27899         * lib/sys_socket.in.h: Likewise.
27900         * lib/sys_stat.in.h: Likewise.
27901         * lib/sys_times.in.h: Likewise.
27902         * lib/sys_utsname.in.h: Likewise.
27903         * lib/unistd.in.h: Likewise.
27904         * lib/wchar.in.h: Likewise.
27905
27906 2010-01-20  Bruno Haible  <bruno@clisp.org>
27907
27908         Avoid duplicate -lm.
27909         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27910         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27911         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27912         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27913         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27914         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27915         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27916         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27917         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27918         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27919         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27920         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27921         Reported by Paolo Bonzini.
27922
27923 2010-01-19  Bruno Haible  <bruno@clisp.org>
27924
27925         langinfo, nl_langinfo: Relicense under LGPLv2+.
27926         * modules/langinfo (License): Change to LGPLv2+.
27927         * modules/nl_langinfo (License): Likewise.
27928         Patch by David Lutterkort <lutter@redhat.com>.
27929
27930 2010-01-19  Bruno Haible  <bruno@clisp.org>
27931
27932         Avoid compilation error with cc on OSF/1 5.1.
27933         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27934         statement, not before.
27935         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27936
27937 2010-01-18  Bruno Haible  <bruno@clisp.org>
27938
27939         Avoid a link error due to the __printf__ symbol.
27940         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27941         and 2.6.x.
27942         (__format__, __printf__): Remove definitions.
27943         * lib/argp-fmtstream.h: Likewise.
27944         * lib/argp.h: Likewise.
27945         * lib/error.h: Likewise.
27946         * lib/vasnprintf.h: Likewise.
27947         * lib/xprintf.h: Likewise.
27948         * lib/xvasprintf.h: Likewise.
27949         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27950
27951 2010-01-18  Bruno Haible  <bruno@clisp.org>
27952
27953         Tests for module 'tanl'.
27954         * modules/tanl-tests: New file.
27955         * tests/test-tanl.c: New file.
27956
27957         Tests for module 'sqrtl'.
27958         * modules/sqrtl-tests: New file.
27959         * tests/test-sqrtl.c: New file.
27960
27961         Tests for module 'sinl'.
27962         * modules/sinl-tests: New file.
27963         * tests/test-sinl.c: New file.
27964
27965         Tests for module 'logl'.
27966         * modules/logl-tests: New file.
27967         * tests/test-logl.c: New file.
27968
27969         Tests for module 'expl'.
27970         * modules/expl-tests: New file.
27971         * tests/test-expl.c: New file.
27972
27973         Tests for module 'cosl'.
27974         * modules/cosl-tests: New file.
27975         * tests/test-cosl.c: New file.
27976
27977         Tests for module 'atanl'.
27978         * modules/atanl-tests: New file.
27979         * tests/test-atanl.c: New file.
27980
27981         Tests for module 'asinl'.
27982         * modules/asinl-tests: New file.
27983         * tests/test-asinl.c: New file.
27984
27985         Tests for module 'acosl'.
27986         * modules/acosl-tests: New file.
27987         * tests/test-acosl.c: New file.
27988
27989         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27990         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27991         tanl): Use the standard gnulib idiom.
27992         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27993         * lib/sinl.c: Likewise.
27994         * lib/tanl.c: Don't include trigl.c.
27995         (kernel_tanl): Make static.
27996         * lib/sincosl.c: Include trigl.h first.
27997         * lib/trigl.c: Likewise.
27998         * m4/acosl.m4: New file.
27999         * m4/asinl.m4: New file.
28000         * m4/atanl.m4: New file.
28001         * m4/cosl.m4: New file.
28002         * m4/expl.m4: New file.
28003         * m4/logl.m4: New file.
28004         * m4/sinl.m4: New file.
28005         * m4/sqrtl.m4: New file.
28006         * m4/tanl.m4: New file.
28007         * m4/mathl.m4: Remove file.
28008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28009         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28010         Don't initialize GNULIB_MATHL.
28011         * modules/acosl: New file.
28012         * modules/asinl: New file.
28013         * modules/atanl: New file.
28014         * modules/cosl: New file.
28015         * modules/expl: New file.
28016         * modules/logl: New file.
28017         * modules/sinl: New file.
28018         * modules/sqrtl: New file.
28019         * modules/tanl: New file.
28020         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28021         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28022         substitute GNULIB_MATHL.
28023         * modules/mathl: Rewritten.
28024         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28025         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28026         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28027         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28028         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28029         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28030         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28031         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28032         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28033
28034 2010-01-18  Bruno Haible  <bruno@clisp.org>
28035
28036         sqrt: Make gl_FUNC_SQRT requirable.
28037         * m4/sqrt.m4: New file.
28038         * modules/sqrt (Files): Add it.
28039         (configure.ac): Invoke gl_FUNC_SQRT.
28040
28041 2010-01-18  Bruno Haible  <bruno@clisp.org>
28042
28043         New modules for common <math.h> functions.
28044         * m4/mathfunc.m4: New file.
28045         * modules/acos: New file.
28046         * modules/asin: New file.
28047         * modules/atan: New file.
28048         * modules/atan2: New file.
28049         * modules/cbrt: New file.
28050         * modules/copysign: New file.
28051         * modules/cos: New file.
28052         * modules/cosh: New file.
28053         * modules/erf: New file.
28054         * modules/erfc: New file.
28055         * modules/exp: New file.
28056         * modules/fabs: New file.
28057         * modules/fmod: New file.
28058         * modules/hypot: New file.
28059         * modules/j0: New file.
28060         * modules/j1: New file.
28061         * modules/jn: New file.
28062         * modules/ldexp: New file.
28063         * modules/lgamma: New file.
28064         * modules/log: New file.
28065         * modules/log10: New file.
28066         * modules/log1p: New file.
28067         * modules/logb: New file.
28068         * modules/modf: New file.
28069         * modules/nextafter: New file.
28070         * modules/pow: New file.
28071         * modules/remainder: New file.
28072         * modules/rint: New file.
28073         * modules/sin: New file.
28074         * modules/sinh: New file.
28075         * modules/sqrt: New file.
28076         * modules/tan: New file.
28077         * modules/tanh: New file.
28078         * modules/y0: New file.
28079         * modules/y1: New file.
28080         * modules/yn: New file.
28081         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28082         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28083         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28084         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28085         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28086         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28087         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28088         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28089         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28090         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28091         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28092         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28093         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28094         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28095         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28096         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28097         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28098         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28099         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28100         * doc/posix-functions/log.texi: Mention the 'log' module.
28101         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28102         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28103         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28104         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28105         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28106         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28107         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28108         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28109         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28110         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28111         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28112         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28113         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28114         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28115         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28116         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28117
28118 2010-01-18  Jim Meyering  <meyering@redhat.com>
28119
28120         ignore-value: relax license to LGPLv2+
28121         * modules/ignore-value (License): Relax to LGPLv2+.
28122
28123         getdate: don't leak when TZ contains two or more '"'s
28124         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28125         double quote in TZ after the first one.
28126
28127         readtokens: do not leak internal token_lengths buffer
28128         * lib/readtokens.c (readtokens): Free the local, lengths,
28129         when the supplied "token_lengths" parameter is NULL.
28130
28131 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28132
28133         Fix a couple of missing LIBTHREAD link failures on AIX.
28134         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28135         $(LIBTHREAD).
28136         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28137
28138         Link test-poll against INET_PTON_LIB.
28139         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28140         for inet_pton on Solaris 10.
28141
28142 2010-01-17  Bruno Haible  <bruno@clisp.org>
28143
28144         unistdio/*-sprintf: Fix typo in module description.
28145         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28146         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28147         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28148         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28149         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28150         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28151         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28152         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28153
28154 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28155
28156         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28157         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28158         variables in shell case patterns, for AIX and HP-UX ksh.
28159
28160         Split large sed scripts, for HP-UX sed.
28161         * modules/stdio: Split sed scripts around 50 sed commands,
28162         to avoid HP-UX limit of 99 commands, in the near future.
28163         * modules/string: Likewise.
28164         * modules/unistd: Likewise.
28165
28166         gnulib-tool: avoid writing in the current directory.
28167         * gnulib-tool (func_emit_lib_Makefile_am)
28168         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28169         not in the current directory, so concurrent gnulib-tool
28170         instances do not interfere.
28171
28172 2010-01-16  Jim Meyering  <meyering@redhat.com>
28173
28174         doc: update users.txt
28175         * users.txt: Add grep.
28176         (diffutils, gzip): Update URLs.
28177
28178 2010-01-12  Bruno Haible  <bruno@clisp.org>
28179
28180         posix_spawn: Avoid test failure on Cygwin.
28181         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28182         characters.
28183         Reported by Simon Josefsson.
28184
28185 2010-01-12  Bruno Haible  <bruno@clisp.org>
28186
28187         * tests/test-cond.c (main): When skipping the test, show the reason.
28188
28189 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28190
28191         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28192
28193 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28194
28195         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28196         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28197
28198 2010-01-12  Eric Blake  <ebb9@byu.net>
28199
28200         build: guarantee AS_VAR_IF
28201         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28202         (gl_AS_VAR_IF): Move...
28203         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28204         Reported by Simon Josefsson.
28205
28206 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28207
28208         * lib/stdio.in.h: Fix typo.
28209
28210 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28211
28212         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28213         libgpg-error.
28214
28215 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28216
28217         * tests/test-xalloc-die.sh: Use $EXEEXT.
28218
28219 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28220             Bruno Haible  <bruno@clisp.org>
28221
28222         getlogin, getlogin_r: Avoid test failure.
28223         * tests/test-getlogin.c: Include <stdio.h>.
28224         (main): Skip the test when the function fails because stdin is not a
28225         tty.
28226         * tests/test-getlogin_r.c: Include <stdio.h>.
28227         (main): Skip the test when the function fails because stdin is not a
28228         tty.
28229
28230 2010-01-11  Eric Blake  <ebb9@byu.net>
28231
28232         tests: avoid more large file warnings
28233         * tests/test-fflush.c: Avoid warning about ftell use.
28234         * tests/test-fseek.c: Avoid warning about fseek use.
28235
28236 2010-01-10  Bruno Haible  <bruno@clisp.org>
28237
28238         nproc: Work better on Linux when /proc and /sys are not mounted.
28239         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28240         as lower bound when, on glibc/Linux systems,
28241         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28242         Suggested by Pádraig Brady <P@draigbrady.com>.
28243         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28244
28245         nproc: Refactor.
28246         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28247         extracted from num_processors.
28248         (num_processors): Call it.
28249
28250 2010-01-11  Jim Meyering  <meyering@redhat.com>
28251
28252         utimecmp: avoid new warning from upcoming gcc-4.5.0
28253         * lib/utimecmp.c (BILLION): Define using #define rather than an
28254         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28255
28256 2010-01-11  Eric Blake  <ebb9@byu.net>
28257
28258         math: add portability warnings for classification macros
28259         * modules/math (Depends-on): Add warn-on-use.
28260         (Makefile.am): Provide new substitutions.
28261         * m4/math_h.m4 (gl_MATH_H): Require inline.
28262         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28263         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28264         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28265         implement warnings.
28266
28267         unistd: warn on use of environ without module
28268         * modules/unistd (Depends-on): Add warn-on-use.
28269         (Makefile.am): Provide new substitutions.
28270         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28271         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28272
28273         stdio: warn on suspicious uses
28274         * modules/stdio (Depends-on): Add warn-on-use.
28275         (Makefile.am): Provide new substitutions.
28276         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28277         fseeko.
28278         * lib/stdio.in.h (gets): Always warn on use.
28279         (fseek, ftell): Adjust when warnings are issued, and honor
28280         _GL_NO_LARGE_FILES as a way to silence the warning.
28281         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28282         any warning about large file offsets.
28283         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28284         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28285         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28286         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28287         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28288         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28289         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28290         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28291
28292         warn-on-use: new module
28293         * modules/warn-on-use: New file.
28294         * build-aux/warn-on-use.h: Likewise.
28295         * m4/warn-on-use.m4: Likewise.
28296         * MODULES.html.sh (Support for building): Mention it.
28297
28298 2010-01-10  Bruno Haible  <bruno@clisp.org>
28299
28300         Tests for module 'unistr/u32-strdup'.
28301         * modules/unistr/u32-strdup-tests: New file.
28302         * tests/unistr/test-u32-strdup.c: New file.
28303
28304         Tests for module 'unistr/u16-strdup'.
28305         * modules/unistr/u16-strdup-tests: New file.
28306         * tests/unistr/test-u16-strdup.c: New file.
28307
28308         Tests for module 'unistr/u8-strdup'.
28309         * modules/unistr/u8-strdup-tests: New file.
28310         * tests/unistr/test-u8-strdup.c: New file.
28311         * tests/unistr/test-strdup.h: New file.
28312
28313         Tests for module 'unistr/u32-strncmp'.
28314         * modules/unistr/u32-strncmp-tests: New file.
28315         * tests/unistr/test-u32-strncmp.c: New file.
28316
28317         Tests for module 'unistr/u16-strncmp'.
28318         * modules/unistr/u16-strncmp-tests: New file.
28319         * tests/unistr/test-u16-strncmp.c: New file.
28320
28321         Tests for module 'unistr/u8-strncmp'.
28322         * modules/unistr/u8-strncmp-tests: New file.
28323         * tests/unistr/test-u8-strncmp.c: New file.
28324         * tests/unistr/test-strncmp.h: New file.
28325
28326         Tests for module 'unistr/u32-strcoll'.
28327         * modules/unistr/u32-strcoll-tests: New file.
28328         * tests/unistr/test-u32-strcoll.c: New file.
28329
28330         Tests for module 'unistr/u16-strcoll'.
28331         * modules/unistr/u16-strcoll-tests: New file.
28332         * tests/unistr/test-u16-strcoll.c: New file.
28333
28334         Tests for module 'unistr/u8-strcoll'.
28335         * modules/unistr/u8-strcoll-tests: New file.
28336         * tests/unistr/test-u8-strcoll.c: New file.
28337
28338         Tests for module 'unistr/u32-strcmp'.
28339         * modules/unistr/u32-strcmp-tests: New file.
28340         * tests/unistr/test-u32-strcmp.c: New file.
28341         * tests/unistr/test-u32-strcmp.h: New file.
28342
28343         Tests for module 'unistr/u16-strcmp'.
28344         * modules/unistr/u16-strcmp-tests: New file.
28345         * tests/unistr/test-u16-strcmp.c: New file.
28346         * tests/unistr/test-u16-strcmp.h: New file.
28347
28348         Tests for module 'unistr/u8-strcmp'.
28349         * modules/unistr/u8-strcmp-tests: New file.
28350         * tests/unistr/test-u8-strcmp.c: New file.
28351         * tests/unistr/test-u8-strcmp.h: New file.
28352         * tests/unistr/test-strcmp.h: New file.
28353
28354         Tests for module 'unistr/u32-strncat'.
28355         * modules/unistr/u32-strncat-tests: New file.
28356         * tests/unistr/test-u32-strncat.c: New file.
28357
28358         Tests for module 'unistr/u16-strncat'.
28359         * modules/unistr/u16-strncat-tests: New file.
28360         * tests/unistr/test-u16-strncat.c: New file.
28361
28362         Tests for module 'unistr/u8-strncat'.
28363         * modules/unistr/u8-strncat-tests: New file.
28364         * tests/unistr/test-u8-strncat.c: New file.
28365         * tests/unistr/test-strncat.h: New file.
28366
28367         Tests for module 'unistr/u32-strcat'.
28368         * modules/unistr/u32-strcat-tests: New file.
28369         * tests/unistr/test-u32-strcat.c: New file.
28370
28371         Tests for module 'unistr/u16-strcat'.
28372         * modules/unistr/u16-strcat-tests: New file.
28373         * tests/unistr/test-u16-strcat.c: New file.
28374
28375         Tests for module 'unistr/u8-strcat'.
28376         * modules/unistr/u8-strcat-tests: New file.
28377         * tests/unistr/test-u8-strcat.c: New file.
28378         * tests/unistr/test-strcat.h: New file.
28379
28380         Tests for module 'unistr/u32-stpncpy'.
28381         * modules/unistr/u32-stpncpy-tests: New file.
28382         * tests/unistr/test-u32-stpncpy.c: New file.
28383
28384         Tests for module 'unistr/u16-stpncpy'.
28385         * modules/unistr/u16-stpncpy-tests: New file.
28386         * tests/unistr/test-u16-stpncpy.c: New file.
28387
28388         Tests for module 'unistr/u8-stpncpy'.
28389         * modules/unistr/u8-stpncpy-tests: New file.
28390         * tests/unistr/test-u8-stpncpy.c: New file.
28391         * tests/unistr/test-stpncpy.h: New file.
28392
28393         Tests for module 'unistr/u32-strncpy'.
28394         * modules/unistr/u32-strncpy-tests: New file.
28395         * tests/unistr/test-u32-strncpy.c: New file.
28396
28397         Tests for module 'unistr/u16-strncpy'.
28398         * modules/unistr/u16-strncpy-tests: New file.
28399         * tests/unistr/test-u16-strncpy.c: New file.
28400
28401         Tests for module 'unistr/u8-strncpy'.
28402         * modules/unistr/u8-strncpy-tests: New file.
28403         * tests/unistr/test-u8-strncpy.c: New file.
28404         * tests/unistr/test-strncpy.h: New file.
28405
28406         Tests for module 'unistr/u32-stpcpy'.
28407         * modules/unistr/u32-stpcpy-tests: New file.
28408         * tests/unistr/test-u32-stpcpy.c: New file.
28409
28410         Tests for module 'unistr/u16-stpcpy'.
28411         * modules/unistr/u16-stpcpy-tests: New file.
28412         * tests/unistr/test-u16-stpcpy.c: New file.
28413
28414         Tests for module 'unistr/u8-stpcpy'.
28415         * modules/unistr/u8-stpcpy-tests: New file.
28416         * tests/unistr/test-u8-stpcpy.c: New file.
28417         * tests/unistr/test-stpcpy.h: New file.
28418
28419         Tests for module 'unistr/u32-strcpy'.
28420         * modules/unistr/u32-strcpy-tests: New file.
28421         * tests/unistr/test-u32-strcpy.c: New file.
28422
28423         Tests for module 'unistr/u16-strcpy'.
28424         * modules/unistr/u16-strcpy-tests: New file.
28425         * tests/unistr/test-u16-strcpy.c: New file.
28426
28427         Tests for module 'unistr/u8-strcpy'.
28428         * modules/unistr/u8-strcpy-tests: New file.
28429         * tests/unistr/test-u8-strcpy.c: New file.
28430         * tests/unistr/test-strcpy.h: New file.
28431
28432         Tests for module 'unistr/u32-strnlen'.
28433         * modules/unistr/u32-strnlen-tests: New file.
28434         * tests/unistr/test-u32-strnlen.c: New file.
28435
28436         Tests for module 'unistr/u16-strnlen'.
28437         * modules/unistr/u16-strnlen-tests: New file.
28438         * tests/unistr/test-u16-strnlen.c: New file.
28439
28440         Tests for module 'unistr/u8-strnlen'.
28441         * modules/unistr/u8-strnlen-tests: New file.
28442         * tests/unistr/test-u8-strnlen.c: New file.
28443         * tests/unistr/test-strnlen.h: New file.
28444
28445         Tests for module 'unistr/u32-strlen'.
28446         * modules/unistr/u32-strlen-tests: New file.
28447         * tests/unistr/test-u32-strlen.c: New file.
28448
28449         Tests for module 'unistr/u16-strlen'.
28450         * modules/unistr/u16-strlen-tests: New file.
28451         * tests/unistr/test-u16-strlen.c: New file.
28452
28453         Tests for module 'unistr/u8-strlen'.
28454         * modules/unistr/u8-strlen-tests: New file.
28455         * tests/unistr/test-u8-strlen.c: New file.
28456
28457         Tests for module 'unistr/u32-prev'.
28458         * modules/unistr/u32-prev-tests: New file.
28459         * tests/unistr/test-u32-prev.c: New file.
28460
28461         Tests for module 'unistr/u16-prev'.
28462         * modules/unistr/u16-prev-tests: New file.
28463         * tests/unistr/test-u16-prev.c: New file.
28464
28465         Tests for module 'unistr/u8-prev'.
28466         * modules/unistr/u8-prev-tests: New file.
28467         * tests/unistr/test-u8-prev.c: New file.
28468
28469         Tests for module 'unistr/u32-next'.
28470         * modules/unistr/u32-next-tests: New file.
28471         * tests/unistr/test-u32-next.c: New file.
28472
28473         Tests for module 'unistr/u16-next'.
28474         * modules/unistr/u16-next-tests: New file.
28475         * tests/unistr/test-u16-next.c: New file.
28476
28477         Tests for module 'unistr/u8-next'.
28478         * modules/unistr/u8-next-tests: New file.
28479         * tests/unistr/test-u8-next.c: New file.
28480
28481         Tests for module 'unistr/u32-strmbtouc'.
28482         * modules/unistr/u32-strmbtouc-tests: New file.
28483         * tests/unistr/test-u32-strmbtouc.c: New file.
28484
28485         Tests for module 'unistr/u16-strmbtouc'.
28486         * modules/unistr/u16-strmbtouc-tests: New file.
28487         * tests/unistr/test-u16-strmbtouc.c: New file.
28488
28489         Tests for module 'unistr/u8-strmbtouc'.
28490         * modules/unistr/u8-strmbtouc-tests: New file.
28491         * tests/unistr/test-u8-strmbtouc.c: New file.
28492
28493         Tests for module 'unistr/u32-strmblen'.
28494         * modules/unistr/u32-strmblen-tests: New file.
28495         * tests/unistr/test-u32-strmblen.c: New file.
28496
28497         Tests for module 'unistr/u16-strmblen'.
28498         * modules/unistr/u16-strmblen-tests: New file.
28499         * tests/unistr/test-u16-strmblen.c: New file.
28500
28501         Tests for module 'unistr/u8-strmblen'.
28502         * modules/unistr/u8-strmblen-tests: New file.
28503         * tests/unistr/test-u8-strmblen.c: New file.
28504
28505         Tests for module 'unistr/u32-cpy-alloc'.
28506         * modules/unistr/u32-cpy-alloc-tests: New file.
28507         * tests/unistr/test-u32-cpy-alloc.c: New file.
28508
28509         Tests for module 'unistr/u16-cpy-alloc'.
28510         * modules/unistr/u16-cpy-alloc-tests: New file.
28511         * tests/unistr/test-u16-cpy-alloc.c: New file.
28512
28513         Tests for module 'unistr/u8-cpy-alloc'.
28514         * modules/unistr/u8-cpy-alloc-tests: New file.
28515         * tests/unistr/test-u8-cpy-alloc.c: New file.
28516         * tests/unistr/test-cpy-alloc.h: New file.
28517
28518         Tests for module 'unistr/u32-mbsnlen'.
28519         * modules/unistr/u32-mbsnlen-tests: New file.
28520         * tests/unistr/test-u32-mbsnlen.c: New file.
28521
28522         Tests for module 'unistr/u16-mbsnlen'.
28523         * modules/unistr/u16-mbsnlen-tests: New file.
28524         * tests/unistr/test-u16-mbsnlen.c: New file.
28525
28526         Tests for module 'unistr/u8-mbsnlen'.
28527         * modules/unistr/u8-mbsnlen-tests: New file.
28528         * tests/unistr/test-u8-mbsnlen.c: New file.
28529
28530         Tests for module 'unistr/u32-chr'.
28531         * modules/unistr/u32-chr-tests: New file.
28532         * tests/unistr/test-u32-chr.c: New file.
28533
28534         Tests for module 'unistr/u16-chr'.
28535         * modules/unistr/u16-chr-tests: New file.
28536         * tests/unistr/test-u16-chr.c: New file.
28537
28538         Tests for module 'unistr/u8-chr'.
28539         * modules/unistr/u8-chr-tests: New file.
28540         * tests/unistr/test-u8-chr.c: New file.
28541         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28542
28543         Tests for module 'unistr/u32-cmp2'.
28544         * modules/unistr/u32-cmp2-tests: New file.
28545         * tests/unistr/test-u32-cmp2.c: New file.
28546
28547         Tests for module 'unistr/u16-cmp2'.
28548         * modules/unistr/u16-cmp2-tests: New file.
28549         * tests/unistr/test-u16-cmp2.c: New file.
28550
28551         Tests for module 'unistr/u8-cmp2'.
28552         * modules/unistr/u8-cmp2-tests: New file.
28553         * tests/unistr/test-u8-cmp2.c: New file.
28554         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28555
28556         Tests for module 'unistr/u32-cmp'.
28557         * modules/unistr/u32-cmp-tests: New file.
28558         * tests/unistr/test-u32-cmp.c: New file.
28559
28560         Tests for module 'unistr/u16-cmp'.
28561         * modules/unistr/u16-cmp-tests: New file.
28562         * tests/unistr/test-u16-cmp.c: New file.
28563
28564         Tests for module 'unistr/u8-cmp'.
28565         * modules/unistr/u8-cmp-tests: New file.
28566         * tests/unistr/test-u8-cmp.c: New file.
28567         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28568
28569         Tests for module 'unistr/u32-set'.
28570         * modules/unistr/u32-set-tests: New file.
28571         * tests/unistr/test-u32-set.c: New file.
28572
28573         Tests for module 'unistr/u16-set'.
28574         * modules/unistr/u16-set-tests: New file.
28575         * tests/unistr/test-u16-set.c: New file.
28576
28577         Tests for module 'unistr/u8-set'.
28578         * modules/unistr/u8-set-tests: New file.
28579         * tests/unistr/test-u8-set.c: New file.
28580         * tests/unistr/test-set.h: New file.
28581
28582         Tests for module 'unistr/u32-move'.
28583         * modules/unistr/u32-move-tests: New file.
28584         * tests/unistr/test-u32-move.c: New file.
28585
28586         Tests for module 'unistr/u16-move'.
28587         * modules/unistr/u16-move-tests: New file.
28588         * tests/unistr/test-u16-move.c: New file.
28589
28590         Tests for module 'unistr/u8-move'.
28591         * modules/unistr/u8-move-tests: New file.
28592         * tests/unistr/test-u8-move.c: New file.
28593         * tests/unistr/test-move.h: New file.
28594
28595         Tests for module 'unistr/u32-cpy'.
28596         * modules/unistr/u32-cpy-tests: New file.
28597         * tests/unistr/test-u32-cpy.c: New file.
28598
28599         Tests for module 'unistr/u16-cpy'.
28600         * modules/unistr/u16-cpy-tests: New file.
28601         * tests/unistr/test-u16-cpy.c: New file.
28602
28603         Tests for module 'unistr/u8-cpy'.
28604         * modules/unistr/u8-cpy-tests: New file.
28605         * tests/unistr/test-u8-cpy.c: New file.
28606         * tests/unistr/test-cpy.h: New file.
28607
28608 2010-01-09  Bruno Haible  <bruno@clisp.org>
28609
28610         Tests for module 'unistr/u32-uctomb'.
28611         * modules/unistr/u32-uctomb-tests: New file.
28612         * tests/unistr/test-u32-uctomb.c: New file.
28613
28614         Tests for module 'unistr/u16-uctomb'.
28615         * modules/unistr/u16-uctomb-tests: New file.
28616         * tests/unistr/test-u16-uctomb.c: New file.
28617
28618         Tests for module 'unistr/u8-uctomb'.
28619         * modules/unistr/u8-uctomb-tests: New file.
28620         * tests/unistr/test-u8-uctomb.c: New file.
28621
28622         Tests for module 'unistr/u32-mbtoucr'.
28623         * modules/unistr/u32-mbtoucr-tests: New file.
28624         * tests/unistr/test-u32-mbtoucr.c: New file.
28625
28626         Tests for module 'unistr/u16-mbtoucr'.
28627         * modules/unistr/u16-mbtoucr-tests: New file.
28628         * tests/unistr/test-u16-mbtoucr.c: New file.
28629
28630         Tests for module 'unistr/u8-mbtoucr'.
28631         * modules/unistr/u8-mbtoucr-tests: New file.
28632         * tests/unistr/test-u8-mbtoucr.c: New file.
28633
28634         Tests for module 'unistr/u32-mbtouc'.
28635         * modules/unistr/u32-mbtouc-tests: New file.
28636         * tests/unistr/test-u32-mbtouc.c: New file.
28637
28638         Tests for module 'unistr/u16-mbtouc'.
28639         * modules/unistr/u16-mbtouc-tests: New file.
28640         * tests/unistr/test-u16-mbtouc.c: New file.
28641
28642         Tests for module 'unistr/u8-mbtouc'.
28643         * modules/unistr/u8-mbtouc-tests: New file.
28644         * tests/unistr/test-u8-mbtouc.c: New file.
28645
28646         Tests for module 'unistr/u32-mbtouc-unsafe'.
28647         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28648         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28649         * tests/unistr/test-u32-mbtouc.h: New file.
28650
28651         Tests for module 'unistr/u16-mbtouc-unsafe'.
28652         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28653         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28654         * tests/unistr/test-u16-mbtouc.h: New file.
28655
28656         Tests for module 'unistr/u8-mbtouc-unsafe'.
28657         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28658         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28659         * tests/unistr/test-u8-mbtouc.h: New file.
28660
28661         Tests for module 'unistr/u32-mblen'.
28662         * modules/unistr/u32-mblen-tests: New file.
28663         * tests/unistr/test-u32-mblen.c: New file.
28664
28665         Tests for module 'unistr/u16-mblen'.
28666         * modules/unistr/u16-mblen-tests: New file.
28667         * tests/unistr/test-u16-mblen.c: New file.
28668
28669         Tests for module 'unistr/u8-mblen'.
28670         * modules/unistr/u8-mblen-tests: New file.
28671         * tests/unistr/test-u8-mblen.c: New file.
28672
28673         Tests for module 'unistr/u32-to-u16'.
28674         * modules/unistr/u32-to-u16-tests: New file.
28675         * tests/unistr/test-u32-to-u16.c: New file.
28676
28677         Tests for module 'unistr/u32-to-u8'.
28678         * modules/unistr/u32-to-u8-tests: New file.
28679         * tests/unistr/test-u32-to-u8.c: New file.
28680
28681         Tests for module 'unistr/u16-to-u32'.
28682         * modules/unistr/u16-to-u32-tests: New file.
28683         * tests/unistr/test-u16-to-u32.c: New file.
28684
28685         Tests for module 'unistr/u16-to-u8'.
28686         * modules/unistr/u16-to-u8-tests: New file.
28687         * tests/unistr/test-u16-to-u8.c: New file.
28688
28689         Tests for module 'unistr/u8-to-u32'.
28690         * modules/unistr/u8-to-u32-tests: New file.
28691         * tests/unistr/test-u8-to-u32.c: New file.
28692
28693         Tests for module 'unistr/u8-to-u16'.
28694         * modules/unistr/u8-to-u16-tests: New file.
28695         * tests/unistr/test-u8-to-u16.c: New file.
28696
28697         Tests for module 'unistr/u32-check'.
28698         * modules/unistr/u32-check-tests: New file.
28699         * tests/unistr/test-u32-check.c: New file.
28700
28701         Tests for module 'unistr/u16-check'.
28702         * modules/unistr/u16-check-tests: New file.
28703         * tests/unistr/test-u16-check.c: New file.
28704
28705         Tests for module 'unistr/u8-check'.
28706         * modules/unistr/u8-check-tests: New file.
28707         * tests/unistr/test-u8-check.c: New file.
28708
28709         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28710         (category_equals): New function.
28711         (main): Add more tests.
28712         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28713
28714         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28715
28716 2010-01-10  Bruno Haible  <bruno@clisp.org>
28717
28718         unistr/u*-strcoll: Try harder to distinguish different strings.
28719         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28720         compare s1 and s2 to see if they are different.
28721
28722 2010-01-10  Bruno Haible  <bruno@clisp.org>
28723
28724         unistr/u*-stpncpy: Fix the return value.
28725         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28726         description of the return value consistent with stpncpy in glibc.
28727         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28728         written non-NUL unit.
28729
28730 2010-01-10  Bruno Haible  <bruno@clisp.org>
28731
28732         unistr/u*-next: Add missing dependencies.
28733         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28734         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28735         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28736
28737 2010-01-10  Bruno Haible  <bruno@clisp.org>
28738
28739         unistr/u8-mbsnlen: Fix return value for incomplete character.
28740         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28741         u8_mblen.
28742         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28743         Remove unistr/u8-mblen.
28744         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28745         u16_mblen.
28746         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28747         Remove unistr/u16-mblen.
28748
28749 2010-01-10  Bruno Haible  <bruno@clisp.org>
28750
28751         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28752         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28753         Reported by Brian Gough <bjg@gnu.org> and
28754         Chris Clayton <chris2553@googlemail.com> via
28755         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28756
28757 2010-01-09  Bruno Haible  <bruno@clisp.org>
28758
28759         unistr/u16-to-u32: Reject invalid input.
28760         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28761         u16_mbtouc.
28762         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28763         Remove unistr/u16-mbtouc.
28764
28765         unistr/u16-to-u8: Reject invalid input.
28766         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28767         u16_mbtouc.
28768         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28769         Remove unistr/u16-mbtouc.
28770
28771         unistr/u8-to-u32: Reject invalid input.
28772         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28773         u8_mbtouc.
28774         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28775         Remove unistr/u8-mbtouc.
28776
28777         unistr/u8-to-u16: Reject invalid input.
28778         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28779         u8_mbtouc.
28780         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28781         Remove unistr/u8-mbtouc.
28782
28783 2010-01-09  Bruno Haible  <bruno@clisp.org>
28784
28785         Tests for module 'getlogin'.
28786         * modules/getlogin-tests: New file.
28787         * tests/test-getlogin.c: New file.
28788
28789         New module 'getlogin'.
28790         * lib/unistd.in.h (getlogin): New declaration.
28791         * lib/getlogin.c: New file.
28792         * m4/getlogin.m4: New file.
28793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28794         HAVE_GETLOGIN.
28795         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28796         HAVE_GETLOGIN.
28797         * modules/getlogin: New file.
28798         * doc/posix-functions/getlogin.texi: Mention the new module.
28799         Reported by John W. Eaton <jwe@gnu.org>.
28800
28801 2010-01-09  Bruno Haible  <bruno@clisp.org>
28802
28803         getlogin_r: Support for native Windows.
28804         * lib/getlogin_r.c: Include <windows.h>
28805         (getlogin_r): Implement for native Windows.
28806         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28807         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28808         via John W. Eaton <jwe@gnu.org>.
28809
28810 2010-01-09  Bruno Haible  <bruno@clisp.org>
28811
28812         getlogin_r: Small fixes.
28813         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28814         succeeds.
28815         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28816         before testing whether getlogin_r is declared. No need to set
28817         HAVE_DECL_GETLOGIN_R to 1.
28818         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28819
28820 2010-01-09  Bruno Haible  <bruno@clisp.org>
28821
28822         * lib/unistd.in.h (getlogin_r): Add comment.
28823
28824 2010-01-09  Bruno Haible  <bruno@clisp.org>
28825
28826         Tests for module 'getlogin_r'.
28827         * modules/getlogin_r-tests: New file.
28828         * tests/test-getlogin_r.c: New file.
28829
28830 2010-01-09  Jim Meyering  <meyering@redhat.com>
28831
28832         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28833         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28834         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28835
28836 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28837
28838         * lib/dup2.c (rpl_dup2): Improve comment.
28839
28840 2010-01-08  Eric Blake  <ebb9@byu.net>
28841
28842         maint.mk: allow packages to add makefile @@ exceptions
28843         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28844         (sc_makefile_check): Rename...
28845         (sc_makefile_at_at_check): ...to this, and use hook.
28846
28847         dup2: work around mingw bug
28848         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28849         Reported by Simon Josefsson.
28850
28851 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28852
28853         glob: Fix C++ compilation.
28854         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28855         C++.
28856
28857 2010-01-07  Bruno Haible  <bruno@clisp.org>
28858
28859         Fix indentation of wctype.in.h, broken since 2007-01-06.
28860         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28861
28862 2010-01-07  Bruno Haible  <bruno@clisp.org>
28863
28864         mbslen: Avoid collision with system function.
28865         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28866         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28867         * m4/mbslen.m4: New file.
28868         * modules/mbslen (Files): Add it.
28869         (configure.ac): Invoke gl_MBSLEN.
28870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28871         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28872         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28873         via Ian Beckwith <ianb@erislabs.net>.
28874
28875 2010-01-07  Bruno Haible  <bruno@clisp.org>
28876
28877         dirent: Document the last fix.
28878         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28879
28880 2010-01-07  Bruno Haible  <bruno@clisp.org>
28881
28882         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28883         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28884         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28885         va_list are defined.
28886         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28887         Reported by Eric Blake.
28888
28889 2010-01-07  Bruno Haible  <bruno@clisp.org>
28890
28891         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28892         * modules/xlist (Depends-on): Add 'list',
28893         * modules/xoset (Depends-on): Add 'oset'.
28894         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28895
28896 2010-01-07  Bruno Haible  <bruno@clisp.org>
28897
28898         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28899         * doc/posix-functions/strncasecmp.texi: Likewise.
28900
28901 2010-01-07  Bruno Haible  <bruno@clisp.org>
28902
28903         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28904
28905 2010-01-07  John W. Eaton  <jwe@octave.org>
28906
28907         wctype: allow C++ use
28908         * lib/wctype.in.h: Add extern "C" block for C++.
28909
28910 2010-01-06  Eric Blake  <ebb9@byu.net>
28911
28912         maint.mk: detect incorrect GFDL usage
28913         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28914
28915 2010-01-06  Jim Meyering  <meyering@redhat.com>
28916         and Eric Blake  <ebb9@byu.net>
28917
28918         maint.mk: ignore multi-line copyright in NEWS
28919         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28920
28921 2010-01-06  Eric Blake  <ebb9@byu.net>
28922
28923         select: add missing dependency
28924         * modules/select-tests (Depends-on): Move sockets dependency...
28925         * modules/select (Depends-on): ...here.
28926         Reported by Ian Beckwith.
28927
28928         doc: regenerate INSTALL
28929         * doc/INSTALL: Reflect recent autoconf update.
28930         * doc/INSTALL.ISO: Likewise.
28931         * doc/INSTALL.UTF-8: Likewise.
28932
28933         pread: fix compilation on glibc
28934         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28935         Reported by Ralf Wildenhues.
28936
28937         dirent: fix test failure
28938         * lib/dirent.in.h (includes): Guarantee ino_t.
28939         Reported by Ralf Wildenhues.
28940
28941 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28942
28943         linkat, renameat: avoid bad free
28944         * lib/at-func2.c (at_func2): Fix typo.
28945         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28946
28947 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28948
28949         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28950         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28951         to avoid failure of symlink test later.
28952
28953 2010-01-06  Eric Blake  <ebb9@byu.net>
28954
28955         stdio, unistd: guarantee ssize_t
28956         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28957         2008 are exposed when needed.
28958         * lib/stdio.in.h (includes): Likewise.
28959         Reported by Ralf Wildenhues.
28960
28961 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28962
28963         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28964         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28965         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28966
28967 2010-01-06  Jim Meyering  <meyering@redhat.com>
28968
28969         readtokens: this module *does* require xalloc.h
28970         It uses only functions that were omitted by the old syntax-check rule.
28971         * lib/readtokens.c: Include "xalloc.h" once again.
28972         * modules/readtokens (Depends-on): Add xalloc.
28973         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28974
28975 2010-01-05  Eric Blake  <ebb9@byu.net>
28976
28977         maint: support 'make announcement' from a VPATH build
28978         * top/maint.mk (announcement): Look for correct NEWS file.
28979
28980 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28981
28982         utimens (fdutimens): ignore a negative FD, per contract
28983         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28984         when we have a valid file descriptor.  Otherwise, using a brand
28985         new glibc (with just-patched futimens that now fails with EBADF)
28986         would cause this function to fail with ENOSYS.
28987         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28988         See also http://bugzilla.redhat.com/552320.
28989
28990 2010-01-05  Eric Blake  <ebb9@byu.net>
28991
28992         strcase: document what it provides
28993         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28994         gnulib module.
28995         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28996         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28997
28998 2010-01-05  Jim Meyering  <meyering@redhat.com>
28999
29000         maint: remove useless inclusions of "xalloc.h"
29001         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29002         * lib/readtokens.c: Likewise.
29003         * lib/same.c: Likewise.
29004         * modules/getloadavg (Depends-on): Remove xalloc.
29005         * modules/readtokens: Likewise.
29006         * modules/same: Likewise.
29007
29008         maint.mk: include 4 more function names in alloca.h-checking regexp
29009         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29010         regexp.  Before, we would give a false-positive (saying alloca.h
29011         is included unnecessarily) when the only uses involved omitted symbols.
29012
29013         xalloc.h: use consistent formatting
29014         * lib/xalloc.h: Move declarations to start in the first column.
29015
29016 2010-01-05  Eric Blake  <ebb9@byu.net>
29017
29018         mkdir: avoid xalloc
29019         * lib/mkdir.c (includes): Drop unused header.
29020         Reported by John W. Eaton.
29021
29022 2010-01-04  Jim Meyering  <meyering@redhat.com>
29023
29024         nl_langinfo: avoid configure-time syntax error
29025         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29026         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29027         the empty string.  Don't let that provoke a shell syntax error.
29028
29029         regcomp, regexec, fnmatch: avoid array bounds read error
29030         * lib/regcomp.c (build_equiv_class): From glibc:
29031         Use only the low 24 bits of a findidx return value as an index
29032         into the weights array.  Patch by Ulrich Drepper:
29033         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29034         * lib/regexec.c (check_node_accept_bytes): Likewise.
29035         * lib/fnmatch_loop.c (FCT): Likewise.
29036
29037         regcomp: skip collseq lookup when there are no rules
29038         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29039         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29040
29041         regcomp: recognize ill-formed { } expressions
29042         * lib/regcomp.c (parse_dup_op): From glibc:
29043         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29044
29045         regcomp: fix typo in comment
29046         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29047         s/satisfy/satisfies/.
29048
29049         regcomp: sync from glibc: remove dead store
29050         * lib/regcomp.c (duplicate_node_closure): Remove useless
29051         search_duplicated_node call and dead store.
29052
29053         regcomp: sync from glibc; always use nl_langinfo
29054         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29055         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29056         * modules/regex (Depends-on): Add nl_langinfo.
29057
29058 2010-01-04  Eric Blake  <ebb9@byu.net>
29059
29060         fdopendir: fix configure test
29061         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29062
29063 2010-01-01  Bruno Haible  <bruno@clisp.org>
29064
29065         wchar: Remove unused configure check.
29066         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29067
29068 2010-01-01  Eric Blake  <ebb9@byu.net>
29069
29070         headers: make check of system header explicit
29071         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29072         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29073         ourselves.
29074         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29075         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29076         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29077         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29078         internals.
29079         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29080         missing.
29081         Suggested by Bruno Haible.
29082
29083 2010-01-01  Jim Meyering  <meyering@redhat.com>
29084
29085         ChangeLog: tweak to eliminate unnecessary copyright line
29086         * ChangeLog: Remove a copyright line that was mistakenly updated
29087         by today's update-copyright run.  Reported by Eric Blake.
29088
29089         test-update-copyright: don't let envvar setting cause test failure
29090         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29091
29092 2010-01-01  Bruno Haible  <bruno@clisp.org>
29093
29094         localename: Avoid gcc warning.
29095         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29096         function if it is not used.
29097
29098 2010-01-01  Jim Meyering  <meyering@redhat.com>
29099
29100         update nearly all FSF copyright year lists to include 2010
29101         Use the same procedure as for 2009, outlined in
29102         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29103
29104         version-etc: set COPYRIGHT_YEAR to 2010
29105         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29106
29107 2009-12-31  Eric Blake  <ebb9@byu.net>
29108
29109         doc: correct availability of cygwin 1.5.x getopt
29110         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29111         variables.
29112         * doc/posix-functions/opterr.texi (opterr): Likewise.
29113         * doc/posix-functions/optind.texi (optind): Likewise.
29114         * doc/posix-functions/optopt.texi (optopt): Likewise.
29115         * doc/posix-functions/tzname.texi (tzname): Likewise.
29116
29117         openat: update maintainer
29118         * modules/openat (Maintainer): Add myself.
29119
29120         utimens: avoid shadowing warning
29121         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29122         buffers into one, to avoid shadowing, as well as avoiding a
29123         redundant stat.
29124         Reported by Jim Meyering.
29125
29126         test-dup2: avoid compiler warning
29127         * tests/test-dup2.c (is_inheritable): Only define if used.
29128
29129 2010-01-01  Bruno Haible  <bruno@clisp.org>
29130
29131         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29132         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29133         defined, use wctomb instead of wcrtomb.
29134
29135 2010-01-01  Bruno Haible  <bruno@clisp.org>
29136
29137         iconv: Reject native Solaris iconv.
29138         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29139         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29140
29141 2009-12-31  Bruno Haible  <bruno@clisp.org>
29142
29143         * tests/test-signal.c (main): Remove test of 'SIG'.
29144
29145 2009-12-31  Bruno Haible  <bruno@clisp.org>
29146
29147         spawn: Fix incomplete fix.
29148         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29149         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29150         warnings for GNULIB_POSIXCHECK again.
29151         Reported by Eric Blake.
29152
29153 2009-12-31  Bruno Haible  <bruno@clisp.org>
29154
29155         Avoid namespace pollution on glibc systems.
29156         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29157         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29158         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29159         glibc systems.
29160
29161 2009-12-31  Bruno Haible  <bruno@clisp.org>
29162
29163         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29164         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29165         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29166         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29167         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29168         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29169         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29170
29171 2009-12-31  Bruno Haible  <bruno@clisp.org>
29172
29173         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29174         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29175         afterwards.
29176
29177 2009-12-31  Bruno Haible  <bruno@clisp.org>
29178
29179         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29180         SYS_UTSNAME_H.
29181
29182 2009-12-31  Bruno Haible  <bruno@clisp.org>
29183
29184         spawn: Fix misapplied patch.
29185         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29186         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29187         warnings for GNULIB_POSIXCHECK.
29188
29189 2009-12-31  Bruno Haible  <bruno@clisp.org>
29190
29191         times: Update after sys_times changed.
29192         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29193         * modules/times (Files): Add it.
29194         (configure.ac): Invoke gl_FUNC_TIMES.
29195
29196 2009-12-31  Bruno Haible  <bruno@clisp.org>
29197
29198         Use AC_C_INLINE where necessary.
29199         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29200         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29201         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29202         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29203         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29204         * m4/mbiter.m4 (gl_MBITER): Likewise.
29205         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29206         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29207         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29208         * modules/u64 (configure.ac): Likewise.
29209
29210 2009-12-31  Bruno Haible  <bruno@clisp.org>
29211
29212         Use AC_C_INLINE instead of module 'inline' where possible.
29213         * modules/inline (Description): Clarify purpose.
29214         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29215         * modules/count-one-bits (Depends-on): Remove inline.
29216         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29217         * modules/openat (Depends-on): Remove inline.
29218         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29219         instead of depending on module 'inline'.
29220         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29221         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29222         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29223         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29224         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29225         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29226         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29227         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29228         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29229         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29230         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29231         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29232         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29233         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29234         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29235         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29236         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29237         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29238         Likewise.
29239         * modules/unictype/property-ascii-hex-digit (Depends-on,
29240         configure.ac): Likewise.
29241         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29242         configure.ac): Likewise.
29243         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29244         configure.ac): Likewise.
29245         * modules/unictype/property-bidi-block-separator (Depends-on,
29246         configure.ac): Likewise.
29247         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29248         configure.ac): Likewise.
29249         * modules/unictype/property-bidi-common-separator (Depends-on,
29250         configure.ac): Likewise.
29251         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29252         Likewise.
29253         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29254         configure.ac): Likewise.
29255         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29256         configure.ac): Likewise.
29257         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29258         configure.ac): Likewise.
29259         * modules/unictype/property-bidi-european-digit (Depends-on,
29260         configure.ac): Likewise.
29261         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29262         configure.ac): Likewise.
29263         * modules/unictype/property-bidi-left-to-right (Depends-on,
29264         configure.ac): Likewise.
29265         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29266         configure.ac): Likewise.
29267         * modules/unictype/property-bidi-other-neutral (Depends-on,
29268         configure.ac): Likewise.
29269         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29270         Likewise.
29271         * modules/unictype/property-bidi-segment-separator (Depends-on,
29272         configure.ac): Likewise.
29273         * modules/unictype/property-bidi-whitespace (Depends-on,
29274         configure.ac): Likewise.
29275         * modules/unictype/property-combining (Depends-on, configure.ac):
29276         Likewise.
29277         * modules/unictype/property-composite (Depends-on, configure.ac):
29278         Likewise.
29279         * modules/unictype/property-currency-symbol (Depends-on,
29280         configure.ac): Likewise.
29281         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29282         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29283         Likewise.
29284         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29285         configure.ac): Likewise.
29286         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29287         Likewise.
29288         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29289         Likewise.
29290         * modules/unictype/property-extender (Depends-on, configure.ac):
29291         Likewise.
29292         * modules/unictype/property-format-control (Depends-on, configure.ac):
29293         Likewise.
29294         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29295         Likewise.
29296         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29297         Likewise.
29298         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29299         Likewise.
29300         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29301         Likewise.
29302         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29303         Likewise.
29304         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29305         Likewise.
29306         * modules/unictype/property-id-start (Depends-on, configure.ac):
29307         Likewise.
29308         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29309         Likewise.
29310         * modules/unictype/property-ids-binary-operator (Depends-on,
29311         configure.ac): Likewise.
29312         * modules/unictype/property-ids-trinary-operator (Depends-on,
29313         configure.ac): Likewise.
29314         * modules/unictype/property-ignorable-control (Depends-on,
29315         configure.ac): Likewise.
29316         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29317         Likewise.
29318         * modules/unictype/property-join-control (Depends-on, configure.ac):
29319         Likewise.
29320         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29321         Likewise.
29322         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29323         Likewise.
29324         * modules/unictype/property-logical-order-exception (Depends-on,
29325         configure.ac): Likewise.
29326         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29327         Likewise.
29328         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29329         * modules/unictype/property-non-break (Depends-on, configure.ac):
29330         Likewise.
29331         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29332         Likewise.
29333         * modules/unictype/property-numeric (Depends-on, configure.ac):
29334         Likewise.
29335         * modules/unictype/property-other-alphabetic (Depends-on,
29336         configure.ac): Likewise.
29337         * modules/unictype/property-other-default-ignorable-code-point
29338         (Depends-on, configure.ac): Likewise.
29339         * modules/unictype/property-other-grapheme-extend (Depends-on,
29340         configure.ac): Likewise.
29341         * modules/unictype/property-other-id-continue (Depends-on,
29342         configure.ac): Likewise.
29343         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29344         Likewise.
29345         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29346         Likewise.
29347         * modules/unictype/property-other-math (Depends-on, configure.ac):
29348         Likewise.
29349         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29350         Likewise.
29351         * modules/unictype/property-paired-punctuation (Depends-on,
29352         configure.ac): Likewise.
29353         * modules/unictype/property-paragraph-separator (Depends-on,
29354         configure.ac): Likewise.
29355         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29356         Likewise.
29357         * modules/unictype/property-pattern-white-space (Depends-on,
29358         configure.ac): Likewise.
29359         * modules/unictype/property-private-use (Depends-on, configure.ac):
29360         Likewise.
29361         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29362         Likewise.
29363         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29364         Likewise.
29365         * modules/unictype/property-radical (Depends-on, configure.ac):
29366         Likewise.
29367         * modules/unictype/property-sentence-terminal (Depends-on,
29368         configure.ac): Likewise.
29369         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29370         Likewise.
29371         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29372         * modules/unictype/property-terminal-punctuation (Depends-on,
29373         configure.ac): Likewise.
29374         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29375         Likewise.
29376         * modules/unictype/property-unassigned-code-value (Depends-on,
29377         configure.ac): Likewise.
29378         * modules/unictype/property-unified-ideograph (Depends-on,
29379         configure.ac): Likewise.
29380         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29381         Likewise.
29382         * modules/unictype/property-variation-selector (Depends-on,
29383         configure.ac): Likewise.
29384         * modules/unictype/property-white-space (Depends-on, configure.ac):
29385         Likewise.
29386         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29387         Likewise.
29388         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29389         Likewise.
29390         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29391         Likewise.
29392         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29393         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29394         Likewise.
29395
29396 2009-12-31  Bruno Haible  <bruno@clisp.org>
29397
29398         Remove unnecessary AC_C_INLINE invocation.
29399         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29400         since 2009-08-21.
29401
29402 2009-12-31  Jim Meyering  <meyering@redhat.com>
29403
29404         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29405         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29406         With this change, we can all remove the gpg_key_ID = ... definition
29407         from our respective cfg.mk files.
29408
29409         maint.mk: create announcement template in ~/, not in /tmp
29410         * top/maint.mk (emit_upload_commands): Adjust.
29411         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29412         Remove temporary file, .ci-msg.
29413
29414 2009-12-31  Eric Blake  <ebb9@byu.net>
29415
29416         link-warning: always build headers with link warnings
29417         * modules/arpa_inet (Makefile.am): Always build replacement
29418         header.
29419         * modules/ctype (Makefile.am): Likewise.
29420         * modules/dirent (Makefile.am): Likewise.
29421         * modules/inttypes (Makefile.am): Likewise.
29422         * modules/langinfo (Makefile.am): Likewise.
29423         * modules/locale (Makefile.am): Likewise.
29424         * modules/spawn (Makefile.am): Likewise.
29425         * modules/sys_file (Makefile.am): Likewise.
29426         * modules/sys_ioctl (Makefile.am): Likewise.
29427         * modules/sys_select (Makefile.am): Likewise.
29428         * modules/sys_socket (Makefile.am): Likewise.
29429         * modules/sys_times (Makefile.am): Likewise.
29430         * modules/sys_utsname (Makefile.am): Likewise.
29431         * modules/sys_wait (Makefile.am): Likewise.
29432         * modules/wchar (Makefile.am): Likewise.
29433         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29434         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29435         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29436         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29437         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29438         Likewise.
29439         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29440         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29441         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29442         Likewise.
29443         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29444         Likewise.
29445         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29446         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29447         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29448         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29449         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29450         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29451         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29452         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29453         (gl_WCHAR_H_DEFAULTS): Likewise.
29454
29455 2009-12-31  Eric Blake  <ebb9@byu.net>
29456
29457         signal, spawn: use link warnings
29458         * lib/signal.in.h (sigset_t): Make unconditional.
29459         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29460         (sigpending, sigprocmask, sigaction): Add link warnings.
29461         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29462         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29463         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29464         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29465         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29466         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29467         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29468         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29469         (posix_spawn_file_actions_destroy)
29470         (posix_spawn_file_actions_addopen)
29471         (posix_spawn_file_actions_addclose)
29472         (posix_spawn_file_actions_adddup2): Likewise.
29473         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29474         * tests/test-signal.c (main): Enhance test.
29475
29476         spawn: improve wrapper support
29477         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29478         (gl_SPAWN_H_DEFAULTS): New defaults.
29479         * modules/spawn (Makefile.am): Substitute them.
29480         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29481         Only declare if missing or broken.
29482
29483         sys_times, sys_utsname: use include_next
29484         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29485         header.
29486         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29487         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29488         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29489         * modules/sys_times (Depends-on): Add include_next.
29490         (Makefile.am): Substitute additional values.
29491         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29492         * lib/sys_times.in.h (includes): Include native header, if
29493         available.
29494         * lib/sys_utsname.in.h (includes): Likewise.
29495         * tests/test-sys_times.c (main): Enhance test.
29496
29497         fdutimensat: revert prior patch
29498         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29499         utimens.h.
29500         Reported by Bruno Haible.
29501
29502 2009-12-30  Eric Blake  <ebb9@byu.net>
29503
29504         sys_wait: drop link-warning dependency
29505         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29506         link-warning efforts.
29507         * lib/sys_wait.in.h: Likewise.
29508
29509         fdutimensat: remove bogus dependency
29510         * modules/fdutimensat (Depends-on): Drop inline.
29511
29512         unistd: fix typo
29513         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29514
29515 2009-12-30  Bruno Haible  <bruno@clisp.org>
29516
29517         Fix compilation error with Solaris cc.
29518         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29519         * lib/unicase/u16-is-invariant.c: Likewise.
29520         * lib/unicase/u32-is-invariant.c: Likewise.
29521         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29522
29523 2009-12-30  Bruno Haible  <bruno@clisp.org>
29524
29525         Fix test crash.
29526         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29527         locales.
29528         Reported by Simon Josefsson <simon@josefsson.org>.
29529
29530 2009-12-30  Bruno Haible  <bruno@clisp.org>
29531
29532         Fix compilation error on most platforms.
29533         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29534         Reported by Simon Josefsson <simon@josefsson.org>
29535         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29536
29537 2009-12-30  Eric Blake  <ebb9@byu.net>
29538
29539         futimens, utimensat: work around ntfs-3g bug
29540         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29541         a ctime bug is present, and expand workaround to cover ntfs-3g.
29542         * lib/utimens.c (fdutimens, lutimens): Likewise.
29543         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29544         (validate_timespec): Adjust return value.
29545         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29546         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29547         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29548
29549 2009-12-29  Eric Blake  <ebb9@byu.net>
29550
29551         link-warning: make usage consistent
29552         * modules/ctype (Depends-on): Add link-warning.
29553         (Makefile.am): Update rules accordingly.
29554         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29555         * modules/locale (Depends-on, Makefile.am): Likewise.
29556         * modules/sys_file (Makefile.am): Likewise.
29557         * modules/getopt-posix (Makefile.am): Delete unused link warning
29558         efforts.
29559         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29560         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29561         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29562         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29563
29564         stdio: remove unused variables
29565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29566         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29567         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29568
29569         tests: test more substitute headers
29570         * modules/ctype-tests: New file.
29571         * modules/dirent-tests: Likewise.
29572         * modules/spawn-tests: Likewise.
29573         * modules/sys_file-tests: Likewise.
29574         * modules/sys_ioctl-tests: Likewise.
29575         * modules/sys_wait-tests: Likewise.
29576         * tests/test-ctype.c: Likewise.
29577         * tests/test-dirent.c: Likewise.
29578         * tests/test-spawn.c: Likewise.
29579         * tests/test-sys_file.c: Likewise.
29580         * tests/test-sys_ioctl.c: Likewise.
29581         * tests/test-sys_wait.c: Likewise.
29582         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29583         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29584         whether or not flock is in use.
29585
29586         tests: remove License section from module
29587         * modules/arpa_inet-tests: Remove unneeded section.
29588         * modules/byteswap-tests: Likewise.
29589         * modules/ceilf-tests: Likewise.
29590         * modules/ceill-tests: Likewise.
29591         * modules/crypto/des-tests: Likewise.
29592         * modules/crypto/gc-arcfour-tests: Likewise.
29593         * modules/crypto/gc-arctwo-tests: Likewise.
29594         * modules/crypto/gc-des-tests: Likewise.
29595         * modules/crypto/gc-hmac-md5-tests: Likewise.
29596         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29597         * modules/crypto/gc-md2-tests: Likewise.
29598         * modules/crypto/gc-md4-tests: Likewise.
29599         * modules/crypto/gc-md5-tests: Likewise.
29600         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29601         * modules/crypto/gc-rijndael-tests: Likewise.
29602         * modules/crypto/gc-sha1-tests: Likewise.
29603         * modules/crypto/gc-tests: Likewise.
29604         * modules/crypto/md2-tests: Likewise.
29605         * modules/crypto/md4-tests: Likewise.
29606         * modules/fcntl-h-tests: Likewise.
29607         * modules/floorf-tests: Likewise.
29608         * modules/floorl-tests: Likewise.
29609         * modules/frexp-nolibm-tests: Likewise.
29610         * modules/frexp-tests: Likewise.
29611         * modules/frexpl-nolibm-tests: Likewise.
29612         * modules/frexpl-tests: Likewise.
29613         * modules/getaddrinfo-tests: Likewise.
29614         * modules/inttypes-tests: Likewise.
29615         * modules/isfinite-tests: Likewise.
29616         * modules/isinf-tests: Likewise.
29617         * modules/ldexpl-tests: Likewise.
29618         * modules/locale-tests: Likewise.
29619         * modules/math-tests: Likewise.
29620         * modules/netdb-tests: Likewise.
29621         * modules/netinet_in-tests: Likewise.
29622         * modules/printf-frexp-tests: Likewise.
29623         * modules/printf-frexpl-tests: Likewise.
29624         * modules/priv-set-tests: Likewise.
29625         * modules/random_r-tests: Likewise.
29626         * modules/round-tests: Likewise.
29627         * modules/roundf-tests: Likewise.
29628         * modules/roundl-tests: Likewise.
29629         * modules/search-tests: Likewise.
29630         * modules/select-tests: Likewise.
29631         * modules/signal-tests: Likewise.
29632         * modules/stdbool-tests: Likewise.
29633         * modules/stddef-tests: Likewise.
29634         * modules/stdint-tests: Likewise.
29635         * modules/stdio-tests: Likewise.
29636         * modules/stdlib-tests: Likewise.
29637         * modules/string-tests: Likewise.
29638         * modules/strings-tests: Likewise.
29639         * modules/sys_select-tests: Likewise.
29640         * modules/sys_socket-tests: Likewise.
29641         * modules/sys_stat-tests: Likewise.
29642         * modules/sys_time-tests: Likewise.
29643         * modules/sys_utsname-tests: Likewise.
29644         * modules/sysexits-tests: Likewise.
29645         * modules/time-tests: Likewise.
29646         * modules/trunc-tests: Likewise.
29647         * modules/truncf-tests: Likewise.
29648         * modules/truncl-tests: Likewise.
29649         * modules/tsearch-tests: Likewise.
29650         * modules/unistd-tests: Likewise.
29651         * modules/wchar-tests: Likewise.
29652         * modules/wctype-tests: Likewise.
29653
29654         tests: fix license on several tests
29655         * tests/test-des.c: Update to GPLv3+.
29656         * tests/test-flock.c: Likewise.
29657         * tests/test-fsync.c: Likewise.
29658         * tests/test-futimens.h: Likewise.
29659         * tests/test-gc-arcfour.c: Likewise.
29660         * tests/test-gc-arctwo.c: Likewise.
29661         * tests/test-gc-des.c: Likewise.
29662         * tests/test-gc-hmac-md5.c: Likewise.
29663         * tests/test-gc-hmac-sha1.c: Likewise.
29664         * tests/test-gc-md2.c: Likewise.
29665         * tests/test-gc-md4.c: Likewise.
29666         * tests/test-gc-md5.c: Likewise.
29667         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29668         * tests/test-gc-rijndael.c: Likewise.
29669         * tests/test-gc-sha1.c: Likewise.
29670         * tests/test-gc.c: Likewise.
29671         * tests/test-getcwd.c: Likewise.
29672         * tests/test-link.c: Likewise.
29673         * tests/test-link.h: Likewise.
29674         * tests/test-lutimens.h: Likewise.
29675         * tests/test-md2.c: Likewise.
29676         * tests/test-md4.c: Likewise.
29677         * tests/test-mkdir.h: Likewise.
29678         * tests/test-rename.c: Likewise.
29679         * tests/test-rename.h: Likewise.
29680         * tests/test-safe-alloc.c: Likewise.
29681         * tests/test-utimens-common.h: Likewise.
29682         * tests/test-utimens.h: Likewise.
29683
29684         maint: sync license texts
29685         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29686         * doc/gpl-3.0.texi: Revert copyright year update.
29687         * doc/lgpl-3.0.texi: Likewise.
29688
29689 2009-12-29  Jim Meyering  <meyering@redhat.com>
29690
29691         update nearly all FSF copyright year lists to include 2009
29692         The files named by the following are exempted:
29693             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29694               test -f "$dst" && { echo "$dst"; continue; }
29695               test -d "$dst" || continue
29696               echo "$dst"/$(basename "$src")
29697             done > exempt
29698             git ls-files tests/unictype >> exempt
29699         In the remaining files, convert to all-interval notation if
29700         - there is already at least one year interval like 2000-2003
29701         - the file is maintained by me
29702         - the file is in lib/uni*/, where that style already prevails
29703         Otherwise, use update-copyright's default.
29704
29705 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29706         and Eric Blake  <ebb9@byu.net>
29707
29708         tests: don't require debug system() to pass
29709         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29710         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29711         * tests/test-unlink.h (test_unlink_func): Likewise.
29712         * tests/test-fstatat.c (main): ...into callers.
29713         * tests/test-lstat.c (main): Likewise.
29714         * tests/test-rmdir.c (main): Likewise.
29715         * tests/test-unlink.c (main): Likewise.
29716         * tests/test-unlinkat.c (main): Likewise.
29717         * tests/test-areadlink-with-size.c (main): Don't require a
29718         debug-only system call to pass, aiding cross-testing to mingw.
29719         * tests/test-areadlink.c (main): Likewise.
29720         * tests/test-areadlinkat-with-size.c (main): Likewise.
29721         * tests/test-areadlinkat.c (main): Likewise.
29722         * tests/test-canonicalize-lgpl.c (main): Likewise.
29723         * tests/test-canonicalize.c (main): Likewise.
29724         * tests/test-chown.c (main): Likewise.
29725         * tests/test-fchownat.c (main): Likewise.
29726         * tests/test-lchown.c (main): Likewise.
29727         * tests/test-fdutimensat.c (main): Likewise.
29728         * tests/test-futimens.c (main): Likewise.
29729         * tests/test-link.c (main): Likewise.
29730         * tests/test-linkat.c (main): Likewise.
29731         * tests/test-mkdir.c (main): Likewise.
29732         * tests/test-mkdirat.c (main): Likewise.
29733         * tests/test-mkfifo.c (main): Likewise.
29734         * tests/test-mkfifoat.c (main): Likewise.
29735         * tests/test-mknod.c (main): Likewise.
29736         * tests/test-readlink.c (main): Likewise.
29737         * tests/test-remove.c (main): Likewise.
29738         * tests/test-rename.c (main): Likewise.
29739         * tests/test-renameat.c (main): Likewise.
29740         * tests/test-symlink.c (main): Likewise.
29741         * tests/test-symlinkat.c (main): Likewise.
29742         * tests/test-utimens.c (main): Likewise.
29743         * tests/test-utimensat.c (main): Likewise.
29744
29745 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29746
29747         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29748         on $(UNUSED_PARAMETER_H) to avoid build failure.
29749
29750 2009-12-28  Jim Meyering  <meyering@redhat.com>
29751
29752         update-copyright: you may specify a max. line length other than 72
29753         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29754
29755         maint: use consistent FSF copyright line syntax
29756         * lib/posixtm.c: Add missing comma in FSF copyright line.
29757         * lib/posixtm.h: Likewise.
29758         * lib/getugroups.c: Add missing ", Inc.".
29759
29760         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29761         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29762         FSF copyright line.  Remove trailing blanks.
29763
29764 2009-12-28  Eric Blake  <ebb9@byu.net>
29765
29766         test-dup2: reduce dependencies
29767         * modules/cloexec (Configure.ac): Set witness.
29768         * modules/dup2-tests (Depends-on): Drop cloexec.
29769         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29770         not present.
29771         Suggested by Bruno Haible.
29772
29773 2009-12-26  Bruno Haible  <bruno@clisp.org>
29774
29775         Remove an unneeded dependency.
29776         * modules/fseterr (Depends-on): Remove dup2.
29777
29778 2009-12-26  Eric Blake  <ebb9@byu.net>
29779
29780         tests: use macros.h in more places
29781         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29782         (ASSERT_STREAM): Provide default of stderr.
29783         * tests/test-dirent-safer.c: Include macros.h, using alternate
29784         stream for assertions.
29785         * tests/test-dup-safer.c: Likewise.
29786         * tests/test-freopen-safer.c: Likewise.
29787         * tests/test-getopt.c: Likewise.
29788         * tests/test-openat-safer.c: Likewise.
29789         * tests/test-pipe.c: Likewise.
29790         * tests/test-popen-safer.c: Likewise.
29791         * modules/dirent-safer-tests (Files): Include macros.h.
29792         * modules/unistd-safer-tests (Files): Likewise.
29793         * modules/freopen-safer-tests (Files): Likewise.
29794         * modules/getopt-posix-tests (Files): Likewise.
29795         * modules/openat-safer-tests (Files): Likewise.
29796         * modules/pipe-tests (Files): Likewise.
29797
29798 2009-12-26  Bruno Haible  <bruno@clisp.org>
29799
29800         javacomp: Portability fix.
29801         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29802         that it also works on Solaris.
29803
29804 2009-12-26  Bruno Haible  <bruno@clisp.org>
29805
29806         localename: Fix storage allocation of gl_locale_name_thread's result.
29807         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29808         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29809         all platforms that have 'uselocale'.
29810         (gl_locale_name_thread_unsafe): New function, extracted from
29811         gl_locale_name_thread.
29812         (gl_locale_name_thread): Call struniq on all platforms that have
29813         'uselocale'.
29814         * tests/test-localename.c (test_locale_name_thread): Check that the
29815         resulting strings are permanently allocated.
29816         * modules/localename-tests (Depends-on): Add strdup.
29817
29818 2009-12-26  Bruno Haible  <bruno@clisp.org>
29819
29820         * tests/test-localename.c (categories): Fill in the strings.
29821
29822 2009-12-26  Jim Meyering  <meyering@redhat.com>
29823
29824         isdir: complete the removal of m4/isdir.m4
29825         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29826
29827         isdir: clean up, since at least grep still uses it
29828         * lib/isdir.c: Include "isdir.h".
29829         (S_ISDIR): Remove now-unneeded definition.
29830         * modules/isdir (Files): Add lib/isdir.h.
29831         * lib/isdir.h: New file, with declaration.
29832         * m4/isdir.m4: Remove file -- unneeded.
29833
29834 2009-12-25  Bruno Haible  <bruno@clisp.org>
29835
29836         selinux-h: Make generated .h files standalone.
29837         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29838         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29839         * lib/se-selinux.in.h: Likewise.
29840         * modules/selinux-h (Depends-on): Add unused-parameter.
29841         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29842         selinux/selinux.h and selinux/context.h.
29843         Suggested by Eric Blake.
29844
29845 2009-12-25  Bruno Haible  <bruno@clisp.org>
29846
29847         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29848         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29849         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29850         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29851         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29852
29853 2009-12-24  Bruno Haible  <bruno@clisp.org>
29854
29855         openat: Fix warning.
29856         * lib/openat-proc.c: Include <unistd.h>.
29857
29858 2009-12-24  Bruno Haible  <bruno@clisp.org>
29859
29860         New module 'unused-parameter'.
29861         * build-aux/unused-parameter.h: New file, extracted from earlier
29862         gnulib-common.m4.
29863         * modules/unused-parameter: New file.
29864         * lib/unistr.h: Include unused-parameter.h.
29865         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29866         _GL_UNUSED.
29867         * modules/unistr/base (Depends-on): Add unused-parameter.
29868
29869 2009-12-24  Bruno Haible  <bruno@clisp.org>
29870
29871         Add missing dependencies to 'extensions' module.
29872         * m4/extensions.m4: Add comment.
29873         * modules/accept4 (Depends-on): Add extensions.
29874         * modules/dup3 (Depends-on): Likewise.
29875         * modules/fcntl (Depends-on): Likewise.
29876         * modules/futimens (Depends-on): Likewise.
29877         * modules/mknod (Depends-on): Likewise.
29878         * modules/pipe2 (Depends-on): Likewise.
29879         * modules/stat-time (Depends-on): Likewise.
29880         * modules/strcasestr-simple (Depends-on): Likewise.
29881         * modules/strsignal (Depends-on): Likewise.
29882         * modules/utimensat (Depends-on): Likewise.
29883         * modules/localcharset (Depends-on): Likewise. Needed because of
29884         gl_FCNTL_O_FLAGS.
29885         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29886         AC_TYPE_MBSTATE_T.
29887         * modules/wcsnrtombs (Depends-on): Likewise.
29888         * modules/wcsrtombs (Depends-on): Likewise.
29889
29890 2009-12-24  Bruno Haible  <bruno@clisp.org>
29891
29892         binary-io: Avoid gcc warning due to SET_BINARY.
29893         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29894         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29895
29896 2009-12-24  Bruno Haible  <bruno@clisp.org>
29897
29898         Avoid future namespace pollution on glibc systems.
29899         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29900         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29901         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29902         glibc systems.
29903
29904 2009-12-24  Bruno Haible  <bruno@clisp.org>
29905
29906         Refactor common macros used in tests.
29907         * tests/macros.h: New file.
29908         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29909         and/or <stdlib.h>, if appropriate.
29910         (ASSERT, SIZEOF): Remove macros.
29911         * tests/test-areadlink-with-size.c: Likewise.
29912         * tests/test-areadlinkat.c: Likewise.
29913         * tests/test-areadlinkat-with-size.c: Likewise.
29914         * tests/test-argmatch.c: Likewise.
29915         * tests/test-argv-iter.c: Likewise.
29916         * tests/test-array-mergesort.c: Likewise.
29917         * tests/test-array_list.c: Likewise.
29918         * tests/test-array_oset.c: Likewise.
29919         * tests/test-avltree_list.c: Likewise.
29920         * tests/test-avltree_oset.c: Likewise.
29921         * tests/test-avltreehash_list.c: Likewise.
29922         * tests/test-base64.c: Likewise.
29923         * tests/test-binary-io.c: Likewise.
29924         * tests/test-bitrotate.c: Likewise.
29925         * tests/test-btowc.c: Likewise.
29926         * tests/test-byteswap.c: Likewise.
29927         * tests/test-c-ctype.c: Likewise.
29928         * tests/test-c-stack.c: Likewise.
29929         * tests/test-c-strcasecmp.c: Likewise.
29930         * tests/test-c-strcasestr.c: Likewise.
29931         * tests/test-c-strncasecmp.c: Likewise.
29932         * tests/test-c-strstr.c: Likewise.
29933         * tests/test-canonicalize-lgpl.c: Likewise.
29934         * tests/test-canonicalize.c: Likewise.
29935         * tests/test-carray_list.c: Likewise.
29936         * tests/test-ceilf1.c: Likewise.
29937         * tests/test-ceilf2.c: Likewise.
29938         * tests/test-ceill.c: Likewise.
29939         * tests/test-chown.c: Likewise.
29940         * tests/test-cloexec.c: Likewise.
29941         * tests/test-copy-acl.c: Likewise.
29942         * tests/test-copy-file.c: Likewise.
29943         * tests/test-count-one-bits.c: Likewise.
29944         * tests/test-dprintf-posix.c: Likewise.
29945         * tests/test-dup2.c: Likewise.
29946         * tests/test-dup3.c: Likewise.
29947         * tests/test-duplocale.c: Likewise.
29948         * tests/test-fbufmode.c: Likewise.
29949         * tests/test-fchdir.c: Likewise.
29950         * tests/test-fchownat.c: Likewise.
29951         * tests/test-fcntl-safer.c: Likewise.
29952         * tests/test-fcntl.c: Likewise.
29953         * tests/test-fdopendir.c: Likewise.
29954         * tests/test-fdutimensat.c: Likewise.
29955         * tests/test-fflush2.c: Likewise.
29956         * tests/test-file-has-acl.c: Likewise.
29957         * tests/test-filevercmp.c: Likewise.
29958         * tests/test-flock.c: Likewise.
29959         * tests/test-floorf1.c: Likewise.
29960         * tests/test-floorf2.c: Likewise.
29961         * tests/test-floorl.c: Likewise.
29962         * tests/test-fnmatch.c: Likewise.
29963         * tests/test-fopen.h: Likewise.
29964         * tests/test-fpending.c: Likewise.
29965         * tests/test-fprintf-posix.c: Likewise.
29966         * tests/test-fpurge.c: Likewise.
29967         * tests/test-freadable.c: Likewise.
29968         * tests/test-freadahead.c: Likewise.
29969         * tests/test-freading.c: Likewise.
29970         * tests/test-freadptr.c: Likewise.
29971         * tests/test-freadptr2.c: Likewise.
29972         * tests/test-freadseek.c: Likewise.
29973         * tests/test-freopen.c: Likewise.
29974         * tests/test-frexp.c: Likewise.
29975         * tests/test-frexpl.c: Likewise.
29976         * tests/test-fseek.c: Likewise.
29977         * tests/test-fseeko.c: Likewise.
29978         * tests/test-fstatat.c: Likewise.
29979         * tests/test-fstrcmp.c: Likewise.
29980         * tests/test-fsync.c: Likewise.
29981         * tests/test-ftell.c: Likewise.
29982         * tests/test-ftello.c: Likewise.
29983         * tests/test-func.c: Likewise.
29984         * tests/test-futimens.c: Likewise.
29985         * tests/test-fwritable.c: Likewise.
29986         * tests/test-fwriting.c: Likewise.
29987         * tests/test-getcwd.c: Likewise.
29988         * tests/test-getdate.c: Likewise.
29989         * tests/test-getdelim.c: Likewise.
29990         * tests/test-getdtablesize.c: Likewise.
29991         * tests/test-getgroups.c: Likewise.
29992         * tests/test-getline.c: Likewise.
29993         * tests/test-getndelim2.c: Likewise.
29994         * tests/test-glob.c: Likewise.
29995         * tests/test-hash.c: Likewise.
29996         * tests/test-i-ring.c: Likewise.
29997         * tests/test-iconv-utf.c: Likewise.
29998         * tests/test-iconv.c: Likewise.
29999         * tests/test-idpriv-drop.c: Likewise.
30000         * tests/test-idpriv-droptemp.c: Likewise.
30001         * tests/test-inet_ntop.c: Likewise.
30002         * tests/test-inet_pton.c: Likewise.
30003         * tests/test-isblank.c: Likewise.
30004         * tests/test-isfinite.c: Likewise.
30005         * tests/test-isinf.c: Likewise.
30006         * tests/test-isnan.c: Likewise.
30007         * tests/test-isnand.h: Likewise.
30008         * tests/test-isnanf.h: Likewise.
30009         * tests/test-isnanl.h: Likewise.
30010         * tests/test-lchown.c: Likewise.
30011         * tests/test-ldexpl.c: Likewise.
30012         * tests/test-link.c: Likewise.
30013         * tests/test-linkat.c: Likewise.
30014         * tests/test-linked_list.c: Likewise.
30015         * tests/test-linkedhash_list.c: Likewise.
30016         * tests/test-localename.c: Likewise.
30017         * tests/test-lseek.c: Likewise.
30018         * tests/test-lstat.c: Likewise.
30019         * tests/test-mbmemcasecmp.c: Likewise.
30020         * tests/test-mbmemcasecoll.c: Likewise.
30021         * tests/test-mbrtowc.c: Likewise.
30022         * tests/test-mbscasecmp.c: Likewise.
30023         * tests/test-mbscasestr1.c: Likewise.
30024         * tests/test-mbscasestr2.c: Likewise.
30025         * tests/test-mbscasestr3.c: Likewise.
30026         * tests/test-mbscasestr4.c: Likewise.
30027         * tests/test-mbschr.c: Likewise.
30028         * tests/test-mbscspn.c: Likewise.
30029         * tests/test-mbsinit.c: Likewise.
30030         * tests/test-mbsncasecmp.c: Likewise.
30031         * tests/test-mbsnrtowcs.c: Likewise.
30032         * tests/test-mbspbrk.c: Likewise.
30033         * tests/test-mbspcasecmp.c: Likewise.
30034         * tests/test-mbsrchr.c: Likewise.
30035         * tests/test-mbsrtowcs.c: Likewise.
30036         * tests/test-mbsspn.c: Likewise.
30037         * tests/test-mbsstr1.c: Likewise.
30038         * tests/test-mbsstr2.c: Likewise.
30039         * tests/test-mbsstr3.c: Likewise.
30040         * tests/test-memchr.c: Likewise.
30041         * tests/test-memchr2.c: Likewise.
30042         * tests/test-memcmp.c: Likewise.
30043         * tests/test-memmem.c: Likewise.
30044         * tests/test-memrchr.c: Likewise.
30045         * tests/test-mkdir.c: Likewise.
30046         * tests/test-mkdirat.c: Likewise.
30047         * tests/test-mkfifo.c: Likewise.
30048         * tests/test-mkfifoat.c: Likewise.
30049         * tests/test-mknod.c: Likewise.
30050         * tests/test-nanosleep.c: Likewise.
30051         * tests/test-nl_langinfo.c: Likewise.
30052         * tests/test-obstack-printf.c: Likewise.
30053         * tests/test-open.c: Likewise.
30054         * tests/test-openat.c: Likewise.
30055         * tests/test-pipe-filter-gi1.c: Likewise.
30056         * tests/test-pipe-filter-gi2-main.c: Likewise.
30057         * tests/test-pipe-filter-ii1.c: Likewise.
30058         * tests/test-pipe-filter-ii2-main.c: Likewise.
30059         * tests/test-pipe2.c: Likewise.
30060         * tests/test-popen.h: Likewise.
30061         * tests/test-posixtm.c: Likewise.
30062         * tests/test-pread.c: Likewise.
30063         * tests/test-printf-frexp.c: Likewise.
30064         * tests/test-printf-frexpl.c: Likewise.
30065         * tests/test-printf-posix.c: Likewise.
30066         * tests/test-priv-set.c: Likewise.
30067         * tests/test-quotearg.c: Likewise.
30068         * tests/test-random_r.c: Likewise.
30069         * tests/test-rawmemchr.c: Likewise.
30070         * tests/test-rbtree_list.c: Likewise.
30071         * tests/test-rbtree_oset.c: Likewise.
30072         * tests/test-rbtreehash_list.c: Likewise.
30073         * tests/test-readlink.c: Likewise.
30074         * tests/test-remove.c: Likewise.
30075         * tests/test-rename.c: Likewise.
30076         * tests/test-renameat.c: Likewise.
30077         * tests/test-rmdir.c: Likewise.
30078         * tests/test-round1.c: Likewise.
30079         * tests/test-roundf1.c: Likewise.
30080         * tests/test-roundl.c: Likewise.
30081         * tests/test-safe-alloc.c: Likewise.
30082         * tests/test-sameacls.c: Likewise.
30083         * tests/test-set-mode-acl.c: Likewise.
30084         * tests/test-setenv.c: Likewise.
30085         * tests/test-sigaction.c: Likewise.
30086         * tests/test-signbit.c: Likewise.
30087         * tests/test-sleep.c: Likewise.
30088         * tests/test-snprintf-posix.c: Likewise.
30089         * tests/test-snprintf.c: Likewise.
30090         * tests/test-sprintf-posix.c: Likewise.
30091         * tests/test-stat-time.c: Likewise.
30092         * tests/test-stat.c: Likewise.
30093         * tests/test-strcasestr.c: Likewise.
30094         * tests/test-strchrnul.c: Likewise.
30095         * tests/test-strerror.c: Likewise.
30096         * tests/test-striconv.c: Likewise.
30097         * tests/test-striconveh.c: Likewise.
30098         * tests/test-striconveha.c: Likewise.
30099         * tests/test-strsignal.c: Likewise.
30100         * tests/test-strstr.c: Likewise.
30101         * tests/test-strtod.c: Likewise.
30102         * tests/test-strverscmp.c: Likewise.
30103         * tests/test-symlink.c: Likewise.
30104         * tests/test-symlinkat.c: Likewise.
30105         * tests/test-trunc1.c: Likewise.
30106         * tests/test-trunc2.c: Likewise.
30107         * tests/test-truncf1.c: Likewise.
30108         * tests/test-truncf2.c: Likewise.
30109         * tests/test-truncl.c: Likewise.
30110         * tests/test-uname.c: Likewise.
30111         * tests/test-unlink.c: Likewise.
30112         * tests/test-unlinkat.c: Likewise.
30113         * tests/test-unsetenv.c: Likewise.
30114         * tests/test-usleep.c: Likewise.
30115         * tests/test-utimens.c: Likewise.
30116         * tests/test-utimensat.c: Likewise.
30117         * tests/test-vasnprintf-posix.c: Likewise.
30118         * tests/test-vasnprintf-posix2.c: Likewise.
30119         * tests/test-vasnprintf.c: Likewise.
30120         * tests/test-vasprintf-posix.c: Likewise.
30121         * tests/test-vasprintf.c: Likewise.
30122         * tests/test-vdprintf-posix.c: Likewise.
30123         * tests/test-vfprintf-posix.c: Likewise.
30124         * tests/test-vprintf-posix.c: Likewise.
30125         * tests/test-vsnprintf-posix.c: Likewise.
30126         * tests/test-vsnprintf.c: Likewise.
30127         * tests/test-vsprintf-posix.c: Likewise.
30128         * tests/test-wcrtomb.c: Likewise.
30129         * tests/test-wcsnrtombs.c: Likewise.
30130         * tests/test-wcsrtombs.c: Likewise.
30131         * tests/test-wctype.c: Likewise.
30132         * tests/test-wcwidth.c: Likewise.
30133         * tests/test-xfprintf-posix.c: Likewise.
30134         * tests/test-xmemdup0.c: Likewise.
30135         * tests/test-xprintf-posix.c: Likewise.
30136         * tests/test-xvasprintf.c: Likewise.
30137         * tests/unicase/test-locale-language.c: Likewise.
30138         * tests/unicase/test-mapping-part1.h: Likewise.
30139         * tests/unicase/test-predicate-part1.h: Likewise.
30140         * tests/unicase/test-u8-casecmp.c: Likewise.
30141         * tests/unicase/test-u8-casecoll.c: Likewise.
30142         * tests/unicase/test-u8-casefold.c: Likewise.
30143         * tests/unicase/test-u8-is-cased.c: Likewise.
30144         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30145         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30146         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30147         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30148         * tests/unicase/test-u8-tolower.c: Likewise.
30149         * tests/unicase/test-u8-totitle.c: Likewise.
30150         * tests/unicase/test-u8-toupper.c: Likewise.
30151         * tests/unicase/test-u16-casecmp.c: Likewise.
30152         * tests/unicase/test-u16-casecoll.c: Likewise.
30153         * tests/unicase/test-u16-casefold.c: Likewise.
30154         * tests/unicase/test-u16-is-cased.c: Likewise.
30155         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30156         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30157         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30158         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30159         * tests/unicase/test-u16-tolower.c: Likewise.
30160         * tests/unicase/test-u16-totitle.c: Likewise.
30161         * tests/unicase/test-u16-toupper.c: Likewise.
30162         * tests/unicase/test-u32-casecmp.c: Likewise.
30163         * tests/unicase/test-u32-casecoll.c: Likewise.
30164         * tests/unicase/test-u32-casefold.c: Likewise.
30165         * tests/unicase/test-u32-is-cased.c: Likewise.
30166         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30167         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30168         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30169         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30170         * tests/unicase/test-u32-tolower.c: Likewise.
30171         * tests/unicase/test-u32-totitle.c: Likewise.
30172         * tests/unicase/test-u32-toupper.c: Likewise.
30173         * tests/unicase/test-ulc-casecmp.c: Likewise.
30174         * tests/unicase/test-ulc-casecoll.c: Likewise.
30175         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30176         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30177         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30178         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30179         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30180         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30181         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30182         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30183         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30184         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30185         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30186         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30187         * tests/unictype/test-bidi_byname.c: Likewise.
30188         * tests/unictype/test-bidi_name.c: Likewise.
30189         * tests/unictype/test-bidi_of.c: Likewise.
30190         * tests/unictype/test-bidi_test.c: Likewise.
30191         * tests/unictype/test-block_list.c: Likewise.
30192         * tests/unictype/test-block_of.c: Likewise.
30193         * tests/unictype/test-block_test.c: Likewise.
30194         * tests/unictype/test-categ_and.c: Likewise.
30195         * tests/unictype/test-categ_and_not.c: Likewise.
30196         * tests/unictype/test-categ_byname.c: Likewise.
30197         * tests/unictype/test-categ_name.c: Likewise.
30198         * tests/unictype/test-categ_none.c: Likewise.
30199         * tests/unictype/test-categ_of.c: Likewise.
30200         * tests/unictype/test-categ_or.c: Likewise.
30201         * tests/unictype/test-categ_test_withtable.c: Likewise.
30202         * tests/unictype/test-combining.c: Likewise.
30203         * tests/unictype/test-decdigit.c: Likewise.
30204         * tests/unictype/test-digit.c: Likewise.
30205         * tests/unictype/test-mirror.c: Likewise.
30206         * tests/unictype/test-numeric.c: Likewise.
30207         * tests/unictype/test-pr_byname.c: Likewise.
30208         * tests/unictype/test-pr_test.c: Likewise.
30209         * tests/unictype/test-predicate-part1.h: Likewise.
30210         * tests/unictype/test-scripts.c: Likewise.
30211         * tests/unictype/test-sy_c_ident.c: Likewise.
30212         * tests/unictype/test-sy_java_ident.c: Likewise.
30213         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30214         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30215         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30216         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30217         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30218         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30219         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30220         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30221         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30222         * tests/uninorm/test-compat-decomposition.c: Likewise.
30223         * tests/uninorm/test-composition.c: Likewise.
30224         * tests/uninorm/test-decomposing-form.c: Likewise.
30225         * tests/uninorm/test-decomposition.c: Likewise.
30226         * tests/uninorm/test-u8-nfc.c: Likewise.
30227         * tests/uninorm/test-u8-nfd.c: Likewise.
30228         * tests/uninorm/test-u8-nfkc.c: Likewise.
30229         * tests/uninorm/test-u8-nfkd.c: Likewise.
30230         * tests/uninorm/test-u8-normcmp.c: Likewise.
30231         * tests/uninorm/test-u8-normcoll.c: Likewise.
30232         * tests/uninorm/test-u16-nfc.c: Likewise.
30233         * tests/uninorm/test-u16-nfd.c: Likewise.
30234         * tests/uninorm/test-u16-nfkc.c: Likewise.
30235         * tests/uninorm/test-u16-nfkd.c: Likewise.
30236         * tests/uninorm/test-u16-normcmp.c: Likewise.
30237         * tests/uninorm/test-u16-normcoll.c: Likewise.
30238         * tests/uninorm/test-u32-nfc.c: Likewise.
30239         * tests/uninorm/test-u32-nfd.c: Likewise.
30240         * tests/uninorm/test-u32-nfkc.c: Likewise.
30241         * tests/uninorm/test-u32-nfkd.c: Likewise.
30242         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30243         * tests/uninorm/test-u32-normcmp.c: Likewise.
30244         * tests/uninorm/test-u32-normcoll.c: Likewise.
30245         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30246         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30247         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30248         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30249         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30250         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30251         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30252         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30253         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30254         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30255         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30256         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30257         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30258         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30259         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30260         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30261         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30262         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30263         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30264         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30265         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30266         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30267         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30268         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30269         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30270         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30271         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30272         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30273         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30274         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30275         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30276         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30277         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30278         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30279         * tests/uniwidth/test-u8-width.c: Likewise.
30280         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30281         * tests/uniwidth/test-u16-width.c: Likewise.
30282         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30283         * tests/uniwidth/test-u32-width.c: Likewise.
30284         * tests/uniwidth/test-uc_width.c: Likewise.
30285         * tests/uniwidth/test-uc_width2.c: Likewise.
30286         * modules/acl-tests (Files): Add tests/macros.h.
30287         * modules/areadlink-tests (Files): Likewise.
30288         * modules/areadlink-with-size-tests (Files): Likewise.
30289         * modules/areadlinkat-tests (Files): Likewise.
30290         * modules/areadlinkat-with-size-tests (Files): Likewise.
30291         * modules/argmatch-tests (Files): Likewise.
30292         * modules/argv-iter-tests (Files): Likewise.
30293         * modules/array-list-tests (Files): Likewise.
30294         * modules/array-mergesort-tests (Files): Likewise.
30295         * modules/array-oset-tests (Files): Likewise.
30296         * modules/avltree-list-tests (Files): Likewise.
30297         * modules/avltree-oset-tests (Files): Likewise.
30298         * modules/avltreehash-list-tests (Files): Likewise.
30299         * modules/base64-tests (Files): Likewise.
30300         * modules/binary-io-tests (Files): Likewise.
30301         * modules/bitrotate-tests (Files): Likewise.
30302         * modules/btowc-tests (Files): Likewise.
30303         * modules/byteswap-tests (Files): Likewise.
30304         * modules/c-ctype-tests (Files): Likewise.
30305         * modules/c-stack-tests (Files): Likewise.
30306         * modules/c-strcase-tests (Files): Likewise.
30307         * modules/c-strcasestr-tests (Files): Likewise.
30308         * modules/c-strstr-tests (Files): Likewise.
30309         * modules/canonicalize-lgpl-tests (Files): Likewise.
30310         * modules/canonicalize-tests (Files): Likewise.
30311         * modules/carray-list-tests (Files): Likewise.
30312         * modules/ceilf-tests (Files): Likewise.
30313         * modules/ceill-tests (Files): Likewise.
30314         * modules/chown-tests (Files): Likewise.
30315         * modules/cloexec-tests (Files): Likewise.
30316         * modules/copy-file-tests (Files): Likewise.
30317         * modules/count-one-bits-tests (Files): Likewise.
30318         * modules/dprintf-posix-tests (Files): Likewise.
30319         * modules/dup2-tests (Files): Likewise.
30320         * modules/dup3-tests (Files): Likewise.
30321         * modules/duplocale-tests (Files): Likewise.
30322         * modules/fbufmode-tests (Files): Likewise.
30323         * modules/fchdir-tests (Files): Likewise.
30324         * modules/fcntl-safer-tests (Files): Likewise.
30325         * modules/fcntl-tests (Files): Likewise.
30326         * modules/fdopendir-tests (Files): Likewise.
30327         * modules/fdutimensat-tests (Files): Likewise.
30328         * modules/fflush-tests (Files): Likewise.
30329         * modules/filevercmp-tests (Files): Likewise.
30330         * modules/flock-tests (Files): Likewise.
30331         * modules/floorf-tests (Files): Likewise.
30332         * modules/floorl-tests (Files): Likewise.
30333         * modules/fnmatch-tests (Files): Likewise.
30334         * modules/fopen-safer-tests (Files): Likewise.
30335         * modules/fopen-tests (Files): Likewise.
30336         * modules/fpending-tests (Files): Likewise.
30337         * modules/fprintf-posix-tests (Files): Likewise.
30338         * modules/fpurge-tests (Files): Likewise.
30339         * modules/freadable-tests (Files): Likewise.
30340         * modules/freadahead-tests (Files): Likewise.
30341         * modules/freading-tests (Files): Likewise.
30342         * modules/freadptr-tests (Files): Likewise.
30343         * modules/freadseek-tests (Files): Likewise.
30344         * modules/freopen-tests (Files): Likewise.
30345         * modules/frexp-nolibm-tests (Files): Likewise.
30346         * modules/frexp-tests (Files): Likewise.
30347         * modules/frexpl-nolibm-tests (Files): Likewise.
30348         * modules/frexpl-tests (Files): Likewise.
30349         * modules/fseek-tests (Files): Likewise.
30350         * modules/fseeko-tests (Files): Likewise.
30351         * modules/fstrcmp-tests (Files): Likewise.
30352         * modules/fsync-tests (Files): Likewise.
30353         * modules/ftell-tests (Files): Likewise.
30354         * modules/ftello-tests (Files): Likewise.
30355         * modules/func-tests (Files): Likewise.
30356         * modules/futimens-tests (Files): Likewise.
30357         * modules/fwritable-tests (Files): Likewise.
30358         * modules/fwriting-tests (Files): Likewise.
30359         * modules/getcwd-tests (Files): Likewise.
30360         * modules/getdate-tests (Files): Likewise.
30361         * modules/getdelim-tests (Files): Likewise.
30362         * modules/getdtablesize-tests (Files): Likewise.
30363         * modules/getgroups-tests (Files): Likewise.
30364         * modules/getline-tests (Files): Likewise.
30365         * modules/getndelim2-tests (Files): Likewise.
30366         * modules/glob-tests (Files): Likewise.
30367         * modules/hash-tests (Files): Likewise.
30368         * modules/i-ring-tests (Files): Likewise.
30369         * modules/iconv-tests (Files): Likewise.
30370         * modules/iconv_open-utf-tests (Files): Likewise.
30371         * modules/idpriv-drop-tests (Files): Likewise.
30372         * modules/idpriv-droptemp-tests (Files): Likewise.
30373         * modules/inet_ntop-tests (Files): Likewise.
30374         * modules/inet_pton-tests (Files): Likewise.
30375         * modules/isblank-tests (Files): Likewise.
30376         * modules/isfinite-tests (Files): Likewise.
30377         * modules/isinf-tests (Files): Likewise.
30378         * modules/isnan-tests (Files): Likewise.
30379         * modules/isnand-nolibm-tests (Files): Likewise.
30380         * modules/isnand-tests (Files): Likewise.
30381         * modules/isnanf-nolibm-tests (Files): Likewise.
30382         * modules/isnanf-tests (Files): Likewise.
30383         * modules/isnanl-nolibm-tests (Files): Likewise.
30384         * modules/isnanl-tests (Files): Likewise.
30385         * modules/lchown-tests (Files): Likewise.
30386         * modules/ldexpl-tests (Files): Likewise.
30387         * modules/link-tests (Files): Likewise.
30388         * modules/linkat-tests (Files): Likewise.
30389         * modules/linked-list-tests (Files): Likewise.
30390         * modules/linkedhash-list-tests (Files): Likewise.
30391         * modules/localename-tests (Files): Likewise.
30392         * modules/lseek-tests (Files): Likewise.
30393         * modules/lstat-tests (Files): Likewise.
30394         * modules/mbmemcasecmp-tests (Files): Likewise.
30395         * modules/mbmemcasecoll-tests (Files): Likewise.
30396         * modules/mbrtowc-tests (Files): Likewise.
30397         * modules/mbscasecmp-tests (Files): Likewise.
30398         * modules/mbscasestr-tests (Files): Likewise.
30399         * modules/mbschr-tests (Files): Likewise.
30400         * modules/mbscspn-tests (Files): Likewise.
30401         * modules/mbsinit-tests (Files): Likewise.
30402         * modules/mbsncasecmp-tests (Files): Likewise.
30403         * modules/mbsnrtowcs-tests (Files): Likewise.
30404         * modules/mbspbrk-tests (Files): Likewise.
30405         * modules/mbspcasecmp-tests (Files): Likewise.
30406         * modules/mbsrchr-tests (Files): Likewise.
30407         * modules/mbsrtowcs-tests (Files): Likewise.
30408         * modules/mbsspn-tests (Files): Likewise.
30409         * modules/mbsstr-tests (Files): Likewise.
30410         * modules/memchr-tests (Files): Likewise.
30411         * modules/memchr2-tests (Files): Likewise.
30412         * modules/memcmp-tests (Files): Likewise.
30413         * modules/memmem-tests (Files): Likewise.
30414         * modules/memrchr-tests (Files): Likewise.
30415         * modules/mkdir-tests (Files): Likewise.
30416         * modules/mkfifo-tests (Files): Likewise.
30417         * modules/mkfifoat-tests (Files): Likewise.
30418         * modules/mknod-tests (Files): Likewise.
30419         * modules/nanosleep-tests (Files): Likewise.
30420         * modules/nl_langinfo-tests (Files): Likewise.
30421         * modules/obstack-printf-tests (Files): Likewise.
30422         * modules/open-tests (Files): Likewise.
30423         * modules/openat-tests (Files): Likewise.
30424         * modules/pipe-filter-gi-tests (Files): Likewise.
30425         * modules/pipe-filter-ii-tests (Files): Likewise.
30426         * modules/pipe2-tests (Files): Likewise.
30427         * modules/popen-safer-tests (Files): Likewise.
30428         * modules/popen-tests (Files): Likewise.
30429         * modules/posixtm-tests (Files): Likewise.
30430         * modules/pread-tests (Files): Likewise.
30431         * modules/printf-frexp-tests (Files): Likewise.
30432         * modules/printf-frexpl-tests (Files): Likewise.
30433         * modules/printf-posix-tests (Files): Likewise.
30434         * modules/priv-set-tests (Files): Likewise.
30435         * modules/quotearg-tests (Files): Likewise.
30436         * modules/random_r-tests (Files): Likewise.
30437         * modules/rawmemchr-tests (Files): Likewise.
30438         * modules/rbtree-list-tests (Files): Likewise.
30439         * modules/rbtree-oset-tests (Files): Likewise.
30440         * modules/rbtreehash-list-tests (Files): Likewise.
30441         * modules/readlink-tests (Files): Likewise.
30442         * modules/remove-tests (Files): Likewise.
30443         * modules/rename-tests (Files): Likewise.
30444         * modules/renameat-tests (Files): Likewise.
30445         * modules/rmdir-tests (Files): Likewise.
30446         * modules/round-tests (Files): Likewise.
30447         * modules/roundf-tests (Files): Likewise.
30448         * modules/roundl-tests (Files): Likewise.
30449         * modules/safe-alloc-tests (Files): Likewise.
30450         * modules/setenv-tests (Files): Likewise.
30451         * modules/sigaction-tests (Files): Likewise.
30452         * modules/signbit-tests (Files): Likewise.
30453         * modules/sleep-tests (Files): Likewise.
30454         * modules/snprintf-posix-tests (Files): Likewise.
30455         * modules/snprintf-tests (Files): Likewise.
30456         * modules/sprintf-posix-tests (Files): Likewise.
30457         * modules/stat-tests (Files): Likewise.
30458         * modules/stat-time-tests (Files): Likewise.
30459         * modules/strcasestr-tests (Files): Likewise.
30460         * modules/strchrnul-tests (Files): Likewise.
30461         * modules/strerror-tests (Files): Likewise.
30462         * modules/striconv-tests (Files): Likewise.
30463         * modules/striconveh-tests (Files): Likewise.
30464         * modules/striconveha-tests (Files): Likewise.
30465         * modules/strsignal-tests (Files): Likewise.
30466         * modules/strstr-tests (Files): Likewise.
30467         * modules/strtod-tests (Files): Likewise.
30468         * modules/strverscmp-tests (Files): Likewise.
30469         * modules/symlink-tests (Files): Likewise.
30470         * modules/symlinkat-tests (Files): Likewise.
30471         * modules/trunc-tests (Files): Likewise.
30472         * modules/truncf-tests (Files): Likewise.
30473         * modules/truncl-tests (Files): Likewise.
30474         * modules/uname-tests (Files): Likewise.
30475         * modules/unicase/cased-tests (Files): Likewise.
30476         * modules/unicase/ignorable-tests (Files): Likewise.
30477         * modules/unicase/locale-language-tests (Files): Likewise.
30478         * modules/unicase/tolower-tests (Files): Likewise.
30479         * modules/unicase/totitle-tests (Files): Likewise.
30480         * modules/unicase/toupper-tests (Files): Likewise.
30481         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30482         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30483         * modules/unicase/u8-casefold-tests (Files): Likewise.
30484         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30485         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30486         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30487         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30488         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30489         * modules/unicase/u8-tolower-tests (Files): Likewise.
30490         * modules/unicase/u8-totitle-tests (Files): Likewise.
30491         * modules/unicase/u8-toupper-tests (Files): Likewise.
30492         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30493         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30494         * modules/unicase/u16-casefold-tests (Files): Likewise.
30495         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30496         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30497         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30498         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30499         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30500         * modules/unicase/u16-tolower-tests (Files): Likewise.
30501         * modules/unicase/u16-totitle-tests (Files): Likewise.
30502         * modules/unicase/u16-toupper-tests (Files): Likewise.
30503         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30504         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30505         * modules/unicase/u32-casefold-tests (Files): Likewise.
30506         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30507         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30508         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30509         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30510         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30511         * modules/unicase/u32-tolower-tests (Files): Likewise.
30512         * modules/unicase/u32-totitle-tests (Files): Likewise.
30513         * modules/unicase/u32-toupper-tests (Files): Likewise.
30514         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30515         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30516         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30517         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30518         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30519         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30520         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30521         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30522         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30523         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30524         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30525         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30526         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30527         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30528         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30529         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30530         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30531         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30532         * modules/unictype/block-list-tests (Files): Likewise.
30533         * modules/unictype/block-of-tests (Files): Likewise.
30534         * modules/unictype/block-test-tests (Files): Likewise.
30535         * modules/unictype/category-C-tests (Files): Likewise.
30536         * modules/unictype/category-Cc-tests (Files): Likewise.
30537         * modules/unictype/category-Cf-tests (Files): Likewise.
30538         * modules/unictype/category-Cn-tests (Files): Likewise.
30539         * modules/unictype/category-Co-tests (Files): Likewise.
30540         * modules/unictype/category-Cs-tests (Files): Likewise.
30541         * modules/unictype/category-L-tests (Files): Likewise.
30542         * modules/unictype/category-Ll-tests (Files): Likewise.
30543         * modules/unictype/category-Lm-tests (Files): Likewise.
30544         * modules/unictype/category-Lo-tests (Files): Likewise.
30545         * modules/unictype/category-Lt-tests (Files): Likewise.
30546         * modules/unictype/category-Lu-tests (Files): Likewise.
30547         * modules/unictype/category-M-tests (Files): Likewise.
30548         * modules/unictype/category-Mc-tests (Files): Likewise.
30549         * modules/unictype/category-Me-tests (Files): Likewise.
30550         * modules/unictype/category-Mn-tests (Files): Likewise.
30551         * modules/unictype/category-N-tests (Files): Likewise.
30552         * modules/unictype/category-Nd-tests (Files): Likewise.
30553         * modules/unictype/category-Nl-tests (Files): Likewise.
30554         * modules/unictype/category-No-tests (Files): Likewise.
30555         * modules/unictype/category-P-tests (Files): Likewise.
30556         * modules/unictype/category-Pc-tests (Files): Likewise.
30557         * modules/unictype/category-Pd-tests (Files): Likewise.
30558         * modules/unictype/category-Pe-tests (Files): Likewise.
30559         * modules/unictype/category-Pf-tests (Files): Likewise.
30560         * modules/unictype/category-Pi-tests (Files): Likewise.
30561         * modules/unictype/category-Po-tests (Files): Likewise.
30562         * modules/unictype/category-Ps-tests (Files): Likewise.
30563         * modules/unictype/category-S-tests (Files): Likewise.
30564         * modules/unictype/category-Sc-tests (Files): Likewise.
30565         * modules/unictype/category-Sk-tests (Files): Likewise.
30566         * modules/unictype/category-Sm-tests (Files): Likewise.
30567         * modules/unictype/category-So-tests (Files): Likewise.
30568         * modules/unictype/category-Z-tests (Files): Likewise.
30569         * modules/unictype/category-Zl-tests (Files): Likewise.
30570         * modules/unictype/category-Zp-tests (Files): Likewise.
30571         * modules/unictype/category-Zs-tests (Files): Likewise.
30572         * modules/unictype/category-and-not-tests (Files): Likewise.
30573         * modules/unictype/category-and-tests (Files): Likewise.
30574         * modules/unictype/category-byname-tests (Files): Likewise.
30575         * modules/unictype/category-name-tests (Files): Likewise.
30576         * modules/unictype/category-none-tests (Files): Likewise.
30577         * modules/unictype/category-of-tests (Files): Likewise.
30578         * modules/unictype/category-or-tests (Files): Likewise.
30579         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30580         * modules/unictype/combining-class-tests (Files): Likewise.
30581         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30582         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30583         * modules/unictype/ctype-blank-tests (Files): Likewise.
30584         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30585         * modules/unictype/ctype-digit-tests (Files): Likewise.
30586         * modules/unictype/ctype-graph-tests (Files): Likewise.
30587         * modules/unictype/ctype-lower-tests (Files): Likewise.
30588         * modules/unictype/ctype-print-tests (Files): Likewise.
30589         * modules/unictype/ctype-punct-tests (Files): Likewise.
30590         * modules/unictype/ctype-space-tests (Files): Likewise.
30591         * modules/unictype/ctype-upper-tests (Files): Likewise.
30592         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30593         * modules/unictype/decimal-digit-tests (Files): Likewise.
30594         * modules/unictype/digit-tests (Files): Likewise.
30595         * modules/unictype/mirror-tests (Files): Likewise.
30596         * modules/unictype/numeric-tests (Files): Likewise.
30597         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30598         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30599         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30600         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30601         Likewise.
30602         * modules/unictype/property-bidi-block-separator-tests (Files):
30603         Likewise.
30604         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30605         Likewise.
30606         * modules/unictype/property-bidi-common-separator-tests (Files):
30607         Likewise.
30608         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30609         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30610         Likewise.
30611         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30612         Likewise.
30613         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30614         Likewise.
30615         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30616         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30617         Likewise.
30618         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30619         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30620         Likewise.
30621         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30622         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30623         * modules/unictype/property-bidi-segment-separator-tests (Files):
30624         Likewise.
30625         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30626         * modules/unictype/property-byname-tests (Files): Likewise.
30627         * modules/unictype/property-combining-tests (Files): Likewise.
30628         * modules/unictype/property-composite-tests (Files): Likewise.
30629         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30630         * modules/unictype/property-dash-tests (Files): Likewise.
30631         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30632         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30633         Likewise.
30634         * modules/unictype/property-deprecated-tests (Files): Likewise.
30635         * modules/unictype/property-diacritic-tests (Files): Likewise.
30636         * modules/unictype/property-extender-tests (Files): Likewise.
30637         * modules/unictype/property-format-control-tests (Files): Likewise.
30638         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30639         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30640         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30641         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30642         * modules/unictype/property-hyphen-tests (Files): Likewise.
30643         * modules/unictype/property-id-continue-tests (Files): Likewise.
30644         * modules/unictype/property-id-start-tests (Files): Likewise.
30645         * modules/unictype/property-ideographic-tests (Files): Likewise.
30646         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30647         * modules/unictype/property-ids-trinary-operator-tests (Files):
30648         Likewise.
30649         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30650         * modules/unictype/property-iso-control-tests (Files): Likewise.
30651         * modules/unictype/property-join-control-tests (Files): Likewise.
30652         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30653         * modules/unictype/property-line-separator-tests (Files): Likewise.
30654         * modules/unictype/property-logical-order-exception-tests (Files):
30655         Likewise.
30656         * modules/unictype/property-lowercase-tests (Files): Likewise.
30657         * modules/unictype/property-math-tests (Files): Likewise.
30658         * modules/unictype/property-non-break-tests (Files): Likewise.
30659         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30660         * modules/unictype/property-numeric-tests (Files): Likewise.
30661         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30662         * modules/unictype/property-other-default-ignorable-code-point-tests
30663         (Files): Likewise.
30664         * modules/unictype/property-other-grapheme-extend-tests (Files):
30665         Likewise.
30666         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30667         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30668         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30669         * modules/unictype/property-other-math-tests (Files): Likewise.
30670         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30671         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30672         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30673         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30674         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30675         * modules/unictype/property-private-use-tests (Files): Likewise.
30676         * modules/unictype/property-punctuation-tests (Files): Likewise.
30677         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30678         * modules/unictype/property-radical-tests (Files): Likewise.
30679         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30680         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30681         * modules/unictype/property-space-tests (Files): Likewise.
30682         * modules/unictype/property-terminal-punctuation-tests (Files):
30683         Likewise.
30684         * modules/unictype/property-test-tests (Files): Likewise.
30685         * modules/unictype/property-titlecase-tests (Files): Likewise.
30686         * modules/unictype/property-unassigned-code-value-tests (Files):
30687         Likewise.
30688         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30689         * modules/unictype/property-uppercase-tests (Files): Likewise.
30690         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30691         * modules/unictype/property-white-space-tests (Files): Likewise.
30692         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30693         * modules/unictype/property-xid-start-tests (Files): Likewise.
30694         * modules/unictype/property-zero-width-tests (Files): Likewise.
30695         * modules/unictype/scripts-tests (Files): Likewise.
30696         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30697         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30698         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30699         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30700         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30701         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30702         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30703         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30704         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30705         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30706         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30707         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30708         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30709         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30710         * modules/uninorm/composition-tests (Files): Likewise.
30711         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30712         * modules/uninorm/decomposition-tests (Files): Likewise.
30713         * modules/uninorm/filter-tests (Files): Likewise.
30714         * modules/uninorm/nfc-tests (Files): Likewise.
30715         * modules/uninorm/nfd-tests (Files): Likewise.
30716         * modules/uninorm/nfkc-tests (Files): Likewise.
30717         * modules/uninorm/nfkd-tests (Files): Likewise.
30718         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30719         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30720         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30721         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30722         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30723         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30724         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30725         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30726         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30727         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30728         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30729         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30730         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30731         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30732         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30733         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30734         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30735         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30736         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30737         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30738         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30739         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30740         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30741         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30742         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30743         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30744         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30745         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30746         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30747         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30748         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30749         * modules/uniwidth/u8-width-tests (Files): Likewise.
30750         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30751         * modules/uniwidth/u16-width-tests (Files): Likewise.
30752         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30753         * modules/uniwidth/u32-width-tests (Files): Likewise.
30754         * modules/uniwidth/width-tests (Files): Likewise.
30755         * modules/unlink-tests (Files): Likewise.
30756         * modules/unsetenv-tests (Files): Likewise.
30757         * modules/usleep-tests (Files): Likewise.
30758         * modules/utimens-tests (Files): Likewise.
30759         * modules/utimensat-tests (Files): Likewise.
30760         * modules/vasnprintf-posix-tests (Files): Likewise.
30761         * modules/vasnprintf-tests (Files): Likewise.
30762         * modules/vasprintf-posix-tests (Files): Likewise.
30763         * modules/vasprintf-tests (Files): Likewise.
30764         * modules/vdprintf-posix-tests (Files): Likewise.
30765         * modules/vfprintf-posix-tests (Files): Likewise.
30766         * modules/vprintf-posix-tests (Files): Likewise.
30767         * modules/vsnprintf-posix-tests (Files): Likewise.
30768         * modules/vsnprintf-tests (Files): Likewise.
30769         * modules/vsprintf-posix-tests (Files): Likewise.
30770         * modules/wcrtomb-tests (Files): Likewise.
30771         * modules/wcsnrtombs-tests (Files): Likewise.
30772         * modules/wcsrtombs-tests (Files): Likewise.
30773         * modules/wctype-tests (Files): Likewise.
30774         * modules/wcwidth-tests (Files): Likewise.
30775         * modules/xmemdup0-tests (Files): Likewise.
30776         * modules/xprintf-posix-tests (Files): Likewise.
30777         * modules/xvasprintf-tests (Files): Likewise.
30778
30779 2009-12-24  Eric Blake  <ebb9@byu.net>
30780
30781         test-nanosleep: fix typo
30782         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30783         patch.
30784         Reported by Bruno Haible.
30785
30786 2009-12-24  Bruno Haible  <bruno@clisp.org>
30787
30788         Reduce namespace pollution on glibc systems.
30789         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30790         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30791         systems.
30792         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30793         <getopt.h> on glibc systems.
30794         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30795         systems.
30796         * lib/fcntl.c: Include <unistd.h> here instead.
30797
30798 2009-12-24  Bruno Haible  <bruno@clisp.org>
30799
30800         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30801
30802 2009-12-24  Eric Blake  <ebb9@byu.net>
30803
30804         tests: add signature checks
30805         * tests/signature.h (SIGNATURE_CHECK): New file.
30806         * modules/atexit-tests (Files): Use it.
30807         * modules/btowc-tests (Files): Likewise.
30808         * modules/canonicalize-lgpl-tests (Files): Likewise.
30809         * modules/ceilf-tests (Files): Likewise.
30810         * modules/ceill-tests (Files): Likewise.
30811         * modules/chown-tests (Files): Likewise.
30812         * modules/dprintf-posix-tests (Files): Likewise.
30813         * modules/dup2-tests (Files): Likewise.
30814         * modules/dup3-tests (Files): Likewise.
30815         * modules/duplocale-tests (Files): Likewise.
30816         * modules/fchdir-tests (Files): Likewise.
30817         * modules/fcntl-tests (Files): Likewise.
30818         * modules/fdopendir-tests (Files): Likewise.
30819         * modules/fflush-tests (Files): Likewise.
30820         * modules/flock-tests (Files): Likewise.
30821         * modules/floorf-tests (Files): Likewise.
30822         * modules/floorl-tests (Files): Likewise.
30823         * modules/fnmatch-tests (Files): Likewise.
30824         * modules/fopen-tests (Files): Likewise.
30825         * modules/fprintf-posix-tests (Files): Likewise.
30826         * modules/freopen-tests (Files): Likewise.
30827         * modules/frexp-nolibm-tests (Files): Likewise.
30828         * modules/frexp-tests (Files): Likewise.
30829         * modules/frexpl-nolibm-tests (Files): Likewise.
30830         * modules/frexpl-tests (Files): Likewise.
30831         * modules/fseek-tests (Files): Likewise.
30832         * modules/fseeko-tests (Files): Likewise.
30833         * modules/fsync-tests (Files): Likewise.
30834         * modules/ftell-tests (Files): Likewise.
30835         * modules/ftello-tests (Files): Likewise.
30836         * modules/futimens-tests (Files): Likewise.
30837         * modules/getaddrinfo-tests (Files): Likewise.
30838         * modules/getcwd-tests (Files): Likewise.
30839         * modules/getdelim-tests (Files): Likewise.
30840         * modules/getdtablesize-tests (Files): Likewise.
30841         * modules/getgroups-tests (Files): Likewise.
30842         * modules/gethostname-tests (Files): Likewise.
30843         * modules/getline-tests (Files): Likewise.
30844         * modules/getopt-posix-tests (Files): Likewise.
30845         * modules/gettimeofday-tests (Files): Likewise.
30846         * modules/glob-tests (Files): Likewise.
30847         * modules/iconv-tests (Files): Likewise.
30848         * modules/inet_ntop-tests (Files): Likewise.
30849         * modules/inet_pton-tests (Files): Likewise.
30850         * modules/isblank-tests (Files): Likewise.
30851         * modules/lchown-tests (Files): Likewise.
30852         * modules/ldexpl-tests (Files): Likewise.
30853         * modules/link-tests (Files): Likewise.
30854         * modules/linkat-tests (Files): Likewise.
30855         * modules/lseek-tests (Files): Likewise.
30856         * modules/lstat-tests (Files): Likewise.
30857         * modules/mbrtowc-tests (Files): Likewise.
30858         * modules/mbsinit-tests (Files): Likewise.
30859         * modules/mbsnrtowcs-tests (Files): Likewise.
30860         * modules/mbsrtowcs-tests (Files): Likewise.
30861         * modules/memchr-tests (Files): Likewise.
30862         * modules/memcmp-tests (Files): Likewise.
30863         * modules/memmem-tests (Files): Likewise.
30864         * modules/memrchr-tests (Files): Likewise.
30865         * modules/mkdir-tests (Files): Likewise.
30866         * modules/mkfifo-tests (Files): Likewise.
30867         * modules/mkfifoat-tests (Files): Likewise.
30868         * modules/mknod-tests (Files): Likewise.
30869         * modules/nanosleep-tests (Files): Likewise.
30870         * modules/nl_langinfo-tests (Files): Likewise.
30871         * modules/obstack-printf-tests (Files): Likewise.
30872         * modules/open-tests (Files): Likewise.
30873         * modules/openat-tests (Files): Likewise.
30874         * modules/perror-tests (Files): Likewise.
30875         * modules/pipe2-tests (Files): Likewise.
30876         * modules/poll-tests (Files): Likewise.
30877         * modules/popen-tests (Files): Likewise.
30878         * modules/posix_spawn-tests (Files): Likewise.
30879         * modules/posix_spawnp-tests (Files): Likewise.
30880         * modules/pread-tests (Files): Likewise.
30881         * modules/printf-posix-tests (Files): Likewise.
30882         * modules/pty-tests (Files): Likewise.
30883         * modules/random_r-tests (Files): Likewise.
30884         * modules/rawmemchr-tests (Files): Likewise.
30885         * modules/readlink-tests (Files): Likewise.
30886         * modules/remove-tests (Files): Likewise.
30887         * modules/rename-tests (Files): Likewise.
30888         * modules/renameat-tests (Files): Likewise.
30889         * modules/rmdir-tests (Files): Likewise.
30890         * modules/round-tests (Files): Likewise.
30891         * modules/roundf-tests (Files): Likewise.
30892         * modules/roundl-tests (Files): Likewise.
30893         * modules/select-tests (Files): Likewise.
30894         * modules/setenv-tests (Files): Likewise.
30895         * modules/sigaction-tests (Files): Likewise.
30896         * modules/sleep-tests (Files): Likewise.
30897         * modules/snprintf-posix-tests (Files): Likewise.
30898         * modules/snprintf-tests (Files): Likewise.
30899         * modules/sprintf-posix-tests (Files): Likewise.
30900         * modules/stat-tests (Files): Likewise.
30901         * modules/strcasestr-tests (Files): Likewise.
30902         * modules/strchrnul-tests (Files): Likewise.
30903         * modules/strerror-tests (Files): Likewise.
30904         * modules/strsignal-tests (Files): Likewise.
30905         * modules/strstr-tests (Files): Likewise.
30906         * modules/strtod-tests (Files): Likewise.
30907         * modules/strverscmp-tests (Files): Likewise.
30908         * modules/symlink-tests (Files): Likewise.
30909         * modules/symlinkat-tests (Files): Likewise.
30910         * modules/times-tests (Files): Likewise.
30911         * modules/trunc-tests (Files): Likewise.
30912         * modules/truncf-tests (Files): Likewise.
30913         * modules/truncl-tests (Files): Likewise.
30914         * modules/tsearch-tests (Files): Likewise.
30915         * modules/uname-tests (Files): Likewise.
30916         * modules/unlink-tests (Files): Likewise.
30917         * modules/unsetenv-tests (Files): Likewise.
30918         * modules/usleep-tests (Files): Likewise.
30919         * modules/utimensat-tests (Files): Likewise.
30920         * modules/vasprintf-tests (Files): Likewise.
30921         * modules/vdprintf-posix-tests (Files): Likewise.
30922         * modules/vfprintf-posix-tests (Files): Likewise.
30923         * modules/vprintf-posix-tests (Files): Likewise.
30924         * modules/vsnprintf-posix-tests (Files): Likewise.
30925         * modules/vsnprintf-tests (Files): Likewise.
30926         * modules/vsprintf-posix-tests (Files): Likewise.
30927         * modules/wcrtomb-tests (Files): Likewise.
30928         * modules/wcsnrtombs-tests (Files): Likewise.
30929         * modules/wcsrtombs-tests (Files): Likewise.
30930         * modules/wcwidth-tests (Files): Likewise.
30931         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30932         * tests/test-isinf.c (isinf): Likewise.
30933         * tests/test-isnan.c (isnan): Likewise.
30934         * tests/test-signbit.c (signbit): Likewise.
30935         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30936         declaration, either as macro or with correct signature.
30937         (select): Ensure function under test is declared with correct
30938         signature in correct header.
30939         * tests/test-atexit.c (atexit): Likewise.
30940         * tests/test-btowc.c (btowc): Likewise.
30941         * tests/test-canonicalize-lgpl.c (realpath)
30942         (canonicalize_file_name): Likewise.
30943         * tests/test-ceilf1.c (ceilf): Likewise.
30944         * tests/test-ceill.c (ceill): Likewise.
30945         * tests/test-chown.c (chown): Likewise.
30946         * tests/test-dprintf-posix.c (dprintf): Likewise.
30947         * tests/test-dup2.c (dup2): Likewise.
30948         * tests/test-dup3.c (dup3): Likewise.
30949         * tests/test-duplocale.c (duplocale): Likewise.
30950         * tests/test-fchdir.c (fchdir): Likewise.
30951         * tests/test-fchownat.c (fchownat): Likewise.
30952         * tests/test-fcntl.c (fcntl): Likewise.
30953         * tests/test-fdopendir.c (fdopendir): Likewise.
30954         * tests/test-fflush.c (fflush): Likewise.
30955         * tests/test-flock.c (flock): Likewise.
30956         * tests/test-floorf1.c (floorf): Likewise.
30957         * tests/test-floorl.c (floorl): Likewise.
30958         * tests/test-fnmatch.c (fnmatch): Likewise.
30959         * tests/test-fopen.c (fopen): Likewise.
30960         * tests/test-fprintf-posix.c (fprintf): Likewise.
30961         * tests/test-freopen.c (freopen): Likewise.
30962         * tests/test-frexp.c (frexp): Likewise.
30963         * tests/test-frexpl.c (frexpl): Likewise.
30964         * tests/test-fseek.c (fseek): Likewise.
30965         * tests/test-fseeko.c (fseeko): Likewise.
30966         * tests/test-fstatat.c (fstatat): Likewise.
30967         * tests/test-fsync.c (fsync): Likewise.
30968         * tests/test-ftell.c (ftell): Likewise.
30969         * tests/test-ftello.c (ftello): Likewise.
30970         * tests/test-futimens.c (futimens): Likewise.
30971         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30972         (gai_strerror): Likewise.
30973         * tests/test-getcwd.c (getcwd): Likewise.
30974         * tests/test-getdelim.c (getdelim): Likewise.
30975         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30976         * tests/test-getgroups.c (getgroups): Likewise.
30977         * tests/test-gethostname.c (gethostname): Likewise.
30978         * tests/test-getline.c (getline): Likewise.
30979         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30980         Likewise.
30981         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30982         * tests/test-glob.c (glob, globfree): Likewise.
30983         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30984         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30985         * tests/test-inet_pton.c (inet_pton): Likewise.
30986         * tests/test-isblank.c (isblank): Likewise.
30987         * tests/test-lchown.c (lchown): Likewise.
30988         * tests/test-ldexpl.c (ldexpl): Likewise.
30989         * tests/test-link.c (link): Likewise.
30990         * tests/test-linkat.c (linkat): Likewise.
30991         * tests/test-lseek.c (lseek): Likewise.
30992         * tests/test-lstat.c (lstat): Likewise.
30993         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30994         * tests/test-mbsinit.c (mbsinit): Likewise.
30995         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30996         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30997         * tests/test-memchr.c (memchr): Likewise.
30998         * tests/test-memcmp.c (memcmp): Likewise.
30999         * tests/test-memmem.c (memmem): Likewise.
31000         * tests/test-memrchr.c (memrchr): Likewise.
31001         * tests/test-mkdir.c (mkdir): Likewise.
31002         * tests/test-mkdirat.c (mkdirat): Likewise.
31003         * tests/test-mkfifo.c (mkfifo): Likewise.
31004         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31005         * tests/test-mknod.c (mknod): Likewise.
31006         * tests/test-nanosleep.c (nanosleep): Likewise.
31007         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31008         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31009         Likewise.
31010         * tests/test-open.c (open): Likewise.
31011         * tests/test-openat.c (openat): Likewise.
31012         * tests/test-perror.c (perror): Likewise.
31013         * tests/test-pipe2.c (pipe2): Likewise.
31014         * tests/test-poll.c (poll): Likewise.
31015         * tests/test-popen.c (popen, pclose): Likewise.
31016         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31017         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31018         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31019         (posix_spawn_file_actions_destroy)
31020         (posix_spawn_file_actions_addclose)
31021         (posix_spawn_file_actions_addopen)
31022         (posix_spawn_file_actions_adddup2): Likewise.
31023         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31024         * tests/test-pread.c (pread): Likewise.
31025         * tests/test-printf-posix.c (printf): Likewise.
31026         * tests/test-pty.c (openpty, forkpty): Likewise.
31027         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31028         (random_r): Likewise.
31029         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31030         * tests/test-readlink.c (readlink): Likewise.
31031         * tests/test-remove.c (remove): Likewise.
31032         * tests/test-rename.c (rename): Likewise.
31033         * tests/test-renameat.c (renameat): Likewise.
31034         * tests/test-rmdir.c (rmdir): Likewise.
31035         * tests/test-round1.c (round): Likewise.
31036         * tests/test-roundf1.c (roundf): Likewise.
31037         * tests/test-roundl.c (roundl): Likewise.
31038         * tests/test-setenv.c (setenv): Likewise.
31039         * tests/test-sigaction.c (sigaction): Likewise.
31040         * tests/test-sleep.c (sleep): Likewise.
31041         * tests/test-snprintf.c (snprintf): Likewise.
31042         * tests/test-sprintf-posix.c (sprintf): Likewise.
31043         * tests/test-stat.c (stat): Likewise.
31044         * tests/test-stpncpy.c (stpncpy): Likewise.
31045         * tests/test-strcasestr.c (strcasestr): Likewise.
31046         * tests/test-strchrnul.c (strchrnul): Likewise.
31047         * tests/test-strerror.c (strerror): Likewise.
31048         * tests/test-strsignal.c (strsignal): Likewise.
31049         * tests/test-strstr.c (strstr): Likewise.
31050         * tests/test-strtod.c (strtod): Likewise.
31051         * tests/test-strverscmp.c (strverscmp): Likewise.
31052         * tests/test-symlink.c (symlink): Likewise.
31053         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31054         * tests/test-times.c (times): Likewise.
31055         * tests/test-trunc1.c (trunc): Likewise.
31056         * tests/test-truncf1.c (truncf): Likewise.
31057         * tests/test-truncl.c (truncl): Likewise.
31058         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31059         Likewise.
31060         * tests/test-uname.c (uname): Likewise.
31061         * tests/test-unlink.c (unlink): Likewise.
31062         * tests/test-unlinkat.c (unlinkat): Likewise.
31063         * tests/test-unsetenv.c (unsetenv): Likewise.
31064         * tests/test-usleep.c (usleep): Likewise.
31065         * tests/test-utimensat.c (utimensat): Likewise.
31066         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31067         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31068         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31069         * tests/test-vprintf-posix.c (vprintf): Likewise.
31070         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31071         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31072         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31073         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31074         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31075         * tests/test-wcwidth.c (wcwidth): Likewise.
31076
31077         build: pull in conditional headers during GNULIB_POSIXCHECK
31078         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31079         definitions from any conditionally-included headers.
31080         * lib/stdlib.in.h (includes): Likewise.
31081         * lib/unistd.in.h (includes): Likewise.
31082
31083 2009-12-24  Bruno Haible  <bruno@clisp.org>
31084
31085         * tests/test-argv-iter.c: Include header file being tested immediately
31086         after config.h.
31087         * tests/test-base64.c: Likewise.
31088         * tests/test-flock.c: Likewise.
31089         * tests/test-fsync.c: Likewise.
31090         * tests/test-getdate.c: Likewise.
31091         * tests/test-getndelim2.c: Likewise.
31092         * tests/test-isfinite.c: Likewise.
31093         * tests/test-isinf.c: Likewise.
31094         * tests/test-strerror.c: Likewise.
31095         * tests/test-strsignal.c: Likewise.
31096
31097 2009-12-23  Eric Blake  <ebb9@byu.net>
31098
31099         unistd: work around cygwin bug
31100         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31101         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31102         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31103
31104 2009-12-23  Bruno Haible  <bruno@clisp.org>
31105
31106         localename: More tests.
31107         * tests/test-localename.c (SIZEOF): New macro.
31108         (categories): New variable.
31109         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31110         test_locale_name_default): Add test w.r.t. thread locale.
31111         (test_locale_name_thread): New function.
31112         (main): Invoke it.
31113
31114         localename: Make aware of thread locale.
31115         * lib/localename.h (gl_locale_name_thread): New declaration.
31116         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31117         behaviour with respect to thread locale.
31118         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31119         <langinfo.h>, glthread/lock.h.
31120         (SIZE_BITS): New macro.
31121         (string_hash): New function.
31122         (struct hash_node): New type.
31123         (HASH_TABLE_SIZE): New macro.
31124         (struniq_hash_table, struniq_lock): New variables.
31125         (struniq): New function.
31126         (gl_locale_name_thread): New function.
31127         (gl_locale_name): Invoke it.
31128         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31129         * modules/localename (Depends-on): Add lock.
31130         Reported by Mike Gran <spk121@yahoo.com>.
31131
31132 2009-12-23  Eric Blake  <ebb9@byu.net>
31133
31134         va-args: new module
31135         * modules/va-args: New file.
31136         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31137         * MODULES.html.sh (Core language properties): Mention it.
31138
31139         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31140         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31141         named alias for __attribute__((__unused__)).
31142         * lib/chown.c: Update client.
31143         * lib/fchmodat.c: Likewise.
31144         * lib/fts.c: Likewise.
31145         * lib/getdate.y: Likewise.
31146         * lib/getgroups.c: Likewise.
31147         * lib/getopt.c: Likewise.
31148         * lib/getugroups.c: Likewise.
31149         * lib/mkdir.c: Likewise.
31150         * lib/mkfifo.c: Likewise.
31151         * lib/mkfifoat.c: Likewise.
31152         * lib/mknod.c: Likewise.
31153         * lib/mknodat.c: Likewise.
31154         * lib/readlink.c: Likewise.
31155         * lib/se-context.in.h: Likewise.
31156         * lib/se-selinux.in.h: Likewise.
31157         * lib/sockets.c: Likewise.
31158         * lib/symlink.c: Likewise.
31159         * lib/symlinkat.c: Likewise.
31160         * lib/unicodeio.c: Likewise.
31161         * lib/unistr.h: Likewise.
31162         * tests/test-areadlink.c: Likewise.
31163         * tests/test-areadlinkat.c: Likewise.
31164         * tests/test-filenamecat.c: Likewise.
31165         * tests/test-fseeko.c: Likewise.
31166         * tests/test-ftello.c: Likewise.
31167         * tests/test-getdate.c: Likewise.
31168         * tests/test-getgroups.c: Likewise.
31169         * tests/test-gethostname.c: Likewise.
31170         * tests/test-quotearg.c: Likewise.
31171         * tests/test-version-etc.c: Likewise.
31172         * tests/test-xalloc-die.c: Likewise.
31173         * tests/test-xfprintf-posix.c: Likewise.
31174         * tests/test-xprintf-posix.c: Likewise.
31175         * tests/test-xvasprintf.c: Likewise.
31176
31177         tests: avoid compiler warnings
31178         * tests/test-fcntl.c (main): Delete unused parameters.
31179         * tests/test-freopen-safer.c (main): Likewise.
31180         * tests/test-xalloc-die.c (main): Mark unused parameters.
31181         * tests/test-fseeko.c (main): Likewise.
31182         * tests/test-ftello.c (main): Likewise.
31183         * tests/test-nanosleep.c (main): Avoid declaration warning.
31184         * tests/test-sleep.c (main): Likewise.
31185         * tests/test-unsetenv.c (main): Silence warning about string
31186         literal.
31187         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31188
31189 2009-12-23  Bruno Haible  <bruno@clisp.org>
31190
31191         * tests/test-localename.c (test_locale_name): New function, extracted
31192         from main. Also test mixed situations.
31193         (test_locale_name_posix, test_locale_name_environ,
31194         test_locale_name_default): New functions.
31195         (main): Invoke them all.
31196         * modules/localename-tests (configure.ac): Test for newlocale.
31197
31198 2009-12-23  Bruno Haible  <bruno@clisp.org>
31199
31200         unistd: Ensure getcwd gets declared before being overridden.
31201         * lib/unistd.in.h: Conditionally include <io.h>.
31202
31203 2009-12-22  Bruno Haible  <bruno@clisp.org>
31204
31205         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31206         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31207         (gl_WCHAR_H): Invoke it.
31208         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31209         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31210         Reported by Karl Berry <karl@freefriends.org>.
31211
31212 2009-12-22  Eric Blake  <ebb9@byu.net>
31213
31214         math, unistd: avoid redundant includes
31215         * lib/math.in.h (isnan): No need to re-include <math.h>.
31216         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31217
31218         getsubopt: work around cygwin bug
31219         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31220         avoid conflicting with system getsubopt.
31221         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31222         bug.
31223
31224         getopt: synchronize from glibc
31225         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31226         parameter order.  Adjust all callers.
31227         (_getopt_internal_r, main): Adjust quoting in error messages.
31228         Drop considerations for outdated POSIX 1003.2 error message.
31229         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31230         callers.
31231         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31232
31233         test-getopt: test stderr behavior
31234         * modules/getopt-posix-tests (Depends-on): Add dup2.
31235         * tests/test-getopt.c (ASSERT): Avoid stderr.
31236         (main): Move stderr to a temporary file.
31237         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31238         Instead, add parameter to inform caller if output occurred.
31239         (test_getopt): Adjust all existing tests to expect silence, and
31240         add new tests of leading ":".
31241         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31242         glibc shortcomings with leading "-:" or "+:" in optstring.
31243         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31244         Likewise.
31245         * doc/posix-functions/getopt.texi (getopt): Likewise.
31246
31247         test-getopt: enhance test
31248         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31249         supports optind=0.
31250         * tests/test-getopt.c (OPTIND_MIN): Move...
31251         * tests/test-getopt.h (OPTIND_MIN): ...here.
31252         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31253         Require that optind=0 works, since modern BSD supports it in
31254         addition to optreset, and since coreutils expects it.
31255         (test_getopt_long_only): New test.
31256         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31257         glibc shortcomings with 'W;', and enforcement of optind=0.
31258         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31259         Likewise.
31260
31261 2009-12-21  Bruno Haible  <bruno@clisp.org>
31262
31263         localename: Improvements for MacOS X and Cygwin.
31264         * lib/localename.h (gl_locale_name_environ): New declaration.
31265         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31266         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31267         (gl_locale_name_posix): Invoke it.
31268         (gl_locale_name_default): Add comments. Use Windows native API also on
31269         Cygwin.
31270
31271 2009-12-21  Bruno Haible  <bruno@clisp.org>
31272
31273         Update list of Win32 locale ids.
31274         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31275         (LANG_SAMI): Renamed from LANG_SAAMI.
31276         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31277         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31278         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31279         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31280         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31281         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31282         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31283         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31284         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31285         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31286         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31287         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31288         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31289         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31290         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31291         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31292         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31293         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31294         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31295         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31296         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31297         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31298         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31299         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31300         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31301         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31302         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31303         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31304         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31305         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31306         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31307         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31308         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31309         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31310         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31311         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31312         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31313         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31314         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31315         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31316         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31317         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31318         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31319         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31320         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31321         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31322         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31323         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31324         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31325         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31326         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31327         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31328         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31329         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31330         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31331         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31332         Add more languages and countries for Sami, Sorbian. Add more countries
31333         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31334         for Pashto. Change country for Syriac, Tswana.
31335
31336 2009-12-21  Eric Blake  <ebb9@byu.net>
31337
31338         test-utimens: avoid spurious failure
31339         * tests/test-chown.h (nap): Factor...
31340         * tests/nap.h: ...into new file.
31341         * tests/test-lchown.h (nap): Avoid duplication.
31342         * tests/test-utimens-common.h (nap): Use shared implementation,
31343         necessary on file systems with 1-second resolution.
31344         * modules/chown-tests (Files): Include new file.
31345         * modules/fdutimensat-tests (Files): Likewise.
31346         * modules/futimens-tests (Files): Likewise.
31347         * modules/lchown-tests (Files): Likewise.
31348         * modules/openat-tests (Files): Likewise.
31349         * modules/utimens-tests (Files): Likewise.
31350         * modules/utimensat-tests (Files): Likewise.
31351
31352 2009-12-19  Eric Blake  <ebb9@byu.net>
31353
31354         futimens, utimensat: work around Linux bug
31355         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31356         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31357         * lib/utimensat.c (rpl_utimensat): Work around it.
31358         * lib/futimens.c (rpl_futimens): Adjust comment.
31359
31360         utimens: work around Linux ctime bug
31361         * lib/utimens.c (detect_ctime_bug): New helper function.
31362         (update_timespec): Differentiate between workaround needed for
31363         this bug vs. what is needed for systems that lack utimensat.
31364         (fdutimens, lutimens): Work around bug.
31365
31366         utimens: check for ctime update
31367         * tests/test-utimens-common.h (check_ctime): Define.
31368         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31369         * tests/test-futimens.h (test_futimens): Likewise.
31370         * tests/test-lutimens.h (test_lutimens): Likewise.
31371         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31372         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31373
31374 2009-12-19  Bruno Haible  <bruno@clisp.org>
31375
31376         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31377         * tests/test-dprintf-posix2.sh: New file.
31378         * tests/test-dprintf-posix2.c: New file.
31379         * modules/dprintf-posix-tests (Files): Add them.
31380         (configure.ac): Check for getrlimit and setrlimit.
31381         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31382
31383 2009-12-19  Bruno Haible  <bruno@clisp.org>
31384
31385         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31386         * tests/test-fprintf-posix3.sh: New file.
31387         * tests/test-fprintf-posix3.c: New file.
31388         * modules/fprintf-posix-tests (Files): Add them.
31389         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31390
31391 2009-12-19  Eric Blake  <ebb9@byu.net>
31392
31393         dirfd: fix prototype
31394         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31395         * lib/dirfd.c (dirfd): Likewise.
31396
31397         canonicalize: reduce memory usage
31398         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31399         allocation to size.
31400         Reported by Solar Designer <solar@openwall.com>.
31401
31402 2009-12-19  Bruno Haible  <bruno@clisp.org>
31403
31404         New module attribute 'Applicability'.
31405         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31406         * gnulib-tool: New option --extract-applicability.
31407         (func_usage): Document it.
31408         (sed_extract_prog): Recognize it.
31409         (func_get_applicability): New function.
31410         (func_import): Generalize handling of 'link-warning' module.
31411         * modules/link-warning (Applicability): New section.
31412         * modules/arg-nonnull (Applicability): New section.
31413         Repoted by Simon Josefsson <simon@josefsson.org>.
31414
31415 2009-12-19  Bruno Haible  <bruno@clisp.org>
31416
31417         fflush: tweak
31418         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31419         * lib/fseeko.c (rpl_fseeko): Likewise.
31420
31421 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31422
31423         * lib/gl_list.h: Fix typo in comment.
31424
31425 2009-12-16  Eric Blake  <ebb9@byu.net>
31426
31427         fcntl: use to simplify other modules
31428         * modules/cloexec (Depends-on): Add fcntl.
31429         * modules/fchdir (Depends-on): Likewise.
31430         * modules/fd-safer-flag (Depends-on): Likewise.
31431         * modules/unistd-safer (Depends-on): Likewise.
31432         * modules/dup3 (configure.ac): Set module indicator.
31433         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31434         missing.
31435         * lib/fchdir.c (_gl_register_dup): Fix comment.
31436         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31437         * lib/dup-safer.c (dup_safer): Likewise.
31438         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31439         * lib/dup3.c (dup3): Likewise.
31440         * tests/test-fchdir.c (main): Enhance test.
31441         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31442
31443         fcntl: port portions of fcntl to mingw
31444         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31445         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31446         replacement for mingw.
31447         * modules/fcntl (Description): Update.
31448         (Depends-on): Add dup2.
31449         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31450         * modules/fcntl-h (Makefile.am): Substitute it.
31451         * lib/fcntl.in.h (fcntl): Update declaration.
31452         (F_DUPFD, F_GETFD): New macros, when needed.
31453         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31454         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31455         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31456         we now guarantee.
31457
31458         fcntl: work around cygwin bug in F_DUPFD
31459         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31460         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31461         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31462         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31463         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31464
31465         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31466         * modules/fcntl (Files): List new files.
31467         (configure.ac): Run a test.
31468         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31469         * lib/fcntl.c (rpl_fcntl): Likewise.
31470         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31471         (gl_FCNTL_H): Always replace fcntl.h.
31472         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31473         * lib/fcntl.in.h (fcntl): Declare replacement.
31474         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31475         needed, plus a witness.
31476         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31477         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31478         * tests/test-fcntl.c: New file.
31479         * modules/fcntl-tests: Likewise.
31480
31481         binary-io: avoid potential compilation warning
31482         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31483         directives.
31484
31485         fflush: avoid compilation error on NetBSD
31486         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31487         between off_t and fpos_t, since the latter is sometimes a struct.
31488         * lib/fseeko.c (rpl_fseeko): Likewise.
31489         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31490
31491 2009-12-15  Eric Blake  <ebb9@byu.net>
31492
31493         fcntl-h, stdio, sys_ioctl: fix declarations
31494         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31495         function must not take arguments.
31496         * lib/sys_ioctl.in.h (ioctl): Likewise.
31497         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31498         (open): Add a link warning.
31499
31500 2009-12-15  Jim Meyering  <meyering@redhat.com>
31501
31502         areadlink, areadlink-with-size: relax license to LGPLv2+
31503         * modules/areadlink (License): Relax to LGPLv2+.
31504         * modules/areadlink-with-size (License): Likewise.
31505
31506 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31507             Bruno Haible  <bruno@clisp.org>
31508
31509         *printf: Fix memory leak.
31510         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31511         * lib/vfprintf.c (vfprintf): Likewise.
31512         * lib/dprintf.c (dprintf): Likewise.
31513         * lib/vdprintf.c (vdprintf): Likewise.
31514
31515 2009-12-14  Eric Blake  <ebb9@byu.net>
31516
31517         accept4: adjust module dependencies
31518         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31519
31520         utimens: one more try at avoiding compiler warning
31521         * lib/utimens.c (lutimens): Lower scope of result.
31522
31523 2009-12-13  Bruno Haible  <bruno@clisp.org>
31524
31525         Move the malloc checking from module 'list' to new module 'xlist'.
31526         * modules/xlist: New file.
31527         * lib/gl_xlist.h: New file.
31528         * lib/gl_xlist.c: New file.
31529         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31530         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31531         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31532         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31533         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31534         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31535         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31536         gl_sortedlist_nx_add): New declarations.
31537         (struct gl_list_implementation): Rename and change methods accordingly.
31538         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31539         (gl_list_nx_create): Renamed from gl_list_create.
31540         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31541         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31542         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31543         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31544         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31545         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31546         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31547         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31548         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31549         gl_list_create_empty.
31550         (gl_list_nx_create): Renamed from gl_list_create.
31551         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31552         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31553         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31554         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31555         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31556         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31557         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31558         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31559         * lib/gl_array_list.c: Don't include xalloc.h.
31560         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31561         NULL upon out-of-memory.
31562         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31563         out-of-memory.
31564         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31565         Change return type to 'int'.
31566         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31567         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31568         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31569         upon out-of-memory.
31570         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31571         upon out-of-memory.
31572         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31573         upon out-of-memory.
31574         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31575         upon out-of-memory.
31576         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31577         out-of-memory.
31578         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31579         Update.
31580         (gl_array_list_implementation): Update.
31581         * lib/gl_carray_list.c: Don't include xalloc.h.
31582         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31583         Return NULL upon out-of-memory.
31584         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31585         out-of-memory.
31586         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31587         Change return type to 'int'.
31588         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31589         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31590         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31591         upon out-of-memory.
31592         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31593         upon out-of-memory.
31594         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31595         out-of-memory.
31596         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31597         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31598         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31599         Update.
31600         (gl_carray_list_implementation): Update.
31601         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31602         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31603         gl_linked_create_empty. Return NULL upon out-of-memory.
31604         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31605         out-of-memory.
31606         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31607         Change return type to 'int'. Return -1 upon out-of-memory.
31608         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31609         out-of-memory.
31610         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31611         upon out-of-memory.
31612         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31613         upon out-of-memory.
31614         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31615         NULL upon out-of-memory.
31616         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31617         upon out-of-memory.
31618         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31619         out-of-memory.
31620         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31621         Update.
31622         * lib/gl_linked_list.c: Don't include xalloc.h.
31623         (gl_linked_list_implementation): Update.
31624         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31625         (add_to_bucket): Change return type to 'int'.
31626         (gl_linkedhash_list_implementation): Update.
31627         * lib/gl_anytree_list1.h (free_subtree): New function.
31628         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31629         gl_tree_create_empty. Return NULL upon out-of-memory.
31630         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31631         Change return type to 'int'. Return -1 upon out-of-memory.
31632         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31633         out-of-memory.
31634         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31635         (gl_tree_remove_node): New function, moved here from
31636         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31637         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31638         Update.
31639         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31640         malloc, not xmalloc. Return NULL upon out-of-memory.
31641         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31642         out-of-memory.
31643         (gl_tree_remove_node_from_tree): New function, extracted from
31644         gl_tree_remove_node.
31645         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31646         upon out-of-memory.
31647         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31648         out-of-memory.
31649         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31650         upon out-of-memory.
31651         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31652         upon out-of-memory.
31653         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31654         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31655         not xmalloc. Return NULL upon out-of-memory.
31656         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31657         out-of-memory.
31658         (gl_tree_remove_node_from_tree): New function, extracted from
31659         gl_tree_remove_node.
31660         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31661         upon out-of-memory.
31662         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31663         out-of-memory.
31664         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31665         upon out-of-memory.
31666         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31667         upon out-of-memory.
31668         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31669         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31670         gl_anytree_list1.h before gl_anyavltree_list2.h.
31671         (gl_avltree_list_implementation): Update.
31672         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31673         gl_anytree_list1.h before gl_anyavltree_list2.h.
31674         (gl_rbtree_list_implementation): Update.
31675         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31676         Change return type to 'int'. Return -1 upon out-of-memory. Use
31677         __builtin_expect.
31678         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31679         (gl_avltreehash_list_implementation): Update.
31680         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31681         (gl_rbtreehash_list_implementation): Update.
31682         * modules/array-list (Depends-on): Remove xalloc.
31683         * modules/carray-list (Depends-on): Likewise.
31684         * modules/linked-list (Depends-on): Likewise.
31685         * modules/linkedhash-list (Depends-on): Likewise.
31686         * modules/avltree-list (Depends-on): Likewise.
31687         * modules/rbtree-list (Depends-on): Likewise.
31688         * modules/avltreehash-list (Depends-on): Likewise.
31689         * modules/rbtreehash-list (Depends-on): Likewise.
31690
31691         * modules/xsublist: New file.
31692         * lib/gl_xsublist.h: New file.
31693         * lib/gl_xsublist.c: New file.
31694         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31695         (gl_sublist_nx_create): New declaration.
31696         * lib/gl_sublist.c: Don't include xalloc.h.
31697         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31698         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31699         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31700         Change return type to 'int'. Return -1 upon out-of-memory.
31701         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31702         upon out-of-memory.
31703         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31704         NULL upon out-of-memory.
31705         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31706         upon out-of-memory.
31707         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31708         NULL upon out-of-memory.
31709         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31710         NULL upon out-of-memory.
31711         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31712         upon out-of-memory.
31713         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31714         (gl_sublist_list_implementation): Update.
31715         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31716         upon out-of-memory.
31717         * modules/sublist (Depends-on): Remove xalloc.
31718
31719         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31720         * tests/test-carray_list.c: Likewise.
31721         * tests/test-linked_list.c: Likewise.
31722         * tests/test-linkedhash_list.c: Likewise.
31723         * tests/test-avltree_list.c: Likewise.
31724         * tests/test-rbtree_list.c: Likewise.
31725         * tests/test-avltreehash_list.c: Likewise.
31726         * tests/test-rbtreehash_list.c: Likewise.
31727         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31728         * modules/carray-list-tests (Makefile.am): Likewise.
31729         * modules/linked-list-tests (Makefile.am): Likewise.
31730         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31731         * modules/avltree-list-tests (Makefile.am): Likewise.
31732         * modules/rbtree-list-tests (Makefile.am): Likewise.
31733         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31734         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31735
31736         * NEWS: Mention the changes.
31737
31738         * lib/clean-temp.c: Include gl_xlist.h.
31739         * modules/clean-temp (Depends-on): Add xlist.
31740
31741         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31742         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31743
31744         * tests/test-array_oset.c: Include gl_xlist.h.
31745         * modules/array-oset-tests (Depends-on): Add xlist.
31746
31747         Reported by José E. Marchesi <jemarch@gnu.org>.
31748
31749 2009-12-13  Bruno Haible  <bruno@clisp.org>
31750
31751         Move the malloc checking from module 'oset' to new module 'xoset'.
31752         * modules/xoset: New file.
31753         * lib/gl_xoset.h: New file.
31754         * lib/gl_xoset.c: New file.
31755         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31756         declarations.
31757         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31758         (struct gl_oset_implementation): Rename and change methods accordingly.
31759         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31760         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31761         'int'. Mark as __warn_unused_result__.
31762         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31763         gl_oset_create_empty.
31764         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31765         'int'.
31766         * lib/gl_array_oset.c: Don't include xalloc.h.
31767         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31768         malloc, not xmalloc.
31769         (grow): Change return type to 'int'. Don't call xalloc_die.
31770         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31771         to 'int'.
31772         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31773         'int'.
31774         (gl_array_oset_implementation): Update.
31775         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31776         gl_tree_create_empty.
31777         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31778         'int'.
31779         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31780         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31781         xmalloc.
31782         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31783         not xmalloc.
31784         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31785         xmalloc.
31786         (gl_avltree_oset_implementation): Update.
31787         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31788         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31789         xmalloc.
31790         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31791         not xmalloc.
31792         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31793         xmalloc.
31794         (gl_rbtree_oset_implementation): Update.
31795         * modules/array-oset (Depends-on): Remove xalloc.
31796         * modules/avltree-oset (Depends-on): Likewise.
31797         * modules/rbtree-oset (Depends-on): Likewise.
31798         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31799         * tests/test-avltree_oset.c: Likewise.
31800         * tests/test-rbtree_oset.c: Likewise.
31801         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31802         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31803         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31804         * NEWS: Mention the change.
31805
31806 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31807
31808         maint.mk: allow a project to override release-prep commands
31809         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31810         commands into a new rule.
31811         (release-prep): New rule.
31812         (release-prep-hook): New overridable variable.
31813
31814 2009-12-13  Bruno Haible  <bruno@clisp.org>
31815
31816         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31817
31818 2009-12-13  Jim Meyering  <meyering@redhat.com>
31819
31820         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31821         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31822
31823 2009-12-12  Bruno Haible  <bruno@clisp.org>
31824
31825         duplocale: Tweak.
31826         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31827
31828 2009-12-12  Karl Berry  <karl@gnu.org>
31829
31830         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31831
31832 2009-12-12  Bruno Haible  <bruno@clisp.org>
31833
31834         * m4/po.m4: Undo incorrect untabification.
31835
31836 2009-12-12  Bruno Haible  <bruno@clisp.org>
31837
31838         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31839         * modules/c-strtod (Depends-on): Add locale.
31840         * modules/c-strtold (Depends-on): Likewise.
31841
31842 2009-12-12  Bruno Haible  <bruno@clisp.org>
31843
31844         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31845
31846 2009-12-11  Eric Blake  <ebb9@byu.net>
31847
31848         setenv: relax requirement in light of POSIX ruling
31849         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31850         not NULL.
31851         * tests/test-setenv.c (main): Relax test.
31852         * tests/test-unsetenv.c (main): Likewise.
31853         * doc/posix-functions/setenv.texi (setenv): Document this.
31854         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31855
31856 2009-12-11  Bruno Haible  <bruno@clisp.org>
31857
31858         New module 'fd-safer-flag'.
31859         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31860         * lib/dup-safer.c (dup_safer_flag): Remove function.
31861         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31862         * lib/fd-safer.c (fd_safer_flag): Remove function.
31863         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31864         * modules/cloexec (configure.ac): Drop indicator macro.
31865         * modules/fd-safer-flag: New file.
31866         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31867         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31868         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31869
31870 2009-12-11  Bruno Haible  <bruno@clisp.org>
31871
31872         Tests for module 'nl_langinfo'.
31873         * modules/nl_langinfo-tests: New file.
31874         * tests/test-nl_langinfo.sh: New file.
31875         * tests/test-nl_langinfo.c: New file.
31876
31877         New module 'nl_langinfo'.
31878         * lib/nl_langinfo.c: New file.
31879         * m4/nl_langinfo.m4: New file.
31880         * modules/nl_langinfo: New file.
31881         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31882
31883 2009-12-11  Bruno Haible  <bruno@clisp.org>
31884
31885         Tests for module 'langinfo'.
31886         * modules/langinfo-tests: New file.
31887         * tests/test-langinfo.c: New file.
31888
31889         New module 'langinfo'.
31890         * lib/langinfo.in.h: New file.
31891         * m4/langinfo_h.m4: New file.
31892         * modules/langinfo: New file.
31893         * doc/posix-headers/langinfo.texi: Mention the new module.
31894
31895 2009-12-11  Bruno Haible  <bruno@clisp.org>
31896
31897         * lib/config.charset: Untabify.
31898
31899 2009-12-11  Bruno Haible  <bruno@clisp.org>
31900
31901         * modules/unistd-safer (configure.ac): Drop indicator macro.
31902
31903 2009-12-11  Bruno Haible  <bruno@clisp.org>
31904
31905         Move pipe2-safer code to its own file.
31906         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31907         * lib/pipe-safer.c (pipe2_safer): Remove function.
31908         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31909         (Makefile.am): Add it to lib_SOURCES.
31910
31911 2009-12-10  Bruno Haible  <bruno@clisp.org>
31912
31913         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31914
31915 2009-12-10  Bruno Haible  <bruno@clisp.org>
31916
31917         Declare which arguments expect non-NULL values, for GCC and clang.
31918         * build-aux/arg-nonnull.h: New file.
31919         * modules/arg-nonnull: New file.
31920         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31921         (inet_ntop, inet_pton): Use it.
31922         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31923         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31924         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31925         (open, openat): Use it.
31926         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31927         (fnmatch): Use it.
31928         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31929         (getopt, getopt_long, getopt_long_only): Use it.
31930         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31931         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31932         Use it.
31933         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31934         (iconv_open): Use it.
31935         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31936         (strtoimax, strtoumax): Use it.
31937         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31938         (duplocale): Use it.
31939         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31940         (frexp, frexpl): Use it.
31941         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31942         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31943         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31944         (tsearch, tfind, tdelete, twalk): Use it.
31945         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31946         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31947         sigpending): Use it.
31948         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31949         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31950         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31951         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31952         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31953         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31954         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31955         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31956         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31957         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31958         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31959         Use it.
31960         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31961         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31962         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31963         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31964         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31965         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31966         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31967         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31968         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31969         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31970         strtoull, unsetenv): Use it.
31971         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31972         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31973         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31974         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31975         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31976         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31977         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31978         (strcasecmp, strncasecmp): Use it.
31979         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31980         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31981         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31982         rpl_setsockopt): Use it.
31983         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31984         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31985         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31986         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31987         (gettimeofday): Use it.
31988         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31989         (times): Use it.
31990         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31991         (uname): Use it.
31992         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31993         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31994         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31995         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31996         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31997         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31998         unlinkat, write): Use it.
31999         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32000         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32001         * lib/argv-iter.h: Include arg-nonnull.h.
32002         (_ATTRIBUTE_NONNULL_): Remove macro.
32003         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32004         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32005         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32006         optimization.
32007         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32008         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32009         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32010         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32011         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32012         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32013         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32014         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32015         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32016         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32017         * modules/dirent (Depends-on): Add arg-nonnull.
32018         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32019         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32020         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32021         * modules/fnmatch (Depends-on): Add arg-nonnull.
32022         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32023         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32024         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32025         * modules/glob (Depends-on): Add arg-nonnull.
32026         (Makefile.am): Insert arg-nonnull.h into glob.h.
32027         * modules/iconv_open (Depends-on): Add arg-nonnull.
32028         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32029         * modules/inttypes (Depends-on): Add arg-nonnull.
32030         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32031         * modules/locale (Depends-on): Add arg-nonnull.
32032         (Makefile.am): Insert arg-nonnull.h into locale.h.
32033         * modules/math (Depends-on): Add arg-nonnull.
32034         (Makefile.am): Insert arg-nonnull.h into math.h.
32035         * modules/netdb (Depends-on): Add arg-nonnull.
32036         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32037         * modules/search (Depends-on): Add arg-nonnull.
32038         (Makefile.am): Insert arg-nonnull.h into search.h.
32039         * modules/signal (Depends-on): Add arg-nonnull.
32040         (Makefile.am): Insert arg-nonnull.h into signal.h.
32041         * modules/spawn (Depends-on): Add arg-nonnull.
32042         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32043         * modules/stdio (Depends-on): Add arg-nonnull.
32044         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32045         * modules/stdlib (Depends-on): Add arg-nonnull.
32046         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32047         * modules/string (Depends-on): Add arg-nonnull.
32048         (Makefile.am): Insert arg-nonnull.h into string.h.
32049         * modules/strings (Depends-on): Add arg-nonnull.
32050         (Makefile.am): Insert arg-nonnull.h into strings.h.
32051         * modules/sys_socket (Depends-on): Add arg-nonnull.
32052         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32053         * modules/sys_stat (Depends-on): Add arg-nonnull.
32054         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32055         * modules/sys_time (Depends-on): Add arg-nonnull.
32056         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32057         * modules/sys_times (Depends-on): Add arg-nonnull.
32058         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32059         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32060         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32061         * modules/time (Depends-on): Add arg-nonnull.
32062         (Makefile.am): Insert arg-nonnull.h into time.h.
32063         * modules/unistd (Depends-on): Add arg-nonnull.
32064         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32065         * modules/wchar (Depends-on): Add arg-nonnull.
32066         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32067         * modules/argv-iter (Depends-on): Add arg-nonnull.
32068         * tests/test-canonicalize.c (null_ptr): New function.
32069         (main): Use it.
32070         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32071         (main): Use it.
32072         * tests/test-memmem.c (null_ptr): New function.
32073         (main): Use it.
32074         Reported by Jim Meyering.
32075
32076 2009-12-10  Bruno Haible  <bruno@clisp.org>
32077
32078         Use spaces for indentation, not tabs.
32079         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32080         * m4/*.m4: Untabify.
32081         * build-aux/*.h: Untabify.
32082         * tests/**/*.[hc]: Untabify.
32083         * README: New section "Indent with spaces, not TABs", based on
32084         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32085         * NEWS: Mention the change.
32086
32087 2009-12-10  Bruno Haible  <bruno@clisp.org>
32088
32089         pty test: Fix link error.
32090         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32091         test_pty_LDADD.
32092
32093 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32094
32095         * modules/pty: New file.
32096         * modules/pty-tests: New file.
32097         * m4/pty.m4: New file.
32098         * tests/test-pty.c: New file.
32099         * doc/glibc-headers/pty.texi: Modified.
32100         * doc/glibc-functions/forkpty.texi: Modified.
32101         * doc/glibc-functions/openpty.texi: Modified.
32102
32103 2009-12-10  Bruno Haible  <bruno@clisp.org>
32104
32105         Avoid syntax error in C++ mode.
32106         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32107
32108 2009-12-10  Bruno Haible  <bruno@clisp.org>
32109
32110         Use sed with option -e.
32111         * gnulib-tool (func_version, func_emit_copyright_notice,
32112         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32113         option -e to sed.
32114         * modules/link-warning (Makefile.am): Likewise.
32115
32116 2009-12-10  Jim Meyering  <meyering@redhat.com>
32117
32118         mgetgroups: do not write bytes beyond end of malloc'd buffer
32119         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32120         username, we call getgroups with a one-element-shorter buffer,
32121         but still told it the length was original, max_n_groups.
32122
32123 2009-12-09  Eric Blake  <ebb9@byu.net>
32124
32125         cloexec: relax license
32126         * modules/cloexec (Maintainer): Add myself.
32127         (License): Use LGPL, not GPL.
32128
32129         link-warning: optimize generation
32130         * modules/link-warning (Makefile.am): Reduce process usage.
32131
32132 2009-12-09  Bruno Haible  <bruno@clisp.org>
32133
32134         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32135         workaround was added on 2009-11-17.
32136
32137 2009-12-09  Jim Meyering  <meyering@redhat.com>
32138             Bruno Haible  <bruno@clisp.org>
32139
32140         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32141         * modules/link-warning (Makefile.am): Make the comment-removing sed
32142         command more robust in the face of bootstrap-prepended comment lines.
32143
32144 2009-12-09  Bruno Haible  <bruno@clisp.org>
32145
32146         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32147         most one group.
32148
32149 2009-12-09  Simon Josefsson <simon@josefsson.org>
32150             Bruno Haible  <bruno@clisp.org>
32151
32152         * build-aux/link-warning.h: Add copyright notice.
32153         * modules/link-warning (Makefile.am): Generate link-warning.h from
32154         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32155         * NEWS: Mention change in link-warning module.
32156         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32157         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32158         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32159         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32160         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32161         * modules/math (Makefile.am): Add dependency to math.h.
32162         * modules/search (Makefile.am): Add dependency to search.h.
32163         * modules/signal (Makefile.am): Add dependency to signal.h.
32164         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32165         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32166         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32167         * modules/string (Makefile.am): Add dependency to string.h.
32168         * modules/strings (Makefile.am): Add dependency to strings.h.
32169         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32170         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32171         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32172         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32173         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32174         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32175         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32176         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32177         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32178
32179 2009-12-09  Bruno Haible  <bruno@clisp.org>
32180
32181         fchdir: Optimize away rpl_fstat when possible.
32182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32183         REPLACE_OPEN_DIRECTORY.
32184         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32185
32186 2009-12-09  Bruno Haible  <bruno@clisp.org>
32187
32188         * lib/fchdir.c: Update comment.
32189
32190 2009-12-09  Bruno Haible  <bruno@clisp.org>
32191
32192         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32193
32194 2009-12-08  Eric Blake  <ebb9@byu.net>
32195
32196         fchdir: avoid memory leak on re-registration.
32197         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32198
32199 2009-12-08  Jim Meyering  <meyering@redhat.com>
32200
32201         init.sh: avoid Solaris 10 /bin/sh portability problem
32202         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32203         sourced script:
32204           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32205           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32206           bar
32207         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32208         and two tests used that idiom.
32209         * tests/init.sh: Update suggested usage comments.
32210         (path_prepend_): New function, to be used in place
32211         of the --src-path=DIR option.
32212         (setup_): Move PATH-prepending code into path_prepend_.
32213         * tests/test-pread.sh: Adapt to new usage.
32214         * tests/test-xalloc-die.sh: Likewise.
32215
32216 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32217
32218         * doc/gnulib.texi (Glibc pty.h): Add.
32219         * doc/glibc-functions/forkpty.texi: Add.
32220         * doc/glibc-functions/openpty.texi: Add.
32221         Suggested by Bruno Haible.
32222
32223 2009-12-08  Eric Blake  <ebb9@byu.net>
32224
32225         fchdir: fix logic bugs
32226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32227         * tests/test-fchdir.c (main): Enhance test.
32228         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32229         is in use.
32230
32231         dup2: fix logic bugs
32232         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32233         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32234         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32235         exists.
32236         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32237
32238 2009-12-07  Eric Blake  <ebb9@byu.net>
32239
32240         unlink: fix m4 detection
32241         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32242
32243         unistd-safer: add unit test
32244         * modules/unistd-safer-tests: New file.
32245         * tests/test-dup-safer.c: Likewise.
32246         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32247         * tests/test-dup2.c (setmode): Likewise.
32248         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32249
32250         cloexec: preserve text vs. binary across dup_cloexec
32251         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32252         mode.
32253         * modules/dup2-tests (Depends-on): Add binary-io.
32254         * modules/cloexec-tests (Depends-on): Likewise.
32255         * tests/test-dup2.c (setmode, is_mode): New helpers.
32256         (main): Add tests that translation mode is preserved.
32257         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32258         Reported by Bruno Haible.
32259
32260         mgetgroups: reduce duplicate listings
32261         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32262         resulting array.
32263         * tests/test-chown.h (test_chown): Simplify client.
32264         * tests/test-lchown.h (test_lchown): Likewise.
32265
32266 2009-12-06  Bruno Haible  <bruno@clisp.org>
32267
32268         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32269         value.
32270
32271 2009-12-06  Bruno Haible  <bruno@clisp.org>
32272
32273         * lib/progname.c: Include stdio.h, stdlib.h.
32274         (set_program_name): Reject a NULL argument.
32275
32276 2009-12-05  Eric Blake  <ebb9@byu.net>
32277
32278         pipe2-safer: new module
32279         * modules/pipe2-safer: New file.
32280         * lib/unistd-safer.h (pipe2_safer): New prototype.
32281         * lib/unistd--.h (pipe2): New wrapper.
32282         * lib/pipe-safer.c (pipe2_safer): New function.
32283         * modules/pipe (Depends-on): Add pipe2-safer.
32284         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32285
32286         stdlib-safer: preserve cloexec flag for mkostemp[s]
32287         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32288         fd_safer_flag.
32289
32290         unistd-safer: allow preservation of cloexec status via flag
32291         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32292         prototypes.
32293         * lib/dup-safer.c (dup_safer_flag): New function.
32294         * lib/fd-safer.c (fd_safer_flag): Likewise.
32295         * modules/cloexec (configure.ac): Set witness.
32296
32297         test-dup2: enhance test
32298         * modules/dup2-tests (Depends-on): Add cloexec.
32299         * tests/test-dup2.c (main): Enhance test.
32300
32301         cloexec: add dup_cloexec
32302         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32303         header and comments.
32304         * lib/cloexec.c (set_cloexec_flag): Add comments.
32305         (dup_cloexec): New function, with mingw implementation borrowed
32306         from...
32307         * lib/w32spawn.h (dup_noinherit): ...here.
32308         * modules/execute (Depends-on): Add cloexec.
32309         * modules/pipe (Depends-on): Likewise.
32310         * modules/cloexec (Depends-on): Add dup2.
32311         * modules/cloexec-tests (Files): New file.
32312         * tests/test-cloexec.c: Likewise.
32313
32314         test-xalloc-die: fix test for mingw
32315         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32316         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32317         directory and .exe suffix off argv[0] output.
32318
32319         test-fseeko: fix test for mingw
32320         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32321         than undefining fseek, so test will pass on mingw.
32322
32323 2009-12-05  Bruno Haible  <bruno@clisp.org>
32324
32325         * lib/progname.h (set_program_name): Clarify specification.
32326         * lib/progname.c (set_program_name): Likewise.
32327         Reported by Jim Meyering.
32328
32329 2009-12-05  Jim Meyering  <meyering@redhat.com>
32330
32331         maint.mk: backslash-escape parens in default regexp
32332         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32333         backslash-escape the literal parentheses.
32334
32335         maint.mk: news-date-check: use grep -E
32336         * top/maint.mk (today): Define a Make variable, not a...
32337         (news-date-check): ...shell variable.
32338         (news-date-regexp): Use the Make variable.
32339         Use grep's -E option.  Change the failing diagnostic to mention
32340         the variable, $(news-date-regexp).
32341
32342 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32343
32344         maintainer-makefile: allow customization of NEWS entry format
32345         * top/maint.mk (news-date-regexp): New overridable variable.
32346         (news-date-check): Use it.
32347
32348 2009-12-04  Eric Blake  <ebb9@byu.net>
32349
32350         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32351         * lib/mgetgroups.h (xgetgroups): New prototype.
32352         * lib/mgetgroups.c (xgetgroups): New wrapper.
32353         (mgetgroups): Handle ENOSYS.
32354         * modules/mgetgroups (Depends-on): Add realloc.
32355         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32356
32357         mgetgroups: avoid argument promotion issues with -1
32358         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32359         for invalid gid_t.
32360         * tests/test-chown.h (getegid, test_chown): Likewise.
32361         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32362
32363 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32364
32365         exclude: Fix header file problems.
32366         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32367
32368 2009-12-01  Jim Meyering  <meyering@redhat.com>
32369
32370         fts: fts_open: do not let an empty string cause immediate failure
32371         This is required in support of GNU rm, for which the command
32372         "rm A '' B" must process and remove both A and B, in spite of
32373         the empty string argument.
32374         * lib/fts.c (fts_open): Do not let the presence of an empty string
32375         cause fts_open to fail immediately.  Most fts-using tools must be
32376         able to process all arguments, in order, and can be expected to
32377         diagnose such arguments themselves.
32378
32379 2009-11-30  Eric Blake  <ebb9@byu.net>
32380
32381         utimens: fix compilation error
32382         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32383         Declare variable at right scope.
32384
32385 2009-11-29  Jim Meyering  <meyering@redhat.com>
32386
32387         bootstrap: handle perl-5.11's changed --version output
32388         * build-aux/bootstrap (get_version): Handle perl separately,
32389         since perl-5.11's --version output is different.
32390
32391 2009-11-28  Jim Meyering  <meyering@redhat.com>
32392
32393         userspec: depend on the inttostr module, too
32394         * modules/userspec (Depends-on): Add inttostr.
32395
32396         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32397         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32398         number of MAXUID when it evaluates to (uid_t) -1.
32399         Likewise for group ID.  Reported by Matt McCutchen in
32400         <http://savannah.gnu.org/bugs/?28113>
32401
32402         userspec: reformat to use spaces, not TABs
32403         * lib/userspec.c: Expand TABs to spaces.
32404         Add Emacs' "indent-tabs-mode: nil" hint.
32405
32406 2009-11-27  Eric Blake  <ebb9@byu.net>
32407
32408         getopt-gnu: flush out another BSD bug
32409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32410         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32411         flush out BSD bug.
32412         * tests/test-getopt.h (test_getopt): End lists with NULL.
32413         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32414         (test_getopt_long_posix): Enhance test.
32415         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32416         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32417         getopt-gnu.
32418         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32419         Likewise.
32420
32421 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32422
32423         * modules/idpriv-droptemp-tests (Notice): Fix text.
32424
32425 2009-11-27  Jim Meyering  <meyering@redhat.com>
32426
32427         test-xalloc-die: avoid spurious failure due to libtool argv difference
32428         In a libtool-enabled project, this test would fail due to a difference
32429         in the emitted program name, e.g.,
32430         -test-xalloc-die: memory exhausted
32431         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32432         Use program to avoid that.
32433         * modules/xalloc-die-tests (Depends-on): Add progname.
32434         * tests/test-xalloc-die.c: Include progname.h".
32435         (program_name): Remove decl.
32436         (main): Call set_program_name.
32437         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32438
32439 2009-11-26  Richard Jones  <rjones@redhat.com>
32440
32441         w32sock: leave win32 error in place.
32442         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32443
32444 2009-11-26  Eric Blake  <ebb9@byu.net>
32445
32446         init.sh: suggest to use skip_ and fail_ functions in comments
32447         * tests/init.sh: Add a sentence.
32448
32449 2009-11-25  Bruno Haible  <bruno@clisp.org>
32450
32451         init.sh: add documentation in comments
32452         * tests/init.sh: Add some developer and user documentation.
32453
32454 2009-11-26  Jim Meyering  <meyering@redhat.com>
32455
32456         init.sh: accommodate even those who specify bogus srcdir manually
32457         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32458         configure-time tests to be sanitized, so that there is no need to
32459         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32460         (with no double quotes) suffices.  However, since tests may be
32461         invoked manually, and since you may explicitly set srcdir to the
32462         name of a directory containing spaces, do quote its uses here.
32463         * tests/test-pread.sh: Likewise.
32464         Suggested by Bruno Haible.
32465
32466         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32467         * tests/test-pread.sh: Write no data into the pipe, because
32468         test-pread actually reads none.  This avoids a diagnostic,
32469         "bash: echo: write error: Broken pipe", that arises in the unusual
32470         event something is ignoring SIGPIPE, and might be interpreted
32471         as some sort of failure.  Reported by Bruno Haible.
32472
32473 2009-11-25  Jim Meyering  <meyering@redhat.com>
32474
32475         test-pread: cover failure with ESPIPE and EINVAL
32476         * tests/test-pread.c (main): Test for failure, too.
32477         * tests/test-pread.sh: Invoke with stdin on a pipe.
32478         Suggested by Eric Blake.
32479
32480         pread: improvement and fix
32481         * modules/pread (Depends-on): Depend on lseek, for portability to
32482         e.g., mingw.  Suggested by Eric Blake.
32483         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32484
32485         unistd.in.h: correct declaration of pread
32486         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32487         Reported by Richard W.M. Jones.
32488
32489         test-pread.sh: distribute the test script
32490         * modules/pread-tests (Files): Include test-pread.sh.
32491
32492         test-pread.sh: clean up
32493         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32494         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32495         That is unnecessary, since it's always ".".
32496         Suggestion from Eric Blake.
32497
32498         test-pread.sh: make executable
32499         * tests/test-pread.sh: Set executable bit.
32500         Reported by Eric Blake.
32501
32502         correct typo in test-pread.sh
32503         * tests/test-pread.sh: Add #! line.
32504
32505         test pread
32506         * tests/test-pread.c: New file.
32507         * tests/test-pread.sh: Likewise.
32508         * modules/pread-tests: Likewise.
32509
32510         pread: new module
32511         * modules/pread: New file.
32512         * lib/unistd.in.h (pread): Define/declare.
32513         * lib/pread.c (pread): New file.
32514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32515         * modules/unistd (Makefile.am): Substitute witnesses.
32516         * doc/posix-functions/pread.texi (pread): Update.
32517         * MODULES.html.sh: Add pread.
32518
32519 2009-11-25  Jim Meyering  <meyering@redhat.com>
32520
32521         tests/init.sh: new file to be used via most *.sh tests
32522         * tests/init.sh: New file.
32523
32524 2009-11-25  Eric Blake  <ebb9@byu.net>
32525
32526         utimens: work around older Linux failure with symlinks
32527         * lib/utimens.c (lutimensat_works_really): New variable.
32528         (fdutimens, lutimens): Use it to manage kernels that support
32529         nanosecond times on files, but not on symlinks.
32530         Reported by OndÅ™ej Vašík.
32531
32532         utimes: fix configure grammar
32533         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32534
32535 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32536
32537         regex: Fix fastmap for multibyte character ranges.
32538         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32539         characters when a multibyte character range is included.
32540
32541 2009-11-22  Andy Wingo  <wingo@pobox.com>
32542
32543         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32544         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32545
32546 2009-11-24  Bruno Haible  <bruno@clisp.org>
32547
32548         doc: Most *_l functions exist in MacOS X 10.5.
32549         * doc/posix-functions/duplocale.texi: Update platforms list.
32550         * doc/posix-functions/freelocale.texi: Likewise.
32551         * doc/posix-functions/newlocale.texi: Likewise.
32552         * doc/posix-functions/uselocale.texi: Likewise.
32553         * doc/posix-functions/isalnum_l.texi: Likewise.
32554         * doc/posix-functions/isalpha_l.texi: Likewise.
32555         * doc/posix-functions/isblank_l.texi: Likewise.
32556         * doc/posix-functions/iscntrl_l.texi: Likewise.
32557         * doc/posix-functions/isdigit_l.texi: Likewise.
32558         * doc/posix-functions/isgraph_l.texi: Likewise.
32559         * doc/posix-functions/islower_l.texi: Likewise.
32560         * doc/posix-functions/isprint_l.texi: Likewise.
32561         * doc/posix-functions/ispunct_l.texi: Likewise.
32562         * doc/posix-functions/isspace_l.texi: Likewise.
32563         * doc/posix-functions/isupper_l.texi: Likewise.
32564         * doc/posix-functions/iswalnum_l.texi: Likewise.
32565         * doc/posix-functions/iswalpha_l.texi: Likewise.
32566         * doc/posix-functions/iswblank_l.texi: Likewise.
32567         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32568         * doc/posix-functions/iswctype_l.texi: Likewise.
32569         * doc/posix-functions/iswdigit_l.texi: Likewise.
32570         * doc/posix-functions/iswgraph_l.texi: Likewise.
32571         * doc/posix-functions/iswlower_l.texi: Likewise.
32572         * doc/posix-functions/iswprint_l.texi: Likewise.
32573         * doc/posix-functions/iswpunct_l.texi: Likewise.
32574         * doc/posix-functions/iswspace_l.texi: Likewise.
32575         * doc/posix-functions/iswupper_l.texi: Likewise.
32576         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32577         * doc/posix-functions/isxdigit_l.texi: Likewise.
32578         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32579         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32580         * doc/posix-functions/strcoll_l.texi: Likewise.
32581         * doc/posix-functions/strfmon_l.texi: Likewise.
32582         * doc/posix-functions/strftime_l.texi: Likewise.
32583         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32584         * doc/posix-functions/strxfrm_l.texi: Likewise.
32585         * doc/posix-functions/tolower_l.texi: Likewise.
32586         * doc/posix-functions/toupper_l.texi: Likewise.
32587         * doc/posix-functions/towctrans_l.texi: Likewise.
32588         * doc/posix-functions/towlower_l.texi: Likewise.
32589         * doc/posix-functions/towupper_l.texi: Likewise.
32590         * doc/posix-functions/wcscoll_l.texi: Likewise.
32591         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32592         * doc/posix-functions/wctrans_l.texi: Likewise.
32593         * doc/posix-functions/wctype_l.texi: Likewise.
32594         * doc/glibc-functions/strptime_l.texi: Likewise.
32595         * doc/glibc-functions/strtod_l.texi: Likewise.
32596         * doc/glibc-functions/strtof_l.texi: Likewise.
32597         * doc/glibc-functions/strtol_l.texi: Likewise.
32598         * doc/glibc-functions/strtold_l.texi: Likewise.
32599         * doc/glibc-functions/strtoll_l.texi: Likewise.
32600         * doc/glibc-functions/strtoul_l.texi: Likewise.
32601         * doc/glibc-functions/strtoull_l.texi: Likewise.
32602         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32603         * doc/glibc-functions/wcstod_l.texi: Likewise.
32604         * doc/glibc-functions/wcstof_l.texi: Likewise.
32605         * doc/glibc-functions/wcstol_l.texi: Likewise.
32606         * doc/glibc-functions/wcstold_l.texi: Likewise.
32607         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32608         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32609         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32610
32611 2009-11-24  Bruno Haible  <bruno@clisp.org>
32612
32613         duplocale: Fix logic bug.
32614         * lib/duplocale.c: Don't include <langinfo.h>.
32615         (_NL_LOCALE_NAME): Remove macro.
32616         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32617         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32618
32619 2009-11-23  Jim Meyering  <meyering@redhat.com>
32620
32621         test-update-copyright: don't hard-code /usr/bin/perl
32622         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32623         perl to print the current year.  Gilles Espinasse reported that
32624         the replaced use of perl was hard-coded as /usr/bin/perl.
32625
32626 2009-11-23  Bruno Haible  <bruno@clisp.org>
32627
32628         duplocale: Add support for glibc 2.3.x.
32629         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32630
32631 2009-11-22  Bruno Haible  <bruno@clisp.org>
32632
32633         vasnprintf: Tiny optimization.
32634         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32635         MacOS X.
32636
32637 2009-11-22  Bruno Haible  <bruno@clisp.org>
32638
32639         Tests for module 'duplocale'.
32640         * modules/duplocale-tests: New file.
32641         * tests/test-duplocale.c: New file.
32642
32643         New module 'duplocale'.
32644         * m4/duplocale.m4: New file.
32645         * lib/locale.in.h (duplocale): New declaration.
32646         * lib/duplocale.c: New file.
32647         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32648         gl_LOCALE_H_DEFAULTS): New macros.
32649         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32650         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32651         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32652         REPLACE_DUPLOCALE.
32653         * modules/duplocale: New file.
32654         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32655
32656 2009-11-22  Bruno Haible  <bruno@clisp.org>
32657
32658         * modules/locale-tests (configure.ac): Test for newlocale function.
32659         * tests/test-locale.c: When the system has extended locale functions,
32660         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32661
32662         locale: Make locale_t available when possible.
32663         * lib/locale.in.h: Include <xlocale.h> when it exists.
32664         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32665         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32666         * modules/locale (Depends-on): Add extensions.
32667         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32668         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32669
32670 2009-11-22  Bruno Haible  <bruno@clisp.org>
32671
32672         Add comments.
32673         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32674         invocation.
32675         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32676         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32677         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32678
32679 2009-11-22  Bruno Haible  <bruno@clisp.org>
32680
32681         error: account for the possibility of freopen (stdout).
32682         * lib/error.c: Include <unistd.h>.
32683         (flush_stdout): New function, extracted from error and error_at_line.
32684         Determine stdout's fd dynamically.
32685         (error, error_at_line): Invoke flush_stdout.
32686         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32687         * modules/error (Depends-on): Add unistd.
32688
32689 2009-11-22  Bruno Haible  <bruno@clisp.org>
32690
32691         diffseq: Add comment.
32692         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32693
32694 2009-11-22  Jim Meyering  <meyering@redhat.com>
32695
32696         c-stack: avoid defining an unused static function
32697         * lib/c-stack.c (find_stack_direction): Do not define this function
32698         when it will not be used.
32699
32700         diffseq: avoid spurious gcc warnings
32701         * lib/diffseq.h (IF_LINT2): Define.
32702         (compareseq): Use it to initialize two members of "part".
32703         This avoids two used-uninitialized warnings.
32704
32705 2009-11-21  Jim Meyering  <meyering@redhat.com>
32706
32707         c-stack: avoid "ignoring return value of `write'" warning
32708         * lib/c-stack.c: Include "ignore-value.h".
32709         (die): Explicitly ignore each write return value.
32710         * modules/c-stack (Depends-on): Add ignore-value.
32711
32712 2009-11-21  Bruno Haible  <bruno@clisp.org>
32713
32714         diffseq: reduce scope of variable 'best'.
32715         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32716         variable, earlier used for two different purposes.
32717
32718 2009-11-21  Jim Meyering  <meyering@redhat.com>
32719
32720         diffseq: remove useless assignment to "best"
32721         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32722         assignment.  At that point "best" is already guaranteed to be zero.
32723
32724 2009-11-20  Eric Blake  <ebb9@byu.net>
32725
32726         build: mention ftp redirector in release announcements
32727         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32728         values that used to come from cfg.mk; mention FTP redirect URL.
32729         * build-aux/announce-gen: Mention the mirror list.
32730         Suggested by Karl Berry.
32731
32732         nanosleep: improve port to mingw
32733         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32735         LIB_NANOSLEEP, but only when needed.
32736         * modules/select (Link): Document LIBSOCKET.
32737         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32738         enough.
32739
32740         nanosleep: work around cygwin bug
32741         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32742         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32743         bug.
32744         (getnow): Delete, not needed.
32745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32746         LIB_CLOCK_GETTIME.
32747         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32748         clock-time, gettime.
32749         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32750         bug.
32751         * modules/nanosleep-tests: New test.
32752         * tests/test-nanosleep.c: New file.
32753
32754         sleep: work around cygwin bug
32755         * lib/sleep.c (rpl_sleep): Work around the bug.
32756         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32757         (gl_PREREQ_SLEEP): Delete unused macro.
32758         * modules/sleep (Depends-on): Add verify.
32759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32760         * modules/unistd (Makefile.am): Substitute witness.
32761         * lib/unistd.in.h (sleep): Update prototype.
32762         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32763         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32764         * modules/sleep-tests (Depends-on): Check for alarm.
32765
32766 2009-11-20  Jim Meyering  <meyering@redhat.com>
32767
32768         maint.mk: improve sc_prohibit_magic_number_exit
32769         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32770         so it does not match uses like System.exit(1).
32771         Add comments showing how to correct all offenders.
32772
32773 2009-11-19  Eric Blake  <ebb9@byu.net>
32774
32775         xalloc-die-tests: add missing library
32776         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32777
32778         test-xvasprintf: silence compiler warnings
32779         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32780         empty string from gcc.
32781
32782 2009-11-19  Jim Meyering  <meyering@redhat.com>
32783
32784         xfreopen: new module, from coreutils
32785         * modules/xfreopen: New module.
32786         * lib/xfreopen.c: New file.
32787         * lib/xfreopen.h: New file.
32788         * MODULES.html.sh (File stream based Input/Output"): Add it.
32789
32790 2009-11-19  Eric Blake  <ebb9@byu.net>
32791
32792         manywarnings: depend on warnings
32793         * modules/manywarnings (Depends-on): Add warnings.
32794
32795         build: avoid compiler warnings
32796         * lib/select.c (rpl_select): Delete unused variable.
32797         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32798
32799 2009-11-18  Eric Blake  <ebb9@byu.net>
32800
32801         tests: avoid false negative with --with-packager
32802         * tests/test-version-etc.sh: Discard packager information.
32803         * tests/test-argp-version-etc-1.sh: Likewise.
32804         Reported by Mike Frysinger.
32805
32806         utimens: fix regression on Solaris
32807         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32808         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32809         can only change fd timestamps via futimesat.  Instead, use an
32810         additional witness macro to avoid BSD bug.
32811         Reported by Jim Meyering.
32812
32813 2009-11-17  Eric Blake  <ebb9@byu.net>
32814
32815         usleep: use it to simplify tests
32816         * modules/stat-time-tests (Depends-on): Add usleep.
32817         (configure.ac): Drop usleep check.
32818         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32819         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32820         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32821         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32822         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32823         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32824         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32825         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32826         Likewise.
32827         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32828         * tests/test-lchown.h (nap): Likewise.
32829         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32830         * tests/test-stat-time.c (nap): Likewise.
32831         * tests/test-utimens-common.h (nap): Update comments.
32832
32833         usleep: new module
32834         * modules/usleep: New file.
32835         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32836         * lib/usleep.c (usleep): Likewise.
32837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32838         * modules/unistd (Makefile.am): Substitute witnesses.
32839         * lib/unistd.in.h (usleep): Add declaration.
32840         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32841         * MODULES.html.sh (Date and time): Likewise.
32842         * modules/usleep-tests (Depends-on): New test.
32843         * tests/test-usleep.c: New file.
32844
32845         chown: work around OpenBSD bug
32846         * lib/chown.c (rpl_chown): Work around the bug.
32847         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32848         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32849         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32850         * modules/chown (Depends-on): Add stdbool.
32851         * modules/lchown (Depends-on): Likewise.
32852         * doc/posix-functions/chown.texi (chown): Document the bug.
32853         * doc/posix-functions/lchown.texi (lchown): Likewise.
32854         * tests/test-lchown.h (test_chown): Relax test.
32855
32856         mkstemp: avoid conflict with C++ keyword template
32857         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32858         * lib/mkostemp.c (mkostemp): Likewise.
32859         * lib/mkostemps.c (mkostemps): Likewise.
32860         * lib/mkstemp.c (mkstemp): Likewise.
32861         * lib/mkstemps.c (mkstemps): Likewise.
32862
32863         xalloc-die-tests: optimize
32864         * tests/test-xalloc-die.sh: Reduce number of processes.
32865
32866 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32867
32868         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32869         patch from ludo@gnu.org (Ludovic Courtès).
32870
32871 2009-11-17  Jim Meyering  <meyering@redhat.com>
32872
32873         version-etc: use proper license string
32874         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32875         * modules/version-etc-fsf: Likewise.
32876
32877 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32878
32879         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32880         printed to stdout.  Deal with EOL differences.
32881
32882 2009-11-17  Eric Blake  <ebb9@byu.net>
32883
32884         unsetenv: work around Solaris bug
32885         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32886         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32887         Reported by Jim Meyering.
32888
32889         vasnprintf: avoid compiler warnings
32890         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32891         variables.
32892         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32893
32894 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32895
32896         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32897         settings since xalloc-die is no longer the self test,
32898         xalloc-die.sh is.
32899
32900 2009-11-17  Jim Meyering  <meyering@redhat.com>
32901
32902         test-xalloc-die.sh: make the code agree with the commit log
32903         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32904         at the end, just in case you happen to have a test-xalloc-die
32905         program in some other PATH directory.
32906
32907         test-xalloc-die.sh: fix a portability bug
32908         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32909         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32910         Otherwise, argv[0] (as often seen in diagnostics) would be too
32911         system-dependent, sometimes with, and sometimes without the leading "./".
32912
32913         version-etc-fsf: relax license to LGPLv3+
32914         * modules/version-etc-fsf (License): Relax license.
32915
32916 2009-11-16  Eric Blake  <ebb9@byu.net>
32917
32918         xalloc-die-tests: avoid printing null pointer
32919         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32920         shell script.
32921         * tests/test-xalloc-die.c (program_name): Declare.
32922         * tests/test-xalloc-die.sh (tmpfiles): New file.
32923
32924         setenv, unsetenv: work around various bugs
32925         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32926         (setenv) [HAVE_SETENV]: Work around bugs.
32927         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32928         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32929         for bugs.
32930         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32931         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32933         * modules/stdlib (Makefile.am): Update substitutions.
32934         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32935         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32936         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32937         * modules/setenv-tests: New test.
32938         * modules/unsetenv-tests: Likewise.
32939         * tests/test-setenv.c: New file.
32940         * tests/test-unsetenv.c: Likewise.
32941
32942 2009-11-16  Jim Meyering  <meyering@redhat.com>
32943
32944         version-etc: relax license to LGPLv3+
32945         * modules/version-etc (License): Relax license.
32946
32947         better AC_REQUIRE expanded-before-required-warning avoidance
32948         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32949         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32950         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32951         which is no longer needed.
32952
32953 2009-11-16  Eric Blake  <ebb9@byu.net>
32954
32955         test-freading: clean up temporary file
32956         * tests/test-freading.c (main): Remove file on success, and use
32957         ASSERT more liberally.
32958         Reported by Jim Meyering.
32959
32960 2009-11-16  Jim Meyering  <meyering@redhat.com>
32961
32962         avoid new AC_REQUIRE expanded-before-required warnings
32963         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32964         merely using it.
32965         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32966         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32967
32968 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32969
32970         * tests/test-xalloc-die.c: New file.
32971         * modules/xalloc-die-tests: New file.
32972         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32973         XFAIL_TESTS so it can be appended by modules.
32974
32975 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32976
32977         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32978         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32979
32980 2009-11-14  Eric Blake  <ebb9@byu.net>
32981
32982         fnmatch: avoid compiler warning
32983         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32984         to silence compiler warning about mismatch signedness in ?:.
32985         Reported by Robert Millan.
32986
32987         intprops: add double-inclusion guard
32988         * lib/intprops.h: Allow idempotent includes.
32989         Suggested by Bruce Korb.
32990
32991         openat: detect Solaris fchownat bug
32992         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32993         penalizing glibc chownat when only lchownat is broken.
32994         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32995         trailing slash bugs.
32996         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32997         * modules/openat-tests (Files): Include more files.
32998         (Depends-on): Add mgetgroups, sleep, stat-time.
32999         (configure.ac): Add additional checks.
33000         (Makefile.am): Build new test.
33001         * tests/test-fchownat.c: New file.
33002
33003         lchown: detect Solaris and FreeBSD bug
33004         * lib/lchown.c (rpl_lchown): Work around bug.
33005         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33007         * modules/unistd (Makefile.am): Populate it.
33008         * lib/unistd.in.h (lchown): Update declaration.
33009         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33010         * modules/lchown-tests: New file.
33011         * tests/test-lchown.h (test_lchown): Likewise.
33012         * tests/test-lchown.c (main): Likewise.
33013
33014         chown: detect Solaris and FreeBSD bug
33015         * lib/chown.c (rpl_chown): Work around bug.
33016         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33017         (gl_PREREQ_CHOWN): Delete.
33018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33019         * modules/unistd (Makefile.am): Populate it.
33020         * lib/unistd.in.h (chown): Update declaration.
33021         * lib/lchown.c (chown): Update client.
33022         * modules/lchown (Depends-on): Add lstat.
33023         * doc/posix-functions/chown.texi (chown): Document the bug.
33024         * doc/posix-functions/getgroups.texi (getgroups): Document
33025         getgroups pitfall.
33026         * modules/chown-tests: New file.
33027         * tests/test-chown.h (test_chown): Likewise.
33028         * tests/test-chown.c (main): Likewise.
33029
33030 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33031
33032         gnulib-tool: correctly detect absence of m4 directories
33033         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33034
33035 2009-11-14  Jim Meyering  <meyering@redhat.com>
33036
33037         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33038         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33039
33040 2009-11-14  John W. Eaton  <jwe@gnu.org>
33041
33042         strftime.h: wrap funtion declaration in extern "C" block
33043         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33044
33045 2009-11-13  Eric Blake  <ebb9@byu.net>
33046
33047         getgroups: avoid compiler warning
33048         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33049
33050         getgroups: work around FreeBSD bug
33051         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33052         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33053         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33054         * tests/test-getgroups.c (main): Fix buffer overrun.
33055
33056         getgroups: avoid compilation failure
33057         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33058         * modules/getgroups (Depends-on): Add stdint.
33059
33060 2009-11-13  Jim Meyering  <meyering@redhat.com>
33061
33062         test-getgroups: avoid compilation failure
33063         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33064
33065 2009-11-13  Eric Blake  <ebb9@byu.net>
33066
33067         mgetgroups: new module, taken from coreutils
33068         * modules/mgetgroups: New file.
33069         * lib/mgetgroups.h: Likewise.
33070         * lib/mgetgroups.c (mgetgroups): Likewise.
33071         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33072         * MODULES.html.sh (Users and groups): Mention it.
33073
33074         getgroups: don't expose GETGROUPS_T to user
33075         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33076         an element at a time if GETGROUPS_T is wrong size.
33077         * lib/getugroups.h (getugroups): Change signature.
33078         * lib/unistd.in.h (getgroups): Likewise.
33079         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33080         signature needs fixing.
33081         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33082         AC_TYPE_GETGROUPS.
33083         * modules/group-member (Depends-on): Add getgroups.
33084         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33085         (group_member): Rely on getgroups replacement.
33086         * lib/getugroups.c (getugroups): Use gid_t.
33087         * tests/test-getgroups.c (main): Likewise.
33088         * NEWS: Mention the signature change.
33089         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33090         problem with signature.
33091         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33092         GETGROUPS_T is still useful for setgroups.
33093
33094         getgroups, getugroups: provide stubs for mingw
33095         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33096         * lib/getugroups.c (getugroups): Likewise.
33097         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33098         function.  Modernize replacement scheme.
33099         (gl_PREREQ_GETGROUPS): Delete.
33100         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33101         * modules/getgroups (configure.ac): Declare witness.
33102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33103         * modules/unistd (Depends-on): Substitute witness.
33104         * lib/unistd.in.h (getgroups): Declare replacement.
33105
33106         getgroups: avoid calling exit
33107         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33108         drop xalloc.
33109         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33110         dependencies.
33111         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33112         exiting, in the rare case of malloc failure.
33113
33114         getgroups: fix logic error
33115         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33116         has more than 20 groups.
33117         * modules/getgroups-tests: New test.
33118         * tests/test-getgroups.c: New file.
33119
33120 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33121
33122         * tests/test-base64.c: Improve.
33123
33124 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33125
33126         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33127         Blake <ebb9@byu.net>.
33128
33129 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33130
33131         * tests/test-xvasprintf.c: Add %s%s related checks.
33132
33133 2009-11-12  Eric Blake  <ebb9@byu.net>
33134
33135         version-etc: match standards.texi style
33136         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33137         and use <> only for URLs.
33138
33139 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33140
33141         fts: do not fail on a submount during traversal
33142         * lib/fts.c (fts_build): Read the stat info again after opening
33143         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33144         Original report at http://bugzilla.redhat.com/501848.
33145
33146 2009-11-12  Jim Meyering  <meyering@redhat.com>
33147
33148         bootstrap: sync from coreutils
33149         * build-aux/bootstrap (bootstrap_epilogue): New function.
33150         Use git_modules_config in one more place.  This make bootstrap's
33151         --gnulib-srcdir option more useful for testing.
33152
33153         bootstrap: generalize autoheader check
33154         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33155         AC_CONFIG_HEADERS.
33156
33157 2009-11-11  Eric Blake  <ebb9@byu.net>
33158
33159         mkfifoat: use new modules for Solaris and BSD bugs
33160         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33161         * lib/mkfifoat.c (mknodat): Split...
33162         * lib/mknodat.c (mknodat): ...into new file.
33163         * modules/mkfifoat (Files): Ship new file.
33164         (Depends-on): Add mkfifo, mknod.
33165         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33166         (Depends-on): Add symlink.
33167         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33168         redundant with test_mkfifo.h.
33169         (do_mkfifoat, do_mknodat): New helpers.
33170
33171         mknod: new module
33172         * modules/mknod: New file.
33173         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33174         * lib/mknod.c (mknod): Likewise.
33175         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33176         defaults.
33177         * modules/sys_stat (Makefile.am): Substitute them.
33178         * lib/sys_stat.in.h (mknod): Declare replacement.
33179         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33180         Document it.
33181         * doc/posix-functions/mknod.texi (mknod): Likewise.
33182         * modules/mknod-tests: New test.
33183         * tests/test-mknod.c: Likewise.
33184
33185         mkfifo: new module
33186         * modules/mkfifo: New file.
33187         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33188         * lib/mkfifo.c (mkfifo): Likewise.
33189         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33190         defaults.
33191         * modules/sys_stat (Makefile.am): Substitute them.
33192         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33193         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33194         Document it.
33195         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33196         * modules/mkfifo-tests: New test.
33197         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33198         from test-mkfifoat.c.
33199         * tests/test-mkfifo.c: New file.
33200
33201         readlink: detect FreeBSD bug
33202         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33203         slash on symlink.
33204         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33205         * tests/test-readlink.h (test_readlink): Enhance test.
33206
33207         symlink: detect FreeBSD bug
33208         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33209         slash on symlink.
33210         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33211         * tests/test-symlink.h (test_symlink): Enhance test.
33212
33213 2009-11-10  Eric Blake  <ebb9@byu.net>
33214
33215         link: detect FreeBSD bug
33216         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33217         symlink.
33218         * doc/posix-functions/link.texi (link): Document the bug.
33219         * tests/test-link.h (test_link): Enhance test.
33220         * tests/test-linkat.c (main): Update caller.
33221
33222         unlink, remove: detect FreeBSD bug
33223         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33224         slash on symlink.
33225         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33226         * doc/posix-functions/remove.texi (remove): Likewise.
33227         * tests/test-unlink.h (test_unlink): Enhance test.
33228         * tests/test-remove.c (main): Likewise.
33229
33230 2009-11-09  Eric Blake  <ebb9@byu.net>
33231
33232         rename: detect FreeBSD bug
33233         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33234         slash on symlink.
33235         * modules/renameat-tests (Depends-on): Add filenamecat.
33236         * tests/test-rename.h (test_rename): Allow one more errno.
33237         * tests/test-renameat.c (main): Likewise.
33238         * doc/posix-functions/rename.texi (rename): Document the bug.
33239
33240         open: detect FreeBSD bug
33241         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33242         symlink.
33243         * doc/posix-functions/open.texi (open): Document the bug.
33244         * doc/posix-functions/utimes.texi (utimes): Likewise.
33245         * tests/test-open.h (test_open): Add parameters, and test symlink
33246         handling.
33247         * tests/test-open.c (main): Adjust caller.
33248         * tests/test-fcntl-safer.c (main): Likewise.
33249         * modules/open-tests (Depends-on): Add stdbool, symlink.
33250         * modules/fcntl-safer-tests (Depends-on): Likewise.
33251         * tests/test-openat.c (main): Add test-open tests.
33252
33253         stat: detect FreeBSD bug
33254         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33255         symlink.
33256         * doc/posix-functions/stat.texi (stat): Document the bug.
33257         * tests/test-stat.h (test_stat_func): Add argument.
33258         * tests/test-stat.c (main): Adjust caller.
33259         * tests/test-fstatat.c (main): Likewise.
33260         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33261         Reported by Jim Meyering.
33262
33263 2009-11-09  James Youngman  <jay@gnu.org>
33264
33265         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33266         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33267
33268 2009-11-08  Jim Meyering  <meyering@redhat.com>
33269
33270         utimens: remove invalid futimesat call
33271         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33272         It used the file descriptor of the target file as the DIR_FD
33273         parameter and NULL as the file name.  That caused failure with
33274         errno == EFAULT on FreeBSD-8.0-rc2
33275
33276 2009-11-07  Eric Blake  <ebb9@byu.net>
33277
33278         fflush, freadseek: use fseeko, not fseek
33279         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33280         (clear_ungetc_buffer): Avoid potential problems on large files.
33281         * lib/freadseek.c (freadseek): Likewise.
33282         * modules/freadseek (Depends-on): Add fseeko.
33283         * modules/fseek (configure.ac): Set a witness.
33284         * tests/test-fflush.c (main): Use fseeko.
33285         * tests/test-fpurge.c (fseek): Disable link warning.
33286         * tests/test-freadable.c (fseek): Likewise.
33287         * tests/test-freading.c (fseek): Likewise.
33288         * tests/test-fseeko.c (fseek): Likewise.
33289         * tests/test-ftell.c (fseek): Likewise.
33290         * tests/test-ftello.c (fseek): Likewise.
33291         * tests/test-fwritable.c (fseek): Likewise.
33292         * tests/test-fwriting.c (fseek): Likewise.
33293
33294 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33295
33296         * modules/memchr (Depends-on): Drop getpagesize dependency.
33297
33298 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33299
33300         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33301         Reported by Ludovic Courtès.
33302         * build-aux/pmccabe2html: Improve example usage.
33303         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33304
33305 2009-11-06  Jim Meyering  <meyering@redhat.com>
33306
33307         do-release-commit-and-tag: New module.
33308         Automate the release-commit and tag process.
33309         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33310         * modules/do-release-commit-and-tag: New file.
33311         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33312
33313 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33314
33315         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33316         because test-select.c uses inet_pton.
33317
33318 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33319
33320         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33321         GETADDRINFO_LIB.  Bump serial number.
33322         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33323         Suggested by Eric Blake <ebb9@byu.net>.
33324
33325 2009-11-05  Eric Blake  <ebb9@byu.net>
33326
33327         strtod: detect darwin bug
33328         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33329         Reported by Leo Davis.
33330
33331         freopen-safer: new module
33332         * modules/freopen-safer: New module.
33333         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33334         * lib/freopen-safer.c (freopen_safer): New file.
33335         * lib/stdio-safer.h (freopen_safer): New declaration.
33336         * lib/stdio--.h (freopen): New override.
33337         * MODULES.html.sh (File stream based Input/Output): Mention it.
33338         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33339         freopen-safer module.
33340         * doc/posix-functions/stderr.texi (stderr): Likewise.
33341         * doc/posix-functions/stdin.texi (stdin): Likewise.
33342         * doc/posix-functions/stdout.texi (stdout): Likewise.
33343         * modules/freopen-safer-tests: New test.
33344         * tests/test-reopen-safer.c: New file.
33345
33346 2009-11-05  Jim Meyering  <meyering@redhat.com>
33347
33348         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33349         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33350
33351 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33352
33353         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33354
33355 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33356
33357         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33358
33359 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33360
33361         Fix link error.
33362         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33363         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33364
33365 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33366
33367         * tests/test-func.c: Also test value of __func__.
33368
33369 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33370
33371         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33372         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33373
33374 2009-11-05  Bruno Haible  <bruno@clisp.org>
33375
33376         Fix link error.
33377         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33378         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33379         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33380
33381 2009-11-05  Bruno Haible  <bruno@clisp.org>
33382
33383         Tests for module 'inet_pton'.
33384         * modules/inet_pton-tests: New file.
33385         * tests/test-inet_pton.c: New file.
33386
33387 2009-11-05  Bruno Haible  <bruno@clisp.org>
33388
33389         Tests for module 'inet_ntop'.
33390         * modules/inet_ntop-tests: New file.
33391         * tests/test-inet_ntop.c: New file.
33392
33393 2009-11-04  Eric Blake  <ebb9@byu.net>
33394
33395         stdlib-safer: wrap all mkstemp variants
33396         * modules/mkostemp (configure.ac): Set witness.
33397         * modules/mkostemps (configure.ac): Likewise.
33398         * modules/mkstemps (configure.ac): Likewise.
33399         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33400         (mkstemps_safer): Wrap more functions.
33401         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33402         wrapping.
33403         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33404         (mkstemps_safer): Implement the wrappers.
33405
33406         mkstemps, mkostemps: new modules
33407         * modules/mkostemps: New module.
33408         * modules/mkstemps: Likewise.
33409         * lib/mkostemps.c (mkostemps): New file.
33410         * lib/mkstemps.c (mkstemps): Likewise.
33411         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33412         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33414         * modules/stdlib (Makefile.am): Substitute them.
33415         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33416         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33417         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33418         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33419         * MODULES.html.sh (File system functions): Mention them.
33420
33421         tempname: resync from glibc
33422         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33423         same values for __GT_FILE as glibc.  Abort even when assertions
33424         are disabled.
33425         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33426         match its value otherwise.  Allow idempotent inclusion.
33427         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33428         * lib/mkostemp.c (mkostemp): Likewise.
33429         * lib/mkstemp.c (mkstemp): Likewise.
33430         * lib/tmpfile.c (tmpfile): Likewise.
33431         * NEWS: Document this.
33432
33433         utimens: fix use of futimens on older Linux
33434         * lib/utimens.c (fdutimens): Use updated, rather than original,
33435         timespec to avoid bug in older Linux kernel.
33436         Reported by Simon Josefsson.
33437
33438 2009-11-04  Bruno Haible  <bruno@clisp.org>
33439
33440         Make num_processors more flexible and consistent.
33441         * lib/nproc.h (enum nproc_query): New type.
33442         (num_processors): Add a 'query' argument.
33443         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33444         (num_processors): Add a 'query' argument. Test the value of the
33445         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33446         mingw, count the number of CPUs available for the current process.
33447         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33448         Check for sched_getaffinity and sched_getaffinity_np.
33449         * modules/nproc (Depends-on): Add c-ctype, extensions.
33450         * NEWS: Mention the change.
33451
33452 2009-11-03  Bruno Haible  <bruno@clisp.org>
33453
33454         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33455
33456 2009-11-03  Jim Meyering  <meyering@redhat.com>
33457
33458         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33459         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33460         if it is defined.
33461
33462 2009-11-02  Eric Blake  <ebb9@byu.net>
33463
33464         mktime, timegm: share common declaration
33465         * lib/mktime-internal.h: New file.
33466         * lib/mktime.c: Use it rather than open-coding a declaration.
33467         * lib/timegm.c: Likewise.
33468         * modules/mktime (Files): Ship it.
33469         * modules/timegm (Files): Likewise.
33470         Suggested by Bruno Haible.
33471
33472         test-update-copyright: update test to match script changes
33473         * tests/test-update-copyright.sh: Avoid hard-coding perl
33474         location.  Don't update *.bak created by earlier runs.
33475
33476 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33477             Simon Josefsson  <simon@josefsson.org>
33478             Bruno Haible  <bruno@clisp.org>
33479
33480         Fix link error on Solaris 8.
33481         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33482         also in libnsl. Define also INET_PTON_LIB.
33483         * modules/inet_pton (Link): New section.
33484
33485 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33486             Bruno Haible  <bruno@clisp.org>
33487
33488         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33489         * modules/inet_ntop (Link): New section.
33490         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33491
33492 2009-11-02  Eric Blake  <ebb9@byu.net>
33493
33494         maint: avoid compiler warnings in m4 macros
33495         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33496         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33497
33498 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33499
33500         * m4/pmccabe2html.m4: Remove file.
33501         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33502         function.  Change maintainer.
33503         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33504         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33505         Courtès).
33506
33507 2009-10-31  Eric Blake  <ebb9@byu.net>
33508
33509         fseeko: fix m4 regression
33510         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33511         regression from 2009-10-27.
33512         Reported by Ralf Wildenhues.
33513
33514 2009-10-31  Jim Meyering  <meyering@redhat.com>
33515
33516         inttostr: aesthetics and improved (compile-time) safety
33517         Define inttype_is_signed rather than inttype_is_unsigned,
33518         since the sole use is via "#if inttype_is_signed".
33519         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33520         inttype_is_unsigned.
33521         * lib/offtostr.c (inttype_is_signed): Likewise.
33522         * lib/uinttostr.c (inttype_is_signed): Likewise.
33523         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33524         * lib/inttostr.c (inttostr): Use verify to cross-check the
33525         inttype_is_signed value and the signedness of the actual type.
33526         * modules/inttostr (Depends-on): Add verify.
33527
33528 2009-10-30  Eric Blake  <ebb9@byu.net>
33529
33530         build: avoid compiler warnings
33531         * lib/fchmodat.c (lchmod): Mark unused variables.
33532         * lib/getopt.c (_getopt_initialize): Likewise.
33533         * lib/mktime.c (__mktime_internal): Provide prototype.
33534         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33535         older gcc that do not understand #pragma GCC diagnostic.
33536         * lib/uinttostr.c (inttype_is_unsigned): Define.
33537         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33538
33539 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33540
33541         stat: fix compilation on AIX
33542         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33543         only see struct stat64.
33544
33545 2009-10-30  Eric Blake  <ebb9@byu.net>
33546
33547         exclude: make more robust
33548         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33549         rather than masking a coding bug.
33550         Suggested by Bruno Haible.
33551
33552 2009-10-30  Jim Meyering  <meyering@redhat.com>
33553
33554         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33555         Rather than putting #!/usr/bin/perl on the first line,
33556         start with a variant of what's recommended by "man perlrun" that
33557         invokes the first "perl" program from your shell's search path.
33558         * build-aux/gitlog-to-changelog: Replace #!... as above.
33559         Add a "Local Variables" perl mode setting.
33560         Prompted by a patch from Ludovic Courtès.
33561         Improved by Eric Blake.
33562         * build-aux/useless-if-before-free: Likewise.
33563         * build-aux/announce-gen: Likewise.
33564         * build-aux/update-copyright: Likewise.
33565
33566 2009-10-29  Eric Blake  <ebb9@byu.net>
33567
33568         filenamecat-lgpl: adjust clients
33569         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33570         filenamecat.
33571         * modules/renameat (Depends-on): Likewise.
33572
33573         filenamecat: split into filenamecat-lgpl
33574         * modules/filenamecat-lgpl: New module.
33575         * modules/filenamecat (Files): Move library-safe files into
33576         filenamecat-lgpl.
33577         (Depends-on): Add filenamecat-lgpl.
33578         (configure.ac): Declare witness.
33579         * lib/filenamecat.h (file_name_concat): Only declare when using
33580         GPL module.
33581         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33582         Move...
33583         * lib/filenamecat-lgpl.c: ...into new file.
33584         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33585         (gl_FILE_NAME_CONCAT): Use it.
33586         * MODULES.html.sh (File system functions): Mention new module.
33587
33588         argp: avoid memory leak
33589         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33590         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33591         base_name, since the latter malloc()s and can call exit().
33592         Leak introduced 2006-07-03.
33593
33594         dirname-lgpl: adjust clients that don't need full dirname
33595         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33596         * modules/filenamecat (Depends-on): Likewise.
33597         * modules/linkat (Depends-on): Likewise.
33598         * modules/mkancesdirs (Depends-on): Likewise.
33599         * modules/mkdir (Depends-on): Likewise.
33600         * modules/openat (Depends-on): Likewise.
33601         * modules/savewd (Depends-on): Likewise.
33602         * modules/rename (Depends-on): Likewise.
33603         (License): Relax license.
33604         * modules/mkdir-tests (Depends-on): Drop progname.
33605         (Makefile.am): Delete unneeded LDADD.
33606         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33607
33608         dirname: split into dirname-lgpl
33609         * modules/dirname-lgpl: New module.
33610         * modules/dirname (Files): Move library-safe files into
33611         dirname-lgpl.
33612         (Depends-on): Add dirname-lgpl.
33613         (configure.ac): Declare witness.
33614         * modules/double-slash-root (License): Relax license.
33615         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33616         module.
33617         * lib/dirname.c (dir_len, mdir_name): Move...
33618         * lib/dirname-lgpl.c: ...into new file.
33619         * lib/basename.c (last_component, base_len): Move...
33620         * lib/basename-lgpl.c: ...into new file.
33621         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33622         (gl_DIRNAME): Use it.
33623         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33624         Mention new module.
33625         * modules/dirname-tests (Depends-on): Add progname.
33626         * tests/test-dirname.c (program_name): Delete.
33627
33628         mkdir: make safe for libraries
33629         * modules/mkdir (Depends-on): Drop xalloc.
33630         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33631         exit.
33632
33633         tests: avoid some compiler warnings
33634         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33635         literals.
33636         * tests/test-memchr.c (main): Avoid type mismatch.
33637         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33638         * tests/test-base64.c (main): Likewise.
33639         * tests/test-getdelim.c (main): Likewise.
33640         * tests/test-gethostname.c (main): Likewise.
33641         * tests/test-getline.c (main): Likewise.
33642         * tests/test-netinet_in.c (main): Likewise.
33643         * tests/test-select.c (open_server_socket, main): Likewise.
33644         * tests/test-select-stdin.c (main): Likewise.
33645         * tests/test-sockets.c (main): Likewise.
33646         * tests/test-strsignal.c (main): Likewise.
33647         * tests/test-sys_select.c (main): Likewise.
33648         * tests/test-sys_socket.c (main): Likewise.
33649         * tests/test-u64.c (main): Likewise.
33650         * tests/test-xfprintf-posix.c (main): Likewise.
33651         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33652
33653         sockets: avoid compiler warning
33654         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33655
33656         maint: detect usage(1) and other suspicious exits
33657         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33658
33659 2009-10-29  Jim Meyering  <meyering@redhat.com>
33660
33661         timespec: long-to-int truncation could make timespec_cmp malfunction
33662         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33663         a multiple of 2^32 nanoseconds as no difference.
33664
33665 2009-10-28  Jim Meyering  <meyering@redhat.com>
33666
33667         fprintftime: wrap macro code argument in "do {...} while(0)"
33668         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33669         cpy macro must be a statement that can be followed by a semicolon.
33670         Now that the else clause contains a comment and is hence longer
33671         than one line, I require curly braces.  That in turn requires
33672         that we wrap this code block in the standard do...while(0).
33673
33674         fprintftime: remove stray semicolon from previous change
33675         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33676
33677         fprintftime: avoid a warning about ignored fwrite return value
33678         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33679         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33680         that is unsafe.
33681         * modules/fprintftime (Depends-on): Add ignore-value.
33682
33683         exclude: avoid an unwarranted warning
33684         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33685
33686 2009-10-27  Eric Blake  <ebb9@byu.net>
33687
33688         fseek: avoid compilation failure when fflush is replaced
33689         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33690         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33691         module is in use.
33692         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33693         module is not in use; since REPLACE_FSEEK worked otherwise.
33694         (GNULIB_FTELLO): Likewise for ftell.
33695         Reported by Ian Beckwith and others.
33696
33697 2009-10-27  Bruno Haible  <bruno@clisp.org>
33698
33699         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33700         Reported by Jim Meyering.
33701
33702 2009-10-27  Jim Meyering  <jim@meyering.net>
33703             Bruno Haible  <bruno@clisp.org>
33704
33705         Avoid warning despite dropping the return value of fwrite.
33706         * lib/unicodeio.c: Include ignore-value.h.
33707         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33708         * modules/unicodeio (Depends-on): Add ignore-value.
33709
33710 2009-10-26  Eric Blake  <ebb9@byu.net>
33711
33712         areadlinkat: fix fallback path
33713         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33714         pointer and zero.
33715
33716 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33717
33718         Use a better IO block size for modern systems
33719         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33720         * lib/md2.c: Likewise.
33721         * lib/md4.c: Likewise.
33722         * lib/md5.c: Likewise.
33723         * lib/sha1.c: Likewise.
33724         * lib/sha256.c: Likewise.
33725         * lib/sha512.c: Likewise.
33726
33727 2009-10-22  Eric Blake  <ebb9@byu.net>
33728
33729         tests: avoid several compiler warnings
33730         * tests/test-getcwd.c (main): Avoid buffer underflow.
33731         * tests/test-getdate.c (main): String literals are not safe with
33732         putenv, so use setenv.  Declare unused argument.
33733         * modules/getdate-tests (Depends-on): Add setenv.
33734         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33735         problems with string literals in char *.
33736         * tests/test-hash.c (main): Avoid shadowing declaration.
33737         (insert_new): Treat string literals as char const *.
33738         * tests/test-getopt.h (test_getopt): Likewise.
33739         (getopt_loop): Alter types to minimize casting elsewhere.
33740         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33741         (test_getopt_long_posix): Likewise.
33742         (do_getopt_long): Add wrapper to minimize casting.
33743         * tests/test-atexit.c (clear_temp_file): Use void.
33744         * tests/test-areadlink-with-size.c (main): Declare unused
33745         arguments.
33746         * tests/test-areadlink.c (main): Likewise.
33747         * tests/test-areadlinkat-with-size.c (main): Likewise.
33748         * tests/test-areadlinkat.c (main): Likewise.
33749         * tests/test-canonicalize-lgpl.c (main): Likewise.
33750         * tests/test-canonicalize.c (main): Likewise.
33751         * tests/test-dirent-safer.c (main): Likewise.
33752         * tests/test-dirname.c (main): Likewise.
33753         * tests/test-dup2.c (main): Likewise.
33754         * tests/test-fchdir.c (main): Likewise.
33755         * tests/test-fcntl-h.c (main): Likewise.
33756         * tests/test-fcntl-safer.c (main): Likewise.
33757         * tests/test-fdopendir.c (main): Likewise.
33758         * tests/test-fdutimensat.c (main): Likewise.
33759         * tests/test-fflush.c (main): Likewise.
33760         * tests/test-filenamecat.c (main): Likewise.
33761         * tests/test-filevercmp.c (main): Likewise.
33762         * tests/test-fopen-safer.c (main): Likewise.
33763         * tests/test-fopen.c (main): Likewise.
33764         * tests/test-fpending.c (main): Likewise.
33765         * tests/test-fpurge.c (main): Likewise.
33766         * tests/test-freading.c (main): Likewise.
33767         * tests/test-fstatat.c (main): Likewise.
33768         * tests/test-fsync.c (main): Likewise.
33769         * tests/test-futimens.c (main): Likewise.
33770         * tests/test-getndelim2.c (main): Likewise.
33771         * tests/test-gettimeofday.c (main): Likewise.
33772         * tests/test-getopt.c (main): Likewise.
33773         * tests/test-i-ring.c (main): Likewise.
33774         * tests/test-inttypes.c (main): Likewise.
33775         * tests/test-link.c (main): Likewise.
33776         * tests/test-lstat.c (main): Likewise.
33777         * tests/test-math.c (main): Likewise.
33778         * tests/test-md5.c (main): Likewise.
33779         * tests/test-memchr2.c (main): Likewise.
33780         * tests/test-memrchr.c (main): Likewise.
33781         * tests/test-mkdir.c (main): Likewise.
33782         * tests/test-mkdirat.c (main): Likewise.
33783         * tests/test-mkfifoat.c (main): Likewise.
33784         * tests/test-open.c (main): Likewise.
33785         * tests/test-openat-safer.c (main): Likewise.
33786         * tests/test-openat.c (main): Likewise.
33787         * tests/test-quotearg.c (main): Likewise.
33788         * tests/test-rawmemchr.c (main): Likewise.
33789         * tests/test-readlink.c (main): Likewise.
33790         * tests/test-remove.c (main): Likewise.
33791         * tests/test-rename.c (main): Likewise.
33792         * tests/test-renameat.c (main): Likewise.
33793         * tests/test-rmdir.c (main): Likewise.
33794         * tests/test-sha1.c (main): Likewise.
33795         * tests/test-signal.c (main): Likewise.
33796         * tests/test-sigaction.c (main): Likewise.
33797         * tests/test-stat.c (main): Likewise.
33798         * tests/test-stat-time.c (main): Likewise.
33799         * tests/test-stddef.c (main): Likewise.
33800         * tests/test-stdint.c (main): Likewise.
33801         * tests/test-stdio.c (main): Likewise.
33802         * tests/test-stdlib.c (main): Likewise.
33803         * tests/test-strchrnul.c (main): Likewise.
33804         * tests/test-strerror.c (main): Likewise.
33805         * tests/test-string.c (main): Likewise.
33806         * tests/test-strtod.c (main): Likewise.
33807         * tests/test-strverscmp.c (main): Likewise.
33808         * tests/test-symlink.c (main): Likewise.
33809         * tests/test-symlinkat.c (main): Likewise.
33810         * tests/test-sys_stat.c (main): Likewise.
33811         * tests/test-sys_time.c (main): Likewise.
33812         * tests/test-time.c (main): Likewise.
33813         * tests/test-unistd.c (main): Likewise.
33814         * tests/test-unlink.c (main): Likewise.
33815         * tests/test-unlinkat.c (main): Likewise.
33816         * tests/test-utimens.c (main): Likewise.
33817         * tests/test-utimensat.c (main): Likewise.
33818         * tests/test-version-etc.c (main): Likewise.
33819         * tests/test-wchar.c (main): Likewise.
33820         * tests/test-wctype.c (main): Likewise.
33821         * tests/test-xprintf-posix.c (main): Likewise.
33822         * tests/test-posixtm.c (main): Likewise.
33823         (STREQ): Delete unused macro.
33824         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33825         shadowed variables.
33826         * tests/test-memchr.c (main): Likewise.
33827
33828 2009-10-21  Eric Blake  <ebb9@byu.net>
33829
33830         areadlinkat: avoid failure on older glibc
33831         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33832         rather than mis-comparing 0 against FUNC_RESULT of char*.
33833
33834 2009-10-21  Bruno Haible  <bruno@clisp.org>
33835
33836         * modules/stpncpy (License): Relicense under LGPLv2+.
33837         Reported by David Lutterkort <lutter@redhat.com>.
33838
33839 2009-10-20  Eric Blake  <ebb9@byu.net>
33840
33841         utimensat: work around Solaris 9 bug
33842         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33843         has trailing slash bugs.
33844         * tests/test-lutimens.h (test_lutimens): Enhance test.
33845         * tests/test-utimens.h (test_utimens): Likewise.
33846         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33847         * doc/posix-functions/utimes.texi (utimes): Likewise.
33848         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33849         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33850         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33851         * doc/posix-functions/futimens.texi (futimens): Likewise.
33852
33853         fdutimensat: new module
33854         * modules/fdutimensat: New file.
33855         * lib/fdutimensat.c (fdutimensat): Likewise.
33856         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33857         * MODULES.html.sh (File system functions): Mention module.
33858         * modules/fdutimensat-tests: New test.
33859         * tests/test-fdutimensat.c: Likewise.
33860
33861         doc: regenerate INSTALL
33862         * doc/INSTALL: Reflect recent autoconf update.
33863         * doc/INSTALL.ISO: Likewise.
33864         * doc/INSTALL.UTF-8: Likewise.
33865
33866 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33867
33868         acl: warn if ACL support is not detected
33869         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33870
33871 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33872
33873         * lib/nproc.h: Add extern "C" block for C++.
33874
33875 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33876             Bruno Haible  <bruno@clisp.org>
33877
33878         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33879         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33880         * doc/posix-functions/isalpha.texi: Likewise.
33881         * doc/posix-functions/isblank.texi: Likewise.
33882         * doc/posix-functions/iscntrl.texi: Likewise.
33883         * doc/posix-functions/isdigit.texi: Likewise.
33884         * doc/posix-functions/isgraph.texi: Likewise.
33885         * doc/posix-functions/islower.texi: Likewise.
33886         * doc/posix-functions/isprint.texi: Likewise.
33887         * doc/posix-functions/ispunct.texi: Likewise.
33888         * doc/posix-functions/isspace.texi: Likewise.
33889         * doc/posix-functions/isupper.texi: Likewise.
33890         * doc/posix-functions/isxdigit.texi: Likewise.
33891
33892 2009-10-18  Bruno Haible  <bruno@clisp.org>
33893
33894         Tests for module 'isblank'.
33895         * modules/isblank-tests: New file.
33896         * tests/test-isblank.c: New file.
33897
33898         New module 'isblank'.
33899         * lib/isblank.c: New file.
33900         * m4/isblank.m4: New file.
33901         * modules/isblank: New file.
33902         * doc/posix-functions/isblank.texi: Mention the new module.
33903
33904 2009-10-18  Bruno Haible  <bruno@clisp.org>
33905
33906         New module 'ctype'.
33907         * lib/ctype.in.h: New file.
33908         * m4/ctype.m4: New file.
33909         * modules/ctype: New file.
33910         * doc/posix-headers/ctype.texi: Mention the new module.
33911
33912 2009-10-18  Jim Meyering  <meyering@redhat.com>
33913
33914         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33915         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33916         right after its initialization, rather than farther down.
33917         Keeping these in close proximity makes it easier to ensure
33918         that each such variable is initialized.  E.g.,
33919
33920             LIB_CLOCK_GETTIME=
33921             AC_SUBST([LIB_CLOCK_GETTIME])
33922
33923         This change also increments these serial numbers.
33924         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33925         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33927
33928 2009-10-18  Bruno Haible  <bruno@clisp.org>
33929
33930         Don't let environment variables perturb build.
33931         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33932         (gl_PREREQ_GETHRXTIME): ... not here.
33933
33934 2009-10-18  Bruno Haible  <bruno@clisp.org>
33935
33936         Avoid symlink attack in localcharset module.
33937         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33938         (O_NOFOLLOW): Define fallback.
33939         (get_charset_aliases): Don't open the file if it is a symbolic link.
33940         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33941         gl_FCNTL_H.
33942         (gl_FCNTL_H): Require it.
33943         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33944         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33945         Reported by Fergal Glynn <fglynn@veracode.com>.
33946
33947 2009-10-18  Bruno Haible  <bruno@clisp.org>
33948
33949         Implement nproc for mingw.
33950         * lib/nproc.c: Include <windows.h>
33951         (num_processors): On native Windows platforms, try GetSystemInfo.
33952
33953 2009-10-18  Bruno Haible  <bruno@clisp.org>
33954
33955         Implement nproc for IRIX.
33956         * lib/nproc.c: Include <sys/sysmp.h>.
33957         (num_processors): On IRIX systems, try sysmp.
33958         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33959
33960 2009-10-18  Bruno Haible  <bruno@clisp.org>
33961
33962         Implement nproc for HP-UX.
33963         * lib/nproc.c: Include <sys/pstat.h>
33964         (num_processors): On HP-UX systems, try pstat_getdynamic.
33965         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33966         pstat_getdynamic.
33967
33968 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33969             Bruno Haible  <bruno@clisp.org>
33970
33971         Implement nproc for NetBSD, OpenBSD.
33972         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33973         (ARRAY_SIZE): New macro.
33974         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33975         * m4/nproc.m4: New file.
33976         * modules/nproc (Files): Add m4/nproc.m4.
33977         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33978         (Makefile.am): Instead, augment lib_SOURCES.
33979
33980 2009-10-18  Bruno Haible  <bruno@clisp.org>
33981
33982         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33983         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33984         sys/param.h.
33985
33986 2009-10-16  Eric Blake  <ebb9@byu.net>
33987
33988         utimensat: new module
33989         * modules/utimensat: New file.
33990         * lib/utimensat.c (utimensat): Likewise.
33991         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33992         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33993         so we can work around Linux bugs.
33994         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33995         * modules/sys_stat (Makefile.am): Substitute them.
33996         * lib/sys_stat.in.h (utimensat): Declare it.
33997         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33998         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33999         * modules/utimensat-tests: New test.
34000         * tests/test-utimensat.c: Likewise.
34001
34002         utimens: let lutimens work on non-symlinks
34003         * lib/utimens.c (lutimens): Fall back to utimens rather than
34004         failing with ENOSYS, when file is not a symlink.
34005         (utimens): Reduce redirection.
34006         * tests/test-lutimens.h (test_lutimens): Update test to cover
34007         non-symlinks.
34008         * tests/test-utimens.h (test_utimens): Update test to cover
34009         symlinks.
34010         * tests/test-utimens.c (main): Update caller.
34011
34012         utimens: cache whether utimensat syscall works
34013         * lib/utimens.c (utimensat_works_really): New cache variable.
34014         (fdutimens, lutimens): Use it to avoid failing syscall.
34015
34016         test-stat-time, test-utimens: improve portability
34017         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34018         ext4 on alpha, and for cygwin.
34019         * tests/test-utimens-common.h: New file.
34020         (nap): Factor delays into single function.
34021         * tests/test-lutimens.h (test_lutimens): Use new header.
34022         * tests/test-futimens.h (test_futimens): Likewise.
34023         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34024         timestamps to occur from same machine, as was done previously for
34025         test_utimens.
34026         * modules/utimens-tests (Files): Ship new file.
34027         * modules/futimens-tests (Files): Likewise.
34028         Reported in part by Jim Meyering.
34029
34030         sys_stat: sort replacement declarations
34031         * lib/sys_stat.in.h: Sort declarations.
34032         * lib/futimens.c (futimens): Fix typo.
34033
34034 2009-10-15  Jim Meyering  <meyering@redhat.com>
34035
34036         don't let environment settings perturb build
34037         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34038         could cause a configure-time and/or build-time malfunction.
34039         Typically, a configure-time function-in-library test is performed
34040         via code like this:
34041
34042           LIB_VAR=
34043           AC_SUBST([LIB_VAR])
34044           prefix_saved_LIBS=$LIBS
34045             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34046                        [test "$ac_cv_search_FUNC" = "none required" ||
34047                         LIB_VAR=$ac_cv_search_FUNC])
34048           LIBS=$prefix_saved_LIBS
34049
34050         However, in each of the files affected by this change, the LIB_VAR=
34051         initialization was omitted.  Thus, when set in the environment, its
34052         value would propagate into generated Makefiles when FUNC is not found
34053         in LIB_NAME.
34054         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34055         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34057
34058 2009-10-14  Eric Blake  <ebb9@byu.net>
34059
34060         fchdir: avoid infinite recursion in mingw
34061         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34062         recursing.
34063
34064         test-stat-time: port to mingw
34065         * tests/test-stat-time.c (force_unlink): Return a value.
34066         (test_ctime) [W32]: Fix compilation error.
34067         (nap): Don't call usleep with too large an argument.  Use
34068         force_unlink.
34069         * doc/pastposix-functions/usleep.texi (usleep): Document the
34070         portability issue.
34071
34072 2009-10-13  Jim Meyering  <meyering@redhat.com>
34073
34074         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34075         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34076         * modules/pipe-filter-ii: Likewise.
34077         * modules/sys_socket-tests: Likewise.
34078         * modules/tsearch-tests: Likewise.
34079         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34080         (check): Depend on it.
34081
34082 2009-10-12  Eric Blake  <ebb9@byu.net>
34083
34084         utimens-tests: port to NFS file systems
34085         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34086         comparisons to avoid spurious failures from timestamp drift
34087         between NFS machines.
34088
34089 2009-10-12  Eric Blake  <ebb9@byu.net>
34090
34091         stat-time-tests: minor cleanups
34092         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34093         * tests/test-stat-time.c (nap): Separate assignment from call.
34094         Suggested by Paolo Bonzini and Bruno Haible.
34095
34096         sys_stat: guarantee struct timespec
34097         * lib/sys_stat.in.h (includes): Always include <time.h>
34098         * modules/sys_stat (Depends-on): Add time.
34099         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34100         mode_t permission values.
34101         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34102         get at subsecond timestamps.
34103
34104 2009-10-10  Eric Blake  <ebb9@byu.net>
34105
34106         futimens: new module
34107         * modules/futimens: New file.
34108         * lib/futimens.c (futimens): Likewise.
34109         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34110         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34111         we can work around Linux bugs.
34112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34113         * modules/sys_stat (Makefile.am): Substitute them.
34114         * lib/sys_stat.in.h (futimens): Declare it.
34115         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34116         * doc/posix-functions/futimens.texi (futimens): Likewise.
34117         * modules/futimens-tests: New test.
34118         * tests/test-futimens.c: Likewise.
34119
34120         utimens: introduce fdutimens
34121         * lib/utimens.h (fdutimens): New prototype.
34122         * lib/utimens.c (gl_futimens): Move guts...
34123         (fdutimens): ...to new interface.
34124         * tests/test-utimens.c (do_fdutimens): Use it.
34125
34126         utimens: add UTIME_NOW and UTIME_OMIT support
34127         * lib/utimens.c (validate_timespec, update_timespec): New helper
34128         functions.
34129         (gl_futimens, lutimens): Use them.
34130         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34131         stdbool, sys_stat.
34132         (Link): Mention resulting library dependency.
34133         * modules/utimecmp (Link): Likewise.
34134         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34135         (Makefile.am): Pick up library dependency.
34136         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34137         definition.
34138         * tests/test-sys_stat.c: Test the definitions.
34139         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34140         * NEWS: Document library dependency.
34141
34142         utimecmp: support symlink timestamps
34143         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34144         hashing when possible.  Use pathconf when available.
34145         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34146         * modules/utimecmp (Depends-on): Add lstat.
34147
34148         utimens: add lutimens interface
34149         * lib/utimens.c (lutimens): New function.
34150         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34151         * lib/utimens.h (lutimens): Declare new interface.
34152         * tests/test-utimens.c (main): Enhance test.
34153         * tests/test-lutimens.h (test_lutimens): New file.
34154         * modules/utimens-tests (Files): Distribute it.
34155         (Depends-on): Add symlink.
34156         (configure.ac): Check for usleep.
34157
34158         utimens: validate futimens usage
34159         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34160         fewer syscalls on failure later on.  Avoid compiler warning on
34161         mingw.
34162         * modules/utimens (Depends-on): Add dup2.
34163
34164         utimens: add test
34165         * modules/utimens-tests: New test.
34166         * tests/test-utimens.h: New file.
34167         * tests/test-futimens.h: Likewise.
34168         * tests/test-utimens.c: Likewise.
34169
34170         doc: mention timestamp portability issues
34171         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34172         instead.
34173         * doc/posix-functions/utime.texi (utime): Likewise.
34174         * doc/posix-functions/utimes.texi (utimes): Likewise.
34175         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34176         instead.
34177         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34178         module.
34179         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34180         Mention weakness with symlink timestamps.
34181         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34182         to utimensat/futimens instead.
34183         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34184
34185         test-dup2: enhance test
34186         * tests/test-dup2.c (main): Also check AT_FDCWD.
34187
34188         test-stat-time: avoid more spurious failures
34189         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34190         xfs; and avoid race if the two timestamps cross quantization edge.
34191
34192         relocatable: prefer 'file system' over 'filesystem'
34193         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34194         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34195         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34196         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34197         * lib/relocatable.c (compute_curr_prefix): Likewise.
34198
34199 2009-10-10  Jim Meyering  <meyering@redhat.com>
34200
34201         stat-time-tests: check for the usleep function
34202         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34203
34204 2009-10-10  Bruno Haible  <bruno@clisp.org>
34205
34206         * modules/xnanosleep: Put the Link section after the Include section.
34207
34208 2009-10-09  Eric Blake  <ebb9@byu.net>
34209
34210         dup2: work around FreeBSD 6.1 bug
34211         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34212         * doc/posix-functions/dup2.texi (dup2): Document it.
34213         Reported by Nelson H. F. Beebe and Jim Meyering.
34214
34215         test-stat-time: port to buggy NFS clients
34216         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34217         (test_ctime): Also skip test if mtime and ctime are skewed.
34218
34219         maint: prefer 'file system' over 'filesystem'
34220         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34221         * doc/posix-functions/lstat.texi (lstat): Likewise.
34222         * lib/file-has-acl.c (file_has_acl): Likewise.
34223         * lib/fwriteerror.c [TEST]: Likewise.
34224         * tests/test-areadlink.h (test_areadlink): Likewise.
34225         * tests/test-areadlinkat-with-size.c (main): Likewise.
34226         * tests/test-areadlinkat.c (main): Likewise.
34227         * tests/test-canonicalize-lgpl.c (main): Likewise.
34228         * tests/test-canonicalize.c (main): Likewise.
34229         * tests/test-fstatat.c (main): Likewise.
34230         * tests/test-linkat.c (main): Likewise.
34231         * tests/test-lstat.h (test_lstat_func): Likewise.
34232         * tests/test-mkdir.h (test_mkdir): Likewise.
34233         * tests/test-readlink.h (test_readlink): Likewise.
34234         * tests/test-remove.c (main): Likewise.
34235         * tests/test-rename.h (test_rename): Likewise.
34236         * tests/test-renameat.c (main): Likewise.
34237         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34238         * tests/test-symlink.h (test_symlink): Likewise.
34239         * tests/test-symlinkat.c (main): Likewise.
34240         * tests/test-unlink.h (test_unlink_func): Likewise.
34241         * tests/test-unlinkat.c (main): Likewise.
34242
34243         maint: make realtime library usage explicit
34244         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34245         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34246         * modules/settime (Link): Likewise.
34247         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34248
34249         test-stat-time: speed up execution
34250         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34251         warning on mingw.
34252         (nap): New helper function.
34253         (prepare_test): Use it to reduce sleep time.
34254         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34255         execution.
34256         * modules/stat-time-tests (configure.ac): Check for usleep.
34257
34258 2009-10-09  Jim Meyering  <meyering@redhat.com>
34259
34260         selinux-h: always use getfilecon wrappers
34261         * lib/getfilecon.c: New file.
34262         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34263         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34264         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34265         (fgetfilecon): Provide a stub.
34266         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34267         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34268         file unconditionally.
34269         When <selinux/selinux.h> is found, arrange to use wrappers.
34270         * modules/selinux-h (Files): Add getfilecon.c.
34271         (Makefile.am): Substitute include-next-related bits
34272         into the now-always-generated selinux/selinux.h file.
34273         * doc/glibc-functions/lgetfilecon.texi: New file.
34274         * doc/glibc-functions/fgetfilecon.texi: New file.
34275         * doc/glibc-functions/getfilecon.texi: New file.
34276         * doc/glibc-functions/getfilecon-desc.texi: New file.
34277         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34278         which to pull in the new files.
34279         * MODULES.html.sh (Misc): Add selinux-h.
34280
34281 2009-10-08  Jim Meyering  <meyering@redhat.com>
34282
34283         unistd: fix comment typo
34284         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34285
34286 2009-10-08  Eric Blake  <ebb9@byu.net>
34287
34288         areadlink: use SIZE_MAX consistently
34289         * modules/areadlink (Depends-on): Add stdint.
34290         * modules/areadlink-with-size (Depends-on): Likewise.
34291         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34292         gives NULL; drop sys/types, since unistd gives size_t; and add
34293         stdint for SIZE_MAX.
34294         (SIZE_MAX): Rely on headers.
34295         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34296         and add stdint.
34297         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34298         (SIZE_MAX): Likewise.
34299         (INITIAL_BUF_SIZE): Turn into enum.
34300         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34301
34302 2009-10-08  Jim Meyering  <meyering@redhat.com>
34303
34304         areadlinkat: avoid compilation failure
34305         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34306         Fix typo in comment.
34307
34308 2009-10-07  Eric Blake  <ebb9@byu.net>
34309
34310         areadlinkat-with-size: new module
34311         * modules/areadlinkat-with-size: New module.
34312         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34313         * lib/areadlink.h (areadlinkat): Declare it.
34314         * MODULES.html.sh (File system functions): Mention it.
34315         * modules/areadlinkat-with-size-tests: New test.
34316         * tests/test-areadlinkat-with-size.c: New file.
34317
34318         xreadlinkat: new module
34319         * modules/xreadlinkat: New module.
34320         * lib/xreadlinkat.c (xreadlinkat): New file.
34321         * lib/xreadlink.h (xreadlinkat): Declare it.
34322         * MODULES.html.sh (File system functions): Mention it.
34323
34324         areadlinkat: new module
34325         * lib/at-func.c (FUNC_FAIL): New define.
34326         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34327         * modules/areadlinkat: New module.
34328         * lib/linkat.c (areadlinkat): Move...
34329         * lib/areadlinkat.c (areadlinkat): ...to new file.
34330         * lib/areadlink.h (areadlinkat): Declare it.
34331         * modules/linkat (Depends-on): Add areadlinkat.
34332         * MODULES.html.sh (File system functions): Mention it.
34333         * modules/areadlinkat-tests: New test.
34334         * tests/test-areadlinkat.c: New file.
34335
34336         areadlink, areadlink-with-size: add tests
34337         * modules/areadlink-tests: New test.
34338         * modules/areadlink-with-size-tests: Likewise.
34339         * tests/test-areadlink.h: New file.
34340         * tests/test-areadlink.c: Likewise.
34341         * tests/test-areadlink-with-size.c: Likewise.
34342
34343         maint: minor cleanups
34344         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34345         _UNUSED_PARAMETER_ instead.
34346         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34347         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34348         * modules/linkat-tests (Files): Distribute test-link.h.
34349
34350         openat, utimens: whitespace cleanup
34351         * lib/openat.c: Prefer space throughout, rather than mix of 8
34352         spaces vs. tabs.
34353         * lib/at-func.c: Likewise.
34354         * lib/utimens.c: Likewise.
34355
34356         openat: avoid using wrong fd
34357         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34358         working directory chooses same fd.
34359         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34360
34361         mkdir, mkdirat: fix cygwin 1.5.x bug
34362         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34363         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34364         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34365         bug.
34366         (gl_PREREQ_MKDIR): Delete unused macro.
34367         * modules/mkdir (Files): Track file rename.
34368         (configure.ac): Update macro name.
34369         * modules/openat (Depends-on): Add mkdir.
34370         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34371
34372         mkdir, mkdirat: add tests
34373         * modules/mkdir-tests: New test.
34374         * tests/test-mkdir.h: New file.
34375         * tests/test-mkdir.c: Likewise.
34376         * tests/test-mkdirat.c: Likewise.
34377         * modules/openat-tests (Files): Add new files.
34378         (Makefile.am): Run new test.
34379
34380 2009-10-06  Eric Blake  <ebb9@byu.net>
34381
34382         doc: tweak *at function documentation
34383         * doc/posix-functions/faccessat.texi (faccessat): Mention
34384         known issue with replacement.
34385         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34386         * doc/posix-functions/linkat.texi (linkat): Likewise.
34387         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34388         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34389         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34390         * doc/posix-functions/renameat.texi (renameat): Likewise.
34391         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34392
34393         openat: fix GNU/Hurd bug in unlinkat
34394         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34395         broken.
34396         * doc/posix-functions/unlink.texi (unlink): Document this.
34397         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34398
34399         fdopendir: fix GNU/Hurd bug
34400         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34401         allowing non-directory fds.
34402         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34403         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34404         * modules/dirent (Makefile.am): Substitute it.
34405         * lib/dirent.in.h (fdopendir): Declare replacement.
34406         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34407         * tests/test-fdopendir.c (main): Test something other than
34408         /dev/null, since on Hurd that behaves like a directory.
34409
34410         test-symlink: port to GNU/Hurd
34411         * tests/test-symlink.h (test_symlink): Relax expected errno.
34412
34413         doc: tweak more cygwin information
34414         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34415         now compatible with glibc.
34416         * doc/posix-functions/getopt.texi (getopt): Likewise.
34417
34418         getopt-gnu: add another test
34419         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34420         guarantee behavior relied on by m4.
34421         * tests/test-getopt.c (main): Use it.
34422         * modules/getopt-posix-tests (Depends-on): Add setenv.
34423         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34424
34425         getopt: fix compilation on darwin
34426         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34427         include.
34428         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34429         Reported by Ludovic Courtès.
34430
34431 2009-10-06  Bruno Haible  <bruno@clisp.org>
34432
34433         * modules/size_max (Description): Discourage its use.
34434         Reported by Simon Josefsson.
34435
34436 2009-10-06  Jim Meyering  <meyering@redhat.com>
34437
34438         linkat: avoid compilation failure
34439         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34440
34441 2009-10-05  Eric Blake  <ebb9@byu.net>
34442
34443         linkat: support Linux 2.6.17
34444         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34445         linkat on Linux, but allow cache variable override.
34446         * lib/linkat.c (rpl_linkat): Define override.
34447         * modules/linkat (Depends-on): Add symlinkat.
34448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34449         * modules/unistd (Makefile.am): Substitute it.
34450         * lib/unistd.in.h (linkat): Declare replacement.
34451         Reported by Pádraig Brady.
34452
34453         quotearg: port test to systems with C.UTF-8 locale
34454         * tests/test-quotearg.c (struct result_strings): Add another
34455         member, differentiating between C.ASCII and C.UTF-8 handling.
34456         (compare_strings): Add parameter.
34457         (main): Adjust all callers.
34458
34459         getopt: avoid clash with FreeBSD _getopt_internal
34460         * lib/getopt.in.h (_getopt_internal): Override the name.
34461         * lib/getopt_int.h (includes): Pick up any overrides.
34462         Reported by Reuben Thomas.
34463
34464         hash: allow C89 compilation
34465         * lib/hash.c (check_tuning): Move declaration before statement.
34466         Reported by Reuben Thomas.
34467
34468 2009-10-05  Karl Berry  <karl@gnu.org>
34469
34470         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34471
34472 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34473             Bruno Haible  <bruno@clisp.org>
34474
34475         * lib/uname.c (uname): Use a table-driven algorithm to compute
34476         Windows NT versions.
34477
34478 2009-10-04  Bruno Haible  <bruno@clisp.org>
34479
34480         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34481         program_invocation_short_name.
34482         * modules/progname (configure.ac): Test for presence of
34483         program_invocation_short_name.
34484         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34485
34486 2009-10-04  Bruno Haible  <bruno@clisp.org>
34487
34488         * lib/progname.c (set_program_name): Fix comment.
34489         Reported by Jim Meyering.
34490
34491 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34492             Bruno Haible  <bruno@clisp.org>
34493
34494         * lib/uname.c: Include <string.h>.
34495         (uname): Do only one call to GetVersionEx in the common case.
34496
34497 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34498             Bruno Haible  <bruno@clisp.org>
34499
34500         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34501         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34502         (uname): Add support for Windows CE and various non-x86 CPU types.
34503
34504 2009-10-03  Bruno Haible  <bruno@clisp.org>
34505
34506         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34507         invocation to tests/configure.ac.
34508         Reported by Ian Beckwith <ianb@erislabs.net>.
34509
34510 2009-10-02  Eric Blake  <ebb9@byu.net>
34511
34512         fchdir: avoid compiler warning
34513         * lib/fchdir.c (canonicalize_file_name)
34514         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34515
34516         test-open: support mingw errno values
34517         * tests/test-open.h (test_open): Relax test.
34518         * tests/test-fopen.h (test_fopen): Likewise.
34519         * tests/test-openat-safer.c (main): Likewise.
34520
34521         open: fix opening directory on mingw
34522         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34523
34524         test-open: on GNU/Hurd, /dev/null is a directory
34525         * tests/test-fopen.h (main): Rename...
34526         (test_fopen): ...to this.  Use a guaranteed non-directory when
34527         confirming open behavior on trailing slash.
34528         * tests/test-openat-safer.c (main): Likewise.
34529         * tests/test-open.h (main): Likewise....
34530         (test_open): ...to this.
34531         * tests/test-fopen.c (main): Adjust caller.
34532         * tests/test-fopen-safer.c (main): Likewise.
34533         * tests/test-open.c (main): Likewise.
34534         * tests/test-fcntl-safer.c (main): Likewise.
34535         Reported by Samuel Thibault.
34536
34537         rename, fchdir: don't ignore chdir failure
34538         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34539         * lib/rename.c (rpl_rename) [W32]: Likewise.
34540         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34541         an empty destination directory if source cannot be renamed,
34542         although there is still possibility for failure.
34543         * doc/posix-functions/rename.texi (rename): Document the race.
34544         Reported by Jim Meyering.
34545
34546         maint: cleanup whitespace in recent commits
34547         * lib/rename.c (rpl_rename): Remove tabs.
34548         * tests/test-link.h (test_link): Likewise.
34549         * lib/fchdir.c (get_name): Likewise.
34550         Reported by Jim Meyering.
34551
34552 2009-10-02  Ben Pfaff  <blp@gnu.org>
34553
34554         relocatable-prog-wrapper: Add missing dependency on
34555         double-slash-root.
34556         * modules/relocatable-prog-wrapper: Add dependency.
34557         Reported by Ian Beckwith <ianb@erislabs.net>.
34558
34559 2009-10-02  Eric Blake  <ebb9@byu.net>
34560
34561         renameat: fix Solaris bugs
34562         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34563         needed fixing.
34564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34565         * modules/stdio (Makefile.am): Substitute it.
34566         * lib/stdio.in.h (renameat): Declare replacement.
34567         * lib/renameat.c (rpl_renameat): Implement fix.
34568
34569         renameat: new module
34570         * modules/renameat: New file.
34571         * lib/renameat.c (renameat): Likewise.
34572         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34574         * modules/stdio (Makefile.am): Substitute them.
34575         * lib/stdio.in.h (renameat): Declare it.
34576         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34577         * doc/posix-functions/renameat.texi (renameat): Likewise.
34578         * modules/renameat-tests: New test.
34579         * tests/test-renameat.c: Likewise.
34580
34581         rename: fix mingw bugs
34582         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34583         directory overwrite bugs.
34584
34585         rename: fix another cygwin 1.5 bug
34586         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34587         checks.
34588         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34589         unnecessary cygwin workarounds.  Also work around bug with moving
34590         full directory onto an empty one.
34591         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34592
34593         rename-dest-slash: merge into rename module
34594         * modules/rename-dest-slash (Status): Mark obsolete.
34595         (Depends-on): Add rename.
34596         (Files): Let rename do it all.
34597         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34598         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34599         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34600         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34601         * lib/rename.c (rpl_rename): Update comments.
34602
34603         rename: fix cygwin 1.5.x bugs
34604         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34605         * lib/rename.c (rpl_rename): Work around them.
34606         * modules/rename (Depends-on): Add same-inode.
34607
34608         rename: fix Solaris 10 bug
34609         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34610         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34611         was the only bug.
34612
34613         rename: fix Solaris 9 bug
34614         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34615         on non-directory.  Avoid calling exit.
34616         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34617         strdup.
34618         * modules/rename-tests (Depends-on): Drop lstat.
34619         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34620         (gl_PREREQ_RENAME): Delete unused macro.
34621
34622         rename-dest-slash: fix NetBSD bug
34623         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34624         links.
34625         * modules/rename-dest-slash (Depends-on): Add same-inode.
34626
34627         rename-tests: new test, exposes several platform bugs
34628         * modules/rename-tests: New file.
34629         * tests/test-rename.h: Likewise.
34630         * tests/test-rename.c: Likewise.
34631         * doc/posix-functions/rename.texi (rename): Improve documentation,
34632         including bugs that will eventually be fixed in gnulib.
34633
34634 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34635
34636         * lib/uname.c: Include <stdlib.h>
34637         (uname): Assume version info is available.
34638
34639 2009-10-02  Jim Meyering  <meyering@redhat.com>
34640
34641         gnu-web-doc-update: correct --help output
34642         * build-aux/gnu-web-doc-update: Make --help output relevant.
34643
34644         gnu-web-doc-update: add standard options
34645         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34646
34647         gnu-web-doc-update: New module.
34648         Use this script to automatically update the on-line web documentation
34649         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34650         * modules/gnu-web-doc-update: New file, from coreutils.
34651         * build-aux/gnu-web-doc-update: New script.
34652
34653 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34654
34655         link: LoadLibrary is not needed.
34656         * lib/link.c: Use GetModuleHandle.
34657
34658 2009-10-01  Eric Blake  <ebb9@byu.net>
34659
34660         getopt: bump serial number
34661         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34662         change.
34663
34664         tests: tighten link, rmdir, and remove tests
34665         * tests/test-link.h (includes): No need to use <config.h> here.
34666         Clean up if directory hard link was created, otherwise test for
34667         trailing '.'.
34668         * tests/test-linkat.c (main): Simplify.
34669         * tests/test-remove.c (main): Enhance test for trailing '.'.
34670         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34671
34672 2009-10-01  Jim Meyering  <meyering@redhat.com>
34673
34674         maint.mk: requiring "make major" was annoying, for a "minor" release.
34675         What is intended is "stable", to contrast with alpha and beta,
34676         so require "make stable", not "make major".
34677         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34678         (get_tool_versions): Likewise.
34679         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34680
34681 2009-09-30  Ben Pfaff  <blp@gnu.org>
34682
34683         Fix broken build of replacement for Windows tmpfile().
34684         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34685         flags argument added along with the 'mkostemp' module.
34686
34687 2009-09-28  Bruno Haible  <bruno@clisp.org>
34688
34689         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34690         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34691         to 'remove_elt'.
34692         (gl_list_remove): Update.
34693         * lib/gl_list.c (gl_list_remove): Update.
34694         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34695         to 'remove_elt'.
34696         (gl_oset_remove): Update.
34697         * lib/gl_list.c (gl_oset_remove): Update.
34698         Reported by Eric Blake.
34699
34700 2009-09-28  Eric Blake  <ebb9@byu.net>
34701
34702         doc: mention yet more cygwin 1.7 status
34703         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34704         cygwin.
34705         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34706         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34707
34708         argp: fix test failure
34709         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34710         that are not upper-case.  Pass correct range to tolower.
34711
34712 2009-09-27  Jim Meyering  <meyering@redhat.com>
34713
34714         test-yesno: work around sparc-dash here-document infelicity
34715         Without this change, the literal \177 byte in a here document
34716         would make dash 0.5.5.1-3 access uninitialized memory.
34717         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34718         Instead, use a marker, "@", and filter through tr to create the desired
34719         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34720
34721 2009-09-27  Bruno Haible  <bruno@clisp.org>
34722
34723         Disable untested support for new flavours of ACLs on AIX.
34724         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34725         progress.
34726         * lib/set-mode-acl.c (qset_acl): Likewise.
34727
34728 2008-12-07  Bruno Haible  <bruno@clisp.org>
34729
34730         Add support for new flavours of ACLs on AIX. (Untested.)
34731         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34732         (file_has_acl): Add support for newer AIX.
34733         * lib/set-mode-acl.c (qset_acl): Likewise.
34734         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34735         Rainer Tammer <tammer@tammer.net>.
34736
34737 2009-09-26  Eric Blake  <ebb9@byu.net>
34738
34739         argp: fix compilation of getopt
34740         * lib/getopt.in.h (includes): Use different guard than glibc.
34741         Reported by Sergey Poznyakoff.
34742
34743         doc: mention more cygwin 1.7 status
34744         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34745         bug.
34746         * doc/posix-functions/execl.texi (execl): Likewise.
34747         * doc/posix-functions/execle.texi (execle): Likewise.
34748         * doc/posix-functions/execlp.texi (execlp): Likewise.
34749         * doc/posix-functions/execv.texi (execv): Likewise.
34750         * doc/posix-functions/execve.texi (execve): Likewise.
34751         * doc/posix-functions/execvp.texi (execvp): Likewise.
34752         * doc/glibc-functions/canonicalize_file_name.texi
34753         (canonicalize_file_name): Cygwin 1.7 now provides this.
34754         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34755         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34756         on AT_SYMLINK_NOFOLLOW.
34757
34758 2009-09-24  Eric Blake  <ebb9@byu.net>
34759
34760         test-linkat: make test more robust
34761         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34762
34763         getopt: fix inclusion guards for cygwin
34764         * modules/getopt-posix (Depends-on): Add include-next.
34765         (Makefile.am): Substitute more items in replacement header.
34766         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34767         <getopt.h>.
34768         * lib/getopt.in.h (includes): Use split inclusion guard, and
34769         prefer <getopt.h> over include <unistd.h> when one is present.
34770         (option): Also override name of 'struct option'.
34771
34772         same-inode: revert prior change; it is not yet ready
34773         * NEWS: Undo mention of this change.
34774         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34775         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34776         * lib/cycle-check.c (cycle_check): Likewise.
34777         * lib/same.c (same_name): Likewise.
34778         * lib/at-func2.c (at_func2): Likewise.
34779
34780 2009-09-23  Eric Blake  <ebb9@byu.net>
34781
34782         linkat: new module
34783         * modules/linkat: New file.
34784         * lib/at-func2.c (at_func2): Likewise.
34785         * lib/linkat.c (linkat): Likewise.
34786         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34787         * lib/openat-priv.h (at_func2): Add declaration.
34788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34789         * modules/unistd (Makefile.am): Substitute them.
34790         * lib/unistd.in.h (linkat): Declare it.
34791         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34792         * doc/posix-functions/linkat.texi (linkat): Likewise.
34793         * doc/posix-functions/link.texi (link): Tweak wording.
34794         * tests/test-link.c (main): Move guts...
34795         * tests/test-link.h (test_link): ...into new file.
34796         * modules/linkat-tests: New test.
34797         * tests/test-linkat.c: Likewise.
34798         * modules/link-tests (Files): Ship new file.
34799         (Depends-on): Add stdbool.
34800
34801         dirname: add library-safe mdir_name
34802         * lib/dirname.h (mdir_name): New prototype.
34803         * lib/dirname.c (dir_name): Move guts...
34804         (mdir_name): ...to new function that avoids xalloc_die.
34805
34806         fchdir: another mingw fix
34807         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34808         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34809         on mingw (where it has not yet been ported), and make it optional
34810         elsewhere.
34811         (_gl_register_fd): Use it.
34812
34813         same-inode: make SAME_INODE tri-state, to port to mingw
34814         * NEWS: Mention this change.
34815         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34816         st_ino always being 0.
34817         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34818         * lib/cycle-check.c (cycle_check): Likewise.
34819         * lib/same.c (same_name): Likewise.
34820
34821         lstat: avoid mingw compilation error
34822         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34823         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34824         lstat ourselves.
34825         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34826         was adequate.
34827         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34828         the checks for lstat.
34829         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34830
34831         link: fix test failure on Solaris 9
34832         * lib/link.c (rpl_link): Don't assume link will catch bogus
34833         trailing slash on source.
34834
34835         test-symlinkat: enhance test
34836         * tests/test-readlink.c (main): Move guts...
34837         * tests/test-readlink.h (test_readlink): ...into new file.
34838         * tests/test-symlink.c (main): Move guts...
34839         * tests/test-symlink.h (test_symlink): ...into new file.
34840         * tests/test-symlinkat.c (main): Use new files for further
34841         coverage.
34842         (do_symlink, do_readlink): New helper functions.
34843         * modules/symlink-tests (Files): Ship new file.
34844         (Depends-on): Add stdbool.
34845         * modules/readlink-tests (Files): Ship new file.
34846         (Depends-on): Add stdbool.
34847         * modules/symlinkat-tests (Files): Use new files.
34848
34849 2009-09-23  Eric Blake  <ebb9@byu.net>
34850
34851         readlink: document portability issue with symlink length
34852         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34853         systems have bogus st_size on symlinks, and mention the
34854         areadlink-with-size module.
34855         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34856         * doc/posix-functions/readlink.texi (readlink): Mention the
34857         areadlink module, and ERANGE failure.
34858         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34859         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34860
34861         readlink: fix Solaris 9 bug with trailing slash
34862         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34863         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34864         * doc/posix-functions/readlink.texi (readlink): Document this.
34865         * modules/readlink-tests: New test.
34866         * tests/test-readlink.c: Likewise.
34867
34868         readlink: fix cygwin 1.5.x bug with return type
34869         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34870         * lib/unistd.in.h (readlink): Use ssize_t.
34871         * lib/readlink.c (readlink): Likewise.
34872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34873         * modules/unistd (Makefile.am): Substitute it.
34874         * lib/unistd.in.h (readlink): Declare replacement.
34875         * doc/posix-functions/readlink.texi (readlink): Document this.
34876
34877         symlink: use throughout gnulib
34878         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34879         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34880         symlink is not used.
34881         * modules/symlinkat (Depends-on): Add symlink.
34882         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34883         * modules/canonicalize-tests (Depends-on): Likewise.
34884         * modules/lstat-tests (Depends-on): Likewise.
34885         * modules/openat-tests (Depends-on): Likewise.
34886         * modules/remove-tests (Depends-on): Likewise.
34887         * modules/rmdir-tests (Depends-on): Likewise.
34888         * modules/unlink-tests (Depends-on): Likewise.
34889         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34890         * tests/test-canonicalize.c (symlink): Likewise.
34891         * tests/test-fstatat.c (symlink): Likewise.
34892         * tests/test-lstat.c (symlink): Likewise.
34893         * tests/test-remove.c (symlink): Likewise.
34894         * tests/test-rmdir.c (symlink): Likewise.
34895         * tests/test-unlink.c (symlink): Likewise.
34896         * tests/test-unlinkat.c (symlink): Likewise.
34897
34898         symlink: new module, for Solaris 9 bug
34899         * modules/symlink: New file.
34900         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34901         * lib/symlink.c: Likewise.
34902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34903         * modules/unistd (Makefile.am): Substitute them.
34904         * lib/unistd.in.h (symlink): Declare replacement.
34905         * MODULES.html.sh (File system functions): Mention it.
34906         * doc/posix-functions/symlink.texi (symlink): Likewise.
34907         * modules/symlink-tests: New test.
34908         * tests/test-symlink.c: Likewise.
34909
34910 2009-09-23  Bruno Haible  <bruno@clisp.org>
34911
34912         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34913         when needed.
34914         Test case: gnulib-tool --import --with-tests atexit inttypes.
34915         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34916
34917 2009-09-23  Bruno Haible  <bruno@clisp.org>
34918
34919         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34920         subcommand, not in a subshell.
34921
34922 2009-09-22  Eric Blake  <ebb9@byu.net>
34923
34924         unistd: sort replacement declarations
34925         * lib/unistd.in.h: Sort declarations.
34926
34927         open, openat: minor optimization
34928         * lib/open.c (open): If open succeeded, len is non-zero.
34929         * lib/openat.c (rpl_openat): Likewise.
34930
34931         link-follow: ensure correct result
34932         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34933         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34934         distinguish between possible failures.
34935
34936 2009-09-21  Eric Blake  <ebb9@byu.net>
34937
34938         fts: avoid compiler warning
34939         * lib/fts.c (dirent_inode_sort_may_be_useful)
34940         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34941
34942 2009-09-19  Bruno Haible  <bruno@clisp.org>
34943
34944         * lib/progreloc.c (canonicalize_file_name): New declaration.
34945
34946 2009-09-19  Eric Blake  <ebb9@byu.net>
34947
34948         link: fix quoting
34949         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34950
34951         openat: fix openat bugs on Solaris 9
34952         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34953         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34954         * modules/openat (Depends-on): Add open.
34955         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34956         * modules/fcntl-h (Makefile.am): Substitute it.
34957         * lib/fcntl.in.h (openat): Declare replacement.
34958         * doc/posix-functions/openat.texi (openat): Document this.
34959
34960         openat: move fstatat and unlinkat into correct files
34961         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34962         compiled.
34963         * lib/openat.c (fstatat, unlinkat): Move...
34964         * lib/fstatat.c (fstatat): ...into correct files.
34965         * lib/unlinkat.c (unlinkat): Likewise.
34966
34967         openat: fix unlinkat bugs on Solaris 9
34968         * lib/unlinkat.c (unlinkat): New file.
34969         * modules/openat (Depends-on): Add unlink.
34970         (Files): Distribute it.
34971         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34972         trailing slash behavior is broken.
34973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34974         * modules/unistd (Makefile.am): Substitute it.
34975         * lib/unistd.in.h (unlinkat): Declare replacement.
34976         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34977
34978         openat: fix fstatat bugs on Solaris 9
34979         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34980         stat.
34981         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34982
34983         test-unlinkat: enhance test, to expose Solaris 9 bug
34984         * tests/test-unlink.c (main): Factor guts...
34985         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34986         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34987         * tests/test-rmdir.c (main): Adjust caller.
34988         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34989         (unlinker): New helper function.
34990         (rmdirat): Enhance check.
34991         * modules/rmdir-tests (Depends-on): Add stdbool.
34992         * modules/unlink-tests (Depends-on): Likewise.
34993         (Files): Add test-unlink.h.
34994         * modules/openat-tests (Files): Likewise.
34995         (Depends-on): Add unlinkdir.
34996
34997         test-fstatat: new test, to expose Solaris 9 bugs
34998         * tests/test-stat.c (main): Factor guts...
34999         * tests/test-stat.h (test_stat_func): ...into new file.
35000         * tests/test-lstat.c (main): Factor guts...
35001         * tests/test-lstat.h (test_lstat_func): ...into new file.
35002         * tests/test-fstatat.c: New file.
35003         * modules/stat-tests (Files): Add test-stat.h.
35004         * modules/lstat-tests (Files): Add test-lstat.h.
35005         (Depends-on): Add stdbool.
35006         * modules/openat-tests (Depends-on): Add pathmax.
35007         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35008         (Makefile.am): Run new test.
35009
35010         remove: new module, for mingw and Solaris 9 bugs
35011         * modules/remove: New file.
35012         * lib/remove.c: Likewise.
35013         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35015         * modules/stdio (Makefile.am): Use them.
35016         * lib/stdio.in.h (remove): Declare replacement.
35017         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35018         * doc/posix-functions/remove.texi (remove): Likewise.
35019         * modules/remove-tests: New test.
35020         * tests/test-remove.c: Likewise.
35021
35022         unlink: new module, for Solaris 9 bug
35023         * modules/unlink: New file.
35024         * lib/unlink.c: Likewise.
35025         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35027         * modules/unistd (Makefile.am): Use them.
35028         * lib/unistd.in.h (stat): Declare replacement.
35029         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35030         * doc/posix-functions/unlink.texi (unlink): Likewise.
35031         * modules/unlink-tests: New test.
35032         * tests/test-unlink.c: Likewise.
35033
35034         lstat: fix Solaris 9 bug
35035         * lib/lstat.c (lstat): Also check for trailing slash on
35036         non-symlink, non-directories.  Use stat module to simplify logic.
35037         * doc/posix-functions/lstat.texi (lstat): Document it.
35038         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35039         (configure.ac): Check for symlink.
35040         * tests/test-lstat.c (main): Add more tests.
35041
35042         stat: add as dependency to other modules
35043         * modules/chown (Depends-on): Add stat.
35044         * modules/euidaccess (Depends-on): Likewise.
35045         * modules/fchdir (Depends-on): Likewise.
35046         * modules/isdir (Depends-on): Likewise.
35047         * modules/link (Depends-on): Likewise.
35048         * modules/lstat (Depends-on): Likewise.
35049         * modules/mkdir-p (Depends-on): Likewise.
35050         * modules/modechange (Depends-on): Likewise.
35051         * modules/open (Depends-on): Likewise.
35052         * modules/readlink (Depends-on): Likewise.
35053         * modules/same (Depends-on): Likewise.
35054
35055         stat: fix Solaris 9 bug
35056         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35057         slash.
35058         * lib/stat.c (rpl_stat): Work around it.
35059         * doc/posix-functions/stat.texi (stat): Update documentation.
35060
35061         stat: new module, for mingw bug
35062         * modules/stat: New file.
35063         * lib/stat.c: Likewise.
35064         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35065         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35066         * modules/sys_stat (Makefile.am): Use them.
35067         * lib/sys_stat.in.h (stat): Declare replacement.
35068         * lib/openat.c (fstatat): Deal with lstat and stat being function
35069         macros.
35070         * modules/openat (Depends-on): Add inline.
35071         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35072         * doc/posix-functions/stat.texi (stat): Likewise.
35073         * modules/stat-tests: New test.
35074         * tests/test-stat.c: Likewise.
35075
35076 2009-09-19  Jim Meyering  <meyering@redhat.com>
35077
35078         syntax-check: detect unnecessary inclusion of canonicalize.h
35079         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35080
35081 2009-09-19  Eric Blake  <ebb9@byu.net>
35082
35083         canonicalize-lgpl: adjust clients to use correct header
35084         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35085         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35086         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35087         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35088         * lib/progreloc.c (includes): Likewise.
35089
35090 2009-09-19  Jim Meyering  <meyering@redhat.com>
35091
35092         test-posixtm.c: correct a comment
35093         * tests/test-posixtm.c: Correct first-line comment.
35094         Spotted by Eric Blake.
35095
35096 2009-09-16  Jim Meyering  <meyering@redhat.com>
35097
35098         posixtm-tests: make T const-correct; add a test case
35099         * tests/test-posixtm.c (T): Declare const.
35100         Add a test for -(2^31+1).
35101         Remove useless can-succeed-only-in-2002 test.
35102
35103         posixtm-tests: adjust the sole failing test
35104         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35105         expected output matches what mktime now produces.  Cross-checked via
35106         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35107
35108         posixtm: move #ifdef'd tests into a new module
35109         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35110         * tests/test-posixtm.c: ... this new file.
35111         * modules/posixtm-tests: New module.
35112
35113 2009-09-19  Eric Blake  <ebb9@byu.net>
35114
35115         openat: simplify use of at-func.c
35116         * lib/at-func.c (includes): Include prerequisites here, to
35117         simplify requirements on client files.
35118         * lib/openat-priv.h: Add double-inclusion guard.
35119         * lib/faccessat.c (includes): Simplify.
35120         * lib/fchmodat.c (includes): Likewise.
35121         * lib/fchownat.c (includes): Likewise.
35122         * lib/mkdirat.c (includes): Likewise.
35123         * lib/mkfifoat.c (includes): Likewise.
35124         * lib/symlinkat.c (includes): Likewise.
35125
35126         openat: allow return of fd 0
35127         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35128         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35129         unistd-safer.
35130         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35131         <fcntl.h>; this module does not leak fds.
35132         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35133         must be allowed to return 0, leaving openat_safer to add the
35134         safety.
35135         (openat_permissive): Avoid writing to just-opened fd 2 if
35136         restoring the current directory fails.
35137         * lib/openat-die.c (openat_restore_fail): Add comment.
35138         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35139         (save_cwd): Guarantee safe fd, but without use of open_safer.
35140         * tests/test-openat.c: New test.
35141         * modules/openat-tests (Files, Makefile.am): Distribute and build
35142         new file.
35143
35144         relocatable-prog-wrapper: fix build
35145         * modules/relocatable-prog-wrapper (Files): Update name of
35146         canonicalize m4 file, broken on 2009-09-17.
35147         Reported by emad hajjar <aleppos@hotmail.com>.
35148
35149 2009-09-19  Bruno Haible  <bruno@clisp.org>
35150
35151         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35152         * lib/safe-alloc.c: Likewise.
35153         Reported by Ian Beckwith <ianb@erislabs.net>.
35154
35155 2009-09-18  Bruno Haible  <bruno@clisp.org>
35156
35157         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35158         Reported by <erobles@sensacd.com.mx>.
35159
35160 2009-09-17  Eric Blake  <ebb9@byu.net>
35161
35162         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35163         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35164         slashes when checking if last component is missing.
35165         * tests/test-canonicalize.c (main): Test this.
35166
35167         canonicalize, canonicalize-lgpl: honor // if distinct from /
35168         * modules/canonicalize (Files): Add double-slash-root.m4.
35169         * modules/canonicalize-lgpl (Files): Likewise.
35170         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35171         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35172         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35173         fallback definition.
35174         (canonicalize_filename_mode): Use it to protect //.
35175         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35176         (__realpath): Likewise.
35177         * tests/test-canonicalize.c (main): Test this.
35178         * tests/test-canonicalize-lgpl.c (main): Likewise.
35179         * modules/canonicalize-tests (Depends-on): Add same-inode.
35180         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35181
35182         canonicalize-lgpl: fix glibc bug with trailing slash
35183         * m4/canonicalize-lgpl.m4: Move contents...
35184         * m4/canonicalize.m4: ...here.
35185         (gl_CANONICALIZE_LGPL): Factor realpath check...
35186         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35187         glibc 2.3.5 bug, fixed 2005-04-27.
35188         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35189         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35190         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35191         * modules/canonicalize-lgpl (Files): Manage file rename.
35192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35193         * modules/stdlib (Makefile.am): Substitute witness.
35194         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35195         is needed.
35196         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35197         replacement is required.
35198         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35199         * doc/glibc-functions/canonicalize_file_name.texi
35200         (canonicalize_file_name): Document this.
35201         * doc/posix-functions/realpath.texi (realpath): Likewise.
35202
35203         canonicalize-lgpl: reject non-directory with trailing slash
35204         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35205         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35206         catches failures in glibc 2.3.5.
35207         * tests/test-canonicalize.c (main): Likewise.
35208
35209         canonicalize-lgpl: use native realpath if it works
35210         * lib/canonicalize-lgpl.c (realpath): Guard with
35211         FUNC_REALPATH_WORKS.
35212         * lib/stdlib.in.h (realpath): Make declaration optional based on
35213         HAVE_REALPATH.
35214         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35215         native realpath works.
35216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35217         * modules/stdlib (Makefile.am): Substitute witness.
35218
35219         canonicalize, canonicalize-lgpl: use <stdlib.h>
35220         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35221         (Include): Mention <stdlib.h>.
35222         (configure.ac): Mention functions we provide.
35223         * modules/canonicalize (configure.ac): Likewise.
35224         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35225         realpath if canonicalize_file_name is missing.
35226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35227         * modules/stdlib (Makefile.am): Substitute witnesses.
35228         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35229         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35230         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35231         * NEWS: Document this.
35232         * doc/glibc-functions/canonicalize_file_name.texi
35233         (canonicalize_file_name): Likewise.
35234         * doc/posix-functions/realpath.texi (realpath): Likewise.
35235         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35236
35237         test-canonicalize: consolidate into single C program
35238         * tests/test-canonicalize.sh: Delete; move setup into...
35239         * tests/test-canonicalize.c (main): ...the program, making it
35240         easier to run in debugger.  Add some tests.
35241         * modules/canonicalize-tests (Files): Remove unused file.
35242         (Depends-on): Add progname.
35243         (configure.ac, Makefile.am): Simplify.
35244
35245         test-canonicalize-lgpl: consolidate into single C program
35246         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35247         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35248         easier to run in debugger.  Add some tests.
35249         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35250         (configure.ac, Makefile.am): Simplify.
35251
35252         canonicalize: avoid resolvepath
35253         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35254         unnecessary checks.
35255         * lib/canonicalize.c (includes): Simplify.
35256         (canonicalize_file_name): Drop resolvepath implementation.
35257         * modules/canonicalize (Depends-on): Drop filenamecat.
35258
35259         canonicalize: don't lose errno
35260         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35261         over calls to free.
35262
35263         canonicalize: simplify errno handling
35264         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35265         assignment.
35266
35267         canonicalize, canonicalize-lgpl: update module dependencies
35268         * modules/canonicalize (Depends-on): Add extensions, lstat,
35269         pathmax, stdlib.
35270         (Files): Drop pathmax.h.
35271         (configure.ac): Adjust macro name.
35272         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35273         lstat, stdlib, sys_stat.
35274         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35275         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35276         extensions.
35277         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35278         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35279         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35280         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35281         declaration, if available.
35282         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35283         we can rely on the readlink module.
35284         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35285         (includes): Use <unistd.h> unconditionally.
35286
35287 2009-09-17  Eric Blake  <ebb9@byu.net>
35288
35289         maint: make Include sections of modules consistent
35290         * modules/alloca: Use only header name; no need to list #include.
35291         * modules/alloca-opt: Likewise.
35292         * modules/arpa_inet: Likewise.
35293         * modules/canon-host: Likewise.
35294         * modules/configmake: Likewise.
35295         * modules/dirent: Likewise.
35296         * modules/eealloc: Likewise.
35297         * modules/environ: Likewise.
35298         * modules/fchdir: Likewise.
35299         * modules/fcntl: Likewise.
35300         * modules/fcntl-h: Likewise.
35301         * modules/gethrxtime: Likewise.
35302         * modules/gettime: Likewise.
35303         * modules/ignore-value: Likewise.
35304         * modules/inet_ntop: Likewise.
35305         * modules/inet_pton: Likewise.
35306         * modules/inttypes: Likewise.
35307         * modules/isnand-nolibm: Likewise.
35308         * modules/isnanf-nolibm: Likewise.
35309         * modules/mbchar: Likewise.
35310         * modules/mbfile: Likewise.
35311         * modules/mbiter: Likewise.
35312         * modules/mbuiter: Likewise.
35313         * modules/netdb: Likewise.
35314         * modules/netinet_in: Likewise.
35315         * modules/nproc: Likewise.
35316         * modules/pagealign_alloc: Likewise.
35317         * modules/poll: Likewise.
35318         * modules/printf-frexp: Likewise.
35319         * modules/pthread: Likewise.
35320         * modules/putenv: Likewise.
35321         * modules/random_r: Likewise.
35322         * modules/relocatable-prog: Likewise.
35323         * modules/search: Likewise.
35324         * modules/select: Likewise.
35325         * modules/selinux-h: Likewise.
35326         * modules/settime: Likewise.
35327         * modules/signal: Likewise.
35328         * modules/size_max: Likewise.
35329         * modules/socklen: Likewise.
35330         * modules/ssize_t: Likewise.
35331         * modules/stdarg: Likewise.
35332         * modules/stdbool: Likewise.
35333         * modules/stddef: Likewise.
35334         * modules/stdint: Likewise.
35335         * modules/stdio: Likewise.
35336         * modules/stdlib: Likewise.
35337         * modules/string: Likewise.
35338         * modules/strings: Likewise.
35339         * modules/sys_file: Likewise.
35340         * modules/sys_ioctl: Likewise.
35341         * modules/sys_select: Likewise.
35342         * modules/sys_socket: Likewise.
35343         * modules/sys_stat: Likewise.
35344         * modules/sys_time: Likewise.
35345         * modules/sys_times: Likewise.
35346         * modules/sys_utsname: Likewise.
35347         * modules/sys_wait: Likewise.
35348         * modules/sysexits: Likewise.
35349         * modules/time: Likewise.
35350         * modules/times: Likewise.
35351         * modules/tmpfile: Likewise.
35352         * modules/trim: Likewise.
35353         * modules/unistd: Likewise.
35354         * modules/wchar: Likewise.
35355         * modules/wctype: Likewise.
35356
35357 2009-09-17  Bruno Haible  <bruno@clisp.org>
35358
35359         Make getdate.y compile on QNX and NetBSD 5 / i386.
35360         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35361         TIME_T_FITS_IN_LONG_INT.
35362         * lib/getdate.y (long_time_t): New type.
35363         (relative_time): Change type of 'seconds' field to long_time_t.
35364         (get_date): Update types of local variables. Check against overflow
35365         during conversion from long_time_t to time_t.
35366         Reported by Matt Kraai <kraai@ftbfs.org>
35367         and Hasso Tepper <hasso@netbsd.org>.
35368
35369 2009-09-17  Bruno Haible  <bruno@clisp.org>
35370
35371         * modules/COPYING: Update copyright years.
35372         * modules/README: Likeiwse.
35373         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35374         Reported by Ian Beckwith <ianb@erislabs.net>.
35375
35376 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35377
35378         * users.txt: Update references for gnuit package.
35379
35380 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35381
35382         * m4/getdelim.m4: Fix typo in copyright line.
35383
35384 2009-09-17  Bruno Haible  <bruno@clisp.org>
35385
35386         * lib/atoll.c: Use the standard header with GPL copyright.
35387         * lib/argz.in.h: Likewise.
35388         * lib/glob.c: Likewise.
35389         * lib/glob-libc.h: Likewise.
35390         * lib/random_r.c: Likewise.
35391         * lib/siglist.h: Likewise.
35392         * lib/strsignal.c: Likewise.
35393         Reported by Ian Beckwith <ianb@erislabs.net>.
35394
35395 2009-09-17  Eric Blake  <ebb9@byu.net>
35396
35397         rmdir: ensure correct dependency order
35398         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35399
35400 2009-09-17  Bruno Haible  <bruno@clisp.org>
35401
35402         Disable assertion that fails on NetBSD 5 / i386.
35403         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35404         Reported by Sam Steingold <sds@gnu.org>
35405         and Hasso Tepper <hasso@netbsd.org>.
35406
35407 2009-09-16  Eric Blake  <ebb9@byu.net>
35408
35409         unlinkdir: port to mingw
35410         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35411         on which no one can unlink a directory.
35412
35413         stdlib: sort witness names
35414         * modules/stdlib (Makefile.am): Sort replacements.
35415         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35416         * lib/stdlib.in.h: Likewise.
35417
35418         parse-duration-tests: avoid link failure
35419         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35420         LIBINTL.
35421         Reported by Tom G. Christensen.
35422
35423         openat-tests: ensure unlinkat behaves like rmdir
35424         * tests/test-rmdir.c (main): Factor guts...
35425         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35426         * modules/rmdir-tests (Files): Ship new file.
35427         * modules/openat-tests: New test.
35428         * tests/test-unlinkat.c: Likewise.
35429
35430         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35431         * modules/rmdir-errno (Status, Notice): Now obsolete.
35432
35433         rmdir: work around cygwin 1.5.x and mingw bugs
35434         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35435         * lib/rmdir.c (rmdir): Work around it.
35436         * modules/rmdir (Status, Notice): No longer obsolete.
35437         (Files): Add dos.m4.
35438         (Depends-on): Add unistd.
35439         (configure.ac): Set witnesses.
35440         (License): Relax to LGPLv2+.
35441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35442         * modules/unistd (Makefile.am): Substitute witnesses.
35443         * lib/unistd.in.h (rmdir): Declare replacement.
35444         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35445         * modules/rmdir-tests: New tests.
35446         * tests/test-rmdir.c: Likewise.
35447
35448 2009-09-15  Eric Blake  <ebb9@byu.net>
35449
35450         fchdir: improve use of replacement functions
35451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35452         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35453         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35454         REPLACE_CLOSEDIR.
35455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35456         * modules/sys_stat (Makefile.am): Substitute correct witness.
35457         * modules/dirent (Makefile.am): Likewise.
35458         * modules/unistd (Makefile.am): Likewise.
35459         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35460         * lib/unistd.in.h (dup): Likewise.
35461         * lib/sys_stat.in.h (fstat): Likewise.
35462
35463         maint: ignore gnulib-tool temp files
35464         * .gitignore: Ignore files created during gnulib-tool --test.
35465
35466 2009-09-13  Jim Meyering  <meyering@redhat.com>
35467
35468         posixtm: don't reject a time that specify "60" as the number of seconds
35469         * lib/posixtm.c (posixtime): The code to reject invalid dates
35470         would also reject a time specified with the .60 suffix.
35471         But POSIX allows that, in order to accommodate leap seconds.
35472         So don't reject it.
35473         (main): Adjust tests accordingly.
35474         * modules/posixtm (Depends-on): Add stpcpy.
35475
35476 2009-09-11  Jim Meyering  <meyering@redhat.com>
35477
35478         announce-gen: include [$release_type] in emitted Subject:
35479         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35480         e.g., [stable] in the emitted Subject: line.
35481
35482 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35483
35484         Remove obsolete macros from several modules.
35485         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35486         obsolete Autoconf macros with their modern counterparts.
35487         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35488         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35489         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35490         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35491         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35492         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35494         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35495         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35496         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35497         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35498         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35499         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35500         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35501         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35502         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35503         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35504         * m4/time_r.m4 (gl_TIME_R): Likewise.
35505         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35506         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35507         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35508
35509         Fix copyright header in build-aux scripts.
35510         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35511         recommendation.
35512         * build-aux/ncftpput-ftp: Likewise.
35513         * build-aux/update-copyright: Likewise.
35514
35515 2009-09-09  Eric Blake  <ebb9@byu.net>
35516
35517         test-link: allow Linux choice of errno
35518         * tests/test-link.c (main): Relax test for alternate error.
35519
35520         strndup: fix improper m4 caching
35521         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35522         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35523         (gl_PREREQ_STRNDUP): Delete.
35524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35525         * modules/string (Makefile.am): Substitute it.
35526         * lib/string.in.h (strndup): Modernize prototype.
35527
35528         getcwd: port to mingw
35529         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35530         different from the POSIX assumptions made throughout the getcwd
35531         module; fortunately, the mingw getcwd does not need replacement.
35532         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35533         * modules/getcwd-tests: New test.
35534         * tests/test-getcwd.c: Likewise.
35535
35536         link: fix platform bugs
35537         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35538         * lib/link.c (link): Work around them.  Fix related mingw bug.
35539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35540         * modules/unistd (Makefile.am): Substitute it.
35541         * lib/unistd.in.h (link): Declare replacement.
35542         * doc/posix-functions/link.texi (link): Document this.
35543         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35544
35545         test-link: consolidate into single C program, test more cases
35546         * tests/test-link.sh: Delete.
35547         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35548         at least Cygwin and Solaris.
35549         * modules/link-tests (Files): Remove unused file.
35550         (Depends-on): Add errno, sys_stat.
35551         (Makefile.am): Simplify.
35552
35553 2009-09-08  Bruno Haible  <bruno@clisp.org>
35554
35555         Work around towlower, towupper bug on mingw.
35556         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35557         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35558         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35559         * doc/posix-functions/towupper.texi: Likewise.
35560         Reported by Eric Blake.
35561
35562 2009-09-08  Jim Meyering  <meyering@redhat.com>
35563
35564         build: don't try to run autoheader if we don't use it
35565         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35566         is not used in configure.ac.
35567
35568 2009-09-08  Eric Blake  <ebb9@byu.net>
35569
35570         euidaccess: fix compilation error
35571         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35572
35573         rawmemchr: relax license
35574         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35575         okay.
35576         Reported by Jim Meyering.
35577
35578         mkfifoat: new module
35579         * modules/mkfifoat: New file.
35580         * lib/mkfifoat.c: Likewise.
35581         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35582         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35583         * modules/sys_stat (Makefile.am): Use them.
35584         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35585         * MODULES.html.sh (File system functions): Mention module.
35586         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35587         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35588         * modules/mkfifoat-tests: New test.
35589         * tests/test-mkfifoat.c: Likewise.
35590
35591         strchrnul: relax license
35592         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35593         okay.
35594         Reported by Jim Meyering.
35595
35596 2009-09-08  Eric Blake  <ebb9@byu.net>
35597
35598         fstatat: fix compilation on Solaris
35599         * lib/fstatat.c (includes): Add fcntl.h.
35600         Reported by Pádraig Brady.
35601
35602 2009-09-07  Eric Blake  <ebb9@byu.net>
35603
35604         rename: modernize replacement
35605         * modules/rename (Depends-on): Add stdio.
35606         (configure.ac): Declare witness.
35607         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35608         stdio take care of replacement.
35609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35610         * modules/stdio (Makefile.am): Substitute them.
35611         * lib/stdio.in.h (rename): Declare replacement.
35612         * lib/rename.c (includes): Allow cross-compilation to non-windows
35613         machines.
35614         * doc/posix-functions/rename.texi (rename): Improve
35615         documentation.
35616
35617         stdio: sort witness names
35618         * modules/stdio (Makefile.am): Sort replacements.
35619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35620         * lib/stdio.in.h: Likewise.
35621
35622         getcwd: minor cleanups
35623         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35624         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35625
35626         openat: provide more convenience names
35627         * modules/faccessat (configure.ac): Add C witness.
35628         * lib/unistd.in.h (readlinkat): Fix typo.
35629         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35630         convenience wrappers.
35631         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35632         wrappers in syntax checks.
35633
35634 2009-09-06  Eric Blake  <ebb9@byu.net>
35635
35636         doc: fix comments in recent patches
35637         * lib/faccessat.c: Mention correct function.
35638         * lib/fchmodat.c: Likewise.
35639         * lib/fchownat.c: Likewise.
35640         * lib/symlinkat.c: Likewise.
35641         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35642         constants.
35643
35644         faccessat, symlinkat: continue cleanup of previous patch
35645         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35646         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35647         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35649         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35650         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35651         set.
35652
35653 2009-09-06  Bruno Haible  <bruno@clisp.org>
35654
35655         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35656         (fstatat): Declare if GNULIB_FSTATAT is set.
35657         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35658         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35659         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35660         * modules/fcntl-h (Files): Remove m4/openat.m4.
35661         * modules/sys_stat (Files): Remove m4/openat.m4.
35662         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35663         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35664         * modules/unistd (Files): Remove m4/openat.m4.
35665         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35666         GNULIB_OPENAT.
35667         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35668         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35670         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35671         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35672         gl_OPENAT_DEFAULTS.
35673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35674         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35675         Don't require gl_OPENAT_DEFAULTS.
35676         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35677         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35678         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35679         (gl_OPENAT_DEFAULTS): Remove macro.
35680
35681 2009-09-06  Bruno Haible  <bruno@clisp.org>
35682
35683         * modules/openat (configure.ac): Remove unneeded witness.
35684
35685 2009-09-06  Bruno Haible  <bruno@clisp.org>
35686
35687         Set errno to ENOSYS when a function is entirely unsupported.
35688         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35689         EOPNOTSUPP.
35690         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35691         * modules/chown (Depends-on): Remove errno.
35692
35693 2009-09-06  Bruno Haible  <bruno@clisp.org>
35694
35695         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35696
35697 2009-09-06  Bruno Haible  <bruno@clisp.org>
35698
35699         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35700
35701 2009-09-06  Ben Pfaff  <blp@gnu.org>
35702             Bruno Haible  <bruno@clisp.org>
35703
35704         Work around a glibc bug in strtok_r.
35705         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35706         Undefine if UNDEFINE_STRTOK_R is set.
35707         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35709         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35710         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35711         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35712         UNDEFINE_STRTOK_R.
35713         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35714
35715 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35716
35717         exclude: minor fix
35718         * lib/exclude.c: Include wctype.h
35719
35720 2009-09-06  Akim Demaille  <demaille@gostai.com>
35721
35722         bootstrap: improve error message
35723         * build-aux/bootstrap (find_tool): Upon failure, report the list
35724         of candidates.
35725         Honor the initial value of the envvar.
35726
35727 2009-09-05  Eric Blake  <ebb9@byu.net>
35728
35729         symlinkat: new module
35730         * modules/symlinkat: New file.
35731         * lib/symlinkat.c: Likewise.
35732         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35734         * modules/unistd (Makefile.am): Use them.
35735         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35736         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35737         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35738         * MODULES.html.sh (File system functions): Mention module.
35739         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35740         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35741         * modules/symlinkat-tests: New test.
35742         * tests/test-symlinkat.c: Likewise.
35743
35744         test-openat-safer: add more checks
35745         * tests/test-openat-safer.c (main): Check more code paths.
35746
35747 2009-09-05  Jim Meyering  <meyering@redhat.com>
35748
35749         syntax-check: detect unnecessary inclusion of openat.h
35750         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35751
35752 2009-09-05  Bruno Haible  <bruno@clisp.org>
35753
35754         Support towlower, towupper.
35755         * doc/posix-functions/towlower.texi: Mention module wctype.
35756         * doc/posix-functions/towupper.texi: Likewise.
35757         * lib/wctype.in.h (towlower, towupper): New functions.
35758         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35759         (ASSERT): New macro.
35760         (e): New variable.
35761         (main): Test also towlower, towupper. Test WEOF argument.
35762         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35763
35764 2009-09-05  Bruno Haible  <bruno@clisp.org>
35765
35766         Fix conversion behaviour when the input is invalid.
35767         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35768         mark occurring in first pass of indirect conversion.
35769         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35770         input.
35771         Found by clang's static analyzer.
35772
35773 2009-09-05  Bruno Haible  <bruno@clisp.org>
35774
35775         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35776         where direct conversion is possible.
35777
35778 2009-09-04  Eric Blake  <ebb9@byu.net>
35779
35780         openat: fail with ENOENT on empty name
35781         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35782         buffer.
35783
35784         link-follow: fix logic bug in prior patch
35785         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35786         reversed sense of yes and no in prior patch.  Avoid confusing
35787         compilation failure with desired semantics.
35788
35789         link-follow: accomodate mingw and cross-compilation
35790         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35791         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35792         cross-compilation results to -1, to make linkat easier to
35793         implement when cross-compiling.  Trivially support mingw.
35794         * modules/link-follow (configure.ac): Call new name.
35795         * NEWS: Mention this.
35796
35797 2009-09-03  Eric Blake  <ebb9@byu.net>
35798
35799         faccessat: compile replacement
35800         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35801         needed.
35802
35803         fts: fix compilation error
35804         * lib/fts.c (includes): Re-add "openat.h", for
35805         openat_needs_fchdir.
35806
35807         faccessat: new module
35808         * modules/faccessat: New file.
35809         * lib/faccessat.c: Likewise.
35810         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35812         * modules/unistd (Makefile.am): Use it.
35813         * lib/unistd.in.h (faccessat): Declare it.
35814         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35815         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35816         * MODULES.html.sh (File system functions): Mention it.
35817         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35818         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35819
35820         euidaccess: prefer POSIX over non-standard implementation
35821         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35822         * lib/euidaccess.c (euidaccess): Use it if available.
35823
35824         openat: make template easier to use
35825         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35826         AT_FUNC_F2 to be undefined.
35827         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35828         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35829         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35830         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35831         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35832         Likewise.
35833         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35834         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35835         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35836         Likewise.
35837
35838         openat: declare in POSIX headers
35839         * NEWS: Mention this.
35840         * modules/openat (configure.ac): Declare witnesses.
35841         (Depends-on): Add fcntl-h, sys_stat, unistd.
35842         (Include): Mention correct headers.
35843         * modules/fcntl-h (Depends-on): Add link-warning.
35844         (Files): Add openat.m4.
35845         (Makefile.am): Substitute witnesses.
35846         * modules/sys_stat (Files, Makefile.am): Likewise.
35847         * modules/unistd (Files, Makefile.am): Likewise.
35848         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35849         (gl_OPENAT_DEFAULTS): New macro.
35850         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35852         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35853         (SYS_STAT_H): Remove unused variable.
35854         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35855         * lib/fcntl--.h (includes): Remove unneeded header.
35856         * lib/openat-safer.c (includes): Likewise.
35857         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35858         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35859         appropriate headers.
35860         (__OPENAT_PREFIX): Delete.
35861         * lib/fcntl.in.h (openat): Provide declaration.
35862         (AT_FDCWD): Fix Solaris bug.
35863         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35864         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35865         * lib/fchmodat.c (includes):  Adjust to find declaration.
35866         * lib/fchownat.c (includes): Likewise.
35867         * lib/mkdirat.c (includes): Likewise.
35868         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35869         still visible.
35870
35871 2009-09-02  Eric Blake  <ebb9@byu.net>
35872
35873         errno: use consistently
35874         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35875         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35876         * lib/canonicalize.c (ELOOP): Likewise.
35877         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35878         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35879         * lib/lchown.c (EOPNOTSUPP): Likewise.
35880         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35881         * lib/savewd.c (ESTALE): Likewise.
35882         * lib/settime.c (ENOSYS): Likewise.
35883         * lib/utimens.c (ENOSYS): Likewise.
35884         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35885         * lib/chdir-safer.c (ELOOP): Likewise.
35886         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35887         * modules/c-stack (Depends-on): Add errno.
35888         * modules/canonicalize (Depends-on): Likewise.
35889         * modules/chdir-safer (Depends-on): Likewise.
35890         * modules/fdopendir (Depends-on): Likewise.
35891         * modules/inet_ntop (Depends-on): Likewise.
35892         * modules/inet_pton (Depends-on): Likewise.
35893         * modules/lchown (Depends-on): Likewise.
35894         * modules/openat (Depends-on): Likewise.
35895         * modules/savewd (Depends-on): Likewise.
35896         * modules/settime (Depends-on): Likewise.
35897         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35898
35899         fts: avoid leaking fds
35900         * modules/fts (Depends-on): Add cloexec.
35901         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35902         flag.
35903
35904         fts: make directory fds more robust
35905         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35906         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35907
35908         backupfile, chdir-long, fts, savedir: make safer
35909         * lib/backupfile.c (includes): Use "dirent--.h", since
35910         numbered_backup can write to stderr during readdir.
35911         * lib/savedir.c (includes): Likewise.
35912         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35913         emulation can write to stderr on failure.
35914         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35915         * lib/getcwd.c: Document why opendir_safer is unused.
35916         * lib/glob.c: Likewise.
35917         * lib/scandir.c: Likewise.
35918         * lib/openat-proc.c: Likewise, for open_safer.
35919         * modules/backupfile (Depends-on): Add dirent-safer.
35920         * modules/savedir (Depends-on): Likewise.
35921         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35922         * modules/chdir-long (Depends-on): Add openat-safer.
35923
35924         openat-safer: new module
35925         * modules/openat-safer: New file.
35926         * lib/openat-safer.c: Likewise.
35927         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35928         * lib/fcntl-safer.h (openat_safer): Declare.
35929         * lib/fcntl--.h (openat): Override.
35930         * MODULES.html.sh (File descriptor based I/O): Mention it.
35931         * lib/openat.h: Add double-inclusion guards.
35932         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35933         "fcntl--.h", so we can implement openat.
35934         * modules/openat-safer-tests: New test.
35935         * tests/test-openat-safer.c: New file.
35936
35937         dirent-safer: new module
35938         * modules/dirent-safer: New file.
35939         * lib/dirent--.h: Likewise.
35940         * lib/dirent-safer.h: Likewise.
35941         * lib/opendir-safer.c: Likewise.
35942         * m4/dirent-safer.m4: Likewise.
35943         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35944         * modules/dirent-safer-tests: New test.
35945         * tests/test-dirent-safer.c: New file.
35946         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35947
35948         fdopendir: optimize on mingw
35949         * lib/unistd.in.h (_gl_directory_name): New prototype.
35950         * lib/fchdir.c (_gl_directory_name): Implement it.
35951         (fchdir): Use it to simplify implementation.
35952         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35953         fchdir, when available, to avoid calling [f]chdir().
35954
35955         fdopendir: split into its own module
35956         * lib/openat.c (fdopendir): Move...
35957         * lib/fdopendir.c: ...into new file.
35958         * modules/fdopendir: New module.
35959         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35960         * modules/openat (Depends-on): Add fdopendir.
35961         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35962         fdopendir here.
35963         * modules/savedir (Depends-on): Only need fdopendir, not full
35964         openat.
35965         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35966         * lib/openat.h (fdopendir): Drop prototype.
35967         * lib/dirent.in.h (fdopendir): Provide prototype.
35968         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35969         * modules/dirent (Makefile.am): Substitute them.
35970         * MODULES.html.sh (File system functions): Mention it.
35971         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35972         * modules/fdopendir-tests: New file.
35973         * tests/test-fdopendir.c: Likewise.
35974
35975         fchdir: use more consistent macro convention
35976         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35977         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35978         REPLACE_FCHDIR, rather than relying on config.h macros.
35979         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35980         inside a single make-time REPLACE_FCHDIR block, rather than using
35981         the config.h FCHDIR_REPLACEMENT.
35982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35983         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35984         Manage fstat replacement.
35985         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35986         REPLACE_FCHDIR.
35987         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35988         (Makefile.am): Substitute REPLACE_FCHDIR.
35989         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35990         FCHDIR_REPLACEMENT.
35991         * lib/dup-safer.c (dup_safer): Likewise.
35992         * lib/dup2.c (rpl_dup2): Likewise.
35993         * lib/dup3.c (rpl_dup3): Likewise.
35994         * lib/open.c (rpl_open): Likewise.
35995
35996         fchdir: simplify error handling, and support dup3
35997         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35998         stdbool, malloc-posix, realloc-posix.
35999         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36000         (ensure_dirs_slot): Return false on allocation failure.
36001         (rpl_dup2): Delete.
36002         (_gl_register_dup): New function.
36003         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36004         (_gl_register_fd): Close fd on allocation failure.
36005         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36006         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36007         prototype.
36008         (rpl_dup2_fchdir): Delete prototype.
36009         * lib/open.c (open): Update caller.
36010         * lib/dup2.c (dup2): Track fchdir metadata.
36011         * lib/dup3.c (dup3): Likewise.
36012         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36013         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36014
36015 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36016
36017         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36018         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36019         don't pass arguments to AC_OUTPUT.
36020
36021 2009-09-02  Bruno Haible  <bruno@clisp.org>
36022
36023         * modules/mkdtemp (License): Relicense under LGPLv2+.
36024         Reported by Paolo Bonzini.
36025
36026 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36027
36028         Replace uses of obsolete autoconf macros in Jim's modules.
36029         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36030         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36031         can evoke a warning from autoconf when run with -Wobsolete
36032         enabled.  They were declared obsolete for good reasons (see
36033         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36034         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36035         should not continue using the deprecated macros.
36036         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36037         obsolete Autoconf macros with modern counterparts.
36038         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36039         * m4/dos.m4 (gl_AC_DOS): Likewise.
36040         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36041         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36042         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36043         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36044         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36045         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36046         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36047         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36048         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36049         Likewise.
36050         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36051         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36052         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36053         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36054         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36055         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36056
36057 2009-09-01  Eric Blake  <ebb9@byu.net>
36058
36059         fchdir: fix off-by-one bug in previous patch
36060         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36061         (_gl_unregister_fd): Delete useless if.
36062
36063 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36064
36065         maint.mk: sort the list of syntax-check rules
36066         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36067         easier to get a sense of progress when the rules are run sequentially
36068         and take a long time.
36069
36070 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36071
36072         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36073         * modules/netinet_in: Likewise.
36074         * modules/sys_file: Likewise.
36075         * modules/sys_ioctl: Likewise.
36076         * modules/sys_select: Likewise.
36077         * modules/sys_socket: Likewise.
36078         * modules/sys_stat: Likewise.
36079         * modules/sys_time: Likewise.
36080         * modules/sys_times: Likewise.
36081         * modules/sys_utsname: Likewise.
36082         * modules/sys_wait: Likewise.
36083
36084 2009-09-01  Jim Meyering  <meyering@redhat.com>
36085
36086         fts: help ensure that return values are not ignored
36087         * lib/fts_.h (__GNUC_PREREQ): Define.
36088         (__attribute_warn_unused_result__): Define.
36089         (fts_children, fts_close, fts_open, fts_read): Declare with
36090         __attribute_warn_unused_result__.
36091
36092         fts: fts_close now fails also when closing a dir file descriptor fails
36093         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36094         and propagate to caller, along with errno.
36095
36096         announce-gen: correct formatting in --help output
36097         * build-aux/announce-gen (usage): Move the one-line description in
36098         --help output "up", to where it belongs, just after Usage:.
36099
36100 2009-08-31  Eric Blake  <ebb9@byu.net>
36101
36102         fchdir: port to mingw
36103         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36104         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36105         opened, then use a substitute.
36106         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36107         replacement.
36108         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36109         (_gl_register_fd): No need to check stat if open already filters
36110         all directories.
36111         (fchdir): Fix error condition to match POSIX.
36112         * modules/fchdir (Depends-on): Add sys_stat.
36113         * doc/posix-functions/open.texi (open): Document the limitation.
36114         * modules/fchdir-tests: New file.
36115         * tests/test-fchdir.c: Likewise.
36116
36117         canonicalize: allow cross-testing from cygwin to mingw
36118         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36119         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36120         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36121         Likewise.
36122         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36123         target does not support symlinks.
36124         * tests/test-canonicalize-lgpl.sh: Likewise.
36125
36126         chown: avoid compilation warning on mingw
36127         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36128         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36129         mingw.
36130         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36131         * modules/chown (Depends-on): Add errno.
36132
36133 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36134
36135         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36136         command.
36137
36138 2009-08-31  Jim Meyering  <meyering@redhat.com>
36139
36140         canonicalize: remove useless initialization
36141         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36142         initialization of local, "end".
36143
36144 2009-08-30  Bruno Haible  <bruno@clisp.org>
36145
36146         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36147         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36148         ENOSYS.
36149
36150 2009-08-30  Bruno Haible  <bruno@clisp.org>
36151
36152         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36153         /usr/xpg4/bin/tr when it exists.
36154         * tests/test-pipe-filter-gi1.sh: Likewise.
36155
36156 2009-08-30  Bruno Haible  <bruno@clisp.org>
36157
36158         Work around deficient /usr/bin/id program on Solaris.
36159         * tests/test-file-has-acl.sh (ID): New variable.
36160         * tests/test-set-mode-acl.sh (ID): Likewise.
36161         * tests/test-copy-acl.sh (ID): Likewise.
36162         * tests/test-copy-file.sh (ID): Likewise.
36163
36164 2009-08-30  Bruno Haible  <bruno@clisp.org>
36165
36166         New module 'xstriconveh'.
36167         * lib/xstriconveh.h: New file.
36168         * lib/xstriconveh.c: New file.
36169         * modules/xstriconveh: New file.
36170
36171 2009-08-30  Bruno Haible  <bruno@clisp.org>
36172
36173         Make it easier to use mem_cd_iconveh.
36174         * lib/striconveh.h (iconveh_t): New type.
36175         (iconveh_open, iconveh_close): New declarations.
36176         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36177         with a single 'const iconveh_t *' argument.
36178         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36179         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36180         with a single 'const iconveh_t *' argument.
36181         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36182         * tests/test-striconveh.c (main): Update.
36183         * NEWS: Mention the change.
36184
36185 2009-08-30  Bruno Haible  <bruno@clisp.org>
36186
36187         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36188         problem.
36189
36190 2009-08-30  Bruno Haible  <bruno@clisp.org>
36191
36192         Work around iconv_open problem on Solaris.
36193         * lib/iconv_open-solaris.gperf: New file.
36194         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36195         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36196         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36197         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36198         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36199         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36200
36201 2009-08-29  Jim Meyering  <meyering@redhat.com>
36202
36203         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36204         * top/maint.mk (cvs-check): Remove target; it was just an alias
36205         to the better-named vc-diff-check.
36206         (maintainer-distcheck): Remove rule.  It was used only from
36207         the (alpha/beta/major) target, and all of its commands but one
36208         were coreutils-specific.
36209         (vc-dist): Remove rule.
36210         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36211         Run vc-diff-check, not vc-dist.
36212         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36213
36214 2009-08-27  Bruno Haible  <bruno@clisp.org>
36215
36216         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36217         of 0.
36218
36219 2009-08-27  Bruno Haible  <bruno@clisp.org>
36220
36221         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36222         compilers.
36223         * doc/func.texi: Document the SunPRO C bug.
36224
36225 2009-08-27  Bruno Haible  <bruno@clisp.org>
36226
36227         Fix link error on Solaris.
36228         * tests/test-parse-duration.c (xstrdup): Remove function.
36229
36230 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36231
36232         ignore-value: handle pointer types, too
36233         * lib/ignore-value.h (__attribute__): Remove definition.
36234         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36235         of a more concise and more-often effective "(void) i" statement.
36236         (ignore_ptr): New function to suppress warnings from functions that
36237         return pointers, and to make it explicit that one function doesn't
36238         handle all cases.
36239
36240 2009-08-25  Bruno Haible  <bruno@clisp.org>
36241
36242         dup2: work around a Linux bug.
36243         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36244         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36245         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36246         Reported by Simon Josefsson.
36247
36248 2009-08-25  Jim Meyering  <meyering@redhat.com>
36249
36250         libguestfs uses gnulib
36251         * users.txt: Add libguestfs.
36252
36253 2009-08-24  Eric Blake  <ebb9@byu.net>
36254
36255         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36256         * lib/pipe2.c (includes): Add binary-io.h.
36257         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36258
36259 2009-08-24  Bruno Haible  <bruno@clisp.org>
36260
36261         Tolerate declared but missing accept4 syscall.
36262         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36263         available.
36264         * lib/sys_socket.in.h (accept4): If the function is already present,
36265         override it.
36266         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36267         * modules/accept4 (Makefile.am): Compile accept4.c always.
36268         Reported by Paolo Bonzini and Eric Blake.
36269
36270 2009-08-23  Bruno Haible  <bruno@clisp.org>
36271
36272         New module 'accept4'.
36273         * lib/sys_socket.in.h (accept4): New declaration.
36274         * lib/accept4.c: New file.
36275         * m4/accept4.m4: New file.
36276         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36277         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36278         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36279         HAVE_ACCEPT4.
36280         * modules/accept4: New file.
36281         * doc/glibc-functions/accept4.texi: Mention the new module.
36282
36283 2009-08-24  Jim Meyering  <meyering@redhat.com>
36284
36285         progname: also set global program_invocation_name, when possible
36286         Before this change, a libtool-enabled program that calls glibc's
36287         error function would report the program name as
36288         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36289         * modules/progname (configure.ac): Check for a declaration of
36290         program_invocation_name.
36291         * lib/progname.c:  Include <errno.h>.
36292         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36293         Set program_invocation_name.
36294
36295 2009-08-23  Bruno Haible  <bruno@clisp.org>
36296
36297         * lib/dup3.c: Include <string.h>.
36298
36299 2009-08-23  Bruno Haible  <bruno@clisp.org>
36300
36301         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36302         * lib/pipe2.c (pipe2): Likewise.
36303         Suggested by Eric Blake.
36304
36305 2009-08-23  Bruno Haible  <bruno@clisp.org>
36306
36307         Tolerate declared but missing dup3 syscall.
36308         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36309         * lib/unistd.in.h (dup3): If the function is already present,
36310         override it.
36311         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36312         * modules/dup3 (Makefile.am): Compile dup3.c always.
36313         Reported by Paolo Bonzini.
36314
36315 2009-08-23  Bruno Haible  <bruno@clisp.org>
36316
36317         Tolerate declared but missing pipe2 syscall.
36318         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36319         available.
36320         * lib/unistd.in.h (pipe2): If the function is already present,
36321         override it.
36322         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36323         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36324         Reported by Paolo Bonzini.
36325
36326 2009-08-23  Bruno Haible  <bruno@clisp.org>
36327
36328         * lib/pipe2.c (pipe2): Move #ifs inside function.
36329
36330 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36331
36332         quotearg: document limitations of quote_these_too
36333         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36334         those limitations are created.
36335         * lib/quotearg.h (set_char_quoting): Document that digits and
36336         letters that are special after backslash are not permitted.
36337         (quotearg_char): Cross-reference set_char_quoting documentation.
36338
36339 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36340
36341         quotearg: implement custom_quoting_style
36342         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36343         right_quote fields.
36344         (set_custom_quoting): New public function.
36345         (quotearg_buffer_restyled): Add left_quote and right_quote
36346         arguments, handle them very much like locale quoting, and update
36347         all uses.
36348         (quotearg_n_custom): New public function.
36349         (quotearg_n_custom_mem): New public function.
36350         (quotearg_custom): New public function.
36351         (quotearg_custom_mem): New public function.
36352         * lib/quotearg.h: Prototype and document new public functions.
36353         (enum quoting_style): For escape_quoting_style and
36354         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36355         ignored even though they're otherwise like c_quoting_style.
36356         Add custom_quoting_style member and document with comparison to
36357         clocale_quoting_style.
36358         * tests/test-quotearg.c (custom_quotes): New array.
36359         (custom_results): New array.
36360         (main): Extend to test custom quoting.
36361
36362 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36363
36364         quotearg: fix right quote escaping when it's in quote_these_too
36365         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36366         quote, be sure to prepend only one backslash.
36367         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36368         (main): Test it.
36369
36370 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36371
36372         quotearg-tests: test escaping of embedded locale quotes
36373         * tests/test-quotearg.c (struct result_strings): Add member for
36374         new input.
36375         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36376         (inputs): Add new input.
36377         (results_g): Add expected results.
36378         (flag_results): Likewise.
36379         (locale_results): Likewise.
36380         (compare_strings): Check those.
36381
36382 2009-08-23  Bruno Haible  <bruno@clisp.org>
36383
36384         Tests for module 'dup3'.
36385         * modules/dup3-tests: New file.
36386         * tests/test-dup3.c: New file.
36387
36388         New module 'dup3'.
36389         * lib/unistd.in.h (dup3): New declaration.
36390         * lib/dup3.c: New file.
36391         * m4/dup3.m4: New file.
36392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36393         HAVE_DUP3.
36394         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36395         * modules/dup3: New file.
36396         * doc/glibc-functions/dup3.texi: Mention the new module.
36397
36398 2009-08-23  Bruno Haible  <bruno@clisp.org>
36399
36400         Tweak the dup2 test.
36401         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36402         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36403         the test file is still empty. Fix argument order of lseek.
36404
36405 2009-08-23  Bruno Haible  <bruno@clisp.org>
36406
36407         Avoid test link errors when the modules getopt-gnu, gettext are used.
36408         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36410
36411 2009-08-23  Bruno Haible  <bruno@clisp.org>
36412
36413         Fix getdtablesize() on mingw.
36414         * lib/getdtablesize.c (getdtablesize): Implement differently.
36415         * lib/unistd.in.h (getdtablesize): Improve comment.
36416
36417 2009-08-23  Bruno Haible  <bruno@clisp.org>
36418
36419         New module 'mkostemp'.
36420         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36421         * lib/stdlib.in.h (mksotemp): New declaration.
36422         * lib/mkostemp.c: New file, from glibc with modifications.
36423         * lib/tempname.h (GT_FILE): Remove outdated comment.
36424         (gen_tempname): Add flags argument.
36425         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36426         (__GT_FILE): Map to 1.
36427         (small_open, large_open): Remove macros.
36428         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36429         * lib/mkstemp.c (mkstemp): Update.
36430         * lib/mkdtemp.c (mkdtemp): Likewise.
36431         * m4/mkostemp.m4: New file.
36432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36433         HAVE_MKOSTEMP.
36434         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36435         HAVE_MKOSTEMP.
36436         * modules/mkostemp: New file, based on modules/mkstemp.
36437         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36438         * NEWS: Mention the change.
36439
36440 2009-08-23  Bruno Haible  <bruno@clisp.org>
36441
36442         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36443         Reported by Eric Blake.
36444
36445 2009-08-23  Bruno Haible  <bruno@clisp.org>
36446
36447         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36448         Reported by Eric Blake.
36449
36450 2009-08-23  Bruno Haible  <bruno@clisp.org>
36451
36452         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36453         * modules/pipe2 (Depends-on): Likewise.
36454
36455 2009-08-23  Eric Blake  <ebb9@byu.net>
36456
36457         fcntl-h: add O_TTY_INIT support
36458         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36459         * tests/test-fcntl-h.c (o): Test it.
36460         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36461
36462         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36463         * modules/fcntl: Move <fcntl.h> header replacement...
36464         * modules/fcntl-h: ...to new name, so as not to collide with
36465         like-named function.
36466         * tests/test-fcntl.c: Rename...
36467         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36468         * modules/fcntl-tests: Rename...
36469         * modules/fcntl-h-tests: ...to this.  Update test file name.
36470         * modules/chdir-long (Depends-on): Update clients.
36471         * modules/chdir-safer (Depends-on): Likewise.
36472         * modules/fcntl-safer (Depends-on): Likewise.
36473         * modules/fts (Depends-on): Likewise.
36474         * modules/mkancesdirs (Depends-on): Likewise.
36475         * modules/mkdir-p (Depends-on): Likewise.
36476         * modules/open (Depends-on): Likewise.
36477         * modules/savewd (Depends-on): Likewise.
36478         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36479         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36480
36481 2009-08-22  Bruno Haible  <bruno@clisp.org>
36482
36483         * modules/binary-io (License): Relicense under LGPL.
36484         * modules/pipe2 (License): Likewise.
36485
36486 2009-08-22  Bruno Haible  <bruno@clisp.org>
36487
36488         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36489         return value.
36490         * lib/pipe-filter-gi.c (filter_init): Likewise.
36491         Reported by Eric Blake.
36492
36493 2009-08-22  Bruno Haible  <bruno@clisp.org>
36494
36495         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36496         * modules/pipe (Depends-on): Add pipe2.
36497
36498 2009-08-22  Bruno Haible  <bruno@clisp.org>
36499
36500         Tests for module 'pipe2'.
36501         * modules/pipe2-tests: New file.
36502         * tests/test-pipe2.c: New file.
36503
36504         New module 'pipe2'.
36505         * lib/unistd.in.h (pipe2): New declaration.
36506         * lib/pipe2.c: New file.
36507         * m4/pipe2.m4: New file.
36508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36509         HAVE_PIPE2.
36510         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36511         * modules/pipe2: New file.
36512         * doc/glibc-functions/pipe2.texi: Mention the new module.
36513
36514 2009-08-22  Bruno Haible  <bruno@clisp.org>
36515
36516         Reference some new glibc functions.
36517         * doc/glibc-functions/accept4.texi: New file.
36518         * doc/glibc-functions/dup3.texi: New file.
36519         * doc/glibc-functions/mkostemp.texi: New file.
36520         * doc/glibc-functions/pipe2.texi: New file.
36521         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36522         (Glibc sys/socket.h): Refer to accept4.
36523         (Glibc unistd.h): Refer to dup3, pipe2.
36524         Reported by Eric Blake.
36525
36526 2009-08-22  Jim Meyering  <meyering@redhat.com>
36527             Bruno Haible  <bruno@clisp.org>
36528
36529         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36530         This makes it so packages using automake-1.11's silent-rules option
36531         can print e.g., a single "GEN    configmake.h" line, rather than
36532         the 30+ statements that perform the job.  If you want to see the
36533         actual commands, you can still run "make V=1".
36534         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36535         so that make output is abbreviated when those variables are defined
36536         appropriately.
36537         * modules/argz: Likewise.
36538         * modules/arpa_inet: Likewise.
36539         * modules/byteswap: Likewise.
36540         * modules/configmake: Likewise.
36541         * modules/dirent: Likewise.
36542         * modules/errno: Likewise.
36543         * modules/fcntl: Likewise.
36544         * modules/float: Likewise.
36545         * modules/fnmatch: Likewise.
36546         * modules/getopt-posix: Likewise.
36547         * modules/glob: Likewise.
36548         * modules/iconv_open: Likewise.
36549         * modules/inttypes: Likewise.
36550         * modules/localcharset: Likewise.
36551         * modules/locale: Likewise.
36552         * modules/math: Likewise.
36553         * modules/netdb: Likewise.
36554         * modules/netinet_in: Likewise.
36555         * modules/poll: Likewise.
36556         * modules/posix_spawnp-tests: Likewise.
36557         * modules/sched: Likewise.
36558         * modules/search: Likewise.
36559         * modules/selinux-h: Likewise.
36560         * modules/signal: Likewise.
36561         * modules/spawn: Likewise.
36562         * modules/stdarg: Likewise.
36563         * modules/stdbool: Likewise.
36564         * modules/stddef: Likewise.
36565         * modules/stdint: Likewise.
36566         * modules/stdio: Likewise.
36567         * modules/stdlib: Likewise.
36568         * modules/string: Likewise.
36569         * modules/strings: Likewise.
36570         * modules/sys_file: Likewise.
36571         * modules/sys_ioctl: Likewise.
36572         * modules/sys_select: Likewise.
36573         * modules/sys_socket: Likewise.
36574         * modules/sys_stat: Likewise.
36575         * modules/sys_time: Likewise.
36576         * modules/sys_times: Likewise.
36577         * modules/sys_utsname: Likewise.
36578         * modules/sys_wait: Likewise.
36579         * modules/sysexits: Likewise.
36580         * modules/time: Likewise.
36581         * modules/unistd: Likewise.
36582         * modules/wchar: Likewise.
36583         * modules/wctype: Likewise.
36584
36585 2009-08-22  Jim Meyering  <meyering@redhat.com>
36586
36587         announce-gen: detect write failure
36588         * build-aux/announce-gen: Add Coda at end.
36589         Remove equivalent-but-more-verbose block at top.
36590
36591 2009-08-19  Akim Demaille  <demaille@gostai.com>
36592
36593         bootstrap: --help to stdout.
36594         * bootstrap (usage): Don't send --help to stderr.
36595         Use a here doc instead of a long string.
36596
36597 2009-08-21  Eric Blake  <ebb9@byu.net>
36598
36599         test-popen-safer: split from test-popen
36600         * tests/test-popen.c (main): Move...
36601         * tests/test-popen.h: ...into new file.
36602         * tests/test-popen-safer2.c: New file.
36603         * modules/popen-tests (Files): Add test-popen.h.
36604         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36605         Suggested by Bruno Haible.
36606
36607         test-fcntl-safer: split from test-open
36608         * tests/test-open.c (main): Move...
36609         * tests/test-open.h: ...into new file.
36610         * tests/test-fcntl-safer.c: New file.
36611         * modules/open-tests (Files): Add test-open.h.
36612         * modules/fcntl-safer-tests: New file.
36613         Suggested by Bruno Haible.
36614
36615         test-fopen-safer: split from test-fopen
36616         * tests/test-fopen.c (main): Move...
36617         * tests/test-fopen.h: ...into new file.
36618         * tests/test-fopen-safer.c: New file.
36619         * modules/fopen-tests (Files): Add test-fopen.h.
36620         * modules/fopen-safer-tests: New file.
36621         Suggested by Bruno Haible.
36622
36623 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36624
36625         popen-safer: test O_CLOEXEC at run-time.
36626         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36627
36628 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36629
36630         fcntl: move more flags to the header
36631         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36632         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36633         * lib/fcntl.in.h: Do both things here.
36634
36635 2009-08-21  Jim Meyering  <meyering@redhat.com>
36636
36637         consistently remove $@-t before redirecting to it
36638         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36639         * modules/alloca-opt: Likewise.
36640         * modules/byteswap: Likewise.
36641         * modules/fnmatch: Likewise.
36642         * modules/getopt-posix: Likewise.
36643         * modules/glob: Likewise.
36644         * modules/poll: Likewise.
36645         * modules/posix_spawnp-tests: Likewise.
36646         * modules/sys_socket: Likewise.
36647         * modules/sysexits: Likewise.
36648
36649 2009-08-21  Eric Blake  <ebb9@byu.net>
36650
36651         popen: simplify access to original popen
36652         * lib/popen.c (rpl_popen): No need to worry about popen being a
36653         macro.
36654         Reported by Bruno Haible.
36655
36656 2009-08-20  Eric Blake  <ebb9@byu.net>
36657
36658         build: avoid some compiler warnings
36659         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36660         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36661         type.
36662         (new_exclude_segment, excluded_file_pattern_p)
36663         (excluded_file_name_p): Reduce scope.
36664         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36665         old-style declaration.
36666
36667 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36668
36669         * tests/test-exclude1.sh: Handle Windows EOL.
36670         * tests/test-exclude2.sh: Likewise.
36671         * tests/test-exclude3.sh: Likewise.
36672         * tests/test-exclude4.sh: Likewise.
36673         * tests/test-exclude5.sh: Likewise.
36674         * tests/test-exclude6.sh: Likewise.
36675         * tests/test-exclude7.sh: Likewise.
36676
36677 2009-08-19  Akim Demaille  <demaille@gostai.com>
36678
36679         bootstrap: find sha1sum when named gsha1sum.
36680         * bootstrap (find_tool): New.
36681         ($SHA1SUM): New.
36682         Use it.
36683
36684 2009-08-20  Jim Meyering  <meyering@redhat.com>
36685
36686         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36687         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36688         expression that converts "." in a file name to "\." in the resulting
36689         regexp.  Start with a dummy statement, so that prior shell variable
36690         definitions are expanded portably.  Reported by Simon Josefsson.
36691
36692 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36693
36694         Fix polling for writeability of a screen buffer.
36695         * lib/poll.c: Distinguish input and screen buffers for the
36696         Win32 implementation.
36697         * lib/select.c: Likewise.
36698
36699 2009-08-19  Eric Blake  <ebb9@byu.net>
36700
36701         popen-safer: prevent popen from clobbering std descriptors
36702         * modules/popen-safer: New file.
36703         * lib/popen-safer.c: Likewise.
36704         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36705         * lib/stdio--.h (popen): Provide override.
36706         * lib/stdio-safer.h (popen_safer): Provide declaration.
36707         * tests/test-popen.c (includes): Partially test this.
36708         * modules/popen-safer-tests: New file, for more tests.
36709         * tests/test-popen-safer.c: Likewise.
36710         * MODULES.html.sh (file stream based Input/Output): Mention it.
36711
36712         tests: test some of the *-safer modules
36713         * modules/fopen-safer (Depends-on): Add fopen.
36714         * modules/fcntl-safer (Depends-on): Add fcntl.
36715         * modules/stdlib-safer (Depends-on): Add stdlib.
36716         (configure.ac): Set indicator.
36717         * modules/unistd-safer (configure.ac): Likewise.
36718         * modules/tmpfile-safer (configure.ac): Likewise.
36719         (Depends-on): Add tmpfile.
36720         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36721         active.
36722         * tests/test-fopen.c (includes): Test safer versions when they are
36723         in use.
36724         * tests/test-open.c (includes): Likewise.
36725
36726         popen: fix cygwin 1.5 bug when stdin closed
36727         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36728         * modules/popen: New file.
36729         * modules/popen-tests: Likewise.
36730         * tests/test-popen.c: Likewise.
36731         * m4/popen.m4: Likewise.
36732         * lib/popen.c: Likewise.
36733         * lib/stdio.in.h (popen): New declaration.
36734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36735         * modules/stdio (Makefile.am): Likewise.
36736         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36737
36738 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36739
36740         maint.mk: give full control over update-copyright exclusions
36741         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36742         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36743         (update-copyright): Don't force inclusion of top-level
36744         ChangeLog.  Don't force exclusion of all COPYING files, but make
36745         them the default exclusion instead.
36746
36747 2009-08-16  Bruno Haible  <bruno@clisp.org>
36748
36749         Fix test failures on Solaris 10.
36750         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36751         tests when Solaris iconv() is used.
36752         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36753         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36754         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36755         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36756         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36757
36758 2009-08-16  Bruno Haible  <bruno@clisp.org>
36759
36760         Fix test failures on Solaris 10.
36761         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36762         'tr' program and pass it as first argument.
36763         * tests/test-pipe-filter-gi1.sh: Likewise.
36764         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36765         program as first argument.
36766         * tests/test-pipe-filter-gi1.c (main): Likewise.
36767
36768 2009-08-16  Eric Blake  <ebb9@byu.net>
36769
36770         fpurge: fix previous commits
36771         * modules/fpurge (Makefile.am): Make replacement conditional,
36772         partially reverting 2007-04-29 change; missed in previous
36773         attempt.
36774         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36775         is missing.
36776
36777 2009-08-16  Bruno Haible  <bruno@clisp.org>
36778
36779         Clarify fpurge's effect on the file position.
36780         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36781         * tests/test-fpurge.c (main): Make a second pass for checking the file
36782         position.
36783
36784 2009-08-16  Bruno Haible  <bruno@clisp.org>
36785
36786         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36787         declaration of fpurge is missing.
36788         * tests/test-fpurge.c (main): Check that the file has not more contents
36789         than expected. Close the file before removing it.
36790
36791 2009-08-15  Eric Blake  <ebb9@byu.net>
36792
36793         fpurge: don't wrap working cygwin implementation
36794         * lib/fpurge.c (fpurge): Fix comment typo.
36795         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36796         1.7 to avoid replacement.
36797         * tests/test-fpurge.c (main): Enhance test.
36798
36799 2009-08-15  Eric Blake  <ebb9@byu.net>
36800         and Jim Meyering  <meyering@redhat.com>
36801
36802         test-update-copyright: skip if perl is insufficient
36803         * tests/test-update-copyright.sh: Failure to run maintainer tool
36804         should not cause testsuite failure on cygwin 1.5.
36805
36806 2009-08-14  Eric Blake  <ebb9@byu.net>
36807
36808         doc: mention more functions added in cygwin 1.7.0
36809         * doc/posix-headers/limits.texi (limits.h): Update for recent
36810         cygwin additions.
36811         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36812         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36813         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36814         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36815         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36816
36817 2009-08-14  Eric Blake  <ebb9@byu.net>
36818
36819         maint.mk: simplify update-copyright rule
36820         * top/maint.mk (update-copyright-local): Delete, and document how
36821         to do it in cfg.mk instead.
36822         (update-copyright-exclude-regexp): Delete, and document how to do
36823         it in .x-update-copyright instead.
36824         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36825         exclude ChangeLog.
36826
36827 2009-08-14  Bruno Haible  <bruno@clisp.org>
36828
36829         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36830
36831 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36832
36833         maint.mk: support update-copyright-env
36834         * top/maint.mk (update-copyright-env): Define place-holder.
36835         (update-copyright): Expand $(update-copyright-env) before
36836         invoking update-copyright.
36837
36838 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36839
36840         update-copyright: implement forced reformatting
36841         * build-aux/update-copyright: Implement and document
36842         UPDATE_COPYRIGHT_FORCE.
36843         * tests/test-update-copyright.sh: Test it.
36844
36845 2009-08-14  Eric Blake  <ebb9@byu.net>
36846         and Bruno Haible  <bruno@clisp.org>
36847
36848         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36849         * tests/test-locale.c: Revert previous patch related to NULL.
36850         * tests/test-stdio.c: Likewise.
36851         * tests/test-stdlib.c: Likewise.
36852         * tests/test-string.c: Likewise.
36853         * tests/test-unistd.c: Likewise.
36854         * modules/time-tests (Depends-on): Add verify.
36855         * modules/wchar-tests (Depends-on): Likewise.
36856         * tests/test-time.c: Test for NULL compliance.
36857         * tests/test-wchar.c: Likewise.
36858         * modules/locale (Depends-on): Add stddef.
36859         * modules/stdio (Depends-on): Likewise.
36860         * modules/stdlib (Depends-on): Likewise.
36861         * modules/string (Depends-on): Likewise.
36862         * modules/time (Depends-on): Likewise.
36863         * modules/unistd (Depends-on): Likewise.
36864         * modules/wchar (Depends-on): Likewise.
36865         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36866         * lib/stdlib.in.h (includes): Likewise.
36867         * lib/string.in.h (includes): Likewise.
36868         * lib/time.in.h (includes): Likewise.
36869         * lib/unistd.in.h (includes): Likewise.
36870         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36871         replaced.
36872         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36873         * m4/stddef_h.m4: New file.
36874         * modules/stddef: Likewise.
36875         * lib/stddef.in.h: Likewise.
36876         * modules/stddef-tests: Likewise.
36877         * tests/test-stddef.c: Likewise.
36878         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36879         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36880         * doc/posix-headers/locale.texi (locale.h): Likewise.
36881         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36882         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36883         * doc/posix-headers/string.texi (string.h): Likewise.
36884         * doc/posix-headers/time.texi (time.h): Likewise.
36885         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36886         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36887
36888 2009-08-14  Eric Blake  <ebb9@byu.net>
36889
36890         doc: improve git diff of texinfo files
36891         * .gitattributes: Add rule for *.texi files, with hint on how to
36892         use it.
36893         Copied from m4, and based on a report by Bruno Haible.
36894
36895 2009-08-14  Bruno Haible  <bruno@clisp.org>
36896
36897         Disable multithread support by default on Cygwin 1.5.x for real.
36898         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36899
36900 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36901
36902         update-copyright: much ado about intervals
36903         * build-aux/update-copyright: Implement and document
36904         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36905         of copyright year intervals.
36906         Also, document UPDATE_COPYRIGHT_YEAR.
36907         * tests/test-update-copyright.sh: Test it.
36908
36909         update-copyright: convert 2-digit to 4-digit years
36910         * build-aux/update-copyright: Implement and document.
36911         * tests/test-update-copyright.sh: Update.
36912
36913 2009-08-14  Jim Meyering  <meyering@redhat.com>
36914
36915         test-exclude: avoid coreutils "make check" failure
36916         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36917         just as in test-argmatch.c.
36918
36919 2009-08-13  Eric Blake  <ebb9@byu.net>
36920
36921         test-dup2: fix bad assumption
36922         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36923         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36924
36925         test-version-etc: fix CRLF portability issue
36926         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36927         recognize \r.
36928         * tests/test-argp-version-etc-1.sh: Likewise.
36929
36930         getopt: update client modules
36931         * modules/argp (Depends-on): Use getopt-gnu.
36932         * modules/git-merge-changelog (Depends-on): Likewise.
36933         * modules/long-options (Depends-on): Likewise.
36934         * modules/xstrtol (Depends-on): Likewise.
36935
36936 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36937
36938         * tests/test-version-etc.sh: Don't fail on different
36939         project/version.  Don't fail on CRLF differences.  Rewrite to use
36940         multiple -e instead of multiple sed forks, suggested by Eric Blake
36941         <ebb9@byu.net>.
36942         * tests/test-argp-version-etc-1.sh: Likewise.
36943
36944 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36945
36946         * tests/test-version-etc.sh: Don't fail on different
36947         project/version.
36948
36949 2009-08-12  Bruno Haible  <bruno@clisp.org>
36950
36951         Tests for modules 'getopt-posix', 'getopt-gnu'.
36952         * modules/getopt-posix-tests: New file.
36953         * tests/test-getopt.c: New file.
36954         * tests/test-getopt.h: New file.
36955         * tests/test-getopt_long.h: New file.
36956
36957         New modules 'getopt-posix', 'getopt-gnu'.
36958         * modules/getopt-gnu: New file, renamed from modules/getopt.
36959         * modules/getopt-posix: New file.
36960         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36961         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36962         (gl_GETOPT): Remove macro.
36963         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36964         Disable the test against BSD systems that declare optreset. Test
36965         against mingw bug. Test against lack of support of optional arguments
36966         on many platforms.
36967         * doc/glibc-headers/getopt.texi: Update module name and list of
36968         relevant platforms.
36969         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36970         'getopt-gnu' and more portability problems.
36971         * NEWS: Mention the changes.
36972
36973 2009-08-12  Bruno Haible  <bruno@clisp.org>
36974
36975         Ensure that optarg etc. get declared by <unistd.h>.
36976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36977         AC_USE_SYSTEM_EXTENSIONS.
36978         * modules/getopt (Depends-on): Add 'extensions'.
36979
36980 2009-08-12  Bruno Haible  <bruno@clisp.org>
36981
36982         Avoid test link errors.
36983         * modules/pipe-filter-ii-tests (Makefile.am): Define
36984         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36985         * modules/pipe-filter-gi-tests (Makefile.am): Define
36986         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36987         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36988
36989 2009-08-12  Bruno Haible  <bruno@clisp.org>
36990
36991         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36992         gl_GETOPT_SUBSTITUTE before.
36993         (gl_GETOPT): Use it.
36994         * m4/argp.m4 (gl_ARGP): Update.
36995         Reported by Sergey Poznyakoff.
36996
36997         * m4/getopt.m4: Reorder macros.
36998         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36999         (gl_GETOPT_SUBSTITUTE): Remove macro.
37000
37001 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37002
37003         Minor improvement in gitlog-to-changelog
37004
37005         * build-aux/gitlog-to-changelog: New option `--format' makes
37006         output format string configurable.
37007
37008 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37009
37010         Optimize exclude: use hash tables for non-wildcard patterns.
37011
37012         * lib/exclude.c: Include hash.h and mbuiter.h
37013         (struct exclude_pattern, exclude_segment): New data types.
37014         (struct exclude): Rewrite.
37015         (fnmatch_pattern_has_wildcards): New function.
37016         (new_exclude_segment, free_exclude_segment): New functions.
37017         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37018         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37019         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37020         * modules/exclude: Depend on hash and mbuiter.
37021
37022         * modules/exclude-tests: New file.
37023         * tests/test-exclude.c: New file.
37024         * tests/test-exclude1.sh: New file.
37025         * tests/test-exclude2.sh: New file.
37026         * tests/test-exclude3.sh: New file.
37027         * tests/test-exclude4.sh: New file.
37028         * tests/test-exclude5.sh: New file.
37029         * tests/test-exclude6.sh: New file.
37030         * tests/test-exclude7.sh: New file.
37031
37032 2009-08-12  Bruno Haible  <bruno@clisp.org>
37033
37034         Ensure that getopt() gets declared by <unistd.h>.
37035         * lib/unistd.in.h: Conditionally include getopt.h.
37036         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37037         Set GNULIB_UNISTD_H_GETOPT.
37038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37039         GNULIB_UNISTD_H_GETOPT.
37040         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37041
37042 2009-08-12  Bruno Haible  <bruno@clisp.org>
37043
37044         Clarify logic.
37045         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37046         gl_replace_getopt instead of GETOPT_H.
37047
37048 2009-08-12  Bruno Haible  <bruno@clisp.org>
37049
37050         * m4/getopt.m4: Add comments.
37051
37052 2009-08-12  Bruno Haible  <bruno@clisp.org>
37053
37054         Disable multithread support by default on Cygwin 1.5.x.
37055         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37056         set gl_use_threads=no if not specified otherwise.
37057
37058 2009-08-11  Bruno Haible  <bruno@clisp.org>
37059
37060         Avoid compilation error on NetBSD 5.0.
37061         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37062         * tests/test-stdio.c: Likewise.
37063         * tests/test-stdlib.c: Likewise.
37064         * tests/test-string.c: Likewise.
37065         * tests/test-unistd.c: Likewise.
37066         Reported by Greg Troxel <gdt@ir.bbn.com>
37067         at <https://savannah.gnu.org/support/?106973>.
37068
37069 2009-08-11  Bruno Haible  <bruno@clisp.org>
37070
37071         * modules/dup2-tests (Depends-on): Remove close.
37072
37073         Undo 2009-07-19 commit.
37074         * modules/acl-tests (Depends-on): Remove close.
37075         * modules/binary-io-tests (Depends-on): Likewise.
37076         * modules/closein-tests (Depends-on): Likewise.
37077         * modules/flock-tests (Depends-on): Likewise.
37078         * modules/fsync-tests (Depends-on): Likewise.
37079         * modules/lseek-tests (Depends-on): Likewise.
37080         * modules/pipe-tests (Depends-on): Likewise.
37081         * modules/posix_spawn-tests (Depends-on): Likewise.
37082         * modules/posix_spawnp-tests (Depends-on): Likewise.
37083         * modules/stat-time-tests (Depends-on): Likewise.
37084         * modules/yesno-tests (Depends-on): Likewise.
37085
37086 2009-08-10  Bruno Haible  <bruno@clisp.org>
37087
37088         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37089
37090 2009-08-10  Bruno Haible  <bruno@clisp.org>
37091
37092         Fix a gcc warning.
37093         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37094
37095 2009-08-10  Bruno Haible  <bruno@clisp.org>
37096
37097         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37098         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37099         not only the first time.
37100         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37101         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37102         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37103         is 1, not only the the first time.
37104
37105 2009-08-10  Bruno Haible  <bruno@clisp.org>
37106
37107         Make it possible to use module 'gethostname' without module 'close'.
37108         * lib/unistd.in.h (close): Evoke a link error only if
37109         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37111         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37112         * modules/unistd (Makefile.am): Substitute
37113         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37114         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37115         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37116         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37117         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37118         * modules/sys_ioctl (Makefile.am): Substitute
37119         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37120         * modules/socket (configure.ac): On native Windows, set
37121         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37122         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37123         Reported by Sam Steingold <sds@gnu.org>.
37124
37125 2009-08-10  Bruno Haible  <bruno@clisp.org>
37126
37127         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37128         * modules/ioctl (configure.ac): Likewise.
37129
37130 2009-08-10  Bruno Haible  <bruno@clisp.org>
37131
37132         Avoid collision between gnulib wrapper and libintl wrapper.
37133         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37134         already defined in intl/printf.c.
37135         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37136         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37137
37138 2009-08-09  Bruno Haible  <bruno@clisp.org>
37139
37140         Make <sys/select.h> really self-contained, also on Solaris 10.
37141         * lib/sys_select.in.h: Include <string.h>.
37142         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37143         Solaris 10 problem.
37144         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37145         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37146         Reported by Jim Meyering.
37147
37148 2009-08-09  Bruno Haible  <bruno@clisp.org>
37149
37150         Avoid warnings from 'aclocal' that are due to a use of macro name
37151         AM_XGETTEXT_OPTION that is not defined in automake.
37152         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37153         automake.
37154         * modules/error (configure.ac): Likewise.
37155         * modules/propername (configure.ac): Likewise.
37156         * modules/vasprintf (configure.ac): Likewise.
37157         * modules/verror (configure.ac): Likewise.
37158         * modules/xprintf (configure.ac): Likewise.
37159         * modules/xvasprintf (configure.ac): Likewise.
37160
37161 2009-08-08  Bruno Haible  <bruno@clisp.org>
37162
37163         Avoid compilation error in C++ mode.
37164         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37165         Reported by Sam Steingold <sds@gnu.org>.
37166
37167 2009-08-08  Bruno Haible  <bruno@clisp.org>
37168
37169         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37170         for the various Unix platforms.
37171         * doc/posix-headers/limits.texi: Update platforms list regarding
37172         HOST_NAME_MAX.
37173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37174
37175 2009-08-07  Jim Meyering  <meyering@redhat.com>
37176
37177         selinux-at: fix typo in a comment
37178         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37179         Spotted by Paolo Bonzini.
37180
37181         selinux-at: remove redundant m4 code, add documentation
37182         * modules/selinux-at (configure.ac): Remove redundant code.
37183         LIB_SELINUX is already set via the dependent module, selinux-h.
37184         (Include): Add quotes around selinux-at.h.
37185         * lib/selinux-at.h: Add documentation.
37186         Reported by Bruno Haible in
37187         http://marc.info/?l=gnulib-bug&m=124958988300749
37188
37189 2009-08-07  Bruno Haible  <bruno@clisp.org>
37190
37191         Avoid link error on MacOS X 10.3 and 10.4.
37192         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37193         on non-ELF systems.
37194         * lib/argp-pv.c (argp_program_version): Likewise.
37195         Reported by Simon Josefsson.
37196
37197 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37198
37199         * tests/test-version-etc.sh: Use $EXEEXT.
37200
37201 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37202
37203         update-copyright: update documentation to point to maint.mk
37204         * build-aux/update-copyright: Here.
37205
37206 2009-08-06  Jim Meyering  <meyering@redhat.com>
37207
37208         maint.mk: support update-copyright-local
37209         * top/maint.mk (update-copyright-local): Define place-holder.
37210         (update-copyright): Depend on $(update-copyright-local).
37211
37212 2009-08-06  Jim Meyering  <meyering@redhat.com>
37213
37214         selinux-at: new module
37215         Initially written for coreutils, this module will soon be
37216         used by findutils, too.
37217         * MODULES.html.sh [Misc]: Add selinux-at.
37218         * lib/selinux-at.h: New file, from coreutils.
37219         * lib/selinux-at.c: Likewise.
37220         * modules/selinux-at: Likewise.
37221         (License): Change from LGPL to GPL, since it depends
37222         on the GPL'd openat module.
37223
37224         doc: update README
37225         * README: Remove references to cogito.
37226         Remove cvs-repo-updating instructions from 2007.
37227         Don't imply that CVS is better if you have limited disk space.
37228
37229 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37230
37231         update-copyright: support C-style comments
37232         * build-aux/update-copyright: Implement and document.
37233         * tests/test-update-copyright.sh: Test.
37234
37235 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37236
37237         update-copyright: support omitted "(C)"
37238         * build-aux/update-copyright: Implement and document.  Also,
37239         allow variable whitespace before "(C)".
37240         * tests/test-update-copyright.sh: Test.
37241
37242 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37243
37244         update-copyright: don't trip on non-FSF copyright statements
37245         * build-aux/update-copyright: Fix so that the first correctly
37246         formatted FSF copyright statement is recognized no matter what
37247         appears before it.  Update documentation.
37248         * tests/test-update-copyright.sh: Test that.
37249
37250 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37251
37252         update-copyright: clean up code a little
37253         * build-aux/update-copyright: Append "_re" to the name of any
37254         variable holding a regular expression.
37255         Replace "old" and "new" with "stmt" in variable names.
37256         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37257         handled correctly.
37258         Format code more consistently.
37259
37260 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37261
37262         update-copyright-tests: improve portability
37263         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37264         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37265
37266 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37267
37268         update-copyright: support @copyright{} and &copy;
37269         * build-aux/update-copyright: Implement and document.
37270         * tests/test-update-copyright.sh: Test.
37271
37272 2009-08-04  Jim Meyering  <meyering@redhat.com>
37273
37274         update-copyright-tests: correctly test EOL=\r\n handling
37275         * tests/test-update-copyright.sh: Put \r at the end of some lines
37276         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37277
37278         maint.mk: make update-copyright exclusion list more configurable
37279         * top/maint.mk (update-copyright): Default to excluding COPYING,
37280         but allow an override, in case someone does want to update that file.
37281
37282         maint.mk: don't update copyright date in COPYING
37283         * top/maint.mk (update-copyright): Exclude COPYING.
37284
37285         maint.mk: add a copyright-updating rule
37286         * top/maint.mk (update-copyright): New rule.
37287         Derived from coreutils/Makefile.am.
37288
37289         update-copyright: rename some variables
37290         * build-aux/update-copyright: Rename a few variables for clarity.
37291         Tweak syntax.  List Joel E. Denny as coauthor.
37292
37293 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37294
37295         update-copyright: fix bug for 2-digit last year and add tests
37296         * build-aux/update-copyright: Fix bug.
37297         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37298         specified.
37299         * modules/update-copyright-tests: New
37300         * tests/test-update-copyright.sh: New.
37301
37302 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37303
37304         update-copyright: handle leading tabs in line prefix
37305         * build-aux/update-copyright: Count leading tabs as 8 spaces
37306         when computing margin.  This helps with the formatting of
37307         ChangeLogs, for example.
37308         Fix documentation a little.
37309
37310 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37311
37312         update-copyright: support EOL=\r\n
37313         * build-aux/update-copyright: Implement that.
37314
37315 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37316
37317         update-copyright: automatically format copyright statements
37318         * build-aux/update-copyright: Implement that.
37319         Also, be a little more predictable and safer by always failing
37320         when the full copyright format is not perfectly recognized as an
37321         unbroken whole.  Discussed at
37322         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37323         Rewrite documentation.
37324
37325 2009-08-03  Bruno Haible  <bruno@clisp.org>
37326
37327         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37328
37329 2009-08-02  Bruno Haible  <bruno@clisp.org>
37330
37331         Tests for module 'uname'.
37332         * modules/uname-tests: New file.
37333         * tests/test-uname.c: New file.
37334
37335         New module 'uname'.
37336         * lib/uname.c: New file.
37337         * m4/uname.m4: New file.
37338         * modules/uname: New file.
37339         * doc/posix-functions/uname.texi: Mention the new module.
37340
37341 2009-08-02  Bruno Haible  <bruno@clisp.org>
37342
37343         Tests for module 'sys_utsname'.
37344         * modules/sys_utsname-tests: New file.
37345         * tests/test-sys_utsname.c: New file.
37346
37347         New module 'sys_utsname'.
37348         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37349         * m4/sys_utsname_h.m4: New file.
37350         * modules/sys_utsname: New file.
37351         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37352
37353 2009-08-02  Bruno Haible  <bruno@clisp.org>
37354
37355         Implicitly initialize the sockets library.
37356         * lib/gethostname.c: Include sockets.h.
37357         (rpl_gethostname): Invoke gl_sockets_startup.
37358         * lib/socket.c: Include sockets.h.
37359         (rpl_socket): Invoke gl_sockets_startup.
37360         * modules/gethostname (Depends-on): Add sockets.
37361         * modules/socket (Depends-on): Likewise.
37362         * tests/test-poll.c: Don't include sockets.h.
37363         (main): Don't invoke gl_sockets_startup.
37364         * tests/test-select.c: Don't include sockets.h.
37365         (main): Don't invoke gl_sockets_startup.
37366
37367 2009-08-02  Bruno Haible  <bruno@clisp.org>
37368
37369         Allow multiple calls to gl_sockets_startup.
37370         * lib/sockets.c (initialized_sockets_version): New variable.
37371         (gl_sockets_startup): Do nothing if already called for this or a higher
37372         version.
37373         (gl_sockets_cleanup): Reset initialized_sockets_version.
37374
37375 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37376
37377         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37378         different project/version.
37379
37380 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37381             Bruno Haible  <bruno@clisp.org>
37382
37383         Tests for module 'pipe-filter-gi'.
37384         * modules/pipe-filter-gi-tests: New file.
37385         * tests/test-pipe-filter-gi1.sh: New file.
37386         * tests/test-pipe-filter-gi1.c: New file.
37387         * tests/test-pipe-filter-gi2.sh: New file.
37388         * tests/test-pipe-filter-gi2-main.c: New file.
37389         * tests/test-pipe-filter-gi2-child.c: New file.
37390
37391         New module 'pipe-filter-gi'.
37392         * lib/pipe-filter-gi.c: New file.
37393         * modules/pipe-filter-gi: New file.
37394
37395 2009-08-02  Bruno Haible  <bruno@clisp.org>
37396             Paolo Bonzini  <bonzini@gnu.org>
37397
37398         Tests for module 'pipe-filter-ii'.
37399         * modules/pipe-filter-ii-tests: New file.
37400         * tests/test-pipe-filter-ii1.sh: New file.
37401         * tests/test-pipe-filter-ii1.c: New file.
37402         * tests/test-pipe-filter-ii2.sh: New file.
37403         * tests/test-pipe-filter-ii2-main.c: New file.
37404         * tests/test-pipe-filter-ii2-child.c: New file.
37405
37406         New module 'pipe-filter-ii'.
37407         * lib/pipe-filter.h: New file.
37408         * lib/pipe-filter-ii.c: New file.
37409         * lib/pipe-filter-aux.h: New file.
37410         * modules/pipe-filter-ii: New file.
37411
37412 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37413
37414         * lib/gc-libgcrypt.c: Change copyright to FSF.
37415         * lib/gc-gnulib.c: Likewise.
37416
37417 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37418
37419         * lib/gethostname.c: Include limits.h.
37420
37421 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37422             Bruno Haible  <bruno@clisp.org>
37423
37424         Ensure HOST_NAME_MAX as part of the gethostname module.
37425         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37426         define also HOST_NAME_MAX.
37427         * tests/test-gethostname.c: Include <limits.h>.
37428         (main): Check also HOST_NAME_MAX.
37429         * doc/posix-headers/limits.texi: Document the mingw problem.
37430
37431 2009-08-02  Bruno Haible  <bruno@clisp.org>
37432
37433         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37434         Add comments.
37435
37436 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37437
37438         * lib/gethostname.c: Add Windows wrapper.
37439         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37440         * modules/gethostname: Depend on sys_socket & errno, for also
37441         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37442         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37443
37444 2009-07-31  Jim Meyering  <meyering@redhat.com>
37445
37446         getloadavg: fix symbol name in comment
37447         * lib/getloadavg.c: Correct a typo I introduced when adding
37448         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37449         Matt Kraai spotted the problem.
37450
37451 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37452
37453         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37454         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37455         code also if ! defined N_NAME_POINTER.
37456         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37457         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37458         but the n_name member is a 12-byte array.
37459
37460 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37461
37462         update-copyright: generalize comment handling
37463         * build-aux/update-copyright: Handle copyright statements
37464         within more comment styles.
37465         Document usage.
37466         Report any file with an external copyright holder or parse failure.
37467
37468 2009-07-29  Jim Meyering  <meyering@redhat.com>
37469
37470         mktime: correct setting of REPLACE_MKTIME
37471         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37472
37473         update-copyright: new module
37474         * modules/update-copyright: New file.
37475         * build-aux/update-copyright: New file.
37476         * MODULES.html.sh (maint+release support): Add update-copyright.
37477
37478 2009-07-27  Bruno Haible  <bruno@clisp.org>
37479
37480         Fix compilation error when <ctime> is used and mktime is replaced.
37481         * lib/time.in.h (mktime): New declaration.
37482         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37483         REPLACE_MKTIME instead of defining mktime in config.h.
37484         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37485         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37486         Reported by Ross McFarland <rwmcfa1@neces.com>.
37487
37488 2009-07-27  Bruno Haible  <bruno@clisp.org>
37489
37490         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37491         Reported by Matt Kraai <mkraai@beckman.com>.
37492
37493 2009-07-25  Jim Meyering  <meyering@redhat.com>
37494
37495         maint.mk: avoid warnings about missing files
37496         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37497         diagnostic when .prev-version does not exist.
37498         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37499         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37500         nonexistent cfg.mk.
37501         Suggestions from Simon Josefsson.
37502
37503 2009-07-25  Bruno Haible  <bruno@clisp.org>
37504
37505         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37506         defined as macros. Needed on QNX 6.4.1.
37507         Reported by Matt Kraai <mkraai@beckman.com>.
37508
37509 2009-07-23  Jim Meyering  <meyering@redhat.com>
37510
37511         maint.mk: invoke "make dist" with a working value of XZ_OPT
37512         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37513
37514 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37515
37516         Make fseeko.c compile on QNX.
37517         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37518
37519 2009-07-22  Peter Simons  <simons@cryp.to>
37520
37521         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37522         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37523         * lib/md4.h: Likewise.
37524         * lib/md5.h: Likewise.
37525         * lib/sha1.h: Likewise.
37526         * lib/sha256.h: Likewise.
37527         * lib/sha512.h: Likewise.
37528
37529         tests-sha1: don't assign literal string to 'char *' variable
37530         * tests/test-sha1.c (main): Declare locals with "const" to match
37531         attributes of the right hand side.
37532
37533 2009-07-21  Eric Blake  <ebb9@byu.net>
37534
37535         dup2: fix more mingw problems
37536         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37537         fd to itself.
37538         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37539         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37540         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37541         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37542         care of mingw bugs.
37543
37544 2009-07-21  Jim Meyering  <meyering@redhat.com>
37545
37546         vc-list-files: avoid failure when /bin/sh is dash
37547         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37548         On some Debian based systems, /bin/sh is a symlink to dash, and running
37549         this command would omit the "/" following each 'tests' prefix:
37550           dash -x build-aux/vc-list-files -C . tests
37551         That is because bash and dash work differently:
37552           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37553           bash ok
37554           dash odd
37555
37556 2009-07-21  Eric Blake  <ebb9@byu.net>
37557
37558         dup2-tests: test previous patch
37559         * modules/dup2-tests: New file.
37560         * tests/test-dup2.c: Likewise.
37561         * tests/test-open.c (main): Avoid unspecified behavior.
37562         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37563         test.
37564
37565         dup2: work around mingw and cygwin 1.5 bug
37566         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37568         * modules/unistd (Makefile.am): Substitute it.
37569         * lib/unistd.in.h (dup2): Declare the replacement.
37570         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37571         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37572         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37573         * modules/execute (Depends-on): Add dup2.
37574         * modules/fseterr (Depends-on): Likewise.
37575         * modules/pipe (Depends-on): Likewise.
37576         * modules/posix_spawn-internal (Depends-on): Likewise.
37577
37578 2009-07-21  Bruno Haible  <bruno@clisp.org>
37579
37580         * modules/.gitattributes: New file.
37581
37582 2009-07-20  Bruno Haible  <bruno@clisp.org>
37583
37584         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37585         (main): Use it.
37586
37587 2009-07-20  Eric Blake  <ebb9@byu.net>
37588
37589         test-pipe: make a bit more robust.
37590         * tests/test-pipe.c (myerr): Allow error messages regardless of
37591         what we do to stderr.
37592         (test_pipe): Rearrange to avoid deadlock.
37593         (child_main): Try a larger read, to ensure we avoided deadlock.
37594         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37595         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37596         if misused.
37597
37598 2009-07-19  Jim Meyering  <meyering@redhat.com>
37599
37600         fts: avoid false-positive cycle-detection
37601         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37602         for each new command line argument.
37603
37604 2009-07-19  Bruno Haible  <bruno@clisp.org>
37605
37606         Fix build error on mingw with the modules sys_select and unistd.
37607         * modules/acl-tests (Depends-on): Add close.
37608         * modules/binary-io-tests (Depends-on): Likewise.
37609         * modules/closein-tests (Depends-on): Likewise.
37610         * modules/flock-tests (Depends-on): Likewise.
37611         * modules/fsync-tests (Depends-on): Likewise.
37612         * modules/lseek-tests (Depends-on): Likewise.
37613         * modules/pipe-tests (Depends-on): Likewise.
37614         * modules/posix_spawn-tests (Depends-on): Likewise.
37615         * modules/posix_spawnp-tests (Depends-on): Likewise.
37616         * modules/stat-time-tests (Depends-on): Likewise.
37617         * modules/yesno-tests (Depends-on): Likewise.
37618
37619 2009-07-19  Bruno Haible  <bruno@clisp.org>
37620
37621         Unify conditionals.
37622         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37623         macros, not at the compiler macros.
37624         * lib/pipe.c: Likewise.
37625         * lib/execute.c: Likewise.
37626         * lib/spawni.c: Likewise.
37627
37628 2009-07-19  Bruno Haible  <bruno@clisp.org>
37629
37630         Fix handling of closed stdin/stdout/stderr on mingw.
37631         * lib/w32spawn.h: Include unistd.h.
37632         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37633         file descriptor with O_NOINHERIT flag.
37634         (fd_safer_noinherit): New function, based on fd-safer.c.
37635         (dup_safer_noinherit): New function, based on dup-safer.c.
37636         (undup_safer_noinherit): New function.
37637         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37638         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37639         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37640         instead of fd_safer.
37641         * tests/test-pipe.c: Include <windows.h>.
37642         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37643         result.
37644
37645         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37646         from main.
37647         (test_pipe): Pass an extra argument for disambiguation.
37648         (main): Invoke parent_main or child_main.
37649
37650         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37651         consistently.
37652
37653 2009-07-18  Eric Blake  <ebb9@byu.net>
37654
37655         test-pipe: fix mingw build
37656         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37657
37658 2009-07-18  Bruno Haible  <bruno@clisp.org>
37659
37660         * modules/pipe-tests (Makefile.am): Fix typo.
37661
37662 2009-07-18  Eric Blake  <ebb9@byu.net>
37663
37664         error: fix mingw build
37665         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37666         Reported by Bruno Haible.
37667
37668         error: avoid undefined use of stdout
37669         * lib/error.c (error, error_at_line): Check that fd 1 is open
37670         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37671         is handling faults and the close_stdout module wants to report the
37672         detection of closed stdout as an error.
37673
37674 2009-07-17  Eric Blake  <ebb9@byu.net>
37675
37676         pipe: be robust in face of closed fds
37677         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37678         should cause child to misbehave.
37679         * modules/pipe-tests: New module.
37680         * tests/test-pipe.c: New file.
37681         * tests/test-pipe.sh: New file.
37682         Reported by Akim Demaille.
37683
37684 2009-07-14  Bruno Haible  <bruno@clisp.org>
37685
37686         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37687         Reported by anonymous kc.
37688
37689 2009-07-07  Jim Meyering  <meyering@redhat.com>
37690
37691         maint.mk: don't look for translatable strings in *.m4 or *.mk
37692         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37693         when searching for translatable strings.
37694
37695 2009-07-05  Jim Meyering  <meyering@redhat.com>
37696
37697         remove superfluous parentheses in STREQ definition
37698         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37699         * lib/getugroups.c (STREQ): Likewise.
37700         * lib/fnmatch.c (STREQ): Likewise.
37701         Spotted by Bruno Haible.
37702
37703 2009-07-04  Jim Meyering  <meyering@redhat.com>
37704
37705         argv-iter: new module
37706         * MODULES.html.sh: Add argv-iter.
37707         * lib/argv-iter.c, lib/argv-iter.h: New files.
37708         * modules/argv-iter: New file.
37709         * modules/argv-iter-tests: New file.
37710         * tests/test-argv-iter.c: Test it.
37711
37712 2009-07-04  Bruno Haible  <bruno@clisp.org>
37713
37714         Fix assertion.
37715         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37716         contains more exact copies of a given entry than file2, leave the extra
37717         copies unpaired rather than aborting.
37718         Reported by Eric Blake.
37719
37720 2009-07-02  Bruno Haible  <bruno@clisp.org>
37721
37722         Speedup git-merge-changelog for git cherry-pick.
37723         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37724         (entries_mapping_get): New function, extracted from compute_mapping.
37725         (entries_mapping_reverse_get): New function.
37726         (compute_mapping): Add a 'full' argument. Return the result in a
37727         'struct entries_mapping'.
37728         (main): Update. Access the mappings through entries_mapping_get.
37729         Reported by Eric Blake.
37730
37731 2009-07-02  Bruno Haible  <bruno@clisp.org>
37732
37733         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37734         best_i.
37735
37736 2009-07-02  Bruno Haible  <bruno@clisp.org>
37737
37738         Speed up approximate search for matching ChangeLog entries.
37739         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37740         argument. Call fstrcmp_bounded instead of fstrcmp.
37741         (compute_mapping, try_split_merged_entry, main): Update callers.
37742
37743 2009-07-02  Bruno Haible  <bruno@clisp.org>
37744
37745         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37746
37747 2009-06-30  Bruno Haible  <bruno@clisp.org>
37748
37749         Reduce the number of uc_is_cased calls.
37750         * lib/unicase.h (casing_suffix_context_t): Add
37751         'first_char_except_ignorable' field.
37752         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37753         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37754         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37755         Update initializer.
37756         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37757         case-ignorable characters.
37758         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37759         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37760         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37761         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37762         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37763
37764 2009-06-30  Bruno Haible  <bruno@clisp.org>
37765
37766         Tests for module 'unicase/ignorable'.
37767         * modules/unicase/ignorable-tests: New file.
37768         * tests/unicase/test-ignorable.c: New file, generated by
37769         gen-uni-tables.
37770
37771         Tests for module 'unicase/cased'.
37772         * modules/unicase/cased-tests: New file.
37773         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37774         * tests/unicase/test-predicate-part1.h: New file, derived from
37775         tests/unictype/test-predicate-part1.h.
37776         * tests/unicase/test-predicate-part2.h: New file, same as
37777         tests/unictype/test-predicate-part2.h.
37778
37779         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37780         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37781         (output_casing_properties): New function.
37782         (main): Call it.
37783         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37784         * lib/unicase/cased.c: Include unictype/bitmap.h.
37785         (uc_is_cased): Define through a bitmap lookup.
37786         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37787         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37788         (uc_is_case_ignorable): Define through a bitmap lookup.
37789         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37790         lib/unictype/bitmap.h.
37791         (Depends-on): Add inline. Clean up.
37792         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37793         lib/unictype/bitmap.h.
37794         (Depends-on): Add inline. Clean up.
37795         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37796         recognition.
37797         * tests/unicase/test-u16-tolower.c (main): Likewise.
37798         * tests/unicase/test-u32-tolower.c (main): Likewise.
37799
37800 2009-06-30  Bruno Haible  <bruno@clisp.org>
37801
37802         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37803         * lib/unicase/u16-casemap.c: Likewise.
37804         * lib/unicase/u32-casemap.c: Likewise.
37805
37806 2009-06-29  Bruno Haible  <bruno@clisp.org>
37807
37808         Define u32_casefold as a wrapper around u32_ct_casefold.
37809         * lib/unicase/u32-casefold.c: Update.
37810         * modules/unicase/u32-casefold (Depends-on): Add
37811         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37812         unicase/empty-suffix-context. Clean up.
37813
37814         Define u16_casefold as a wrapper around u16_ct_casefold.
37815         * lib/unicase/u16-casefold.c: Update.
37816         * modules/unicase/u16-casefold (Depends-on): Add
37817         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37818         unicase/empty-suffix-context. Clean up.
37819
37820         Define u8_casefold as a wrapper around u8_ct_casefold.
37821         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37822         * lib/unicase/u8-casefold.c: Update.
37823         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37824         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37825
37826         Define u32_totitle as a wrapper around u32_ct_totitle.
37827         * lib/unicase/u32-totitle.c: Update.
37828         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37829         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37830
37831         Define u16_totitle as a wrapper around u16_ct_totitle.
37832         * lib/unicase/u16-totitle.c: Update.
37833         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37834         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37835
37836         Define u8_totitle as a wrapper around u8_ct_totitle.
37837         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37838         functions.
37839         (FUNC): Delegate to U_CT_TOTITLE.
37840         * lib/unicase/u8-totitle.c: Update.
37841         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37842         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37843
37844         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37845         invocation.
37846         * modules/unicase/u32-tolower (Depends-on): Add
37847         unicase/empty-prefix-context, unicase/empty-suffix-context.
37848
37849         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37850         invocation.
37851         * modules/unicase/u16-tolower (Depends-on): Add
37852         unicase/empty-prefix-context, unicase/empty-suffix-context.
37853
37854         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37855         * modules/unicase/u8-tolower (Depends-on): Add
37856         unicase/empty-prefix-context, unicase/empty-suffix-context.
37857
37858         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37859         invocation.
37860         * modules/unicase/u32-toupper (Depends-on): Add
37861         unicase/empty-prefix-context, unicase/empty-suffix-context.
37862
37863         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37864         invocation.
37865         * modules/unicase/u16-toupper (Depends-on): Add
37866         unicase/empty-prefix-context, unicase/empty-suffix-context.
37867
37868         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37869         * modules/unicase/u8-toupper (Depends-on): Add
37870         unicase/empty-prefix-context, unicase/empty-suffix-context.
37871
37872         New module 'unicase/u32-ct-casefold'.
37873         * lib/unicase/u32-ct-casefold.c: New file.
37874         * modules/unicase/u32-ct-casefold: New file.
37875
37876         New module 'unicase/u16-ct-casefold'.
37877         * lib/unicase/u16-ct-casefold.c: New file.
37878         * modules/unicase/u16-ct-casefold: New file.
37879
37880         New module 'unicase/u8-ct-casefold'.
37881         * lib/unicase/u8-ct-casefold.c: New file.
37882         * lib/unicase/u-ct-casefold.h: New file, derived from
37883         lib/unicase/u-casefold.h.
37884         * modules/unicase/u8-ct-casefold: New file.
37885
37886         New module 'unicase/u32-ct-totitle'.
37887         * lib/unicase/u32-ct-totitle.c: New file.
37888         * modules/unicase/u32-ct-totitle: New file.
37889
37890         New module 'unicase/u16-ct-totitle'.
37891         * lib/unicase/u16-ct-totitle.c: New file.
37892         * modules/unicase/u16-ct-totitle: New file.
37893
37894         New module 'unicase/u8-ct-totitle'.
37895         * lib/unicase/u8-ct-totitle.c: New file.
37896         * lib/unicase/u-ct-totitle.h: New file, derived from
37897         lib/unicase/u-totitle.h.
37898         * modules/unicase/u8-ct-totitle: New file.
37899
37900         New module 'unicase/u32-ct-tolower'.
37901         * lib/unicase/u32-ct-tolower.c: New file.
37902         * modules/unicase/u32-ct-tolower: New file.
37903
37904         New module 'unicase/u16-ct-tolower'.
37905         * lib/unicase/u16-ct-tolower.c: New file.
37906         * modules/unicase/u16-ct-tolower: New file.
37907
37908         New module 'unicase/u8-ct-tolower'.
37909         * lib/unicase/u8-ct-tolower.c: New file.
37910         * modules/unicase/u8-ct-tolower: New file.
37911
37912         New module 'unicase/u32-ct-toupper'.
37913         * lib/unicase/u32-ct-toupper.c: New file.
37914         * modules/unicase/u32-ct-toupper: New file.
37915
37916         New module 'unicase/u16-ct-toupper'.
37917         * lib/unicase/u16-ct-toupper.c: New file.
37918         * modules/unicase/u16-ct-toupper: New file.
37919
37920         New module 'unicase/u8-ct-toupper'.
37921         * lib/unicase/u8-ct-toupper.c: New file.
37922         * modules/unicase/u8-ct-toupper: New file.
37923
37924         Add context arguments to u*_casemap functions.
37925         * lib/unicase/unicasemap.h: Include unicase.h.
37926         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37927         suffix_context arguments.
37928         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37929         functions.
37930         (FUNC): Add prefix_context and suffix_context arguments. Use
37931         uc_is_cased and uc_is_case_ignorable.
37932         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37933         * lib/unicase/u16-casemap.c: Likewise.
37934         * lib/unicase/u32-casemap.c: Likewise.
37935         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37936         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37937         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37938         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37939         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37940         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37941
37942         New module 'unicase/u32-suffix-context'.
37943         * lib/unicase/u32-suffix-context.c: New file.
37944         * modules/unicase/u32-suffix-context: New file.
37945
37946         New module 'unicase/u16-suffix-context'.
37947         * lib/unicase/u16-suffix-context.c: New file.
37948         * modules/unicase/u16-suffix-context: New file.
37949
37950         New module 'unicase/u8-suffix-context'.
37951         * lib/unicase/u8-suffix-context.c: New file.
37952         * lib/unicase/u-suffix-context.h: New file.
37953         * modules/unicase/u8-suffix-context: New file.
37954
37955         New module 'unicase/empty-suffix-context'.
37956         * lib/unicase/empty-suffix-context.c: New file.
37957         * modules/unicase/empty-suffix-context: New file.
37958
37959         New module 'unicase/u32-prefix-context'.
37960         * lib/unicase/u32-prefix-context.c: New file.
37961         * modules/unicase/u32-prefix-context: New file.
37962
37963         New module 'unicase/u16-prefix-context'.
37964         * lib/unicase/u16-prefix-context.c: New file.
37965         * modules/unicase/u16-prefix-context: New file.
37966
37967         New module 'unicase/u8-prefix-context'.
37968         * lib/unicase/u8-prefix-context.c: New file.
37969         * lib/unicase/u-prefix-context.h: New file.
37970         * lib/unicase/context.h: New file.
37971         * modules/unicase/u8-prefix-context: New file.
37972
37973         New module 'unicase/empty-prefix-context'.
37974         * lib/unicase/empty-prefix-context.c: New file.
37975         * modules/unicase/empty-prefix-context: New file.
37976
37977         New module 'unicase/ignorable'.
37978         * lib/unicase/ignorable.c: New file.
37979         * modules/unicase/ignorable: New file.
37980
37981         New module 'unicase/cased'.
37982         * lib/unicase/caseprop.h: New file.
37983         * lib/unicase/cased.c: New file.
37984         * modules/unicase/cased: New file.
37985
37986         New functions for case mapping of substrings.
37987         * lib/unicase.h (casing_prefix_context_t): New type.
37988         (unicase_empty_prefix_context): New variable.
37989         (u8_casing_prefix_context, u16_casing_prefix_context,
37990         u32_casing_prefix_context, u8_casing_prefixes_context,
37991         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37992         declarations.
37993         (casing_suffix_context_t): New type.
37994         (unicase_empty_suffix_context): New variable.
37995         (u8_casing_suffix_context, u16_casing_suffix_context,
37996         u32_casing_suffix_context, u8_casing_suffixes_context,
37997         u16_casing_suffixes_context, u32_casing_suffixes_context,
37998         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37999         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38000         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38001         declarations.
38002
38003 2009-06-28  Jim Meyering  <meyering@redhat.com>
38004
38005         boostrap: indent only with spaces
38006         * build-aux/bootstrap: Indent only with spaces, never TABs.
38007
38008         bootstrap: split long lines
38009         * build-aux/bootstrap: Keep line length < 80.
38010
38011         bootstrap: sync from coreutils
38012         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38013         just as autoreconf does.  Verify a list of prerequisite
38014         package-name,version-number pairs if defined in bootstrap.conf.
38015         Refer to README-prereq, if prerequisites are not satisfied.
38016
38017 2009-06-27  Eric Blake  <ebb9@byu.net>
38018
38019         tests: add test for bogus NULL definition
38020         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38021         * tests/test-stdlib.c: Likewise.
38022         * tests/test-string.c: Likewise.
38023         * tests/test-locale.c: Likewise.
38024         * tests/test-unistd.c: Likewise.
38025         * modules/stdio-tests (Depends-on): Add verify.
38026         * modules/stdlib-tests (Depends-on): Likewise.
38027         * modules/string-tests (Depends-on): Likewise.
38028         * modules/locale-tests (Depends-on): Likewise.
38029         * modules/unistd-tests (Depends-on): Likewise.
38030
38031 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38032
38033         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38034         self-explaining comment.
38035         * m4/selinux-selinux-h: Update serial.
38036         (gl_LIBSELINUX): New macro, adding a warning for missing development
38037         packages to code extracted from...
38038         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38039         Add warning for missing development packages here, too.
38040
38041 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38042
38043         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38044
38045 2009-06-25  Eric Blake  <ebb9@byu.net>
38046
38047         version-etc: fix regression
38048         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38049         gcc.
38050         (version_etc): Use it, to catch bugs with trailing NULL.
38051         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38052         (version_etc_va): Fix logic bug.
38053         * modules/version-etc-tests: Add test.
38054         * tests/test-version-etc.c: New file.
38055         * tests/test-version-etc.sh: Likewise.
38056
38057 2009-06-25  Sam Steingold  <sds@gnu.org>
38058
38059         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38060         mbtowc declaration.
38061
38062 2009-06-25  Eric Blake  <ebb9@byu.net>
38063
38064         fpurge: migrate into <stdio.h>
38065         * lib/fpurge.h: Delete...
38066         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38067         * lib/fpurge.c (fpurge): Change declaring header.
38068         * modules/fpurge (Files): Drop deleted file.
38069         (Depends-on): Add stdio.
38070         (configure.ac): Set witness.
38071         * modules/stdio (Makefile.am): Support fpurge macros.
38072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38073         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38074         * lib/fflush.c: Update client.
38075         * tests/test-fpurge.c: Likewise.
38076         * NEWS: Mention the change.
38077
38078 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38079
38080         * lib/argp-version-etc.c (program_authors): Add const
38081         qualifier.
38082         * lib/version-etc.c: Fix typos in the comments.
38083         * modules/argp-version-etc: Depends on version-etc.
38084
38085 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38086
38087         argp-version-etc: new module.
38088
38089         * lib/argp-version-etc.c: New file.
38090         * lib/argp-version-etc.h: New file.
38091         * modules/argp-version-etc: New file.
38092         * modules/argp-version-etc-tests: New file.
38093         * tests/test-argp-version-etc.c: New test.
38094         * tests/test-argp-version-etc-1.sh: New test.
38095
38096 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38097
38098         Provide additional interfaces and documentation for version-etc
38099         module.
38100
38101         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38102         interfaces.
38103         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38104         prototypes.
38105
38106 2009-06-24  Bruno Haible  <bruno@clisp.org>
38107
38108         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38109         HAVE_LIB${NAME} macro.
38110         Reported by Sam Steingold <sds@gnu.org>.
38111
38112 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38113
38114         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38115         needed.
38116
38117 2009-06-21  Bruno Haible  <bruno@clisp.org>
38118
38119         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38120         work.
38121         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38122         together with LIB${NAME}, LTLIB${NAME}.
38123         Reported by Sam Steingold <sds@gnu.org>.
38124
38125 2009-06-20  Jim Meyering  <meyering@redhat.com>
38126
38127         tests: make sc_require_test_exit_idiom more generic
38128         * top/maint.mk (Exit_witness_file): New overridable variable.
38129         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38130         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38131
38132 2009-06-19  Jim Meyering  <meyering@redhat.com>
38133
38134         hash: reverse order of src/dst parameters in an internal interface
38135         * lib/hash.c (transfer_entries): Reverse order of parameters to
38136         put DST before SRC.  Adjust callers.
38137
38138         tests: test-hash: avoid wholesale duplication
38139         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38140         Instead, use a loop and add a single conditional.
38141
38142         tests: test-hash: allow seed selection via a command line argument
38143         * tests/test-hash.c (get_seed): New function.
38144         (main): Use it.
38145
38146 2009-06-19  Eric Blake  <ebb9@byu.net>
38147
38148         hash: avoid memory leak on allocation failure
38149         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38150         failure.  Factor repeated algorithm...
38151         (transfer_entries): ...into new helper routine.
38152         (hash_delete): React to hash_rehash return value.
38153
38154         hash: reduce memory pressure in hash_rehash no-op case
38155         * lib/hash.c (next_prime): Avoid overflow.
38156         (hash_initialize): Factor bucket size computation...
38157         (compute_bucket_size): ...into new helper function.
38158         (hash_rehash): Use new function and open coding to reduce memory
38159         pressure, and avoid a memory leak in USE_OBSTACK code.
38160         Reported by Jim Meyering.
38161
38162 2009-06-18  Eric Blake  <ebb9@byu.net>
38163
38164         hash: make rotation more obvious
38165         * modules/hash (Depends-on): Add bitrotate and stdint.
38166         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38167         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38168         (SIZE_MAX): Rely on headers for definition.
38169         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38170         (raw_hasher): Use rotr_sz.
38171         Suggested by Jim Meyering.
38172
38173         hash: fix memory leak in last patch
38174         * lib/hash.c (hash_rehash): Avoid memory leak.
38175
38176         hash: avoid no-op rehashing
38177         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38178
38179         hash: provide default callback functions
38180         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38181         (hash_initialize): Use them as defaults.
38182         * tests/test-hash.c (main): Test this.
38183
38184         hash: minor optimization
38185         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38186         when possible.
38187         (hash_initialize): Document this promise.
38188         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38189         * tests/test-hash.c (hash_compare_strings): Test this.
38190
38191 2009-06-18  Bruno Haible  <bruno@clisp.org>
38192
38193         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38194         going to be replaced anyway.
38195
38196 2009-06-18  Bruno Haible  <bruno@clisp.org>
38197
38198         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38199         in one place.
38200         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38201         be replaced anyway.
38202
38203 2009-06-18  Eric Blake  <ebb9@byu.net>
38204
38205         hash: check for resize before insertion
38206         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38207         threshold before insertion, so that a pathological hash_rehash
38208         that fills every bucket can still trigger another rehash.
38209
38210 2009-06-18  Jim Meyering  <meyering@redhat.com>
38211
38212         hash-tests: add a loop around the small tests
38213         * tests/test-hash.c (main): Repeat small tests with selected
38214         small initial table sizes.
38215
38216 2009-06-17  Eric Blake  <ebb9@byu.net>
38217
38218         hash: minor cleanups
38219         * lib/hash.h (hash_entry): Make opaque, by moving...
38220         * lib/hash.c (hash_entry): ...here.
38221         (hash_insert): Clarify restrictions on what can be inserted.
38222         (hash_get_next): Clarify when it is safe to remove an element
38223         during traversal.
38224         (check_tuning): Skip verification when tuning is known safe.
38225         (hash_initialize): Clarify restrictions on tuning.
38226
38227 2009-06-17  Jim Meyering  <jim@meyering.net>
38228         and Eric Blake  <ebb9@byu.net>
38229
38230         hash-tests: new module
38231         * modules/hash-tests: New file.
38232         * tests/test-hash.c: New file.
38233
38234 2009-06-17  Eric Blake  <ebb9@byu.net>
38235
38236         strstr-simple: document new module
38237         * MODULES.html.sh: Document new module.
38238
38239         strstr, strcasestr: replace on platforms with broken memchr
38240         * modules/strstr: Split into...
38241         * modules/strstr-simple: ...new module that does not care about
38242         performance, but does care about glibc bug.
38243         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38244         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38245         if platform memchr is broken, per Debian bug 521737.
38246         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38247         memchr.
38248         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38249         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38250         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38251         * modules/mountlist (Depends-on): Add strstr-simple.
38252         * modules/gen-uni-tables (Depends-on): Likewise.
38253         * modules/argz (Depends-on): Add strstr.
38254
38255 2009-06-17  Bruno Haible  <bruno@clisp.org>
38256
38257         * modules/posix_spawn-internal (Depends-on): Add errno.
38258
38259 2009-06-17  Bruno Haible  <bruno@clisp.org>
38260
38261         Define missing ESTALE on Interix 3.5.
38262         * lib/errno.in.h (ESTALE): Assign a value if missing.
38263         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38264         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38265         missing.
38266         * doc/posix-headers/errno.texi: Mention the Interix bug.
38267         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38268
38269 2009-06-15  Eric Blake  <ebb9@byu.net>
38270
38271         memchr, memchr2: add valgrind exception
38272         * lib/memchr.valgrind: New file.
38273         * lib/memchr2.valgrind: New file.
38274         * modules/memchr (Files): Distribute valgrind file.
38275         * modules/memchr2 (Files): Likewise.
38276
38277         docs: memchr is no longer obsolete
38278         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38279         * lib/string.in.h (memchr): Simplify logic.
38280
38281 2009-06-14  Jim Meyering  <meyering@redhat.com>
38282
38283         link-follow: fix the "checking..." message to not mention trailing slash
38284         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38285         never considered trailing slashes.
38286
38287 2009-06-14  Bruno Haible  <bruno@clisp.org>
38288
38289         * m4/memchr.m4: Mention also the bug on IA-64.
38290         * doc/posix-functions/memchr.texi: Likewise.
38291
38292 2009-06-12  Eric Blake  <ebb9@byu.net>
38293
38294         memchr: detect broken x86_64 and alpha implementations
38295         * modules/memchr-tests (Depends-on): Move mmap detection...
38296         * modules/memchr (Depends-on): ...here.
38297         (configure.ac): Set indicator.
38298         * lib/string.in.h (memchr): Declare replacement.
38299         * modules/string (Makefile.am): Trigger replacement.
38300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38301         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38302         bugs.
38303         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38304         * modules/getpagesize (License): Relax license.
38305
38306 2009-06-11  Bruno Haible  <bruno@clisp.org>
38307
38308         * lib/idpriv.h: Add more references.
38309
38310 2009-06-08  Bruno Haible  <bruno@clisp.org>
38311
38312         Tests for module 'idpriv-droptemp'.
38313         * modules/idpriv-droptemp-tests: New file.
38314         * tests/test-idpriv-droptemp.sh: New file.
38315         * tests/test-idpriv-droptemp.su.sh: New file.
38316         * tests/test-idpriv-droptemp.c: New file.
38317
38318         New module 'idpriv-droptemp'.
38319         * lib/idpriv-droptemp.c: New file.
38320         * modules/idpriv-droptemp: New file.
38321
38322 2009-06-08  Bruno Haible  <bruno@clisp.org>
38323
38324         Tests for module 'idpriv-drop'.
38325         * modules/idpriv-drop-tests: New file.
38326         * tests/test-idpriv-drop.sh: New file.
38327         * tests/test-idpriv-drop.su.sh: New file.
38328         * tests/test-idpriv-drop.c: New file.
38329
38330         New module 'idpriv-drop'.
38331         * lib/idpriv.h: New file.
38332         * lib-idpriv-drop.c: New file.
38333         * m4/idpriv.m4: New file.
38334         * modules/idpriv-drop: New file.
38335
38336 2009-06-08  Bruno Haible  <bruno@clisp.org>
38337
38338         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38339         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38340         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38341         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38342         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38343         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38344         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38345
38346 2009-06-08  Eric Blake  <ebb9@byu.net>
38347
38348         test-strstr: use memory fence, when possible
38349         * tests/test-strstr.c (main): Use memory fence, in order to be
38350         more likely to trigger Debian bug 521737.
38351         * modules/strstr-tests (Files): Pull in additional files.
38352
38353         memchr: no longer obsolete, for wider field testing
38354         * modules/memchr (Status, Notice): Delete, this module is no
38355         longer obsolete.
38356         * modules/vasnprintf (Depends-on): Add memchr.
38357
38358 2009-06-07  Jim Meyering  <meyering@redhat.com>
38359
38360         hash: declare some functions with the warn_unused_result attribute
38361         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38362
38363 2009-06-07  Bruno Haible  <bruno@clisp.org>
38364
38365         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38366         Reported by Eric Blake.
38367
38368 2009-06-06  Eric Blake  <ebb9@byu.net>
38369
38370         test-alignof: fix typo with long double
38371         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38372         compiler error.
38373
38374 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38375
38376         Escape non-texinfo { and }s.
38377         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38378         markup error.
38379
38380 2009-06-04  Jim Meyering  <meyering@redhat.com>
38381
38382         gitlog-to-changelog: don't infloop on an empty commit log
38383         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38384         Reported by Boris Petersen <transacid@centerim.org>.
38385
38386 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38387
38388         version-etc: extend for packagers
38389         Add three new configure options, intended for packagers:
38390           --with-packager="packager name"
38391           --with-packager-version="packager-specific version"
38392           --with-packager-bug-reports="packager bug reporting"
38393         An example with coreutils:
38394           $ ./configure \
38395             --with-packager=Gentoo \
38396             --with-packager-bug-report=http://bugs.gentoo.org/ \
38397             --with-packager-version="patchset 1.6"
38398           $ ./src/ls --version | head -n2
38399           ls (GNU coreutils) 7.1-dirty
38400           Packaged by Gentoo (patchset 1.6)
38401         Note that the bug reporting info via --help doesn't show up because
38402         coreutils uses its own custom emit_bug_reporting_address() implementation
38403         in src/system.h.  If it didn't, it'd look like:
38404           $ ./src/ls --help | tail -n4
38405           Report bugs to <bug-coreutils@gnu.org>.
38406           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38407           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38408           General help using GNU software: <http://www.gnu.org/gethelp/>.
38409         * lib/version-etc.c: Print new information, if provided.
38410         * m4/version-etc.m4: New file.
38411         * modules/version-etc (Files): Add m4/version-etc.m4.
38412         (configure.ac): Add gl_VERSION_ETC.
38413
38414 2009-05-31  Bruno Haible  <bruno@clisp.org>
38415
38416         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38417         and 'int64_t'.
38418         * modules/alignof-tests (Dependencies): Add stdint.
38419         Reported by Eric Blake.
38420
38421 2009-05-31  Bruno Haible  <bruno@clisp.org>
38422
38423         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38424         restriction due to compiler bugs.
38425         Reported by Eric Blake.
38426
38427 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38428             Bruno Haible  <bruno@clisp.org>
38429
38430         Fix test-alignof failure.
38431         * lib/alignof.h (alignof_slot): New macro.
38432         (alignof_type): New macro, with the same semantics as the previous
38433         'alignof'.
38434         (alignof): Alias to alignof_slot.
38435         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38436         check that the results are usable as constant expressions.
38437
38438 2009-05-31  Bruno Haible  <bruno@clisp.org>
38439
38440         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38441         * tests/test-memchr.c (main): Check that memchr does not read past the
38442         first occurrence of the byte.
38443         * tests/test-strstr.c (main): Update comment.
38444         Suggested by Eric Blake.
38445
38446 2009-05-30  Bruno Haible  <bruno@clisp.org>
38447
38448         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38449         detail how to use dumpbin.
38450         Reported by David Byron <dbyron@dbyron.com>.
38451
38452 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38453
38454         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38455
38456 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38457
38458         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38459
38460 2009-05-28  Bruno Haible  <bruno@clisp.org>
38461
38462         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38463         build-aux/ files.
38464
38465 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38466
38467         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38468
38469 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38470
38471         * gnulib-tool (sed_transform_main_lib_file)
38472         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38473         regexps.
38474
38475 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38476
38477         * tests/test-strstr.c: Add another self-test.
38478         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38479         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38480
38481 2009-05-23  Bruno Haible  <bruno@clisp.org>
38482
38483         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38484         change.
38485
38486 2009-05-21  Bruno Haible  <bruno@clisp.org>
38487
38488         Simplify use of mode_t varargs.
38489         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38490         uses 'mode_t' or 'int'.
38491         * lib/openat.c (openat): Likewise.
38492         * lib/open-safer.c (open_safer): Likewise.
38493         * m4/mode_t.m4: New file.
38494         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38495         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38496         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38497         * modules/open (Files): Add m4/mode_t.m4.
38498         * modules/openat (Files): Likewise.
38499         * modules/fcntl-safer (Files): Likewise.
38500         Suggested by Eric Blake.
38501
38502 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38503
38504         * doc/glibc-functions/fallocate.texi: New file.
38505         * doc/gnulib.texi: Include it.
38506
38507 2009-05-21  Eric Blake  <ebb9@byu.net>
38508             Bruno Haible  <bruno@clisp.org>
38509
38510         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38511         invocations.
38512         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38513
38514 2009-05-21  Eric Blake  <ebb9@byu.net>
38515             Bruno Haible  <bruno@clisp.org>
38516
38517         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38518         include_next. Fix of 2008-11-20 commit.
38519         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38520         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38521         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38522         NEXT_MATH_H.
38523         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38524         instead of NEXT_MATH_H.
38525
38526 2009-05-21  Bruno Haible  <bruno@clisp.org>
38527
38528         Avoid redefinition warnings for SIZE_MAX.
38529         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38530         Reported by Simon Josefsson.
38531
38532 2009-05-21  Bruno Haible  <bruno@clisp.org>
38533
38534         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38535         AC_CACHE_VAL.
38536
38537 2009-05-20  Bruno Haible  <bruno@clisp.org>
38538
38539         Make zeroptr.h work on mingw.
38540         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38541         mprotect.
38542         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38543         * modules/memchr2-tests (configure.ac): Likewise.
38544         * modules/memcmp-tests (configure.ac): Likewise.
38545         * modules/memmem-tests (configure.ac): Likewise.
38546         * modules/memrchr-tests (configure.ac): Likewise.
38547         Reported by Simon Josefsson.
38548
38549 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38550
38551         * tests/test-glob.c: Include string.h for strcmp prototype.
38552
38553 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38554
38555         * modules/getdelim (Depends-on): Add explicit stdint, although it
38556         was implicitly already pulled in via realloc-posix.
38557         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38558
38559 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38560
38561         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38562         G. Christensen" <tgc@jupiterrise.com>.
38563         * m4/sys_socket_h.m4: Check for sa_family_t.
38564         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38565         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38566         * tests/test-sys_socket.c: Check that sa_family_t works.
38567
38568 2009-05-18  Eric Blake  <ebb9@byu.net>
38569
38570         maint.mk: allow gnulib_dir in VPATH build
38571         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38572
38573 2009-05-15  Jim Meyering  <meyering@redhat.com>
38574
38575         maint.mk: Give gnulib_dir a default definition.
38576         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38577         Thus, most packages no longer need to specify this variable in cfg.mk
38578
38579 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38580
38581         rename.m4: fix typos that would make non-mingw cross-configure fail
38582         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38583
38584 2009-05-13  Eric Blake  <ebb9@byu.net>
38585
38586         mmap-anon: avoid out-of-order autoconf expansion
38587         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38588         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38589         * modules/memchr-tests (Depends-on): Add extensions.
38590         * modules/memchr2-tests (Depends-on): Add extensions.
38591         * modules/memcmp-tests (Depends-on): Add extensions.
38592         * modules/memmem-tests (Depends-on): Add extensions.
38593         * modules/memrchr-tests (Depends-on): Add extensions.
38594
38595 2009-05-13  Bruno Haible  <bruno@clisp.org>
38596
38597         Make some tests ISO C 99 compliant.
38598         * tests/zerosize-ptr.h: New file.
38599         * tests/test-memchr.c: Include zerosize-ptr.h.
38600         (main): Use a zero-size object pointer instead of NULL.
38601         * tests/test-memchr2.c: Include zerosize-ptr.h.
38602         (main): Use a zero-size object pointer instead of NULL.
38603         * tests/test-memcmp.c: Include zerosize-ptr.h.
38604         (main): Use a zero-size object pointer instead of NULL.
38605         * tests/test-memmem.c: Include zerosize-ptr.h.
38606         (main): Use a zero-size object pointer instead of NULL.
38607         * tests/test-memrchr.c: Include zerosize-ptr.h.
38608         (main): Use a zero-size object pointer instead of NULL.
38609         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38610         m4/mmap-anon.m4.
38611         (Depends-on): Add getpagesize.
38612         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38613         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38614         m4/mmap-anon.m4.
38615         (Depends-on): Add getpagesize.
38616         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38617         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38618         m4/mmap-anon.m4.
38619         (Depends-on): Add getpagesize.
38620         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38621         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38622         m4/mmap-anon.m4.
38623         (Depends-on): Add getpagesize.
38624         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38625         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38626         m4/mmap-anon.m4.
38627         (Depends-on): Add getpagesize.
38628         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38629
38630 2009-05-12  Bruno Haible  <bruno@clisp.org>
38631
38632         Tests for module 'alignof'.
38633         * modules/alignof-tests: New file.
38634         * tests/test-alignof.c: New file.
38635
38636 2009-05-12  Bruno Haible  <bruno@clisp.org>
38637
38638         Fix alignof macro.
38639         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38640         vendor compilers that are always correct.
38641
38642 2009-05-12  Bruno Haible  <bruno@clisp.org>
38643
38644         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38645         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38646         not whether its fully works.
38647
38648 2009-05-12  Bruno Haible  <bruno@clisp.org>
38649
38650         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38651
38652 2009-05-12  Jim Meyering  <meyering@redhat.com>
38653
38654         * top/maint.mk: Adjust backslash alignment.
38655
38656 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38657
38658         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38659
38660 2009-05-11  Eric Blake  <ebb9@byu.net>
38661
38662         argp: avoid undefined behavior
38663         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38664         macros.
38665
38666 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38667
38668         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38669         user.name to prevent git commit from complaining.
38670
38671 2009-05-10  Bruno Haible  <bruno@clisp.org>
38672
38673         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38674         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38675         it rewrites every file name only once.
38676         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38677
38678 2009-05-08  Bruno Haible  <bruno@clisp.org>
38679
38680         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38681         instead of 'max'.
38682
38683 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38684
38685         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38686         sockaddr_storage test.
38687
38688 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38689
38690         * modules/sys_socket (Makefile.am): Substitute
38691         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38692         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38693         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38694         * tests/test-sys_socket.c: Check sockaddr_storage.
38695
38696 2009-05-08  Bruno Haible  <bruno@clisp.org>
38697
38698         New module 'alignof'.
38699         * lib/alignof.h: New file.
38700         * modules/alignof: New file.
38701
38702 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38703             Bruno Haible  <bruno@clisp.org>
38704
38705         Fix test-file-has-acl on FreeBSD.
38706         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38707         mask is implicitly added.
38708         * tests/test-file-has-acl.c: Include <signal.h>.
38709         (main): Terminate the test after 5 seconds.
38710         * modules/acl-tests (configure.ac): Check for alarm function.
38711
38712 2009-05-04  Bruno Haible  <bruno@clisp.org>
38713
38714         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38715         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38716         * modules/errno (configure.ac): Drop AC_REQUIRE.
38717         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38718         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38719
38720 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38721
38722         * modules/glob-tests: New module.
38723         * tests/test-glob.c: Add.
38724
38725 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38726
38727         * modules/fnmatch-tests: New module.
38728         * tests/test-fnmatch.c: Add.
38729
38730 2009-05-04  Eric Blake  <ebb9@byu.net>
38731
38732         maint: make the new no-submodule-changes rule VPATH-safe
38733         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38734
38735 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38736             Bruno Haible  <bruno@clisp.org>
38737
38738         acl: Fix infinite loop on FreeBSD.
38739         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38740         of return value from acl_get_entry.
38741         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38742         Likewise.
38743
38744 2009-05-03  Bruno Haible  <bruno@clisp.org>
38745
38746         * lib/acl-internal.h (acl_entries): Clarify return value.
38747         * lib/acl_entries.c (acl_entries): Likewise.
38748
38749 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38750
38751         Bug fix in acl module.
38752         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38753
38754 2009-05-03  Bruno Haible  <bruno@clisp.org>
38755
38756         Create gperf-generated file in the source dir, not in the build dir.
38757         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38758         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38759         * modules/unicase/locale-language (unicase/locale-languages.h):
38760         Likewise.
38761         * modules/unicase/special-casing (unicase/special-casing-table.h):
38762         Likewise.
38763         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38764         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38765         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38766         Reported by Ralf Wildenhues.
38767
38768 2009-05-03  Bruno Haible  <bruno@clisp.org>
38769
38770         * modules/fnmatch (Description, configure.ac): Taken from
38771         fnmatch-posix.
38772         * modules/fnmatch-posix: Turn into a symbolic reference to the
38773         'fnmatch' module, and deprecate.
38774         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38775
38776 2009-05-03  Bruno Haible  <bruno@clisp.org>
38777
38778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38779         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38780         Reported by Ralf Wildenhues.
38781
38782 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38783
38784         * m4/fnmatch.m4: Fix fnmatch re-define.
38785
38786 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38787
38788         priv-set: new module and tests; adapt write-any-file
38789         * lib/priv-set.c: New file.
38790         * lib/priv-set.h: New file.
38791         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38792         * lib/write-any-file.c: Simplify by using priv-set module.
38793         * m4/priv-set.m4: New file.
38794         * modules/priv-set: New file.
38795         * modules/unlinkdir: Add dependency on priv-set module.
38796         * modules/write-any-file: Likewise.
38797
38798         Tests for module 'priv-set'.
38799         * modules/priv-set-tests: New file.
38800         * tests/test-priv-set.c: New file.
38801
38802 2009-05-03  Jim Meyering  <meyering@redhat.com>
38803             Bruno Haible  <bruno@clisp.org>
38804
38805         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38806         use the converted UTF-8 variant of the name instead.
38807
38808 2009-05-03  Jim Meyering  <meyering@redhat.com>
38809
38810         tests: tighten some getdate tests
38811         * tests/test-getdate.c (main): Tighten tests: require equality,
38812         not just greater than.  Set TZ envvar to UTC0.
38813
38814 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38815
38816         getdate: correctly interpret "next monday" when run on a Monday
38817         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38818         that e.g., "next tues" (when run on a tuesday) results in a date
38819         that is one week in the future, and not today's date.
38820         I.e., add a week when the wday is the same as the current one.
38821         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38822         and earlier by Martin Bernreuther and Jan Minář.
38823         * tests/test-getdate.c (main): Check that "next DAY" is always in
38824         the future and that "last DAY" is always in the past.
38825
38826 2009-05-02  Jim Meyering  <meyering@redhat.com>
38827
38828         build: ensure that a release build fails when a submodule is unclean
38829         * top/maint.mk (no-submodule-changes): New rule.
38830         (alpha beta major): Depend on it.
38831
38832 2009-05-02  Bruno Haible  <bruno@clisp.org>
38833
38834         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38835         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38836         shell variable gl_fnmatch_required to detect which variant is
38837         requested.
38838         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38839         gl_FUNC_FNMATCH_POSIX.
38840         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38841         exclude fnmatch-posix.
38842
38843 2009-05-02  Bruno Haible  <bruno@clisp.org>
38844
38845         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38846         * modules/mbsrtowcs (License): Change to LGPLv2+.
38847         * modules/strnlen1 (License): Likewise.
38848         Reported by Simon Josefsson.
38849
38850 2009-05-02  Bruno Haible  <bruno@clisp.org>
38851
38852         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38853         "cross".
38854         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38855         gnulib-tool was called with option --source-base=lib.
38856
38857 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38858
38859         Use automake *-local hooks without commands, for extensibility.
38860         * modules/localcharset (Makefile.am): Rename install-exec-local
38861         rule to install-exec-localcharset, and make it a prerequisite of
38862         install-exec-local.  Likewise, rename the uninstall-local rule to
38863         uninstall-localcharset, and make it a prerequisite of the former.
38864
38865 2009-05-01  Bruno Haible  <bruno@clisp.org>
38866
38867         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38868         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38869         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38870         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38871         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38872         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38873         m4/locale-zh.m4, m4/codeset.m4.
38874
38875         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38876         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38877         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38878         m4/locale-zh.m4.
38879
38880         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38881         REPLACE_WCRTOMB if mbstate_t must be replaced.
38882         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38883         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38884
38885 2009-05-01  Bruno Haible  <bruno@clisp.org>
38886
38887         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38888         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38889         dngettext, dcngettext, textdomain, bindtextdomain,
38890         bind_textdomain_codeset): Undefine before redefining.
38891
38892 2009-04-30  Bruno Haible  <bruno@clisp.org>
38893
38894         Fix bug introduced on 2009-04-25.
38895         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38896         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38897         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38898         is defined.
38899         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38900         is defined.
38901         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38902         is defined.
38903         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38904
38905 2009-04-28  Bruno Haible  <bruno@clisp.org>
38906
38907         Comment tweaks.
38908         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38909         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38910         * lib/unicase.h (u*_casexfrm): Likewise.
38911         Reported by Paolo Bonzini.
38912
38913 2009-04-28  Bruno Haible  <bruno@clisp.org>
38914
38915         Fix a compilation error.
38916         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38917         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38918         Reported by Jim Meyering.
38919
38920 2009-04-27  Bruno Haible  <bruno@clisp.org>
38921
38922         New module 'libunistring'.
38923         * modules/libunistring: New file.
38924         * m4/libunistring.m4: New file.
38925         * MODULES.html.sh (Unicode string functions): Add it.
38926
38927 2009-04-27  Eric Blake  <ebb9@byu.net>
38928
38929         maint.mk: allow package-specific header to provide <config.h>
38930         * top/maint.mk (sc_require_config_h): New variable.
38931         (sc_require_config_h, sc_require_config_h_first): Use it.
38932
38933 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38934
38935         * top/maint.mk (sc_avoid_if_before_free): Except
38936         useless-if-before-free script.
38937
38938 2009-04-27  Eric Blake  <ebb9@byu.net>
38939
38940         maintainer-makefile: depend on all required helper scripts
38941         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38942         useless-if-before-free.
38943         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38944         version, rather than assuming gnulib checkout is available.
38945         Reported by Simen Josefsson.
38946
38947 2009-04-26  Bruno Haible  <bruno@clisp.org>
38948
38949         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38950         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38951         "../" or "..".
38952
38953 2009-04-26  Bruno Haible  <bruno@clisp.org>
38954
38955         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38956         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38957         AC_LIB_HAVE_LINKFLAGS.
38958
38959 2009-04-26  Bruno Haible  <bruno@clisp.org>
38960
38961         Simplify calling convention of u*_conv_from_encoding.
38962         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38963         u32_conv_from_encoding): Expect a resultbuf argument and return the
38964         result directly as a pointer.
38965         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38966         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38967         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38968         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38969         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38970         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38971         Update.
38972         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38973         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38974         * lib/vasnprintf.c (VASNPRINTF): Update.
38975         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38976         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38977         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38978         * NEWS: Mention the change.
38979
38980 2009-04-26  Bruno Haible  <bruno@clisp.org>
38981
38982         Simplify calling convention of u*_conv_to_encoding.
38983         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38984         u32_conv_to_encoding): Expect a resultbuf argument and return the
38985         result directly as a pointer.
38986         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38987         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38988         freeing scaled_offsets if mem_iconveha failed.
38989         * lib/unicase/u-casexfrm.h (FUNC): Update.
38990         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38991         * lib/vasnprintf.c (VASNPRINTF): Update.
38992         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38993         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38994         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38995         * NEWS: Mention the change.
38996
38997 2009-04-26  Bruno Haible  <bruno@clisp.org>
38998
38999         Avoid test failures on AIX and OSF/1.
39000         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39001         malloc(0).
39002         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39003         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39004         Likewise.
39005         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39006         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39007         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39008         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39009         * doc/posix-functions/malloc.texi: Document the portability problem
39010         related to malloc(0).
39011
39012 2009-04-26  Bruno Haible  <bruno@clisp.org>
39013
39014         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39015         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39016         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39017
39018 2009-04-25  Bruno Haible  <bruno@clisp.org>
39019
39020         Avoid link error when creating a namespace clean library.
39021         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39022         as macro with arguments if already defined as an alias.
39023         * lib/signbitf.c (gl_signbitf): Don't undefine.
39024         * lib/signbitd.c (gl_signbitd): Don't undefine.
39025         * lib/signbitl.c (gl_signbitl): Don't undefine.
39026
39027 2009-04-25  Jim Meyering  <meyering@redhat.com>
39028
39029         vc-list-files: fix another quoting bug
39030         * build-aux/vc-list-files: Avoid sed backslash expansion
39031         of pathological directory names.
39032
39033 2009-04-25  Eric Blake  <ebb9@byu.net>
39034
39035         vc-list-files: fix shell quoting error
39036         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39037         timestamp.
39038
39039 2009-04-25  Jim Meyering  <meyering@redhat.com>
39040
39041         vc-list-files: restore lost functionality with subdir argument
39042         * build-aux/vc-list-files: When given a non-"." sub-directory
39043         argument, substitute the $dir/ prefix back onto each resulting name.
39044         Otherwise, coreutils' root_tests check would fail.
39045
39046 2009-04-24  Eric Blake  <ebb9@byu.net>
39047
39048         vc-list-files: ignore git symlinks
39049         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39050         than ls-files, to ignore git symlinks.
39051
39052         maint.mk: import improvements from m4
39053         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39054         (move_if_change): Delete unused macro.
39055         (news-date-check, vc-diff-check): Support VPATH builds.
39056         (announcement): Likewise.  Split --bootstrap-tools list...
39057         (boostrap-tools): ...into separate list, which can be overridden
39058         in cfg.mk.
39059         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39060         requiring dependency on useless-if-before-free module.
39061         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39062         Support VPATH builds.
39063
39064 2009-04-24  Jim Meyering  <meyering@redhat.com>
39065
39066         maint.mk: remove coreutils-specific rules and variables
39067         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39068         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39069         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39070
39071         maint.mk: remove obsolete rule
39072         * top/maint.mk (rel-check): Remove rule.
39073         (WGET, WGETFLAGS): Remove now-unused variables.
39074
39075 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39076
39077         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39078         consistency.
39079
39080         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39081         '$(PATH_SEPARATOR)' instead of ':'.
39082
39083 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39084
39085         * lib/getopt1.c (main): Use 'const' for static array.
39086
39087 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39088
39089         * top/maint.mk: Sync with coreutils.
39090         * NEWS: Explain incompatibilities.
39091
39092 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39093             Bruno Haible  <bruno@clisp.org>
39094
39095         Fix cross-compilation results.
39096         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39097         statement, as third argument of AC_TRY_RUN.
39098         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39099         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39100         Likewise.
39101         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39102         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39103         Likewise.
39104         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39105         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39106         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39107
39108 2009-04-20  Bruno Haible  <bruno@clisp.org>
39109
39110         Avoid test failure on mingw.
39111         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39112
39113 2009-04-20  Bruno Haible  <bruno@clisp.org>
39114
39115         Avoid compilation error on mingw.
39116         * modules/localename-tests (Depends-on): Add locale.
39117
39118 2009-04-19  Bruno Haible  <bruno@clisp.org>
39119
39120         Support for building a shared library on Windows platforms.
39121         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39122         (main): Test the presence of UNINORM_NFC here.
39123         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39124         (main): Test the presence of UNINORM_NFD here.
39125         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39126         (main): Test the presence of UNINORM_NFKC here.
39127         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39128         (main): Test the presence of UNINORM_NFKD here.
39129
39130 2009-04-19  Bruno Haible  <bruno@clisp.org>
39131
39132         Avoid a compiler warning.
39133         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39134         Change type of variable 'sequence'.
39135
39136 2009-04-19  Bruno Haible  <bruno@clisp.org>
39137
39138         * modules/configmake (Makefile.am): When the contents of configmake.h
39139         does not change, arrange to preserve its modification time.
39140
39141 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39142
39143         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39144         gettext domain.
39145
39146 2009-04-16  Jim Meyering  <meyering@redhat.com>
39147
39148         useless-if-before-free: improve conversion code
39149         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39150         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39151
39152 2009-04-14  Bruno Haible  <bruno@clisp.org>
39153
39154         * modules/fcntl (Depends-on): Add extensions.
39155         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39156
39157 2009-04-12  Ben Pfaff  <blp@gnu.org>
39158
39159         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39160         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39161
39162 2009-03-20  Ben Pfaff  <blp@gnu.org>
39163
39164         Make rename replace existing destinations on Windows.
39165         * m4/rename.m4: Add test for Mingw.
39166         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39167         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39168         * doc/posix-functions/rename.texi: Document.
39169
39170 2009-04-10  Bruno Haible  <bruno@clisp.org>
39171
39172         New include file "iconveh.h".
39173         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39174         * lib/striconveh.h: Include it.
39175         (enum iconv_ilseq_handler): Remove definition.
39176         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39177         striconveh.h.
39178         * lib/striconveha.c: Include striconveh.h.
39179         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39180         * modules/striconveh (Files): Add lib/iconveh.h.
39181         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39182         lib/striconveh.h.
39183
39184 2009-04-10  Bruno Haible  <bruno@clisp.org>
39185
39186         * lib/uniconv.h: Update comment.
39187
39188 2009-04-10  Bruno Haible  <bruno@clisp.org>
39189
39190         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39191         always.
39192         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39193         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39194         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39195         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39196         "unistring-notinline.h", so that the function gets defined always.
39197         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39198         * lib/unistr/u8-uctomb.c: Likewise.
39199         * lib/unistr/u16-mbtouc.c: Likewise.
39200         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39201         * lib/unistr/u16-uctomb.c: Likewise.
39202         * lib/unistr/u32-mbtouc.c: Likewise.
39203         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39204         * lib/unistr/u32-uctomb.c: Likewise.
39205
39206 2009-04-10  Bruno Haible  <bruno@clisp.org>
39207
39208         Mark 'utime' obsolete.
39209         * modules/utime (Status, Notice): New sections.
39210         Suggested by Jim Meyering.
39211
39212         Fix cross-compile guess for utime test.
39213         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39214         autoconf.
39215         * doc/posix-functions/utime.texi: Give more precisions.
39216         Reported by Jan <ipif@ymail.com>.
39217
39218 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39219
39220         filevercmp: correct today's change
39221         * lib/filevercmp.c: Also handle coreutils' test inputs.
39222         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39223
39224         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39225         for reporting it.
39226         * lib/filevercmp.c: Special handle for "", "." and "..".
39227         * tests/test-filevercmp.c: Enlarge the set suite.
39228
39229 2009-04-07  Jim Meyering  <meyering@redhat.com>
39230
39231         useless-if-before-free: show how to remove braced useless free, too
39232         * build-aux/useless-if-before-free: still only in a comment, though.
39233
39234 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39235
39236         maint.mk: import changes to syntax-check macros from coreutils
39237         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39238         Use them in the relevant macros.
39239
39240 2009-04-06  Bruno Haible  <bruno@clisp.org>
39241
39242         Fix unportable use of bit-fields.
39243         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39244         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39245         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39246
39247 2009-04-06  Bruno Haible  <bruno@clisp.org>
39248
39249         Avoid test failures on AIX and OSF/1.
39250         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39251         that malloc(0) = NULL.
39252         * tests/unicase/test-u8-tolower.c (check): Likewise.
39253         * tests/unicase/test-u8-totitle.c (check): Likewise.
39254         * tests/unicase/test-u8-toupper.c (check): Likewise.
39255         * tests/unicase/test-u16-casefold.c (check): Likewise.
39256         * tests/unicase/test-u16-tolower.c (check): Likewise.
39257         * tests/unicase/test-u16-totitle.c (check): Likewise.
39258         * tests/unicase/test-u16-toupper.c (check): Likewise.
39259         * tests/unicase/test-u32-casefold.c (check): Likewise.
39260         * tests/unicase/test-u32-tolower.c (check): Likewise.
39261         * tests/unicase/test-u32-totitle.c (check): Likewise.
39262         * tests/unicase/test-u32-toupper.c (check): Likewise.
39263         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39264         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39265         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39266         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39267         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39268         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39269         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39270         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39271         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39272         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39273         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39274         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39275
39276 2009-04-05  Bruno Haible  <bruno@clisp.org>
39277
39278         Work around an autoconf limitation.
39279         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39280         comment line if it would be longer than 3 KB.
39281
39282 2009-04-05  Bruno Haible  <bruno@clisp.org>
39283
39284         Avoid test failure with libiconv-1.13.
39285         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39286         of the expected test results.
39287
39288 2009-04-05  Bruno Haible  <bruno@clisp.org>
39289
39290         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39291         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39292         that it should be installed.
39293
39294 2009-04-05  Bruno Haible  <bruno@clisp.org>
39295
39296         * gnulib-tool: New option --copy-file.
39297         (func_usage): Document it.
39298         (func_dest_tmpfilename): Moved out of func_import.
39299         (func_add_file, func_update_file): New functions, extracted from
39300         func_import.
39301         (func_import): Update.
39302
39303 2009-04-05  Karl Berry  <karl@gnu.org>
39304
39305         * README: prominently mention gnulib-tool.
39306         Rearrange sections so getting the code is near the top.
39307
39308 2009-04-05  Bruno Haible  <bruno@clisp.org>
39309
39310         * lib/unicase.h: Mention u*_cmp2.
39311         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39312         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39313         * lib/unicase/ulc-casecmp.c: Likewise.
39314         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39315         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39316         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39317         unistr/u8-cmp.
39318         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39319         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39320         unistr/u16-cmp.
39321         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39322         unistr/u32-cmp.
39323
39324         * lib/uninorm.h: Mention u*_cmp2.
39325         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39326         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39327         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39328         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39329         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39330         unistr/u8-cmp.
39331         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39332         unistr/u16-cmp.
39333         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39334         unistr/u32-cmp.
39335
39336         New module 'unistr/u32-cmp2'.
39337         * lib/unistr/u32-cmp2.c: New file.
39338         * modules/unistr/u32-cmp2: New file.
39339
39340         New module 'unistr/u16-cmp2'.
39341         * lib/unistr/u16-cmp2.c: New file.
39342         * modules/unistr/u16-cmp2: New file.
39343
39344         New module 'unistr/u8-cmp2'.
39345         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39346         * lib/unistr/u8-cmp2.c: New file.
39347         * lib/unistr/u-cmp2.h: New file.
39348         * modules/unistr/u8-cmp2: New file.
39349
39350 2009-04-05  Bruno Haible  <bruno@clisp.org>
39351
39352         * lib/unictype.h (uc_property_is_valid): New macro.
39353         * tests/unictype/test-pr_byname.c (main): Use it.
39354
39355         * lib/unistr.h: Doc fixes.
39356         * lib/uniconv.h: Doc fixes.
39357         * lib/unictype.h: Doc fixes.
39358
39359 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39360
39361         Port coreutils 7.2 to Solaris 8.
39362
39363         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39364         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39365         for Solaris 8.  This is a bit of a hack, as it means it's the
39366         caller's responsibility to add -lnsl if needed, but most likely it
39367         won't be needed since only getaddrinfo uses this and getaddrinfo
39368         isn't needed on Solaris 8.
39369
39370         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39371         problem to Solaris 8 encountered with coreutils 7.2, which
39372         resulted in a message "fnmatch.c:292: warning: passing argument 4
39373         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39374         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39375
39376 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39377
39378         * m4/ld-version-script.m4: Add FIXME comment.
39379
39380 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39381
39382         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39383         SOVERSION variable.
39384
39385 2009-04-02  Bruno Haible  <bruno@clisp.org>
39386
39387         * Makefile (info, html, dvi, pdf): Combine the rules.
39388         Suggested by Jim Meyering.
39389
39390 2009-04-01  Bruno Haible  <bruno@clisp.org>
39391
39392         * Makefile (info, html, dvi, pdf): New targets.
39393         Reported by Reuben Thomas <rrt@sc3d.org>.
39394
39395 2009-04-01  Bruno Haible  <bruno@clisp.org>
39396
39397         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39398         can be put into PATH.
39399         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39400
39401 2009-04-01  Bruno Haible  <bruno@clisp.org>
39402
39403         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39404
39405 2009-04-01  Bruno Haible  <bruno@clisp.org>
39406
39407         Rename module 'visibility'.
39408         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39409         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39410         * doc/gnulib.texi: Update.
39411         * MODULES.html.sh (Misc): Update.
39412         * NEWS: Mention the change.
39413
39414 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39415
39416         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39417         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39418         Eric Blake <ebb9@byu.net> for review.
39419         * MODULES.html.sh: Add lib-msvc-compat.
39420         * doc/gnulib.texi: Link to new section.
39421         * m4/ld-output-def.m4: New file.
39422         * doc/ld-output-def.texi: New file.
39423
39424 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39425
39426         Rename ld-version-script to lib-symbol-versions.  Suggested by
39427         Bruno Haible <bruno@clisp.org>.
39428         * modules/ld-version-script: Renamed to lib-symbol-versions.
39429         * doc/ld-version-script.texi: Fix module name.
39430         * MODULES.html.sh: Add lib-symbol-versions.
39431
39432 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39433
39434         * modules/u64-tests: New file.
39435         * tests/test-u64.c: New file.
39436
39437 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39438
39439         * MODULES.html.sh: Mention u64.
39440         * modules/u64: New module.
39441         * modules/crypto/sha512: Depend on u64 module instead of providing
39442         u64.h.
39443
39444 2009-03-27  Eric Blake  <ebb9@byu.net>
39445
39446         test-strerror: make debugging EAI_SYSTEM easier
39447         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39448         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39449         failure was EAI_SYSTEM.
39450
39451 2009-03-25  Bruno Haible  <bruno@clisp.org>
39452
39453         Fix a problem with --enable-relocatable on Solaris 7.
39454         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39455         since 2008-02-24.
39456
39457 2009-03-25  Eric Blake  <ebb9@byu.net>
39458
39459         test-sockets: avoid gcc warning
39460         * tests/test-sockets.c (main): Silence compiler warning.
39461
39462 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39463
39464         New modules nproc, pthread, contributed by Glen Lenker.
39465
39466         * MODULES.html.sh: Add pthread, nproc.
39467         * lib/nproc.c: New file.
39468         * lib/nproc.h: New file.
39469         * lib/pthread.in.h: New file.
39470         * m4/pthread.m4: New file.
39471         * modules/nproc: New file.
39472         * modules/pthread: New file.
39473
39474 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39475
39476         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39477         New variable.
39478
39479 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39480
39481         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39482         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39483         * tests/test-filevercmp.c: Add tests for backup suffixes.
39484
39485 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39486
39487         * modules/stdlib (Depends-on): Add stdint, needed when defining
39488         struct random_data on, for example, HP-UX 10.20.  Reported by
39489         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39490
39491 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39492
39493         * lib/readline.c (readline): Call fflush on stdout after printing
39494         prompt.
39495
39496 2009-03-20  Bruno Haible  <bruno@clisp.org>
39497
39498         Remove dependency from 'close' module to -lws2_32 on native Windows.
39499         * lib/close-hook.h: New file.
39500         * lib/close-hook.c: New file.
39501         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39502         w32sock.h.
39503         (_gl_close_fd_maybe_socket): Remove function.
39504         (rpl_close): Invoke execute_all_close_hooks instead of
39505         _gl_close_fd_maybe_socket.
39506         * lib/sockets.c: Include close-hook.h, w32sock.h.
39507         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39508         (close_sockets_hook): New variable.
39509         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39510         (gl_sockets_cleanup): Unregister it.
39511         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39512         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39513         * modules/close-hook: New file.
39514         * modules/close (Files): Remove lib/w32sock.h.
39515         (Depends-on): Add close-hook.
39516         (Link): Remove section.
39517         * modules/sockets (Files): Add lib/w32sock.h.
39518         (Depends-on): Add close-hook.
39519         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39520         invocation.
39521         * NEWS: Mention that LIB_CLOSE is gone.
39522
39523 2009-03-23  Eric Blake  <ebb9@byu.net>
39524
39525         signal-tests: test previous patch
39526         * tests/test-signal.c: New file.
39527         * modules/signal-tests: Likewise.
39528
39529         signal.h: always support 'volatile sig_atomic_t'
39530         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39531         (gl_SIGNAL_H_DEFAULTS): Add a default.
39532         * modules/signal (Makefile.am): Substitute if needed.
39533         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39534         users can blindly add volatile.
39535         * doc/posix-headers/signal.texi (signal.h): Document it.
39536         Reported by Matthew Woehlke.
39537
39538 2009-03-23  Jim Meyering  <meyering@redhat.com>
39539
39540         pathmax: PATH_MAX: use pathconf only when available
39541         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39542         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39543         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39544         This avoids a link failure in a PSP cross-compilation environment
39545         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39546
39547         * lib/vasnprintf.c (divide): Fix typo in comment.
39548
39549 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39550
39551         * gnulib-tool (func_filter_filelist): Fix comment.
39552
39553 2009-03-20  Bruno Haible  <bruno@clisp.org>
39554
39555         Make sockets.h self-contained.
39556         * lib/sockets.c: Include sockets.h first.
39557         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39558
39559 2009-03-19  Eric Blake  <ebb9@byu.net>
39560
39561         doc: mention more functions added in cygwin 1.7.0
39562         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39563         addition.
39564         * doc/posix-functions/log2f.texi: Likewise.
39565
39566 2009-03-19  Jim Meyering  <meyering@redhat.com>
39567
39568         fsusage: avoid syntax error due to statement-before-declaration
39569         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39570         after all declarations.  Reported by Matthew Woehlke in
39571         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39572
39573 2009-03-18  Eric Blake  <ebb9@byu.net>
39574
39575         build-aux/compile: sync from automake
39576         * build-aux/compile: New file, from automake.
39577         * config/srclist.txt: Mention build-aux/compile.
39578
39579 2009-03-17  Bruno Haible  <bruno@clisp.org>
39580
39581         * lib/git-merge-changelog.c: Fix typo in comment.
39582         Reported by Reuben Thomas <rrt@sc3d.org>.
39583
39584 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39585
39586         * m4/regex.m4: update and improve help for
39587         --without-included-regex.
39588
39589 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39590
39591         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39592         failure on missing include files.
39593
39594 2009-03-17  Eric Blake  <ebb9@byu.net>
39595
39596         doc: mention more functions added in cygwin 1.7.0
39597         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39598         addition.
39599         * doc/posix-functions/fwscanf.texi: Likewise.
39600         * doc/posix-functions/swprintf.texi: Likewise.
39601         * doc/posix-functions/swscanf.texi: Likewise.
39602         * doc/posix-functions/vfwprintf.texi: Likewise.
39603         * doc/posix-functions/vfwscanf.texi: Likewise.
39604         * doc/posix-functions/vswprintf.texi: Likewise.
39605         * doc/posix-functions/vswscanf.texi: Likewise.
39606         * doc/posix-functions/vwprintf.texi: Likewise.
39607         * doc/posix-functions/vwscanf.texi: Likewise.
39608         * doc/posix-functions/wcscasecmp.texi: Likewise.
39609         * doc/posix-functions/wcsdup.texi: Likewise.
39610         * doc/posix-functions/wcsftime.texi: Likewise.
39611         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39612         * doc/posix-functions/wprintf.texi: Likewise.
39613         * doc/posix-functions/wscanf.texi: Likewise.
39614         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39615
39616 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39617
39618         maint.mk: really add $(AM_MAKEFLAGS)
39619         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39620         was inadvertently omitted in the last commit.
39621         Spotted by Bruno Haible.
39622
39623         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39624         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39625         $(AM_MAKEFLAGS)' rather than plain `make'.
39626
39627         gnulib-tool: execute $MAKE not make
39628         * gnulib-tool: Default $MAKE to 'make'.
39629         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39630         than make.  Initialize $MAKE in the do-autobuild script.
39631
39632         gnulib-tool: use $MAKE not make in generated files
39633         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39634         make, in generated files.  Initialize $MAKE in the do-autobuild
39635         script.
39636
39637         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39638
39639         GNUmakefile: disable parallelism only for multiple, recursive targets
39640         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39641         additions in the Makefile.
39642         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39643         by Automake.
39644         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39645         are listed on the command line and at least one of them is
39646         listed in $(ALL_RECURSIVE_TARGETS).
39647
39648 2009-03-14  Bruno Haible  <bruno@clisp.org>
39649
39650         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39651         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39652         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39653         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39654         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39655         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39656         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39657         unistr/u8-uctomb.
39658         * modules/unistr/u8-strchr (Depends-on): Likewise.
39659         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39660         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39661         unistr/u16-uctomb.
39662         * modules/unistr/u16-strchr (Depends-on): Likewise.
39663         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39664
39665 2009-03-12  Bruno Haible  <bruno@clisp.org>
39666
39667         Work around select() bug on Interix 3.5.
39668         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39669         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39670         * m4/select.m4: New file.
39671         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39672         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39673         * modules/select (Files): Add m4/select.m4.
39674         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39675         * modules/nanosleep (Depends-on): Add select.
39676         * modules/poll (Depends-on): Likewise.
39677         * doc/posix-functions/select.texi: Mention the Interix bug.
39678         Reported by Markus Duft <mduft@gentoo.org>.
39679
39680         * lib/select.c: Renamed from lib/winsock-select.c.
39681         * modules/select (Files): Add lib/select.c, remove
39682         lib/winsock-select.c.
39683         (configure.ac): Update.
39684
39685 2009-03-12  Jim Meyering  <meyering@redhat.com>
39686
39687         avoid gcc warnings about unused macro definitions
39688         * lib/readtokens.c (STREQ): Remove unused definition.
39689         * lib/xmalloc.c (SIZE_MAX): Likewise.
39690         * lib/openat-die.c (N_): Likewise.
39691         * lib/mountlist.c (SIZE_MAX): Remove definition.
39692         Instead, include <stdint.h>.
39693         * lib/readutmp.c: Likewise.
39694         * modules/readutmp (Depends-on): Add stdint.
39695         * modules/mountlist (Depends-on): Add stdint.
39696         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39697
39698 2009-03-10  Bruno Haible  <bruno@clisp.org>
39699
39700         Tests for module 'mbmemcasecoll'.
39701         * modules/mbmemcasecoll-tests: New file.
39702         * tests/test-mbmemcasecoll1.sh: New file.
39703         * tests/test-mbmemcasecoll2.sh: New file.
39704         * tests/test-mbmemcasecoll3.sh: New file.
39705         * tests/test-mbmemcasecoll.c: New file.
39706
39707         New module 'mbmemcasecoll'.
39708         * lib/mbmemcasecoll.h: New file.
39709         * lib/mbmemcasecoll.c: New file.
39710         * modules/mbmemcasecoll: New file.
39711
39712         * tests/test-mbmemcasecmp.h: New file, extracted from
39713         tests/test-mbmemcasecmp.c.
39714         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39715         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39716         (main): Update.
39717         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39718
39719 2009-03-09  Bruno Haible  <bruno@clisp.org>
39720
39721         Tests for module 'mbmemcasecmp'.
39722         * modules/mbmemcasecmp-tests: New file.
39723         * tests/test-mbmemcasecmp1.sh: New file.
39724         * tests/test-mbmemcasecmp2.sh: New file.
39725         * tests/test-mbmemcasecmp3.sh: New file.
39726         * tests/test-mbmemcasecmp.c: New file.
39727
39728         New module 'mbmemcasecmp'.
39729         * lib/mbmemcasecmp.h: New file.
39730         * lib/mbmemcasecmp.c: New file.
39731         * modules/mbmemcasecmp: New file.
39732
39733 2009-03-09  Bruno Haible  <bruno@clisp.org>
39734
39735         Tests for module 'unicase/ulc-casecoll'.
39736         * modules/unicase/ulc-casecoll-tests: New file.
39737         * tests/unicase/test-ulc-casecoll1.sh: New file.
39738         * tests/unicase/test-ulc-casecoll2.sh: New file.
39739         * tests/unicase/test-ulc-casecoll.c: New file.
39740
39741         New module 'unicase/ulc-casecoll'.
39742         * lib/unicase.h (ulc_casecoll): New declaration.
39743         * lib/unicase/ulc-casecoll.c: New file.
39744         * modules/unicase/ulc-casecoll: New file.
39745
39746         New module 'unicase/ulc-casexfrm'.
39747         * lib/unicase.h (ulc_casexfrm): New declaration.
39748         * lib/unicase/ulc-casexfrm.c: New file.
39749         * modules/unicase/ulc-casexfrm: New file.
39750
39751 2009-03-09  Bruno Haible  <bruno@clisp.org>
39752
39753         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39754         invocations.
39755
39756         * m4/mbscasecmp.m4: Remove file.
39757         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39758         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39759
39760         * m4/mbscasestr.m4: Remove file.
39761         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39762         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39763
39764         * m4/mbschr.m4: Remove file.
39765         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39766         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39767
39768         * m4/mbscspn.m4: Remove file.
39769         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39770         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39771
39772         * m4/mbslen.m4: Remove file.
39773         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39774         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39775
39776         * m4/mbsncasecmp.m4: Remove file.
39777         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39778         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39779
39780         * m4/mbsnlen.m4: Remove file.
39781         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39782         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39783
39784         * m4/mbspbrk.m4: Remove file.
39785         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39786         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39787
39788         * m4/mbspcasecmp.m4: Remove file.
39789         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39790         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39791
39792         * m4/mbsrchr.m4: Remove file.
39793         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39794         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39795
39796         * m4/mbssep.m4: Remove file.
39797         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39798         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39799
39800         * m4/mbsspn.m4: Remove file.
39801         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39802         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39803
39804         * m4/mbsstr.m4: Remove file.
39805         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39806         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39807
39808         * m4/mbstok_r.m4: Remove file.
39809         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39810         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39811
39812         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39813
39814         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39815         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39816
39817         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39818
39819 2009-03-08  Bruno Haible  <bruno@clisp.org>
39820
39821         Tests for module 'unicase/ulc-casecmp'.
39822         * modules/unicase/ulc-casecmp-tests: New file.
39823         * tests/unicase/test-ulc-casecmp1.sh: New file.
39824         * tests/unicase/test-ulc-casecmp2.sh: New file.
39825         * tests/unicase/test-ulc-casecmp.c: New file.
39826
39827         New module 'unicase/ulc-casecmp'.
39828         * lib/unicase.h (ulc_casecmp): New declaration.
39829         * lib/unicase/ulc-casecmp.c: New file.
39830         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39831         'const SRC_UNIT *'.
39832         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39833         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39834         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39835         * modules/unicase/ulc-casecmp: New file.
39836
39837         Tests for module 'unicase/u32-is-cased'.
39838         * modules/unicase/u32-is-cased-tests: New file.
39839         * tests/unicase/test-u32-is-cased.c: New file.
39840
39841         Tests for module 'unicase/u16-is-cased'.
39842         * modules/unicase/u16-is-cased-tests: New file.
39843         * tests/unicase/test-u16-is-cased.c: New file.
39844
39845         Tests for module 'unicase/u8-is-cased'.
39846         * modules/unicase/u8-is-cased-tests: New file.
39847         * tests/unicase/test-u8-is-cased.c: New file.
39848         * tests/unicase/test-is-cased.h: New file.
39849
39850         New module 'unicase/u32-is-cased'.
39851         * lib/unicase/u32-is-cased.c: New file.
39852         * modules/unicase/u32-is-cased: New file.
39853
39854         New module 'unicase/u16-is-cased'.
39855         * lib/unicase/u16-is-cased.c: New file.
39856         * modules/unicase/u16-is-cased: New file.
39857
39858         New module 'unicase/u8-is-cased'.
39859         * lib/unicase/u8-is-cased.c: New file.
39860         * lib/unicase/u-is-cased.h: New file.
39861         * modules/unicase/u8-is-cased: New file.
39862
39863         Tests for module 'unicase/u32-is-casefolded'.
39864         * modules/unicase/u32-is-casefolded-tests: New file.
39865         * tests/unicase/test-u32-is-casefolded.c: New file.
39866
39867         Tests for module 'unicase/u16-is-casefolded'.
39868         * modules/unicase/u16-is-casefolded-tests: New file.
39869         * tests/unicase/test-u16-is-casefolded.c: New file.
39870
39871         Tests for module 'unicase/u8-is-casefolded'.
39872         * modules/unicase/u8-is-casefolded-tests: New file.
39873         * tests/unicase/test-u8-is-casefolded.c: New file.
39874         * tests/unicase/test-is-casefolded.h: New file.
39875
39876         New module 'unicase/u32-is-casefolded'.
39877         * lib/unicase/u32-is-casefolded.c: New file.
39878         * modules/unicase/u32-is-casefolded: New file.
39879
39880         New module 'unicase/u16-is-casefolded'.
39881         * lib/unicase/u16-is-casefolded.c: New file.
39882         * modules/unicase/u16-is-casefolded: New file.
39883
39884         New module 'unicase/u8-is-casefolded'.
39885         * lib/unicase/u8-is-casefolded.c: New file.
39886         * modules/unicase/u8-is-casefolded: New file.
39887
39888         Tests for module 'unicase/u32-is-titlecase'.
39889         * modules/unicase/u32-is-titlecase-tests: New file.
39890         * tests/unicase/test-u32-is-titlecase.c: New file.
39891
39892         Tests for module 'unicase/u16-is-titlecase'.
39893         * modules/unicase/u16-is-titlecase-tests: New file.
39894         * tests/unicase/test-u16-is-titlecase.c: New file.
39895
39896         Tests for module 'unicase/u8-is-titlecase'.
39897         * modules/unicase/u8-is-titlecase-tests: New file.
39898         * tests/unicase/test-u8-is-titlecase.c: New file.
39899         * tests/unicase/test-is-titlecase.h: New file.
39900
39901         New module 'unicase/u32-is-titlecase'.
39902         * lib/unicase/u32-is-titlecase.c: New file.
39903         * modules/unicase/u32-is-titlecase: New file.
39904
39905         New module 'unicase/u16-is-titlecase'.
39906         * lib/unicase/u16-is-titlecase.c: New file.
39907         * modules/unicase/u16-is-titlecase: New file.
39908
39909         New module 'unicase/u8-is-titlecase'.
39910         * lib/unicase/u8-is-titlecase.c: New file.
39911         * modules/unicase/u8-is-titlecase: New file.
39912
39913         Tests for module 'unicase/u32-is-lowercase'.
39914         * modules/unicase/u32-is-lowercase-tests: New file.
39915         * tests/unicase/test-u32-is-lowercase.c: New file.
39916
39917         Tests for module 'unicase/u16-is-lowercase'.
39918         * modules/unicase/u16-is-lowercase-tests: New file.
39919         * tests/unicase/test-u16-is-lowercase.c: New file.
39920
39921         Tests for module 'unicase/u8-is-lowercase'.
39922         * modules/unicase/u8-is-lowercase-tests: New file.
39923         * tests/unicase/test-u8-is-lowercase.c: New file.
39924         * tests/unicase/test-is-lowercase.h: New file.
39925
39926         New module 'unicase/u32-is-lowercase'.
39927         * lib/unicase/u32-is-lowercase.c: New file.
39928         * modules/unicase/u32-is-lowercase: New file.
39929
39930         New module 'unicase/u16-is-lowercase'.
39931         * lib/unicase/u16-is-lowercase.c: New file.
39932         * modules/unicase/u16-is-lowercase: New file.
39933
39934         New module 'unicase/u8-is-lowercase'.
39935         * lib/unicase/u8-is-lowercase.c: New file.
39936         * modules/unicase/u8-is-lowercase: New file.
39937
39938         Tests for module 'unicase/u32-is-uppercase'.
39939         * modules/unicase/u32-is-uppercase-tests: New file.
39940         * tests/unicase/test-u32-is-uppercase.c: New file.
39941
39942         Tests for module 'unicase/u16-is-uppercase'.
39943         * modules/unicase/u16-is-uppercase-tests: New file.
39944         * tests/unicase/test-u16-is-uppercase.c: New file.
39945
39946         Tests for module 'unicase/u8-is-uppercase'.
39947         * modules/unicase/u8-is-uppercase-tests: New file.
39948         * tests/unicase/test-u8-is-uppercase.c: New file.
39949         * tests/unicase/test-is-uppercase.h: New file.
39950
39951         New module 'unicase/u32-is-uppercase'.
39952         * lib/unicase/u32-is-uppercase.c: New file.
39953         * modules/unicase/u32-is-uppercase: New file.
39954
39955         New module 'unicase/u16-is-uppercase'.
39956         * lib/unicase/u16-is-uppercase.c: New file.
39957         * modules/unicase/u16-is-uppercase: New file.
39958
39959         New module 'unicase/u8-is-uppercase'.
39960         * lib/unicase/u8-is-uppercase.c: New file.
39961         * modules/unicase/u8-is-uppercase: New file.
39962
39963         New module 'unicase/u32-is-invariant'.
39964         * lib/unicase/u32-is-invariant.c: New file.
39965         * modules/unicase/u32-is-invariant: New file.
39966
39967         New module 'unicase/u16-is-invariant'.
39968         * lib/unicase/u16-is-invariant.c: New file.
39969         * modules/unicase/u16-is-invariant: New file.
39970
39971         New module 'unicase/u8-is-invariant'.
39972         * lib/unicase/u8-is-invariant.c: New file.
39973         * lib/unicase/invariant.h: New file.
39974         * lib/unicase/u-is-invariant.h: New file.
39975         * modules/unicase/u8-is-invariant: New file.
39976
39977         Tests for module 'unicase/u32-casecoll'.
39978         * modules/unicase/u32-casecoll-tests: New file.
39979         * tests/unicase/test-u32-casecoll.c: New file.
39980
39981         Tests for module 'unicase/u16-casecoll'.
39982         * modules/unicase/u16-casecoll-tests: New file.
39983         * tests/unicase/test-u16-casecoll.c: New file.
39984
39985         Tests for module 'unicase/u8-casecoll'.
39986         * modules/unicase/u8-casecoll-tests: New file.
39987         * tests/unicase/test-u8-casecoll.c: New file.
39988
39989         New module 'unicase/u32-casecoll'.
39990         * lib/unicase/u32-casecoll.c: New file.
39991         * modules/unicase/u32-casecoll: New file.
39992
39993         New module 'unicase/u16-casecoll'.
39994         * lib/unicase/u16-casecoll.c: New file.
39995         * modules/unicase/u16-casecoll: New file.
39996
39997         New module 'unicase/u8-casecoll'.
39998         * lib/unicase/u8-casecoll.c: New file.
39999         * lib/unicase/u-casecoll.h: New file.
40000         * modules/unicase/u8-casecoll: New file.
40001
40002         New module 'unicase/u32-casexfrm'.
40003         * lib/unicase/u32-casexfrm.c: New file.
40004         * modules/unicase/u32-casexfrm: New file.
40005
40006         New module 'unicase/u16-casexfrm'.
40007         * lib/unicase/u16-casexfrm.c: New file.
40008         * modules/unicase/u16-casexfrm: New file.
40009
40010         New module 'unicase/u8-casexfrm'.
40011         * lib/unicase/u8-casexfrm.c: New file.
40012         * lib/unicase/u-casexfrm.h: New file.
40013         * modules/unicase/u8-casexfrm: New file.
40014
40015         Tests for module 'unicase/u32-casecmp'.
40016         * modules/unicase/u32-casecmp-tests: New file.
40017         * tests/unicase/test-u32-casecmp.c: New file.
40018
40019         Tests for module 'unicase/u16-casecmp'.
40020         * modules/unicase/u16-casecmp-tests: New file.
40021         * tests/unicase/test-u16-casecmp.c: New file.
40022
40023         Tests for module 'unicase/u8-casecmp'.
40024         * modules/unicase/u8-casecmp-tests: New file.
40025         * tests/unicase/test-u8-casecmp.c: New file.
40026         * tests/unicase/test-casecmp.h: New file.
40027
40028         New module 'unicase/u32-casecmp'.
40029         * lib/unicase/u32-casecmp.c: New file.
40030         * modules/unicase/u32-casecmp: New file.
40031
40032         New module 'unicase/u16-casecmp'.
40033         * lib/unicase/u16-casecmp.c: New file.
40034         * modules/unicase/u16-casecmp: New file.
40035
40036         New module 'unicase/u8-casecmp'.
40037         * lib/unicase/u8-casecmp.c: New file.
40038         * lib/unicase/u-casecmp.h: New file.
40039         * modules/unicase/u8-casecmp: New file.
40040
40041         Tests for module 'unicase/u32-casefold'.
40042         * modules/unicase/u32-casefold-tests: New file.
40043         * tests/unicase/test-u32-casefold.c: New file.
40044
40045         Tests for module 'unicase/u16-casefold'.
40046         * modules/unicase/u16-casefold-tests: New file.
40047         * tests/unicase/test-u16-casefold.c: New file.
40048
40049         Tests for module 'unicase/u8-casefold'.
40050         * modules/unicase/u8-casefold-tests: New file.
40051         * tests/unicase/test-u8-casefold.c: New file.
40052
40053         New module 'unicase/u32-casefold'.
40054         * lib/unicase/u32-casefold.c: New file.
40055         * modules/unicase/u32-casefold: New file.
40056
40057         New module 'unicase/u16-casefold'.
40058         * lib/unicase/u16-casefold.c: New file.
40059         * modules/unicase/u16-casefold: New file.
40060
40061         New module 'unicase/u8-casefold'.
40062         * lib/unicase/u8-casefold.c: New file.
40063         * lib/unicase/u-casefold.h: New file.
40064         * modules/unicase/u8-casefold: New file.
40065
40066         New module 'unicase/tocasefold'.
40067         * lib/unicase/casefold.h: New file.
40068         * lib/unicase/tocasefold.c: New file.
40069         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40070         * modules/unicase/tocasefold: New file.
40071
40072         Tests for module 'unicase/u32-totitle'.
40073         * modules/unicase/u32-totitle-tests: New file.
40074         * tests/unicase/test-u32-totitle.c: New file.
40075
40076         Tests for module 'unicase/u16-totitle'.
40077         * modules/unicase/u16-totitle-tests: New file.
40078         * tests/unicase/test-u16-totitle.c: New file.
40079
40080         Tests for module 'unicase/u8-totitle'.
40081         * modules/unicase/u8-totitle-tests: New file.
40082         * tests/unicase/test-u8-totitle.c: New file.
40083
40084         New module 'unicase/u32-totitle'.
40085         * lib/unicase/u32-totitle.c: New file.
40086         * modules/unicase/u32-totitle: New file.
40087
40088         New module 'unicase/u16-totitle'.
40089         * lib/unicase/u16-totitle.c: New file.
40090         * modules/unicase/u16-totitle: New file.
40091
40092         New module 'unicase/u8-totitle'.
40093         * lib/unicase/u8-totitle.c: New file.
40094         * lib/unicase/u-totitle.h: New file.
40095         * modules/unicase/u8-totitle: New file.
40096
40097         Tests for module 'unicase/u32-tolower'.
40098         * modules/unicase/u32-tolower-tests: New file.
40099         * tests/unicase/test-u32-tolower.c: New file.
40100
40101         Tests for module 'unicase/u16-tolower'.
40102         * modules/unicase/u16-tolower-tests: New file.
40103         * tests/unicase/test-u16-tolower.c: New file.
40104
40105         Tests for module 'unicase/u8-tolower'.
40106         * modules/unicase/u8-tolower-tests: New file.
40107         * tests/unicase/test-u8-tolower.c: New file.
40108
40109         New module 'unicase/u32-tolower'.
40110         * lib/unicase/u32-tolower.c: New file.
40111         * modules/unicase/u32-tolower: New file.
40112
40113         New module 'unicase/u16-tolower'.
40114         * lib/unicase/u16-tolower.c: New file.
40115         * modules/unicase/u16-tolower: New file.
40116
40117         New module 'unicase/u8-tolower'.
40118         * lib/unicase/u8-tolower.c: New file.
40119         * modules/unicase/u8-tolower: New file.
40120
40121         Tests for module 'unicase/u32-toupper'.
40122         * modules/unicase/u32-toupper-tests: New file.
40123         * tests/unicase/test-u32-toupper.c: New file.
40124
40125         Tests for module 'unicase/u16-toupper'.
40126         * modules/unicase/u16-toupper-tests: New file.
40127         * tests/unicase/test-u16-toupper.c: New file.
40128
40129         Tests for module 'unicase/u8-toupper'.
40130         * modules/unicase/u8-toupper-tests: New file.
40131         * tests/unicase/test-u8-toupper.c: New file.
40132
40133         New module 'unicase/u32-toupper'.
40134         * lib/unicase/u32-toupper.c: New file.
40135         * modules/unicase/u32-toupper: New file.
40136
40137         New module 'unicase/u16-toupper'.
40138         * lib/unicase/u16-toupper.c: New file.
40139         * modules/unicase/u16-toupper: New file.
40140
40141         New module 'unicase/u8-toupper'.
40142         * lib/unicase/u8-toupper.c: New file.
40143         * modules/unicase/u8-toupper: New file.
40144
40145         New module 'unicase/u32-casemap'.
40146         * lib/unicase/u32-casemap.c: New file.
40147         * modules/unicase/u32-casemap: New file.
40148
40149         New module 'unicase/u16-casemap'.
40150         * lib/unicase/u16-casemap.c: New file.
40151         * modules/unicase/u16-casemap: New file.
40152
40153         New module 'unicase/u8-casemap'.
40154         * lib/unicase/unicasemap.h: New file.
40155         * lib/unicase/u8-casemap.c: New file.
40156         * lib/unicase/u-casemap.h: New file.
40157         * modules/unicase/u8-casemap: New file.
40158
40159         New module 'unicase/special-casing'.
40160         * lib/unicase/special-casing.h: New file.
40161         * lib/unicase/special-casing.c: New file.
40162         * lib/unicase/special-casing-table.gperf: New file, generated by
40163         gen-uni-tables.c.
40164         * modules/unicase/special-casing: New file.
40165
40166         Tests for module 'unicase/locale-language'.
40167         * modules/unicase/locale-language-tests: New file.
40168         * tests/unicase/test-locale-language.sh: New file.
40169         * tests/unicase/test-locale-language.c: New file.
40170
40171         New module 'unicase/locale-language'.
40172         * lib/unicase/locale-language.c: New file.
40173         * lib/unicase/locale-languages.gperf: New file.
40174         * modules/unicase/locale-language: New file.
40175
40176         Generate more tables for case conversion and case folding.
40177         * lib/gen-uni-tables.c (SCC_*): New enum items.
40178         (struct special_casing_rule): New type.
40179         (casing_rules, num_casing_rules, allocated_casing_rules): New
40180         variables.
40181         (add_casing_rule, fill_casing_rules): New functions.
40182         (struct casefold_rule): New type.
40183         (casefolding_rules, num_casefolding_rules,
40184         allocated_casefolding_rules): New variables.
40185         (fill_casefolding_rules): New function.
40186         (unicode_casefold): New variable.
40187         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40188         sort_casing_rules, output_casing_rules): New functions.
40189         (main): Accept to more arguments: SpecialCasing.txt and
40190         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40191         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40192         Output mapping for casefolding.
40193
40194         * lib/unicase.h: Include stdbool.h, uninorm.h.
40195         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40196         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40197         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40198         arguments.
40199         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40200         resultp arguments.
40201         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40202         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40203         resultp arguments.
40204         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40205         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40206         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40207         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40208         declarations.
40209         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40210
40211 2009-03-08  Bruno Haible  <bruno@clisp.org>
40212
40213         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40214         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40215         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40216         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40217
40218 2009-03-07  Bruno Haible  <bruno@clisp.org>
40219
40220         Adjust u*_normcmp, u*_normcoll API.
40221         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40222         u16_normcoll, u32_normcoll): Change failure conventions.
40223         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40224         errno and return -1.
40225         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40226
40227 2009-03-07  Bruno Haible  <bruno@clisp.org>
40228
40229         Tests for module 'uninorm/u32-normcoll'.
40230         * modules/uninorm/u32-normcoll-tests: New file.
40231         * tests/uninorm/test-u32-normcoll.c: New file.
40232
40233         Tests for module 'uninorm/u16-normcoll'.
40234         * modules/uninorm/u16-normcoll-tests: New file.
40235         * tests/uninorm/test-u16-normcoll.c: New file.
40236
40237         Tests for module 'uninorm/u8-normcoll'.
40238         * modules/uninorm/u8-normcoll-tests: New file.
40239         * tests/uninorm/test-u8-normcoll.c: New file.
40240
40241 2009-03-07  Bruno Haible  <bruno@clisp.org>
40242
40243         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40244         tests/uninorm/test-u32-normcmp.c.
40245         * tests/uninorm/test-u32-normcmp.c: Include it.
40246         (test_nonascii): New function, extracted from main. Add some more
40247         tests.
40248         (main): Invoke test_ascii and test_nonascii.
40249         * modules/uninorm/u32-normcmp-tests (Files): Add
40250         tests/uninorm/test-u32-normcmp.h.
40251         (Depends-on): Remove uninorm/u32-normcmp.
40252
40253         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40254         tests/uninorm/test-u16-normcmp.c.
40255         * tests/uninorm/test-u16-normcmp.c: Include it.
40256         (test_nonascii): New function, extracted from main. Add some more
40257         tests.
40258         (main): Invoke test_ascii and test_nonascii.
40259         * modules/uninorm/u16-normcmp-tests (Files): Add
40260         tests/uninorm/test-u16-normcmp.h.
40261         (Depends-on): Remove uninorm/u16-normcmp.
40262
40263         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40264         tests/uninorm/test-u8-normcmp.c.
40265         * tests/uninorm/test-u8-normcmp.c: Include it.
40266         (test_nonascii): New function, extracted from main. Add some more
40267         tests.
40268         (main): Invoke test_ascii and test_nonascii.
40269         * modules/uninorm/u8-normcmp-tests (Files): Add
40270         tests/uninorm/test-u8-normcmp.h.
40271         (Depends-on): Remove uninorm/u8-normcmp.
40272
40273 2009-03-07  Bruno Haible  <bruno@clisp.org>
40274
40275         New module 'uninorm/u32-normcoll'.
40276         * lib/uninorm/u32-normcoll.c: New file.
40277         * modules/uninorm/u32-normcoll: New file.
40278
40279         New module 'uninorm/u16-normcoll'.
40280         * lib/uninorm/u16-normcoll.c: New file.
40281         * modules/uninorm/u16-normcoll: New file.
40282
40283         New module 'uninorm/u8-normcoll'.
40284         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40285         declarations.
40286         * lib/uninorm/u8-normcoll.c: New file.
40287         * lib/uninorm/u-normcoll.h: New file.
40288         * modules/uninorm/u8-normcoll: New file.
40289
40290         New module 'uninorm/u32-normxfrm'.
40291         * lib/uninorm/u32-normxfrm.c: New file.
40292         * modules/uninorm/u32-normxfrm: New file.
40293
40294         New module 'uninorm/u16-normxfrm'.
40295         * lib/uninorm/u16-normxfrm.c: New file.
40296         * modules/uninorm/u16-normxfrm: New file.
40297
40298         New module 'uninorm/u8-normxfrm'.
40299         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40300         declarations.
40301         * lib/uninorm/u8-normxfrm.c: New file.
40302         * lib/uninorm/u-normxfrm.h: New file.
40303         * modules/uninorm/u8-normxfrm: New file.
40304
40305 2009-03-07  Bruno Haible  <bruno@clisp.org>
40306
40307         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40308         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40309         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40310
40311 2009-03-07  Bruno Haible  <bruno@clisp.org>
40312
40313         New module 'memxfrm'.
40314         * lib/memxfrm.h: New file.
40315         * lib/memxfrm.c: New file.
40316         * modules/memxfrm: New file.
40317
40318 2009-03-07  Bruno Haible  <bruno@clisp.org>
40319
40320         New module 'memcmp2'.
40321         * lib/memcmp2.h: New file.
40322         * lib/memcmp2.c: New file.
40323         * modules/memcmp2: New file.
40324
40325 2009-03-07  Bruno Haible  <bruno@clisp.org>
40326
40327         Tests for module 'uninorm/decomposing-form'.
40328         * modules/uninorm/decomposing-form-tests: New file.
40329         * tests/uninorm/test-decomposing-form.c: New file.
40330
40331         New module 'uninorm/decomposing-form'.
40332         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40333         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40334         Add 'decomposing_variant' field.
40335         * lib/uninorm/decomposing-form.c: New file.
40336         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40337         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40338         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40339         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40340         * modules/uninorm/decomposing-form: New file.
40341         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40342         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40343
40344 2009-03-07  Bruno Haible  <bruno@clisp.org>
40345
40346         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40347         strings.
40348
40349 2009-03-06  Bruno Haible  <bruno@clisp.org>
40350
40351         Tests for module 'uninorm/u32-normcmp'.
40352         * tests/uninorm/test-u32-normcmp.c: New file.
40353         * modules/uninorm/u32-normcmp-tests: New file.
40354
40355         Tests for module 'uninorm/u16-normcmp'.
40356         * tests/uninorm/test-u16-normcmp.c: New file.
40357         * modules/uninorm/u16-normcmp-tests: New file.
40358
40359         Tests for module 'uninorm/u8-normcmp'.
40360         * tests/uninorm/test-u8-normcmp.c: New file.
40361         * modules/uninorm/u8-normcmp-tests: New file.
40362
40363         New module 'uninorm/u32-normcmp'.
40364         * lib/uninorm/u32-normcmp.c: New file.
40365         * modules/uninorm/u32-normcmp: New file.
40366
40367         New module 'uninorm/u16-normcmp'.
40368         * lib/uninorm/u16-normcmp.c: New file.
40369         * modules/uninorm/u16-normcmp: New file.
40370
40371         New module 'uninorm/u8-normcmp'.
40372         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40373         declarations.
40374         * lib/uninorm/u8-normcmp.c: New file.
40375         * lib/uninorm/u-normcmp.h: New file.
40376         * modules/uninorm/u8-normcmp: New file.
40377
40378 2009-03-06  Bruno Haible  <bruno@clisp.org>
40379
40380         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40381         Reported by Eric Blake.
40382
40383 2009-03-06  Eric Blake  <ebb9@byu.net>
40384             Bruno Haible  <bruno@clisp.org>
40385
40386         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40387         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40388         condition.
40389         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40390         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40391         condition.
40392         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40393
40394 2009-03-06  Eric Blake  <ebb9@byu.net>
40395
40396         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40397         to avoid compiler warnings.
40398         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40399
40400 2009-03-05  Bruno Haible  <bruno@clisp.org>
40401
40402         * tests/test-ftell.c (main): Disable test beyond end of file on
40403         FreeMiNT.
40404         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40405
40406 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40407
40408         * lib/filevercmp.c: Move hidden files up in ordering.
40409         * tests/test-filevercmp.c: Add tests for hidden files.
40410
40411 2009-03-04  Bruno Haible  <bruno@clisp.org>
40412
40413         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40414         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40415         AM_CFLAGS.
40416         Reported by Simon Josefsson.
40417
40418 2009-03-03  Bruno Haible  <bruno@clisp.org>
40419
40420         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40421         Reported by Simon Josefsson.
40422
40423         * doc/ld-version-script.texi: Update node reference.
40424
40425 2009-03-03  Bruno Haible  <bruno@clisp.org>
40426
40427         * modules/visibility (License): Change to 'unlimited'.
40428         Suggested by Simon Josefsson.
40429
40430 2009-03-03  Jim Meyering  <meyering@redhat.com>
40431
40432         unlinkdir: cannot_unlink_dir may modify process state
40433         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40434         it's neither thread-safe nor appropriate for use in a library.
40435
40436 2009-03-03  Eric Blake  <ebb9@byu.net>
40437
40438         test-closein: silence test under Darwin
40439         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40440         care if it dies from EPIPE or EBADF.
40441
40442 2009-03-03  Bruno Haible  <bruno@clisp.org>
40443
40444         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40445         earlier.
40446         * doc/visibility.texi: Fix @node and @section.
40447
40448 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40449
40450         * doc/gnulib.texi: Link to sections for ld version script and
40451         visibility.
40452         * doc/visibility.texi: Add @node and @section.
40453         * modules/ld-version-script: New module.
40454         * m4/ld-version-script.m4: New file.
40455         * doc/ld-version-script.texi: New file.
40456
40457 2009-03-02  David Lutterkort  <lutter@redhat.com>
40458
40459         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40460         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40461
40462 2009-03-02  Bruno Haible  <bruno@clisp.org>
40463
40464         * doc/visibility.texi: Mention libtool's -export-symbols option.
40465
40466 2009-03-02  Jim Meyering  <meyering@redhat.com>
40467
40468         announce-gen: new option: --no-print-checksums
40469         * build-aux/announce-gen (usage): Describe it.
40470         (print_checksums): Print a newline here, not in the [*] footnote.
40471         (main): Honor it.
40472
40473 2009-03-01  Bruno Haible  <bruno@clisp.org>
40474
40475         Use socklen_t in the native Windows replacements prototypes.
40476         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40477         instead of 'int'.
40478         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40479         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40480         * modules/getsockopt (Depends-on): Add socklen.
40481         * modules/setsockopt (Depends-on): Add socklen.
40482
40483 2009-03-01  Bruno Haible  <bruno@clisp.org>
40484
40485         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40486         least 4.2.
40487
40488 2009-03-01  Eric Blake  <ebb9@byu.net>
40489             Bruno Haible  <bruno@clisp.org>
40490
40491         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40492         error messages.
40493         * lib/wait-process.c (wait_subprocess): Omit error message about
40494         deadly signal sent to the child of termsigp != NULL.
40495
40496 2009-03-01  Eric Blake  <ebb9@byu.net>
40497
40498         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40499
40500 2009-03-01  Bruno Haible  <bruno@clisp.org>
40501
40502         Avoid a gcc warning.
40503         * tests/test-sched.c (b): Make global.
40504         Reported by Eric Blake.
40505
40506 2009-01-19  Martin Lambers  <marlam@marlam.de>
40507
40508         Provide POSIX semantics for socket timeout options on W32.
40509         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40510         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40511         * modules/setsockopt: Depend on sys_time module for struct timeval.
40512         * modules/getsockopt: Depend on sys_time module for struct timeval.
40513
40514 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40515
40516         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40517         __USE_GNU, for consistency with netdb.in.h.
40518         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40519
40520 2009-03-01  Bruno Haible  <bruno@clisp.org>
40521
40522         More support for FreeMiNT.
40523         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40524         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40525
40526 2009-03-01  Bruno Haible  <bruno@clisp.org>
40527
40528         More support for FreeMiNT.
40529         * lib/fpurge.c (fpurge): Correct last commit.
40530         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40531
40532 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40533
40534         Fix unportable awk script in vc-list-files.
40535         * build-aux/vc-list-files: In the replacement awk script, use
40536         substr with a second argument of 1, not zero.
40537         Report by Simon Josefsson.
40538
40539 2009-02-28  Bruno Haible  <bruno@clisp.org>
40540
40541         More support for FreeMiNT.
40542         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40543         to FreeMiNT today.
40544         * lib/fwriting.c (fwriting): Likewise.
40545         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40546
40547 2009-02-28  Bruno Haible  <bruno@clisp.org>
40548
40549         * tests/test-freadseek.c (main): Disable test beyond end of file on
40550         FreeMiNT.
40551         * tests/test-ftello.c (main): Likewise.
40552         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40553
40554 2009-02-28  Bruno Haible  <bruno@clisp.org>
40555
40556         Add tentative support for FreeMiNT.
40557         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40558         * lib/fpurge.c (fpurge): Likewise.
40559         * lib/freadable.c (freadable): Likewise.
40560         * lib/freading.c (freading): Likewise.
40561         * lib/freadptr.c (freadptr): Likewise.
40562         * lib/freadseek.c (freadptrinc): Likewise.
40563         * lib/fseeko.c (rpl_fseeko): Likewise.
40564         * lib/fseterr.c (fseterr): Likewise.
40565         * lib/fwritable.c (fwritable): Likewise.
40566         * lib/fwriting.c (fwriting): Likewise.
40567         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40568         Hourihane.
40569         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40570
40571 2009-02-28  Bruno Haible  <bruno@clisp.org>
40572
40573         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40574         SIGCHLD.
40575         Reported by Jim Meyering.
40576
40577 2009-02-28  Bruno Haible  <bruno@clisp.org>
40578
40579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40580         Mention the results of these tests on various platforms.
40581         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40582         order.
40583         * doc/posix-functions/printf.texi: Likewise.
40584         * doc/posix-functions/snprintf.texi: Likewise.
40585         * doc/posix-functions/sprintf.texi: Likewise.
40586         * doc/posix-functions/vfprintf.texi: Likewise.
40587         * doc/posix-functions/vprintf.texi: Likewise.
40588         * doc/posix-functions/vsnprintf.texi: Likewise.
40589         * doc/posix-functions/vsprintf.texi: Likewise.
40590         * doc/glibc-functions/obstack_printf.texi: Likewise.
40591         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40592
40593 2009-02-28  Bruno Haible  <bruno@clisp.org>
40594
40595         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40596         Reported by Loïc Minier <lool@dooz.org>.
40597
40598 2009-02-27  Bruno Haible  <bruno@clisp.org>
40599
40600         * gnulib-tool (func_import): Make the sed expression used to create the
40601         sed script for updating the .gitignore file POSIX compliant.
40602         Reported by Eric Blake.
40603
40604 2009-02-27  Bruno Haible  <bruno@clisp.org>
40605
40606         * gnulib-tool (sed): Don't alias as "sed --posix".
40607         Reported by Eric Blake.
40608
40609 2009-02-27  Bruno Haible  <bruno@clisp.org>
40610
40611         Avoid test link errors.
40612         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40613         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40614         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40615         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40616         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40617
40618 2009-02-27  Bruno Haible  <bruno@clisp.org>
40619
40620         Avoid spurious "(cached)" in configure output.
40621         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40622         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40623         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40624         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40625         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40626         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40627         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40628         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40629         Reported by Eric Blake.
40630
40631 2009-02-27  Eric Blake  <ebb9@byu.net>
40632
40633         printf: fix regression in previous patch
40634         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40635
40636 2009-02-27  Bruno Haible  <bruno@clisp.org>
40637
40638         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40639         value.
40640         * lib/stdint.in.h: Likewise.
40641         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40642
40643 2009-02-27  Eric Blake  <ebb9@byu.net>
40644
40645         doc: mention more functions added in cygwin 1.7.0
40646         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40647         addition.
40648         * doc/posix-functions/open_wmemstream.texi: Likewise.
40649         * doc/posix-functions/wcsnlen.texi: Likewise.
40650         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40651         * doc/posix-functions/wcstod.texi: Likewise.
40652         * doc/posix-functions/wcstof.texi: Likewise.
40653         * doc/posix-functions/wcstoimax.texi: Likewise.
40654         * doc/posix-functions/wcstok.texi: Likewise.
40655         * doc/posix-functions/wcstoumax.texi: Likewise.
40656
40657         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40658         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40659         * doc/posix-functions/fprintf.texi: Update.
40660         * doc/posix-functions/printf.texi: Update.
40661         * doc/posix-functions/snprintf.texi: Update.
40662         * doc/posix-functions/sprintf.texi: Update.
40663         * doc/posix-functions/vfprintf.texi: Update.
40664         * doc/posix-functions/vprintf.texi: Update.
40665         * doc/posix-functions/vsnprintf.texi: Update.
40666         * doc/posix-functions/vsprintf.texi: Update.
40667         * doc/glibc-functions/obstack_printf.texi: Update.
40668         * doc/glibc-functions/obstack_vprintf.texi: Update.
40669
40670 2009-02-26  Eric Blake  <ebb9@byu.net>
40671
40672         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40673         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40674         compilation bug by using runtime conversion.
40675         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40676         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40677         * modules/ceill-tests (Files): Use nan.h.
40678         * modules/floorl-tests (Files): Likewise.
40679         * modules/frexpl-tests (Files): Likewise.
40680         * modules/isnanl-tests (Files): Likewise.
40681         * modules/ldexpl-tests (Files): Likewise.
40682         * modules/roundl-tests (Files): Likewise.
40683         * modules/truncl-tests (Files): Likewise.
40684         * tests/test-ceill.c (main): Use a working NaN.
40685         * tests/test-floorl.c (main): Likewise.
40686         * tests/test-frexpl.c (main): Likewise.
40687         * tests/test-isnan.c (test_long_double): Likewise.
40688         * tests/test-isnanl.h (main): Likewise.
40689         * tests/test-ldexpl.h (main): Likewise.
40690         * tests/test-roundl.h (main): Likewise.
40691         * tests/test-truncl.h (main): Likewise.
40692         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40693
40694 2009-02-26  Eric Blake  <ebb9@byu.net>
40695             Bruno Haible  <bruno@clisp.org>
40696
40697         Work around a *printf bug with %ls on Solaris.
40698         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40699         precision is specified, sprintf stops converting the wide string
40700         argument when the number of bytes that have been produced by this
40701         conversion equals or exceeds the precision.
40702         * doc/posix-functions/fprintf.texi: Update.
40703         * doc/posix-functions/printf.texi: Update.
40704         * doc/posix-functions/snprintf.texi: Update.
40705         * doc/posix-functions/sprintf.texi: Update.
40706         * doc/posix-functions/vfprintf.texi: Update.
40707         * doc/posix-functions/vprintf.texi: Update.
40708         * doc/posix-functions/vsnprintf.texi: Update.
40709         * doc/posix-functions/vsprintf.texi: Update.
40710         * doc/glibc-functions/obstack_printf.texi: Update.
40711         * doc/glibc-functions/obstack_vprintf.texi: Update.
40712
40713 2009-02-26  Eric Blake  <ebb9@byu.net>
40714
40715         stdlib: favor compiler check of random.h
40716         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40717         to avoid an ObjC random.h installed by Swarm.
40718
40719 2009-02-26  Bruno Haible  <bruno@clisp.org>
40720
40721         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40722         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40723         Reported by Gary V. Vaughan <gary@gnu.org>.
40724
40725 2009-02-26  Bruno Haible  <bruno@clisp.org>
40726
40727         Fix *printf behaviour regarding the %ls directive.
40728         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40729         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40730         NEED_PRINTF_DIRECTIVE_LS.
40731         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40732         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40734         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40735         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40736         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40737         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40738         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40739         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40740         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40741         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40742         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40743         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40744         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40745         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40746         * doc/posix-functions/fprintf.texi: Update.
40747         * doc/posix-functions/printf.texi: Update.
40748         * doc/posix-functions/snprintf.texi: Update.
40749         * doc/posix-functions/sprintf.texi: Update.
40750         * doc/posix-functions/vfprintf.texi: Update.
40751         * doc/posix-functions/vprintf.texi: Update.
40752         * doc/posix-functions/vsnprintf.texi: Update.
40753         * doc/posix-functions/vsprintf.texi: Update.
40754         * doc/glibc-functions/obstack_printf.texi: Update.
40755         * doc/glibc-functions/obstack_vprintf.texi: Update.
40756         Reported by Eric Blake.
40757
40758 2009-02-25  Bruno Haible  <bruno@clisp.org>
40759
40760         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40761         with known value.
40762         Reported by Gary V. Vaughan <gary@gnu.org>.
40763
40764 2009-02-25  Bruno Haible  <bruno@clisp.org>
40765
40766         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40767         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40768         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40769         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40770         Reported by Gary V. Vaughan <gary@gnu.org>.
40771
40772 2009-02-25  Bruno Haible  <bruno@clisp.org>
40773
40774         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40775         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40776         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40777         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40778         Reported by Gary V. Vaughan <gary@gnu.org>.
40779
40780 2009-02-25  Eric Blake  <ebb9@byu.net>
40781
40782         tests: skip fseek/ftell tests if ungetc is broken
40783         * m4/ungetc.m4: New file.
40784         * modules/fseek-tests: Split test, so ungetc dependency is
40785         separate from rest of test.
40786         * modules/fseeko-tests: Likewise.
40787         * modules/ftell-tests: Likewise.
40788         * modules/ftello-tests: Likewise.
40789         * tests/test-fseek.c (main): Isolate ungetc dependency.
40790         * tests/test-fseeko.c (main): Likewise.
40791         * tests/test-ftell.c (main): Likewise.
40792         * tests/test-ftello.c (main): Likewise.
40793         * tests/test-fseek2.sh: New file.
40794         * tests/test-fseeko2.sh: Likewise.
40795         * tests/test-ftell2.sh: Likewise.
40796         * tests/test-ftello2.sh: Likewise.
40797
40798 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40799
40800         test-getaddrinfo: fix usage of skip return code 77
40801         * tests/test-gettaddrinfo.c: Return skip code 77 only
40802         for first occurance of skip (4x77 is not 77)
40803
40804 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40805
40806         strtod: avoid C99 decl-after-statement
40807         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40808
40809 2009-02-24  Eric Blake  <ebb9@byu.net>
40810
40811         strtod: detect HP-UX 11.31 bug
40812         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40813         Reported by Gary V. Vaughan.
40814
40815 2009-02-23  Bruno Haible  <bruno@clisp.org>
40816
40817         Fix invalid read past end of memory block.
40818         * lib/vasnprintf.c (DCHAR_SET): Define.
40819         (local_wcslen): Define only when needed.
40820         (local_strnlen, local_wcsnlen): New functions.
40821         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40822         directives that involve a conversion ourselves.
40823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40824         wcsnlen, mbrtowc, wcrtomb.
40825         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40826         * tests/test-vasprintf-posix.c (test_function): Likewise.
40827         * tests/test-snprintf-posix.h (test_function): Likewise.
40828         * tests/test-sprintf-posix.h (test_function): Likewise.
40829         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40830
40831 2009-02-22  Bruno Haible  <bruno@clisp.org>
40832
40833         Implement new clarified decomposition of Hangul syllables.
40834         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40835         of type LTV, return only a pairwise decomposition.
40836         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40837         Likewise.
40838         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40839         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40840         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40841
40842 2009-02-22  Bruno Haible  <bruno@clisp.org>
40843
40844         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40845         zero-length results and shrink excess allocated memory.
40846         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40847         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40848         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40849         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40850         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40851         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40852         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40853         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40854         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40855         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40856         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40857         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40858
40859 2009-02-21  Bruno Haible  <bruno@clisp.org>
40860
40861         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40862         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40863         spaces after a period. Put a space between a macro name and its
40864         argument list. Trivial rewordings.
40865         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40866         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40867         (main): Return 0 explicitly.
40868
40869 2009-02-21  Bruno Haible  <bruno@clisp.org>
40870
40871         Tests for module 'uninorm/filter'.
40872         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40873         * modules/uninorm/filter-tests: New file.
40874
40875         New module 'uninorm/filter'.
40876         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40877         uninorm_filter_flush, uninorm_filter_free): New declarations.
40878         * lib/uninorm/uninorm-filter.c: New file.
40879         * modules/uninorm/filter: New file.
40880
40881 2009-02-21  Bruno Haible  <bruno@clisp.org>
40882
40883         Tests for module 'uninorm/nfkc'.
40884         * tests/uninorm/test-nfkc.c: New file.
40885         * tests/uninorm/test-u8-nfkc.c: New file.
40886         * tests/uninorm/test-u16-nfkc.c: New file.
40887         * tests/uninorm/test-u32-nfkc.c: New file.
40888         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40889         * tests/uninorm/test-u32-nfkc-big.c: New file.
40890         * modules/uninorm/nfkc-tests: New file.
40891
40892         New module 'uninorm/nfkc'.
40893         * lib/uninorm/nfkc.c: New file.
40894         * modules/uninorm/nfkc: New file.
40895
40896         Tests for module 'uninorm/nfkd'.
40897         * tests/uninorm/test-nfkd.c: New file.
40898         * tests/uninorm/test-u8-nfkd.c: New file.
40899         * tests/uninorm/test-u16-nfkd.c: New file.
40900         * tests/uninorm/test-u32-nfkd.c: New file.
40901         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40902         * tests/uninorm/test-u32-nfkd-big.c: New file.
40903         * modules/uninorm/nfkd-tests: New file.
40904
40905         New module 'uninorm/nfkd'.
40906         * lib/uninorm/nfkd.c: New file.
40907         * modules/uninorm/nfkd: New file.
40908
40909         Tests for module 'uninorm/nfc'.
40910         * tests/uninorm/test-nfc.c: New file.
40911         * tests/uninorm/test-u8-nfc.c: New file.
40912         * tests/uninorm/test-u16-nfc.c: New file.
40913         * tests/uninorm/test-u32-nfc.c: New file.
40914         * tests/uninorm/test-u32-nfc-big.sh: New file.
40915         * tests/uninorm/test-u32-nfc-big.c: New file.
40916         * modules/uninorm/nfc-tests: New file.
40917
40918         New module 'uninorm/nfc'.
40919         * lib/uninorm/nfc.c: New file.
40920         * modules/uninorm/nfc: New file.
40921
40922         Tests for module 'uninorm/nfd'.
40923         * tests/uninorm/test-nfd.c: New file.
40924         * tests/uninorm/test-u8-nfd.c: New file.
40925         * tests/uninorm/test-u16-nfd.c: New file.
40926         * tests/uninorm/test-u32-nfd.c: New file.
40927         * tests/uninorm/test-u32-nfd-big.sh: New file.
40928         * tests/uninorm/test-u32-nfd-big.c: New file.
40929         * tests/uninorm/test-u32-normalize-big.h: New file.
40930         * tests/uninorm/test-u32-normalize-big.c: New file.
40931         * tests/uninorm/NormalizationTest.txt: New file, created from
40932         Unicode 5.1.0 NormalizationTest.txt.
40933         * modules/uninorm/nfd-tests: New file.
40934
40935         New module 'uninorm/nfd'.
40936         * lib/uninorm/nfd.c: New file.
40937         * modules/uninorm/nfd: New file.
40938
40939         New module 'uninorm/u32-normalize'.
40940         * lib/uninorm/u32-normalize.c: New file.
40941         * modules/uninorm/u32-normalize: New file.
40942
40943         New module 'uninorm/u16-normalize'.
40944         * lib/uninorm/u16-normalize.c: New file.
40945         * modules/uninorm/u16-normalize: New file.
40946
40947         New module 'uninorm/u8-normalize'.
40948         * lib/uninorm/u8-normalize.c: New file.
40949         * lib/uninorm/normalize-internal.h: New file.
40950         * lib/uninorm/u-normalize-internal.h: New file.
40951         * modules/uninorm/u8-normalize: New file.
40952
40953         New module 'uninorm/decompose-internal'.
40954         * lib/uninorm/decompose-internal.c: New file.
40955         * modules/uninorm/decompose-internal: New file.
40956
40957         Tests for module 'uninorm/composition'.
40958         * tests/uninorm/test-composition.c: New file.
40959         * modules/uninorm/composition-tests: New file.
40960
40961         New module 'uninorm/composition'.
40962         * lib/uninorm/composition.c: New file.
40963         * lib/uninorm/composition-table.gperf: New file, generated by
40964         gen-uni-tables.
40965         * modules/uninorm/composition: New file.
40966
40967         Tests for module 'uninorm/compat-decomposition'.
40968         * tests/uninorm/test-compat-decomposition.c: New file.
40969         * modules/uninorm/compat-decomposition-tests: New file.
40970
40971         New module 'uninorm/compat-decomposition'.
40972         * lib/uninorm/decompose-internal.h: New file.
40973         * lib/uninorm/compat-decomposition.c: New file.
40974         * modules/uninorm/compat-decomposition: New file.
40975
40976         Tests for module 'uninorm/canonical-decomposition'.
40977         * tests/uninorm/test-canonical-decomposition.c: New file.
40978         * modules/uninorm/canonical-decomposition-tests: New file.
40979
40980         New module 'uninorm/canonical-decomposition'.
40981         * lib/uninorm/canonical-decomposition.c: New file.
40982         * modules/uninorm/canonical-decomposition: New file.
40983
40984         Tests for module 'uninorm/decomposition'.
40985         * tests/uninorm/test-decomposition.c: New file.
40986         * modules/uninorm/decomposition-tests: New file.
40987
40988         New module 'uninorm/decomposition'.
40989         * lib/uninorm/decomposition.c: New file.
40990         * modules/uninorm/decomposition: New file.
40991
40992         New module 'uninorm/decomposition-table'.
40993         * lib/uninorm/decomposition-table.h: New file.
40994         * lib/uninorm/decomposition-table.c: New file.
40995         * lib/uninorm/decomposition-table1.h: New file, generated by
40996         gen-uni-tables.
40997         * lib/uninorm/decomposition-table2.h: New file, generated by
40998         gen-uni-tables.
40999         * modules/uninorm/decomposition-table: New file.
41000
41001         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41002         (UC_DECOMP_*): New enumeration items.
41003         (get_decomposition): New function.
41004         (struct decomp_table): New type.
41005         (output_decomposition, output_decomposition_tables): New functions.
41006         (unicode_composition_exclusions): New variable.
41007         (fill_composition_exclusions, debug_output_composition_tables): New
41008         functions.
41009         (main): Accept one more argument. Invoke fill_composition_exclusions.
41010         Output decomposition and composition tables.
41011
41012         New module 'uninorm/base'.
41013         * lib/uninorm.h: New file.
41014         * lib/unictype.h: Update comment.
41015         * modules/uninorm/base: New file.
41016
41017 2009-02-21  David Lutterkort  <lutter@redhat.com>
41018
41019         Tests for module 'safe-alloc'.
41020         * tests/test-safe-alloc.c: New file.
41021         * modules/safe-alloc-tests: New file.
41022
41023         New module 'safe-alloc'.
41024         * lib/safe-alloc.h: New file.
41025         * lib/safe-alloc.c: New file.
41026         * m4/safe-alloc.m4: New file.
41027         * modules/safe-alloc: New file.
41028         * doc/safe-alloc.texi: New file.
41029         * doc/gnulib.texi: Include it.
41030         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41031         safe-alloc.
41032
41033 2009-02-18  Bruno Haible  <bruno@clisp.org>
41034
41035         Fix link error on non-glibc systems.
41036         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41037         variable.
41038         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41039
41040 2009-02-18  Jim Meyering  <meyering@redhat.com>
41041
41042         fts: avoid used-uninitialized error due to recent change
41043         * lib/fts.c (fts_read): Guard uses of the new member,
41044         parent->fts_n_dirs_remaining, since it's not relevant for
41045         the parent of a directory specified on the command-line.
41046
41047 2009-02-17  James Youngman  <jay@gnu.org>
41048             Bruno Haible  <bruno@clisp.org>
41049
41050         * m4/include_next.m4: Reformulate comment.
41051
41052 2009-02-16  Jim Meyering  <meyering@redhat.com>
41053
41054         fts: add #if guards so that the fts_lgpl module still builds
41055         * lib/fts.c: Guard just-added hash-table-using parts with
41056         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41057         Reported by Simon Josefsson.
41058
41059 2009-02-15  Bruno Haible  <bruno@clisp.org>
41060
41061         * modules/array-mergesort-tests: New file.
41062         * tests/test-array-mergesort.c: New file.
41063
41064         New module 'array-mergesort'.
41065         * modules/array-mergesort: New file.
41066         * lib/array-mergesort.h: New file.
41067
41068 2009-02-15  Bruno Haible  <bruno@clisp.org>
41069
41070         Fix 2009-02-07 commit.
41071         * lib/gen-uni-tables.c (output_predicate, output_category,
41072         output_combclass, output_bidi_category, output_decimal_digit,
41073         output_digit, output_numeric, output_mirror, output_scripts,
41074         output_ident_category, output_simple_mapping): Fix format directives.
41075         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41076
41077 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41078
41079         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41080         fixes are available from IBM.
41081
41082 2009-02-13  Jim Meyering  <meyering@redhat.com>
41083
41084         fts: arrange not to stat non-directories in more cases
41085         This makes GNU find (when it doesn't need to stat each file)
41086         *much* more efficient at traversing reiserfs file systems.
41087         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41088         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41089         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41090         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41091         (leaf_optimization_applies): New function.
41092         (LCO_hash, LCO_compare): New helper functions.
41093         (link_count_optimize_ok): New function.
41094         (fts_stat): Initialize new member (if dir).
41095         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41096         we've just stat'ed a directory.  Skip the stat call when possible.
41097         ---
41098         Note this AFS-related exchange:
41099         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41100         and note find's pioctl call in find/fstype.c.
41101         But that is necessary only if you want to enable the
41102         optimization for AFS, and for now, I don't.
41103
41104         fts: move a function definition "up" (no semantic change)
41105         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41106         "up" to precede upcoming use of a related function.
41107
41108 2009-02-11  Jim Meyering  <meyering@redhat.com>
41109
41110         fts: correct internal computation of nlinks (optimization-related)
41111         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41112         whether the current entry is a directory, so don't test it.
41113
41114 2009-02-10  Bruno Haible  <bruno@clisp.org>
41115
41116         Tests for module 'uniwbrk/ulc-wordbreaks'.
41117         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41118         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41119         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41120
41121         Tests for module 'uniwbrk/u32-wordbreaks'.
41122         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41123         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41124
41125         Tests for module 'uniwbrk/u16-wordbreaks'.
41126         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41127         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41128
41129         Tests for module 'uniwbrk/u8-wordbreaks'.
41130         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41131         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41132
41133 2009-02-10  Bruno Haible  <bruno@clisp.org>
41134
41135         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41136         property.
41137         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41138         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41139         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41140
41141 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41142
41143         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41144         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41145
41146 2009-02-10  Bruno Haible  <bruno@clisp.org>
41147
41148         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41149         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41150         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41151         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41152         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41153         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41154
41155 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41156
41157         * lib/sockets.h (gl_fd_to_handle): New function.
41158
41159         * tests/test-sockets.c: Call gl_fd_to_handle.
41160
41161 2009-02-09  Bruno Haible  <bruno@clisp.org>
41162
41163         * doc/havelib.texi: Document the conventions on bi-arch systems.
41164
41165 2009-02-08  Bruno Haible  <bruno@clisp.org>
41166
41167         Document the AC_LIB_LINKFLAGS macro.
41168         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41169         * doc/gnulib.texi: Include it.
41170
41171 2009-02-08  Bruno Haible  <bruno@clisp.org>
41172
41173         Fix wrong order of sections, compared to TOC.
41174         * doc/gnulib.texi: Include relocatable-maint.texi after the
41175         "Regular expressions" node, not before.
41176
41177 2009-02-08  Bruno Haible  <bruno@clisp.org>
41178
41179         Tests for module 'unicase/totitle'.
41180         * modules/unicase/totitle-tests: New file.
41181
41182         Tests for module 'unicase/tolower'.
41183         * modules/unicase/tolower-tests: New file.
41184
41185         Tests for module 'unicase/toupper'.
41186         * modules/unicase/toupper-tests: New file.
41187         * tests/unicase/test-mapping-part1.h: New file.
41188         * tests/unicase/test-mapping-part2.h: New file.
41189
41190         New module 'unicase/totitle'.
41191         * modules/unicase/totitle: New file.
41192         * lib/unicase/totitle.c: New file.
41193
41194         New module 'unicase/tolower'.
41195         * modules/unicase/tolower: New file.
41196         * lib/unicase/tolower.c: New file.
41197
41198         New module 'unicase/toupper'.
41199         * modules/unicase/toupper: New file.
41200         * lib/unicase/toupper.c: New file.
41201         * lib/unicase/simple-mapping.h: New file.
41202
41203         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41204         (mapping_table): New structure.
41205         (output_simple_mapping): New function.
41206         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41207         * modules/gen-uni-tables (Description): Update.
41208         * lib/unicase/toupper.h: New file, automatically generated by
41209         gen-uni-tables.
41210         * lib/unicase/tolower.h: New file, automatically generated by
41211         gen-uni-tables.
41212         * lib/unicase/totitle.h: New file, automatically generated by
41213         gen-uni-tables.
41214         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41215         gen-uni-tables.
41216         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41217         gen-uni-tables.
41218         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41219         gen-uni-tables.
41220
41221         New module 'unicase/base'.
41222         * modules/unicase/base: New file.
41223         * lib/unicase.h: New file.
41224
41225 2009-02-08  Bruno Haible  <bruno@clisp.org>
41226
41227         New module 'uniwbrk/ulc-wordbreaks'.
41228         * modules/uniwbrk/ulc-wordbreaks: New file.
41229         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41230
41231         New module 'uniwbrk/u32-wordbreaks'.
41232         * modules/uniwbrk/u32-wordbreaks: New file.
41233         * lib/uniwbrk/u32-wordbreaks.c: New file.
41234
41235         New module 'uniwbrk/u16-wordbreaks'.
41236         * modules/uniwbrk/u16-wordbreaks: New file.
41237         * lib/uniwbrk/u16-wordbreaks.c: New file.
41238
41239         New module 'uniwbrk/u8-wordbreaks'.
41240         * modules/uniwbrk/u8-wordbreaks: New file.
41241         * lib/uniwbrk/u8-wordbreaks.c: New file.
41242         * lib/uniwbrk/u-wordbreaks.h: New file.
41243
41244         New module 'uniwbrk/table'.
41245         * modules/uniwbrk/table: New file.
41246         * lib/uniwbrk/wbrktable.h: New file.
41247         * lib/uniwbrk/wbrktable.c: New file.
41248
41249         New module 'uniwbrk/wordbreak-property'.
41250         * modules/uniwbrk/wordbreak-property: New file.
41251         * lib/uniwbrk/wordbreak-property.c: New file.
41252
41253         * lib/gen-uni-tables.c (WBP_*): New enum items.
41254         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41255         (unicode_org_wbp): New variable.
41256         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41257         New functions.
41258         (wbp_table): New structure.
41259         (output_wbp, output_wbrk_tables): New functions.
41260         (main): Accept additional argument. Invoke fill_org_wbp,
41261         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41262         output_wbrk_tables.
41263         * modules/gen-uni-tables (Description): Update.
41264         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41265         gen-uni-tables.
41266
41267         New module 'uniwbrk/base'.
41268         * modules/uniwbrk/base: New file.
41269         * lib/uniwbrk.h: New file.
41270
41271 2009-02-08  Bruno Haible  <bruno@clisp.org>
41272
41273         Update to Unicode 5.1.0.
41274         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41275         U+2185..U+2188.
41276         (is_property_default_ignorable_code_point): Don't include characters
41277         of category Cc or Cs and not-a-characters.
41278         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41279         U+0D79, U+109E, U+109F, U+A60C.
41280         * lib/unictype/bidi_of.h: Regenerated.
41281         * lib/unictype/blocks.h: Regenerated.
41282         * lib/unictype/categ_C.h: Regenerated.
41283         * lib/unictype/categ_Cf.h: Regenerated.
41284         * lib/unictype/categ_Cn.h: Regenerated.
41285         * lib/unictype/categ_L.h: Regenerated.
41286         * lib/unictype/categ_Ll.h: Regenerated.
41287         * lib/unictype/categ_Lm.h: Regenerated.
41288         * lib/unictype/categ_Lo.h: Regenerated.
41289         * lib/unictype/categ_Lu.h: Regenerated.
41290         * lib/unictype/categ_M.h: Regenerated.
41291         * lib/unictype/categ_Mc.h: Regenerated.
41292         * lib/unictype/categ_Me.h: Regenerated.
41293         * lib/unictype/categ_Mn.h: Regenerated.
41294         * lib/unictype/categ_N.h: Regenerated.
41295         * lib/unictype/categ_Nd.h: Regenerated.
41296         * lib/unictype/categ_Nl.h: Regenerated.
41297         * lib/unictype/categ_No.h: Regenerated.
41298         * lib/unictype/categ_P.h: Regenerated.
41299         * lib/unictype/categ_Pd.h: Regenerated.
41300         * lib/unictype/categ_Pe.h: Regenerated.
41301         * lib/unictype/categ_Pf.h: Regenerated.
41302         * lib/unictype/categ_Pi.h: Regenerated.
41303         * lib/unictype/categ_Po.h: Regenerated.
41304         * lib/unictype/categ_Ps.h: Regenerated.
41305         * lib/unictype/categ_S.h: Regenerated.
41306         * lib/unictype/categ_Sk.h: Regenerated.
41307         * lib/unictype/categ_Sm.h: Regenerated.
41308         * lib/unictype/categ_So.h: Regenerated.
41309         * lib/unictype/categ_of.h: Regenerated.
41310         * lib/unictype/combining.h: Regenerated.
41311         * lib/unictype/ctype_alnum.h: Regenerated.
41312         * lib/unictype/ctype_alpha.h: Regenerated.
41313         * lib/unictype/ctype_graph.h: Regenerated.
41314         * lib/unictype/ctype_lower.h: Regenerated.
41315         * lib/unictype/ctype_print.h: Regenerated.
41316         * lib/unictype/ctype_punct.h: Regenerated.
41317         * lib/unictype/ctype_upper.h: Regenerated.
41318         * lib/unictype/decdigit.h: Regenerated.
41319         * lib/unictype/digit.h: Regenerated.
41320         * lib/unictype/mirror.h: Regenerated.
41321         * lib/unictype/numeric.h: Regenerated.
41322         * lib/unictype/pr_alphabetic.h: Regenerated.
41323         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41324         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41325         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41326         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41327         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41328         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41329         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41330         * lib/unictype/pr_combining.h: Regenerated.
41331         * lib/unictype/pr_dash.h: Regenerated.
41332         * lib/unictype/pr_decimal_digit.h: Regenerated.
41333         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41334         * lib/unictype/pr_deprecated.h: Regenerated.
41335         * lib/unictype/pr_diacritic.h: Regenerated.
41336         * lib/unictype/pr_extender.h: Regenerated.
41337         * lib/unictype/pr_format_control.h: Regenerated.
41338         * lib/unictype/pr_grapheme_base.h: Regenerated.
41339         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41340         * lib/unictype/pr_grapheme_link.h: Regenerated.
41341         * lib/unictype/pr_id_continue.h: Regenerated.
41342         * lib/unictype/pr_id_start.h: Regenerated.
41343         * lib/unictype/pr_ideographic.h: Regenerated.
41344         * lib/unictype/pr_ignorable_control.h: Regenerated.
41345         * lib/unictype/pr_lowercase.h: Regenerated.
41346         * lib/unictype/pr_math.h: Regenerated.
41347         * lib/unictype/pr_numeric.h: Regenerated.
41348         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41349         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41350         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41351         * lib/unictype/pr_other_id_continue.h: Regenerated.
41352         * lib/unictype/pr_other_lowercase.h: Regenerated.
41353         * lib/unictype/pr_other_math.h: Regenerated.
41354         * lib/unictype/pr_punctuation.h: Regenerated.
41355         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41356         * lib/unictype/pr_soft_dotted.h: Regenerated.
41357         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41358         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41359         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41360         * lib/unictype/pr_uppercase.h: Regenerated.
41361         * lib/unictype/pr_xid_continue.h: Regenerated.
41362         * lib/unictype/pr_xid_start.h: Regenerated.
41363         * lib/unictype/pr_zero_width.h: Regenerated.
41364         * lib/unictype/scripts.h: Regenerated.
41365         * lib/unictype/scripts_byname.gperf: Regenerated.
41366         * lib/unictype/sy_java_ident.h: Regenerated.
41367         * lib/unilbrk/lbrkprop1.h: Regenerated.
41368         * lib/unilbrk/lbrkprop2.h: Regenerated.
41369         * tests/unictype/test-categ_C.c: Regenerated.
41370         * tests/unictype/test-categ_Cf.c: Regenerated.
41371         * tests/unictype/test-categ_Cn.c: Regenerated.
41372         * tests/unictype/test-categ_L.c: Regenerated.
41373         * tests/unictype/test-categ_Ll.c: Regenerated.
41374         * tests/unictype/test-categ_Lm.c: Regenerated.
41375         * tests/unictype/test-categ_Lo.c: Regenerated.
41376         * tests/unictype/test-categ_Lu.c: Regenerated.
41377         * tests/unictype/test-categ_M.c: Regenerated.
41378         * tests/unictype/test-categ_Mc.c: Regenerated.
41379         * tests/unictype/test-categ_Me.c: Regenerated.
41380         * tests/unictype/test-categ_Mn.c: Regenerated.
41381         * tests/unictype/test-categ_N.c: Regenerated.
41382         * tests/unictype/test-categ_Nd.c: Regenerated.
41383         * tests/unictype/test-categ_Nl.c: Regenerated.
41384         * tests/unictype/test-categ_No.c: Regenerated.
41385         * tests/unictype/test-categ_P.c: Regenerated.
41386         * tests/unictype/test-categ_Pd.c: Regenerated.
41387         * tests/unictype/test-categ_Pe.c: Regenerated.
41388         * tests/unictype/test-categ_Pf.c: Regenerated.
41389         * tests/unictype/test-categ_Pi.c: Regenerated.
41390         * tests/unictype/test-categ_Po.c: Regenerated.
41391         * tests/unictype/test-categ_Ps.c: Regenerated.
41392         * tests/unictype/test-categ_S.c: Regenerated.
41393         * tests/unictype/test-categ_Sk.c: Regenerated.
41394         * tests/unictype/test-categ_Sm.c: Regenerated.
41395         * tests/unictype/test-categ_So.c: Regenerated.
41396         * tests/unictype/test-ctype_alnum.c: Regenerated.
41397         * tests/unictype/test-ctype_alpha.c: Regenerated.
41398         * tests/unictype/test-ctype_graph.c: Regenerated.
41399         * tests/unictype/test-ctype_lower.c: Regenerated.
41400         * tests/unictype/test-ctype_print.c: Regenerated.
41401         * tests/unictype/test-ctype_punct.c: Regenerated.
41402         * tests/unictype/test-ctype_upper.c: Regenerated.
41403         * tests/unictype/test-decdigit.h: Regenerated.
41404         * tests/unictype/test-digit.h: Regenerated.
41405         * tests/unictype/test-numeric.h: Regenerated.
41406         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41407         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41408         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41409         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41410         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41411         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41412         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41413         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41414         * tests/unictype/test-pr_combining.c: Regenerated.
41415         * tests/unictype/test-pr_dash.c: Regenerated.
41416         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41417         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41418         * tests/unictype/test-pr_deprecated.c: Regenerated.
41419         * tests/unictype/test-pr_diacritic.c: Regenerated.
41420         * tests/unictype/test-pr_extender.c: Regenerated.
41421         * tests/unictype/test-pr_format_control.c: Regenerated.
41422         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41423         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41424         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41425         * tests/unictype/test-pr_id_continue.c: Regenerated.
41426         * tests/unictype/test-pr_id_start.c: Regenerated.
41427         * tests/unictype/test-pr_ideographic.c: Regenerated.
41428         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41429         * tests/unictype/test-pr_lowercase.c: Regenerated.
41430         * tests/unictype/test-pr_math.c: Regenerated.
41431         * tests/unictype/test-pr_numeric.c: Regenerated.
41432         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41433         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41434         Regenerated.
41435         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41436         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41437         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41438         * tests/unictype/test-pr_other_math.c: Regenerated.
41439         * tests/unictype/test-pr_punctuation.c: Regenerated.
41440         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41441         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41442         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41443         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41444         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41445         * tests/unictype/test-pr_uppercase.c: Regenerated.
41446         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41447         * tests/unictype/test-pr_xid_start.c: Regenerated.
41448         * tests/unictype/test-pr_zero_width.c: Regenerated.
41449
41450         Update to Unicode 5.1.0.
41451         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41452         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41453         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41454         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41455         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41456         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41457         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41458         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41459         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41460         (nonspacing_table_ind): Update.
41461         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41462
41463         Update to Unicode 5.1.0.
41464         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41465         code transform.
41466         * lib/uniname/uniname.c (unicode_character_name,
41467         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41468         * lib/uniname/uninames.h: Regenerated.
41469         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41470
41471 2009-02-07  Bruno Haible  <bruno@clisp.org>
41472
41473         Merge gen-ctype and gen-lbrk into a single program.
41474         * lib/gen-uni-tables.c: New file, incorporating
41475         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41476         Add directory prefixes to the names of the generated files.
41477         * lib/unictype/gen-ctype.c: Remove file.
41478         * lib/unilbrk/gen-lbrk.c: Remove file.
41479         * modules/gen-uni-tables: New file.
41480         * modules/unictype/gen-ctype: Remove file.
41481         * modules/unilbrk/gen-lbrk: Remove file.
41482
41483 2009-02-07  Bruno Haible  <bruno@clisp.org>
41484
41485         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41486
41487         New module 'unistr/u32-strcoll'.
41488         * modules/unistr/u32-strcoll: New file.
41489         * lib/unistr/u32-strcoll.c: New file.
41490
41491         New module 'unistr/u16-strcoll'.
41492         * modules/unistr/u16-strcoll: New file.
41493         * lib/unistr/u16-strcoll.c: New file.
41494
41495         New module 'unistr/u8-strcoll'.
41496         * modules/unistr/u8-strcoll: New file.
41497         * lib/unistr/u8-strcoll.c: New file.
41498         * lib/unistr/u-strcoll.h: New file.
41499
41500 2009-02-07  Bruno Haible  <bruno@clisp.org>
41501
41502         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41503         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41504         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41505         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41506         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41507         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41508
41509 2009-02-07  Bruno Haible  <bruno@clisp.org>
41510
41511         Make 64-bit clean.
41512         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41513         output_combclass, output_bidi_category, output_decimal_digit,
41514         output_digit, output_numeric, output_mirror, output_scripts,
41515         output_ident_category): Use proper width specifier in format strings.
41516
41517 2009-02-07  Bruno Haible  <bruno@clisp.org>
41518
41519         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41520         failure behaviour.
41521
41522 2009-02-07  Jim Meyering  <meyering@redhat.com>
41523
41524         regex: avoid compilation failure with upcoming gcc-4.4
41525         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41526         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41527         "... error: integer overflow in preprocessor expression".
41528
41529 2009-02-05  Ben Pfaff  <blp@gnu.org>
41530
41531         Fix link errors on Windows when close module is used.
41532         * modules/close: Add $(LIB_CLOSE) to Link section.
41533         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41534         $(LIB_CLOSE) on Windows.
41535
41536 2009-02-05  Jim Meyering  <meyering@redhat.com>
41537
41538         still avoid unused-parameter warnings, but do it cleanly
41539         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41540         (get_fs_usage): Cast to void instead.
41541         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41542         (dev_from_mount_options, read_file_system_list): Cast to void.
41543         Prompted by Bruno Haible.
41544
41545 2009-02-04  Jim Meyering  <meyering@redhat.com>
41546
41547         fsusage.c: correct copyright year
41548         * lib/fsusage.c: Reflect year in which the change is pushed into
41549
41550         avoid misc. warnings
41551         * lib/fsusage.c (UNUSED_PARAM): Define.
41552         (get_fs_usage): Mark parameter "disk" as unused.
41553         * lib/getugroups.c (getgrent): Use "void" in prototype.
41554         * lib/mountlist.c: Mark unused parameters.
41555         (read_file_system_list): Declare a local with "const".
41556         * lib/nanosleep.c (getnow): Declare static.
41557         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41558
41559         dirfd: set errno upon failure
41560         * lib/dirfd.c: Include <errno.h>.
41561         Set errno to ENOTSUP when returning -1.
41562         * modules/dirfd (Depends-on): Add errno.
41563         Suggested by John Kodis <kodis@comcast.net>.
41564
41565 2009-02-01  Bruno Haible  <bruno@clisp.org>
41566
41567         Don't assume sizeof (long) >= sizeof (void *).
41568         * lib/memcmp.c: Include stdint.h.
41569         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41570         srcp2 to 'const byte *'.
41571         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41572         types to uintptr_t.
41573         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41574         * modules/memcmp (Depends-on): Add stdint.
41575         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41576
41577 2009-01-30  Eric Blake  <ebb9@byu.net>
41578
41579         fix more require-before-expand issues
41580         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41581         expand, AC_PROG_AWK.
41582         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41583
41584 2009-01-28  Eric Blake  <ebb9@byu.net>
41585
41586         version-etc: use consistent URL formatting
41587         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41588         Improve formatting.  Use fputs for string without %.
41589
41590 2009-01-28  Jim Meyering  <meyering@redhat.com>
41591
41592         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41593         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41594         "underquoted definition of NAME" from autoconf-2.59.
41595
41596 2009-01-28  Bruno Haible  <bruno@clisp.org>
41597
41598         * doc/gnulib.texi: Add "Obsolete modules" to index.
41599
41600 2009-01-28  Jim Meyering  <meyering@redhat.com>
41601
41602         useless-if-before-free: recognize more variants
41603         * build-aux/useless-if-before-free: Also recognize e.g.,
41604         if (NULL != p) free (p);
41605
41606 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41607
41608         test-getaddrinfo: skip (don't fail) this test when there's no network
41609         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41610         on the presumption that it means you lack network access.
41611
41612 2009-01-26  Jim Meyering  <meyering@redhat.com>
41613
41614         fflush: avoid warnings on modern systems
41615         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41616         pos and result, into scopes where they're used.
41617
41618 2009-01-26  Eric Blake  <ebb9@byu.net>
41619
41620         Silence warning reintroduced by recent extensions patch.
41621         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41622         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41623         autoconf.
41624
41625         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41626         * m4/00gnulib.m4: New file.
41627         * gnulib-tool (func_get_filelist): Always use it.
41628         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41629         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41630
41631 2009-01-25  Bruno Haible  <bruno@clisp.org>
41632
41633         Make test-quotearg work on MacOS X and AIX.
41634         * tests/test-quotearg.sh: New file.
41635         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41636         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41637         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41638         include <libintl.h>.
41639         (fake_locale): Remove variable.
41640         (gettext, dgettext, dcgettext): Remove functions.
41641         (main): Instead of setting a fake locale, set a real locale. Call
41642         textdomain and bindtextdomain.
41643         * modules/quotearg-tests (Files): Add the new files.
41644         (Depends-on): Add gettext, setenv, unsetenv.
41645         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41646         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41647         Augment TESTS_ENVIRONMENT.
41648
41649 2009-01-25  Bruno Haible  <bruno@clisp.org>
41650
41651         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41652         fr_FR.ISO8859-1 locale on MacOS X.
41653         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41654         ja_JP.eucJP locale on MacOS X.
41655         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41656         zh_CN.GB18030 locale on MacOS X.
41657
41658 2009-01-25  Bruno Haible  <bruno@clisp.org>
41659
41660         Avoid link errors on MacOS X 10.3.
41661         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41662         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41663
41664 2009-01-25  Bruno Haible  <bruno@clisp.org>
41665
41666         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41667         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41668         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41669         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41670         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41671         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41672         posix_spawnattr_init, posix_spawnattr_setsigmask,
41673         posix_spawnattr_setflags, posix_spawnattr_destroy.
41674
41675         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41676         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41677         * modules/execute (Files): Remove m4/posix_spawn.m4.
41678         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41679         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41680         posix_spawnattr_init, posix_spawnattr_setsigmask,
41681         posix_spawnattr_setflags, posix_spawnattr_destroy.
41682
41683 2009-01-25  Bruno Haible  <bruno@clisp.org>
41684
41685         * lib/glthread/threadlib.c: Include <stdlib.h>.
41686
41687 2009-01-25  Bruno Haible  <bruno@clisp.org>
41688
41689         * lib/glthread/threadlib.c (dummy): New declaration.
41690
41691 2009-01-25  Bruno Haible  <bruno@clisp.org>
41692
41693         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41694         multibyte characters also for the GB18030 encoding. Don't crash when
41695         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41696
41697 2009-01-25  Bruno Haible  <bruno@clisp.org>
41698
41699         Avoid redefining 'struct random_data' on OSF/1 5.1.
41700         * lib/stdlib.in.h: Include <random.h> if it exists.
41701         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41702         HAVE_RANDOM_H. Include <random.h> when testing whether
41703         'struct random_data' exists.
41704         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41705
41706 2009-01-25  Bruno Haible  <bruno@clisp.org>
41707
41708         Don't install charset.alias on MacOS X >= 10.3.
41709         * lib/localcharset.c (DARWIN7): New macro.
41710         (get_charset_aliases): Hardcode the result for Darwin7.
41711         * modules/localcharset (install-exec-local): Don't install
41712         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41713
41714 2009-01-25  Bruno Haible  <bruno@clisp.org>
41715
41716         Don't install charset.alias on mingw and Cygwin.
41717         * modules/localcharset (install-exec-local): Don't install
41718         charset.alias on mingw and Cygwin, if the file does not yet exist.
41719         The result for these platforms is hardcoded in localcharset.c.
41720
41721 2009-01-25  Bruno Haible  <bruno@clisp.org>
41722
41723         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41724         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41725         before requiring AC_USE_SYSTEM_EXTENSIONS.
41726
41727 2009-01-25  Jim Meyering  <meyering@redhat.com>
41728
41729         c-strtod: avoid warnings
41730         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41731         "assignment discards qualifiers from pointer target type" warnings.
41732
41733 2009-01-24  Bruno Haible  <bruno@clisp.org>
41734
41735         Add support for non-UTF-8 locales on MacOS X.
41736         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41737         canonical encodings. For Darwin 7 and newer, don't map traditional
41738         encodings to UTF-8.
41739         Reported by Vincent Lefevre <vincent@vinc17.org>
41740         at <http://savannah.gnu.org/bugs/?25235>.
41741
41742 2009-01-24  Bruno Haible  <bruno@clisp.org>
41743
41744         * doc/gnulib.texi (Obsolete modules): New section.
41745         Reported by Mike Frysinger <vapier@gentoo.org>.
41746
41747 2009-01-24  Bruno Haible  <bruno@clisp.org>
41748
41749         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41750         (%.dvi): New rule.
41751
41752 2009-01-24  Bruno Haible  <bruno@clisp.org>
41753
41754         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41755         Reported by Eric Blake.
41756
41757 2009-01-24  Bruno Haible  <bruno@clisp.org>
41758
41759         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41760         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41761         Reported by Gary V. Vaughan <gary@gnu.org>.
41762
41763 2009-01-24  Bruno Haible  <bruno@clisp.org>
41764
41765         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41766
41767 2009-01-23  Bruno Haible  <bruno@clisp.org>
41768
41769         Make c-strtod, c-strtold usable in libraries.
41770         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41771         (C_STRTOD): Call strdup instead of xstrdup.
41772         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41773         * modules/c-strtold (Depends-on): Likewise.
41774         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41775         * NEWS: Mention the change.
41776         Reported by Michael Gold <mgold@ncf.ca>.
41777
41778 2009-01-23  Jim Meyering  <meyering@redhat.com>
41779
41780         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41781         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41782         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41783
41784 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41785
41786         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41787         GNU CoreUtils.
41788         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41789         * modules/version-etc (Description): Update.
41790
41791 2009-01-22  Bruno Haible  <bruno@clisp.org>
41792
41793         Cache the C locale object.
41794         * lib/c-strtod.c (c_locale_cache): New variable.
41795         (c_locale): New function.
41796         (C_STRTOD): Use it, and don't call freelocale.
41797         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41798         Suggested by Paolo Bonzini.
41799
41800 2009-01-21  Bruno Haible  <bruno@clisp.org>
41801
41802         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41803         conditions other than overflow.
41804
41805 2009-01-21  Bruno Haible  <bruno@clisp.org>
41806
41807         * lib/c-strtod.c: Include errno.h.
41808         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41809         value from STRTOD_L and STRTOD.
41810
41811 2009-01-21  Bruno Haible  <bruno@clisp.org>
41812         and Jim Meyering  <meyering@redhat.com>
41813
41814         nanosleep: skip configure test (fail it) for apple universal builds
41815         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41816         universal builds, assume that nanosleep does not work.
41817         * modules/nanosleep (Depends-on): Add multiarch.
41818
41819         mktime: skip configure test (fail it) for apple universal builds
41820         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41821         universal builds, assume that mktime does not work.
41822         * modules/mktime (Depends-on): Add multiarch.
41823
41824 2009-01-21  Eric Blake  <ebb9@byu.net>
41825
41826         multiarch: avoid expand-before-require warning
41827         * modules/multiarch (configure.ac): Require, rather than expand,
41828         gl_MULTIARCH.
41829         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41830         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41831         enforce that all clients require it.  Partial reversion of
41832         2008-12-29 patch.
41833
41834         error: avoid expand-before-require warning
41835         * modules/errno (configure.ac): Require, rather than expand,
41836         gl_HEADER_ERRNO_H.
41837         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41838         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41839         enforce that all clients require it.
41840
41841         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41842         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41843         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41844         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41845
41846 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41847
41848         Revert:
41849         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41850
41851         regex: do not depend on obsolete modules.
41852         * modules/regex: Remove memcmp and memmove.
41853
41854 2009-01-20  Bruno Haible  <bruno@clisp.org>
41855
41856         Make the 'link' module link on Windows NT 4.
41857         * lib/link.c (_WIN32_WINNT): Don't define.
41858         (CreateHardLinkFuncType): New type.
41859         (CreateHardLinkFunc, initialized): New variables.
41860         (initialize): New function.
41861         (link): Invoke CreateHardLink indirectly through the function pointer.
41862
41863 2009-01-20  Bruno Haible  <bruno@clisp.org>
41864
41865         Fix compilation failure on mingw.
41866         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41867
41868 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41869
41870         * doc/c-strtod.texi: Mention a couple of restrictions.
41871
41872 2009-01-20  Jim Meyering  <meyering@redhat.com>
41873
41874         gettimeofday: move more declarations out of functions
41875         * lib/gettimeofday.c: Move extern declarations of tzset and
41876         gmtime out of containing functions.  Prompted by Bruno Haible.
41877
41878 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41879
41880         regex: do not depend on obsolete modules.
41881         * modules/regex: Remove memcmp and memmove.
41882
41883 2009-01-19  Bruno Haible  <bruno@clisp.org>
41884
41885         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41886         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41887         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41888         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41889         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41890
41891 2009-01-19  Bruno Haible  <bruno@clisp.org>
41892
41893         * tests/test-link.c: Include <errno.h>.
41894         (main): Exit with code 77 when a hard link cannot be created due to
41895         the file system.
41896         * tests/test-link.sh: Skip test when a hard link cannot be created due
41897         to the file system.
41898         Suggested by Eric Blake.
41899
41900 2009-01-19  Martin Lambers  <marlam@marlam.de>
41901
41902         * modules/link-tests: New file.
41903         * tests/test-link.sh: New file.
41904         * tests/test-link.c: New file.
41905
41906 2009-01-19  Eric Blake  <ebb9@byu.net>
41907
41908         doc: mention another function added in cygwin 1.7.0
41909         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41910         Another new function in cygwin 1.7.
41911
41912 2009-01-19  Bruno Haible  <bruno@clisp.org>
41913
41914         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41915         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41916         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41917         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41918         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41919         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41920         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41921         * m4/md4.m4 (gl_MD4): Likewise.
41922         * m4/md5.m4 (gl_MD5): Likewise.
41923         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41924         * m4/sha1.m4 (gl_SHA1): Likewise.
41925         * m4/sha256.m4 (gl_SHA256): Likewise.
41926         * m4/sha512.m4 (gl_SHA512): Likewise.
41927
41928 2009-01-19  Bruno Haible  <bruno@clisp.org>
41929
41930         * modules/uniname/uniname-tests (Depends-on): Add progname.
41931         * tests/uniname/test-uninames.c: Include progname.h.
41932         (main): Call set_program_name.
41933
41934         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41935         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41936         (main): Call set_program_name.
41937
41938         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41939         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41940         (main): Call set_program_name.
41941
41942         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41943         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41944         (main): Call set_program_name.
41945
41946         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41947         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41948         (main): Call set_program_name.
41949
41950         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41951         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41952         (main): Call set_program_name.
41953
41954         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41955         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41956         (main): Call set_program_name.
41957
41958         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41959         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41960         (main): Call set_program_name.
41961
41962         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41963         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41964         (main): Call set_program_name.
41965
41966 2009-01-19  Eric Blake  <ebb9@byu.net>
41967
41968         test-unistd: test previous patch
41969         * tests/test-unistd.c: Test *_FILENO macros.
41970
41971         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41972         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41973         Guarantee a definition.
41974         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41975         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41976         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41977         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41978         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41979         Likewise.
41980         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41981         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41982         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41983         Likewise.
41984         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41985         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41986         (STDERR_FILENO): Likewise.
41987         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41988         (STDERR_FILENO): Likewise.
41989         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41990         (STDERR_FILENO): Likewise.
41991         Reported by Elbert Pol.
41992
41993 2009-01-19  Eric Blake  <ebb9@byu.net>
41994
41995         doc: mention more functions added in cygwin 1.7.0
41996         * doc/posix-functions/abort.texi (abort): Update wording related
41997         to cygwin.
41998         * doc/posix-functions/daylight.texi (daylight): Likewise.
41999         * doc/posix-functions/optarg.texi (optarg): Likewise.
42000         * doc/posix-functions/optarg.texi (opterr): Likewise.
42001         * doc/posix-functions/optarg.texi (optind): Likewise.
42002         * doc/posix-functions/optarg.texi (optopt): Likewise.
42003         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42004         worked in 1.5.x, and was withdrawn in 1.7.
42005         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42006         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42007         cygwin versions.
42008         * doc/posix-functions/perror.texi (perror): Likewise.
42009         * doc/posix-functions/printf.texi (printf): Likewise.
42010         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42011         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42012         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42013         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42014         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42015         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42016         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42017         Likewise.
42018         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42019         Likewise.
42020         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42021         this function.
42022         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42023         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42024         Likewise.
42025         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42026         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42027         * doc/posix-functions/confstr.texi (confstr): Likewise.
42028         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42029         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42030         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42031         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42032         * doc/posix-functions/fputws.texi (fputws): Likewise.
42033         * doc/posix-functions/fwide.texi (fwide): Likewise.
42034         * doc/posix-functions/getwc.texi (getwc): Likewise.
42035         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42036         * doc/posix-functions/putwc.texi (putwc): Likewise.
42037         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42038         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42039         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42040         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42041         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42042         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42043         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42044         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42045         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42046         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42047         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42048
42049 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42050
42051         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42052         * lib/ioctl.c: Include <sys/ioctl.h>.
42053
42054 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42055
42056         * modules/getdate-tests (Depends-on): Add progname.
42057         * tests/test-getdate.c: Use progname module, to avoid link errors
42058         on non-glibc systems.
42059
42060 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42061
42062         * modules/filenamecat-tests (Depends-on): Add progname.
42063         * modules/fstrcmp-tests (Depends-on): Likewise.
42064
42065         * tests/test-filenamecat.c: Use progname module, to avoid link
42066         errors on non-glibc systems.
42067         * tests/test-fstrcmp.c: Likewise.
42068
42069 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42070
42071         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42072         * lib/gettimeofday.c: Move extern declaration out of function.
42073
42074 2009-01-18  Bruno Haible  <bruno@clisp.org>
42075
42076         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42077         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42078         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42079
42080 2009-01-18  Bruno Haible  <bruno@clisp.org>
42081
42082         * lib/strftime.c (MEMPCPY): Remove unused macro.
42083         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42084
42085 2009-01-18  Martin Lambers  <marlam@marlam.de>
42086
42087         New module 'link'.
42088         * lib/unistd.in.h (link): New declaration.
42089         * lib/link.c: New file.
42090         * m4/link.m4: New file.
42091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42092         HAVE_LINK.
42093         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42094         * modules/link: New file.
42095         * doc/posix-functions/link.texi: Mention the new module.
42096
42097 2009-01-18  Bruno Haible  <bruno@clisp.org>
42098
42099         * tests/test-avltree_list.c (main): Call set_program_name.
42100         * tests/test-avltree_oset.c (main): Likewise.
42101         * tests/test-obstack-printf.c: Include progname.h.
42102         (main): Call set_program_name.
42103         * tests/test-quotearg.c: Include progname.h.
42104         (main): Call set_program_name.
42105         * tests/test-xmemdup0.c: Include progname.h.
42106         (main): Call set_program_name.
42107
42108 2009-01-18  Bruno Haible  <bruno@clisp.org>
42109
42110         New module 'alphasort'.
42111         * lib/dirent.in.h (alphasort): New declaration.
42112         * lib/alphasort.c: New file, from glibc with modifications.
42113         * m4/alphasort.m4: New file.
42114         * modules/alphasort: New file.
42115         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42116         HAVE_ALPHASORT.
42117         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42118         HAVE_ALPHASORT.
42119         * doc/posix-functions/alphasort.texi: Mention the new module and the
42120         portability problems.
42121
42122 2009-01-18  Bruno Haible  <bruno@clisp.org>
42123
42124         New module 'scandir'.
42125         * lib/dirent.in.h (scandir): New declaration.
42126         * lib/scandir.c: New file, from glibc with modifications.
42127         * m4/scandir.m4: New file.
42128         * modules/scandir: New file.
42129         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42130         HAVE_SCANDIR.
42131         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42132         HAVE_SCANDIR.
42133         * doc/posix-functions/scandir.texi: Mention the new module and the
42134         portability problems.
42135
42136 2009-01-17  Bruno Haible  <bruno@clisp.org>
42137
42138         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42139         Update documentation.
42140         (func_remove_suffix): Escape all dots in the suffix. Update
42141         documentation.
42142         (func_filter_filelist): Update documentation.
42143         Reported by Ralf Wildenhues.
42144
42145 2009-01-17  Bruno Haible  <bruno@clisp.org>
42146
42147         * modules/dprintf-posix-tests: New file.
42148         * tests/test-dprintf-posix.sh: New file.
42149         * tests/test-dprintf-posix.c: New file.
42150
42151         New modules 'dprintf', 'dprintf-posix'.
42152         * lib/stdio.in.h (dprintf): New declaration.
42153         * lib/dprintf.c: New file.
42154         * m4/dprintf.m4: New file.
42155         * m4/dprintf-posix.m4: New file.
42156         * modules/dprintf: New file.
42157         * modules/dprintf-posix: New file.
42158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42159         HAVE_DPRINTF, REPLACE_DPRINTF.
42160         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42161         HAVE_DPRINTF, REPLACE_DPRINTF.
42162         * doc/posix-functions/dprintf.texi: Mention the new modules.
42163
42164 2009-01-17  Bruno Haible  <bruno@clisp.org>
42165
42166         * modules/vdprintf-posix-tests: New file.
42167         * tests/test-vdprintf-posix.sh: New file.
42168         * tests/test-vdprintf-posix.c: New file.
42169
42170         New modules 'vdprintf', 'vdprintf-posix'.
42171         * lib/stdio.in.h (vdprintf): New declaration.
42172         * lib/vdprintf.c: New file.
42173         * m4/vdprintf.m4: New file.
42174         * m4/vdprintf-posix.m4: New file.
42175         * modules/vdprintf: New file.
42176         * modules/vdprintf-posix: New file.
42177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42178         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42179         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42180         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42181         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42182
42183 2009-01-17  Bruno Haible  <bruno@clisp.org>
42184
42185         Fix replacement of fopen on mingw.
42186         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42187         mingw.
42188
42189 2009-01-17  Bruno Haible  <bruno@clisp.org>
42190
42191         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42192         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42193
42194 2009-01-17  Bruno Haible  <bruno@clisp.org>
42195
42196         Avoid test-fflush2.sh failure on mingw.
42197         * tests/test-fflush2.c: Include binary-io.h.
42198         (main): Put standard input into binary mode.
42199         * modules/fflush-tests (Depends-on): Add binary-io.
42200
42201 2009-01-17  Bruno Haible  <bruno@clisp.org>
42202
42203         * lib/wchar.in.h: In another particular situation, include only the
42204         system's <wchar.h> file.
42205         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42206         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42207         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42208
42209 2009-01-17  Bruno Haible  <bruno@clisp.org>
42210
42211         Support for stripping executables in --enable-relocatable.
42212         * build-aux/install-reloc: Expect one more argument, or an environment
42213         variable RELOC_STRIP_PROG. If set, strip the destination program and
42214         its wrapper.
42215         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42216         RELOC_STRIP_PROG.
42217         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42218         to set RELOCATABLE_STRIP.
42219         * NEWS: Mention the new Makefile requirement.
42220
42221 2009-01-17  Bruno Haible  <bruno@clisp.org>
42222
42223         * build-aux/install-reloc: Remove debugging information left over by
42224         C compiler on MacOS X.
42225
42226 2009-01-17  Bruno Haible  <bruno@clisp.org>
42227
42228         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42229         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42230         _NSGetExecutablePath.
42231
42232 2009-01-16  Jim Meyering  <meyering@redhat.com>
42233
42234         strerror: avoid warnings about discarding "const"
42235         * lib/strerror.c (rpl_strerror): Instead of returning a const
42236         string from each and every "case", use a variable, and add a single
42237         cast after the switch.
42238
42239 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42240
42241         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42242
42243 2009-01-16  Bruno Haible  <bruno@clisp.org>
42244
42245         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42246         array initializer syntax that also works in C++ mode.
42247         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42248
42249 2009-01-16  Jim Meyering  <meyering@redhat.com>
42250
42251         poll: suppress a warning
42252         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42253         to ignore "...unsigned expression < 0 is always false" warnings.
42254
42255 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42256
42257         poll: remove declarations of unused variables
42258         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42259         sockbuf and optlen.
42260
42261 2009-01-15  Bruno Haible  <bruno@clisp.org>
42262
42263         Make fflush-after-ungetc POSIX compliant on BSD systems.
42264         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42265         (clear_ungetc_buffer): Implement also for other systems.
42266         (rpl_fflush): On glibc systems, invoke
42267         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42268         clear_ungetc_buffer after fetching the stream's position, not before.
42269
42270 2009-01-15  Bruno Haible  <bruno@clisp.org>
42271
42272         Make fflush-after-ungetc POSIX compliant on glibc systems.
42273         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42274         after ungetc.
42275         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42276         (rpl_fflush): On glibc systems, simply call the system's fflush
42277         function after clearing the ungetc buffer.
42278         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42279         Instead, lseek only to the end of file, then use the system's fseeko
42280         for the rest. On glibc systems, reset the EOF indicator bit.
42281
42282 2009-01-15  Jim Meyering  <meyering@redhat.com>
42283
42284         openmp.m4: revert quote-adding change, for portability to older autoconf
42285         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42286         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42287         Simon Josefsson noticed the problem when using autoconf-2.61.
42288
42289 2009-01-15  Bruno Haible  <bruno@clisp.org>
42290
42291         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42292         * tests/test-fflush2.c (ASSERT): Always fail.
42293         (main): Add two tests for fflush() after ungetc(), taking into account
42294         the Austin Group's clarification.
42295         Suggested by Eric Blake.
42296
42297 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42298
42299         mktime.m4: remove K&R-style function prototypes
42300         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42301         for the Sun C++ compiler.
42302
42303 2009-01-14  Bruno Haible  <bruno@clisp.org>
42304
42305         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42306         while including <wchar.h>.
42307         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42308         the system's <wchar.h> file.
42309         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42310
42311 2009-01-14  Bruno Haible  <bruno@clisp.org>
42312
42313         * m4/csharp.m4: Don't mention gettext on the serial number line.
42314         * m4/csharpexec.m4: Likewise.
42315         * m4/eaccess.m4: Likewise.
42316         * m4/javaexec.m4: Likewise.
42317         * m4/sig_atomic_t.m4: Likewise.
42318         * m4/tmpdir.m4: Likewise.
42319         * m4/intldir.m4: Bump gettext version.
42320         * m4/lib-ld.m4: Likewise.
42321
42322 2009-01-14  Bruno Haible  <bruno@clisp.org>
42323
42324         * lib/progname.c (set_program_name): Add more comments.
42325         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42326
42327 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42328
42329         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42330         were sys/stat.h does not define it.
42331
42332 2009-01-14  Jim Meyering  <meyering@redhat.com>
42333
42334         many *.m4 files: improve m4 quoting
42335         99% of this change was performed by running the following commands:
42336         git ls-files | grep '\.m4$' | xargs perl -pi \
42337           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42338           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42339           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42340           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42341         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42342         The remainder were to add Copyright dates, increment serial numbers,
42343         undo some changes in comments, exclude m4/intl.m4, and add quotes
42344         around the "1" in ",1" where the unusual spacing prohibited the
42345         above regexps from doing the job.  For more details, see
42346         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42347         * m4/acl.m4: Modified.
42348         * m4/afs.m4: Likewise.
42349         * m4/alloca.m4: Likewise.
42350         * m4/argp.m4: Likewise.
42351         * m4/argz.m4: Likewise.
42352         * m4/atexit.m4: Likewise.
42353         * m4/bison-i18n.m4: Likewise.
42354         * m4/bison.m4: Likewise.
42355         * m4/byteswap.m4: Likewise.
42356         * m4/c-stack.m4: Likewise.
42357         * m4/c-strtod.m4: Likewise.
42358         * m4/calloc.m4: Likewise.
42359         * m4/canonicalize-lgpl.m4: Likewise.
42360         * m4/chown.m4: Likewise.
42361         * m4/clock_time.m4: Likewise.
42362         * m4/codeset.m4: Likewise.
42363         * m4/copy-file.m4: Likewise.
42364         * m4/csharp.m4: Likewise.
42365         * m4/csharpcomp.m4: Likewise.
42366         * m4/csharpexec.m4: Likewise.
42367         * m4/d-ino.m4: Likewise.
42368         * m4/d-type.m4: Likewise.
42369         * m4/dirfd.m4: Likewise.
42370         * m4/double-slash-root.m4: Likewise.
42371         * m4/eaccess.m4: Likewise.
42372         * m4/eealloc.m4: Likewise.
42373         * m4/environ.m4: Likewise.
42374         * m4/errno_h.m4: Likewise.
42375         * m4/euidaccess.m4: Likewise.
42376         * m4/execute.m4: Likewise.
42377         * m4/fatal-signal.m4: Likewise.
42378         * m4/fchdir.m4: Likewise.
42379         * m4/fcntl_h.m4: Likewise.
42380         * m4/fileblocks.m4: Likewise.
42381         * m4/filenamecat.m4: Likewise.
42382         * m4/findprog.m4: Likewise.
42383         * m4/flexmember.m4: Likewise.
42384         * m4/fnmatch.m4: Likewise.
42385         * m4/fopen.m4: Likewise.
42386         * m4/fpending.m4: Likewise.
42387         * m4/fprintf-posix.m4: Likewise.
42388         * m4/free.m4: Likewise.
42389         * m4/frexp.m4: Likewise.
42390         * m4/frexpl.m4: Likewise.
42391         * m4/fsusage.m4: Likewise.
42392         * m4/ftruncate.m4: Likewise.
42393         * m4/gc-camellia.m4: Likewise.
42394         * m4/gc-random.m4: Likewise.
42395         * m4/gc.m4: Likewise.
42396         * m4/getaddrinfo.m4: Likewise.
42397         * m4/getcwd-abort-bug.m4: Likewise.
42398         * m4/getcwd-path-max.m4: Likewise.
42399         * m4/getdate.m4: Likewise.
42400         * m4/getdomainname.m4: Likewise.
42401         * m4/getgroups.m4: Likewise.
42402         * m4/gethostname.m4: Likewise.
42403         * m4/gethrxtime.m4: Likewise.
42404         * m4/getline.m4: Likewise.
42405         * m4/getloadavg.m4: Likewise.
42406         * m4/getndelim2.m4: Likewise.
42407         * m4/getpass.m4: Likewise.
42408         * m4/gettext.m4: Likewise.
42409         * m4/gettime.m4: Likewise.
42410         * m4/gettimeofday.m4: Likewise.
42411         * m4/gnulib-common.m4: Likewise.
42412         * m4/group-member.m4: Likewise.
42413         * m4/host-os.m4: Likewise.
42414         * m4/iconv.m4: Likewise.
42415         * m4/iconv_open.m4: Likewise.
42416         * m4/inet_ntop.m4: Likewise.
42417         * m4/inet_pton.m4: Likewise.
42418         * m4/inline.m4: Likewise.
42419         * m4/intldir.m4: Likewise.
42420         * m4/intlmacosx.m4: Likewise.
42421         * m4/intmax.m4: Likewise.
42422         * m4/intmax_t.m4: Likewise.
42423         * m4/inttypes.m4: Likewise.
42424         * m4/inttypes_h.m4: Likewise.
42425         * m4/inttypes-pri.m4: Likewise.
42426         * m4/isapipe.m4: Likewise.
42427         * m4/isnand.m4: Likewise.
42428         * m4/isnanf.m4: Likewise.
42429         * m4/isnanl.m4: Likewise.
42430         * m4/javacomp.m4: Likewise.
42431         * m4/javaexec.m4: Likewise.
42432         * m4/jm-winsz1.m4: Likewise.
42433         * m4/jm-winsz2.m4: Likewise.
42434         * m4/lchown.m4: Likewise.
42435         * m4/lcmessage.m4: Likewise.
42436         * m4/ldexpl.m4: Likewise.
42437         * m4/lib-ld.m4: Likewise.
42438         * m4/lib-link.m4: Likewise.
42439         * m4/libsigsegv.m4: Likewise.
42440         * m4/link-follow.m4: Likewise.
42441         * m4/localcharset.m4: Likewise.
42442         * m4/locale-fr.m4: Likewise.
42443         * m4/locale-ja.m4: Likewise.
42444         * m4/locale-tr.m4: Likewise.
42445         * m4/locale-zh.m4: Likewise.
42446         * m4/lock.m4: Likewise.
42447         * m4/longlong.m4: Likewise.
42448         * m4/ls-mntd-fs.m4: Likewise.
42449         * m4/lstat.m4: Likewise.
42450         * m4/malloc.m4: Likewise.
42451         * m4/mathl.m4: Likewise.
42452         * m4/mbrtowc.m4: Likewise.
42453         * m4/mbstate_t.m4: Likewise.
42454         * m4/mbswidth.m4: Likewise.
42455         * m4/memchr.m4: Likewise.
42456         * m4/memcmp.m4: Likewise.
42457         * m4/memcpy.m4: Likewise.
42458         * m4/memmem.m4: Likewise.
42459         * m4/memmove.m4: Likewise.
42460         * m4/mempcpy.m4: Likewise.
42461         * m4/memrchr.m4: Likewise.
42462         * m4/memset.m4: Likewise.
42463         * m4/minmax.m4: Likewise.
42464         * m4/mkdir-slash.m4: Likewise.
42465         * m4/mkdtemp.m4: Likewise.
42466         * m4/mktime.m4: Likewise.
42467         * m4/mmap-anon.m4: Likewise.
42468         * m4/mountlist.m4: Likewise.
42469         * m4/nanosleep.m4: Likewise.
42470         * m4/nls.m4: Likewise.
42471         * m4/nocrash.m4: Likewise.
42472         * m4/open.m4: Likewise.
42473         * m4/openat.m4: Likewise.
42474         * m4/openmp.m4: Likewise.
42475         * m4/pathmax.m4: Likewise.
42476         * m4/perl.m4: Likewise.
42477         * m4/physmem.m4: Likewise.
42478         * m4/pipe.m4: Likewise.
42479         * m4/po.m4: Likewise.
42480         * m4/poll.m4: Likewise.
42481         * m4/posixtm.m4: Likewise.
42482         * m4/posixver.m4: Likewise.
42483         * m4/printf-frexp.m4: Likewise.
42484         * m4/printf-frexpl.m4: Likewise.
42485         * m4/printf-posix.m4: Likewise.
42486         * m4/printf-posix-rpl.m4: Likewise.
42487         * m4/printf.m4: Likewise.
42488         * m4/progtest.m4: Likewise.
42489         * m4/putenv.m4: Likewise.
42490         * m4/readline.m4: Likewise.
42491         * m4/readlink.m4: Likewise.
42492         * m4/readutmp.m4: Likewise.
42493         * m4/realloc.m4: Likewise.
42494         * m4/regex.m4: Likewise.
42495         * m4/relocatable.m4: Likewise.
42496         * m4/relocatable-lib.m4: Likewise.
42497         * m4/rename-dest-slash.m4: Likewise.
42498         * m4/rename.m4: Likewise.
42499         * m4/rmdir-errno.m4: Likewise.
42500         * m4/rmdir.m4: Likewise.
42501         * m4/roundf.m4: Likewise.
42502         * m4/roundl.m4: Likewise.
42503         * m4/rpmatch.m4: Likewise.
42504         * m4/save-cwd.m4: Likewise.
42505         * m4/selinux-selinux-h.m4: Likewise.
42506         * m4/setenv.m4: Likewise.
42507         * m4/settime.m4: Likewise.
42508         * m4/sig2str.m4: Likewise.
42509         * m4/sig_atomic_t.m4: Likewise.
42510         * m4/signalblocking.m4: Likewise.
42511         * m4/signbit.m4: Likewise.
42512         * m4/sigpipe.m4: Likewise.
42513         * m4/sockets.m4: Likewise.
42514         * m4/sockpfaf.m4: Likewise.
42515         * m4/st_dm_mode.m4: Likewise.
42516         * m4/stat-time.m4: Likewise.
42517         * m4/stdbool.m4: Likewise.
42518         * m4/stdint.m4: Likewise.
42519         * m4/stdint_h.m4: Likewise.
42520         * m4/stpcpy.m4: Likewise.
42521         * m4/stpncpy.m4: Likewise.
42522         * m4/strcase.m4: Likewise.
42523         * m4/strchrnul.m4: Likewise.
42524         * m4/strcspn.m4: Likewise.
42525         * m4/strdup.m4: Likewise.
42526         * m4/strftime.m4: Likewise.
42527         * m4/strndup.m4: Likewise.
42528         * m4/strnlen.m4: Likewise.
42529         * m4/strpbrk.m4: Likewise.
42530         * m4/strptime.m4: Likewise.
42531         * m4/strsep.m4: Likewise.
42532         * m4/strtod.m4: Likewise.
42533         * m4/strtoimax.m4: Likewise.
42534         * m4/strtok_r.m4: Likewise.
42535         * m4/strtol.m4: Likewise.
42536         * m4/strtoll.m4: Likewise.
42537         * m4/strtoul.m4: Likewise.
42538         * m4/strtoull.m4: Likewise.
42539         * m4/strtoumax.m4: Likewise.
42540         * m4/strverscmp.m4: Likewise.
42541         * m4/threadlib.m4: Likewise.
42542         * m4/timegm.m4: Likewise.
42543         * m4/tm_gmtoff.m4: Likewise.
42544         * m4/tmpdir.m4: Likewise.
42545         * m4/tmpfile.m4: Likewise.
42546         * m4/tzset.m4: Likewise.
42547         * m4/uintmax_t.m4: Likewise.
42548         * m4/unlinkdir.m4: Likewise.
42549         * m4/unlocked-io.m4: Likewise.
42550         * m4/uptime.m4: Likewise.
42551         * m4/userspec.m4: Likewise.
42552         * m4/utimbuf.m4: Likewise.
42553         * m4/utime.m4: Likewise.
42554         * m4/utimes-null.m4: Likewise.
42555         * m4/utimes.m4: Likewise.
42556         * m4/vararrays.m4: Likewise.
42557         * m4/vasnprintf.m4: Likewise.
42558         * m4/vfprintf-posix.m4: Likewise.
42559         * m4/vprintf-posix.m4: Likewise.
42560         * m4/wait-process.m4: Likewise.
42561         * m4/wchar_t.m4: Likewise.
42562         * m4/wint_t.m4: Likewise.
42563         * m4/write-any-file.m4: Likewise.
42564         * m4/yield.m4: Likewise.
42565
42566 2009-01-13  Bruno Haible  <bruno@clisp.org>
42567
42568         Avoid test-copy-file.sh failures when ACL support insufficient.
42569         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42570         TESTS_ENVIRONMENT.
42571         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42572         Reported by Jim Meyering.
42573
42574 2009-01-13  Bruno Haible  <bruno@clisp.org>
42575
42576         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42577         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42578         * modules/unistdio/u8-printf-parse (Files): Likewise.
42579         * modules/unistdio/u32-printf-parse (Files): Likewise.
42580         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42581
42582 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42583
42584         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42585         and m4/inttypes_h.m4 too.
42586
42587 2009-01-12  Eric Blake  <ebb9@byu.net>
42588
42589         tests: IRIX 6.2 cc can't compile -0.0 into .data
42590         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42591         rather than at compile-time.
42592         * tests/test-floorl.c (minus_zero): Likewise.
42593         * tests/test-frexpl.c (minus_zero): Likewise.
42594         * tests/test-isnan.c (minus_zerol): Likewise.
42595         * tests/test-isnanl.h (minus_zero): Likewise.
42596         * tests/test-ldexpl.c (minus_zero): Likewise.
42597         * tests/test-roundl.c (minus_zero): Likewise.
42598         * tests/test-signbit.c (minus_zerol): Likewise.
42599         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42600         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42601         * tests/test-truncl.c (minus_zero): Likewise.
42602         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42603         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42604         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42605
42606 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42607
42608         regex: fix glibc bug 9697
42609         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42610         handling.
42611
42612 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42613
42614         regex: fix glibc bug 697
42615         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42616         being NULL also if there are no backreferences.
42617
42618 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42619
42620         regex: merge glibc changes
42621         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42622         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42623         re_string_skip_chars, re_string_reconstruct): Likewise.
42624         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42625
42626 2009-01-07  Jim Meyering  <meyering@redhat.com>
42627
42628         poll: filter through cppi
42629         * lib/poll.c: Indent cpp directives to reflect nesting.
42630
42631 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42632
42633         poll: don't return uninitialized
42634         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42635
42636 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42637
42638         avoid compile failure on AIX 6.1
42639         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42640         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42641
42642 2009-01-04  Jim Meyering  <meyering@redhat.com>
42643
42644         remove duplicate inclusion of <stdio.h>
42645         * tests/test-fprintf-posix.c: Likewise.
42646         * tests/test-printf-posix.c: Likewise.
42647         * tests/test-snprintf-posix.c: Likewise.
42648         * tests/test-sprintf-posix.c: Likewise.
42649         * tests/test-vasprintf-posix.c: Likewise.
42650         * tests/test-vfprintf-posix.c: Likewise.
42651         * tests/test-vprintf-posix.c: Likewise.
42652         * tests/test-vsnprintf-posix.c: Likewise.
42653         * tests/test-vsprintf-posix.c: Likewise.
42654
42655 2009-01-03  Jim Meyering  <meyering@redhat.com>
42656
42657         gnulib-tool: fix sed-based filtering
42658         * gnulib-tool (func_filter_filelist): Remove extra backslash
42659         in sed_fff_filter definition.
42660
42661 2009-01-02  Jim Meyering  <meyering@redhat.com>
42662
42663         strftime: avoid compilation failure on Solaris 2.6
42664         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42665         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42666         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42667         be available.  Reported by Tom G. Christensen.  Details in
42668         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42669
42670 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42671             Bruno Haible  <bruno@clisp.org>
42672
42673         Speed up gnulib-tool by doing more string processing through shell
42674         built-ins.
42675         * gnulib-tool (fast_func_append): New variable.
42676         (func_remove_prefix, func_remove_suffix): New functions.
42677         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42678         (func_filter_filelist): New function.
42679         (func_get_dependencies): Use func_remove_suffix instead of sed.
42680         (func_get_automake_snippet): Use func_filter_filelist instead of a
42681         subshell and sed invocation.
42682
42683 2009-01-01  Bruno Haible  <bruno@clisp.org>
42684
42685         Fix a security bug.
42686         * gnulib-tool (func_import, import, update): Don't allow the characters
42687         '"', '$', '`', '\' in macro arguments that become part of commands that
42688         are evaluated.
42689
42690 2009-01-01  Bruno Haible  <bruno@clisp.org>
42691
42692         * gnulib-tool (func_reset_sigpipe): Add more comments.
42693
42694 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42695
42696         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42697         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42698         already know the answer.
42699
42700 2009-01-01  Jim Meyering  <meyering@redhat.com>
42701
42702         * lib/version-etc.c (version_etc_va): Update copyright year.
42703
42704 2008-12-30  Bruno Haible  <bruno@clisp.org>
42705
42706         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42707         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42708         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42709
42710 2008-12-29  Eric Blake  <ebb9@byu.net>
42711
42712         multiarch: avoid autoconf AC_REQUIRE bug
42713         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42714         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42715         2.63 and older.
42716         Reported by Bruno Haible, and analyzed in
42717         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42718
42719 2008-12-29  Bruno Haible  <bruno@clisp.org>
42720
42721         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42722         files in subdirectories correctly.
42723         Reported by Ralf Wildenhues.
42724
42725 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42726
42727         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42728         rather than 'join FILE -', for Solaris join.
42729
42730 2008-12-29  Bruno Haible  <bruno@clisp.org>
42731
42732         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42733         quoting.
42734         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42735         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42736         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42737         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42738         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42739         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42740         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42741         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42742         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42743         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42744         * m4/nls.m4 (AM_NLS): Likewise.
42745         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42746         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42747         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42748         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42749         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42750         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42751         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42752         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42753         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42754         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42755         * m4/xsize.m4 (gl_XSIZE): Likewise.
42756         Suggested by Jim Meyering.
42757
42758 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42759
42760         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42761         * lib/parse-duration.c: use a switch instead of cascading if's.
42762
42763 2008-12-29  Eric Blake  <ebb9@byu.net>
42764
42765         wchar.h: supply WEOF on Irix 5.3
42766         * lib/wchar.in.h (wint_t): Also supply WEOF.
42767         * lib/wctype.in.h (wint_t): Likewise.
42768         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42769         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42770         Reported by Tom G. Christensen.
42771
42772 2008-12-26  Bruno Haible  <bruno@clisp.org>
42773
42774         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42775         i486, i586, i686.
42776
42777 2008-12-26  Bruno Haible  <bruno@clisp.org>
42778
42779         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42780
42781 2008-12-26  Bruno Haible  <bruno@clisp.org>
42782
42783         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42784         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42785         not __STDC_CONSTANT_MACROS.
42786         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42787
42788 2008-12-25  Bruno Haible  <bruno@clisp.org>
42789
42790         Add support for universal builds to vasnprintf.
42791         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42792         universal builds, guess no.
42793         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42794         * modules/vasprintf-posix (Depends-on): Likewise.
42795         * modules/fprintf-posix (Depends-on): Likewise.
42796         * modules/vfprintf-posix (Depends-on): Likewise.
42797         * modules/snprintf-posix (Depends-on): Likewise.
42798         * modules/vsnprintf-posix (Depends-on): Likewise.
42799         * modules/sprintf-posix (Depends-on): Likewise.
42800         * modules/vsprintf-posix (Depends-on): Likewise.
42801         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42802         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42803         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42804         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42805         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42806         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42807         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42808
42809         Add support for universal builds to <inttypes.h>.
42810         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42811         _SCNu64_PREFIX): In Apple
42812         universal builds, define directly, using _LP64.
42813         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42814         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42815         * modules/inttypes (Depends-on): Add multiarch.
42816         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42817
42818         Add support for universal builds to <stdint.h>.
42819         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42820         universal builds, define directly, using _LP64.
42821         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42822         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42823         and size_t.
42824         * modules/stdint (Depends-on): Add multiarch.
42825         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42826
42827         New module 'multiarch'.
42828         * modules/multiarch: New file.
42829         * m4/multiarch.m4: New file.
42830
42831 2008-12-25  Bruno Haible  <bruno@clisp.org>
42832
42833         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42834
42835 2008-12-25  Bruno Haible  <bruno@clisp.org>
42836
42837         * modules/btowc (License): Relicense under LGPLv2+.
42838         * modules/mbsinit (License): Likewise.
42839         * modules/mbrtowc (License): Likewise.
42840         * modules/wcrtomb (License): Likewise.
42841         * modules/streq (License): Likewise.
42842         Reported by David Lutterkort <lutter@redhat.com>.
42843
42844 2008-12-23  Bruno Haible  <bruno@clisp.org>
42845
42846         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42847
42848 2008-12-23  Bruno Haible  <bruno@clisp.org>
42849
42850         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42851         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42852         GETADDRINFO_LIB, not in LIBS.
42853         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42854         * modules/canon-host (Link): Likewise.
42855         * NEWS: Mention the change.
42856         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42857         GETADDRINFO_LIB.
42858
42859 2008-12-22  Bruno Haible  <bruno@clisp.org>
42860
42861         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42862         * doc/posix-functions/iswalpha_l.texi: Likewise.
42863         * doc/posix-functions/iswblank_l.texi: Likewise.
42864         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42865         * doc/posix-functions/iswctype_l.texi: Likewise.
42866         * doc/posix-functions/iswdigit_l.texi: Likewise.
42867         * doc/posix-functions/iswgraph_l.texi: Likewise.
42868         * doc/posix-functions/iswlower_l.texi: Likewise.
42869         * doc/posix-functions/iswprint_l.texi: Likewise.
42870         * doc/posix-functions/iswpunct_l.texi: Likewise.
42871         * doc/posix-functions/iswspace_l.texi: Likewise.
42872         * doc/posix-functions/iswupper_l.texi: Likewise.
42873         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42874         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42875         * doc/posix-functions/open_wmemstream.texi: Likewise.
42876         * doc/posix-functions/swscanf.texi: Likewise.
42877         * doc/posix-functions/towctrans_l.texi: Likewise.
42878         * doc/posix-functions/towlower.texi: Likewise.
42879         * doc/posix-functions/towlower_l.texi: Likewise.
42880         * doc/posix-functions/towupper.texi: Likewise.
42881         * doc/posix-functions/towupper_l.texi: Likewise.
42882         * doc/posix-functions/vfwprintf.texi: Likewise.
42883         * doc/posix-functions/vfwscanf.texi: Likewise.
42884         * doc/posix-functions/vswscanf.texi: Likewise.
42885         * doc/posix-functions/vwprintf.texi: Likewise.
42886         * doc/posix-functions/vwscanf.texi: Likewise.
42887         * doc/posix-functions/wcpcpy.texi: Likewise.
42888         * doc/posix-functions/wcpncpy.texi: Likewise.
42889         * doc/posix-functions/wcscasecmp.texi: Likewise.
42890         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42891         * doc/posix-functions/wcscoll_l.texi: Likewise.
42892         * doc/posix-functions/wcsdup.texi: Likewise.
42893         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42894         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42895         * doc/posix-functions/wcsnlen.texi: Likewise.
42896         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42897         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42898         * doc/posix-functions/wctrans_l.texi: Likewise.
42899         * doc/posix-functions/wctype_l.texi: Likewise.
42900         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42901         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42902         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42903         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42904         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42905         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42906         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42907         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42908         * doc/glibc-functions/wcschrnul.texi: Likewise.
42909         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42910         * doc/glibc-functions/wcstod_l.texi: Likewise.
42911         * doc/glibc-functions/wcstof_l.texi: Likewise.
42912         * doc/glibc-functions/wcstol_l.texi: Likewise.
42913         * doc/glibc-functions/wcstold_l.texi: Likewise.
42914         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42915         * doc/glibc-functions/wcstoq.texi: Likewise.
42916         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42917         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42918         * doc/glibc-functions/wcstouq.texi: Likewise.
42919         * doc/glibc-functions/wmempcpy.texi: Likewise.
42920
42921 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42922             Eric Blake  <ebb9@byu.net>
42923             Paolo Bonzini  <bonzini@gnu.org>
42924             Bruno Haible  <bruno@clisp.org>
42925
42926         Make c-stack work on Haiku.
42927         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42928         (c_stack_action): Use SA_ONSTACK flag.
42929
42930 2008-12-22  Bruno Haible  <bruno@clisp.org>
42931
42932         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42933
42934 2008-12-22  Bruno Haible  <bruno@clisp.org>
42935
42936         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42937         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42938         being overridden.
42939         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42940         New macros.
42941         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42943         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42944         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42945
42946 2008-12-22  Bruno Haible  <bruno@clisp.org>
42947
42948         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42949         from test code.
42950
42951 2008-12-22  Eric Blake  <ebb9@byu.net>
42952
42953         Avoid gcc warnings on cygwin.
42954         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42955         Avoid unused variable.
42956         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42957         Likewise.
42958
42959 2008-12-22  Bruno Haible  <bruno@clisp.org>
42960
42961         Remove HAVE_MBRTOWC conditionals.
42962         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42963         (mbscasecmp): Assume mbrtowc function.
42964         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42965         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42966         * lib/mbschr.c: Include mbuiter.h unconditionally.
42967         (mbschr): Assume mbrtowc function.
42968         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42969         (mbscspn): Assume mbrtowc function.
42970         * lib/mbslen.c: Include mbuiter.h unconditionally.
42971         (mbslen): Assume mbrtowc function.
42972         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42973         (mbsncasecmp): Assume mbrtowc function.
42974         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42975         (mbsnlen): Assume mbrtowc function.
42976         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42977         (mbspbrk): Assume mbrtowc function.
42978         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42979         (mbspcasecmp): Assume mbrtowc function.
42980         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42981         (mbsrchr): Assume mbrtowc function.
42982         * lib/mbssep.c: Include mbuiter.h unconditionally.
42983         (mbssep): Assume mbrtowc function.
42984         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42985         (mbsspn): Assume mbrtowc function.
42986         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42987         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42988         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42989         (mbstok_r): Assume mbrtowc function.
42990         * lib/propername.c: Include mbuiter.h unconditionally.
42991         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42992         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42993         (trim2): Assume mbrtowc function.
42994         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42995         (mbsnwidth): Assume mbrtowc function.
42996         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42997         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42998         fallback definitions.
42999         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43000
43001 2008-12-22  Bruno Haible  <bruno@clisp.org>
43002
43003         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43004
43005 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43006
43007         * modules/regex: Request emulations for the mb*/wc* functions we need.
43008         * m4/regex.m4: Don't look for those functions here.
43009         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43010
43011 2008-12-22  Bruno Haible  <bruno@clisp.org>
43012
43013         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43014
43015 2008-12-21  Bruno Haible  <bruno@clisp.org>
43016
43017         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43018         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43019         (Include): Remove conditionalization.
43020         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43021         (Include): Remove conditionalization.
43022         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43023         (Include): Remove conditionalization.
43024         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43025         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43026         * NEWS: Mention the change.
43027         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43028         via Sergey Poznyakoff <gray@gnu.org.ua>.
43029
43030 2008-12-21  Bruno Haible  <bruno@clisp.org>
43031
43032         * MODULES.html.sh (Extended multibyte and wide character utilities
43033         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43034         wcrtomb, wcsrtombs.
43035         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43036         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43037         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43038         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43039
43040 2008-12-21  Bruno Haible  <bruno@clisp.org>
43041
43042         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43043
43044 2008-12-21  Bruno Haible  <bruno@clisp.org>
43045
43046         * modules/wcsnrtombs-tests: New file.
43047         * tests/test-wcsnrtombs1.sh: New file.
43048         * tests/test-wcsnrtombs2.sh: New file.
43049         * tests/test-wcsnrtombs3.sh: New file.
43050         * tests/test-wcsnrtombs4.sh: New file.
43051         * tests/test-wcsnrtombs.c: New file.
43052
43053         New module 'wcsnrtombs'.
43054         * lib/wchar.in.h (wcsnrtombs): New declaration.
43055         * lib/wcsnrtombs.c: New file.
43056         * lib/wcsrtombs-state.c: New file.
43057         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43058         (internal_state): Remove variable.
43059         * m4/wcsnrtombs.m4: New file.
43060         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43061         compilation units.
43062         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43063         HAVE_WCSNRTOMBS.
43064         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43065         HAVE_WCSNRTOMBS.
43066         * modules/wcsnrtombs: New file.
43067         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43068         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43069
43070 2008-12-21  Bruno Haible  <bruno@clisp.org>
43071
43072         * modules/wcsrtombs-tests: New file.
43073         * tests/test-wcsrtombs1.sh: New file.
43074         * tests/test-wcsrtombs2.sh: New file.
43075         * tests/test-wcsrtombs3.sh: New file.
43076         * tests/test-wcsrtombs4.sh: New file.
43077         * tests/test-wcsrtombs.c: New file.
43078
43079         New module 'wcsrtombs'.
43080         * lib/wchar.in.h (wcsrtombs): New declaration.
43081         * lib/wcsrtombs.c: New file.
43082         * m4/wcsrtombs.m4: New file.
43083         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43084         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43085         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43086         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43087         * modules/wcsrtombs: New file.
43088         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43089         bugs.
43090
43091 2008-12-21  Bruno Haible  <bruno@clisp.org>
43092
43093         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43094         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43095         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43096         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43097         if not correct.
43098         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43099         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43100         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43101         m4/locale-zh.m4, m4/codeset.m4.
43102         * doc/posix-functions/wcrtomb.texi: Document the bug.
43103
43104 2008-12-21  Bruno Haible  <bruno@clisp.org>
43105
43106         Work around a btowc() bug on IRIX 6.5.
43107         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43108         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43109         REPLACE_WTOBC if not.
43110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43111         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43112         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43113
43114 2008-12-21  Bruno Haible  <bruno@clisp.org>
43115
43116         * modules/wcrtomb-tests: New file.
43117         * tests/test-wcrtomb.sh: New file.
43118         * tests/test-wcrtomb.c: New file.
43119
43120         New module 'wcrtomb'.
43121         * lib/wchar.in.h (wcrtomb): New declaration.
43122         * lib/wcrtomb.c: New file.
43123         * m4/wcrtomb.m4: New file.
43124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43125         HAVE_WCRTOMB.
43126         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43127         HAVE_WCRTOMB.
43128         * modules/wcrtomb: New file.
43129         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43130
43131 2008-12-21  Bruno Haible  <bruno@clisp.org>
43132
43133         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43134         * modules/mbsrtowcs (Files): Likewise.
43135         * modules/wctob (Files): Likewise.
43136         * modules/c-strcase-tests (Files): Likewise.
43137         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43138         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43139         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43140         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43141         * modules/vasnprintf-posix-tests (Files): Likewise.
43142
43143 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43144
43145         gitlog-to-changelog: pass all command-line arguments to git-log
43146         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43147         it is sometimes convenient to filter the commits in various ways.
43148         gitlog-to-changelog only allows --since to specify a start date,
43149         but git-log itself supports many other filtering mechanisms.
43150         At the moment, I want to filter by branch name.  Rather than
43151         adding a --branch option to gitlog-to-changelog, it seems more
43152         flexible to simply pass all options directly to git-log and let
43153         git do the work.  Notice that this effectively makes --since a
43154         redundant option for gitlog-to-changelog, but removing it would
43155         require current usage to change since calls would then require
43156         an additional '--'.
43157
43158 2008-12-21  Bruno Haible  <bruno@clisp.org>
43159
43160         * modules/mbsnrtowcs-tests: New file.
43161         * tests/test-mbsnrtowcs1.sh: New file.
43162         * tests/test-mbsnrtowcs2.sh: New file.
43163         * tests/test-mbsnrtowcs3.sh: New file.
43164         * tests/test-mbsnrtowcs4.sh: New file.
43165         * tests/test-mbsnrtowcs.c: New file.
43166
43167         New module 'mbsnrtowcs'.
43168         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43169         * lib/mbsnrtowcs.c: New file.
43170         * lib/mbsrtowcs-state.c: New file.
43171         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43172         (internal_state): Remove variable.
43173         * m4/mbsnrtowcs.m4: New file.
43174         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43175         compilation units.
43176         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43177         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43178         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43179         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43180         * modules/mbsnrtowcs: New file.
43181         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43182         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43183         portability problem.
43184
43185 2008-12-21  Bruno Haible  <bruno@clisp.org>
43186
43187         Work around mbsrtowcs bug.
43188         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43189         (gl_FUNC_MBSRTOWCS): Invoke it.
43190         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43191         m4/locale-zh.m4.
43192         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43193
43194 2008-12-21  Bruno Haible  <bruno@clisp.org>
43195
43196         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43197
43198 2008-12-21  Bruno Haible  <bruno@clisp.org>
43199
43200         Update doc for AIX.
43201         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43202         16-bit wchar_t type.
43203         * doc/posix-functions/btowc.texi: Likewise.
43204         * doc/posix-functions/fgetwc.texi: Likewise.
43205         * doc/posix-functions/fgetws.texi: Likewise.
43206         * doc/posix-functions/fputwc.texi: Likewise.
43207         * doc/posix-functions/fputws.texi: Likewise.
43208         * doc/posix-functions/fwide.texi: Likewise.
43209         * doc/posix-functions/fwprintf.texi: Likewise.
43210         * doc/posix-functions/fwscanf.texi: Likewise.
43211         * doc/posix-functions/getwchar.texi: Likewise.
43212         * doc/posix-functions/getwc.texi: Likewise.
43213         * doc/posix-functions/iswalnum.texi: Likewise.
43214         * doc/posix-functions/iswalpha.texi: Likewise.
43215         * doc/posix-functions/iswblank.texi: Likewise.
43216         * doc/posix-functions/iswcntrl.texi: Likewise.
43217         * doc/posix-functions/iswctype.texi: Likewise.
43218         * doc/posix-functions/iswdigit.texi: Likewise.
43219         * doc/posix-functions/iswgraph.texi: Likewise.
43220         * doc/posix-functions/iswlower.texi: Likewise.
43221         * doc/posix-functions/iswprint.texi: Likewise.
43222         * doc/posix-functions/iswpunct.texi: Likewise.
43223         * doc/posix-functions/iswspace.texi: Likewise.
43224         * doc/posix-functions/iswupper.texi: Likewise.
43225         * doc/posix-functions/iswxdigit.texi: Likewise.
43226         * doc/posix-functions/mbrtowc.texi: Likewise.
43227         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43228         * doc/posix-functions/mbstowcs.texi: Likewise.
43229         * doc/posix-functions/mbtowc.texi: Likewise.
43230         * doc/posix-functions/putwchar.texi: Likewise.
43231         * doc/posix-functions/putwc.texi: Likewise.
43232         * doc/posix-functions/swprintf.texi: Likewise.
43233         * doc/posix-functions/tolower.texi: Likewise.
43234         * doc/posix-functions/toupper.texi: Likewise.
43235         * doc/posix-functions/towctrans.texi: Likewise.
43236         * doc/posix-functions/ungetwc.texi: Likewise.
43237         * doc/posix-functions/vswprintf.texi: Likewise.
43238         * doc/posix-functions/wcrtomb.texi: Likewise.
43239         * doc/posix-functions/wcscat.texi: Likewise.
43240         * doc/posix-functions/wcschr.texi: Likewise.
43241         * doc/posix-functions/wcscmp.texi: Likewise.
43242         * doc/posix-functions/wcscoll.texi: Likewise.
43243         * doc/posix-functions/wcscpy.texi: Likewise.
43244         * doc/posix-functions/wcscspn.texi: Likewise.
43245         * doc/posix-functions/wcsftime.texi: Likewise.
43246         * doc/posix-functions/wcslen.texi: Likewise.
43247         * doc/posix-functions/wcsncat.texi: Likewise.
43248         * doc/posix-functions/wcsncmp.texi: Likewise.
43249         * doc/posix-functions/wcsncpy.texi: Likewise.
43250         * doc/posix-functions/wcspbrk.texi: Likewise.
43251         * doc/posix-functions/wcsrchr.texi: Likewise.
43252         * doc/posix-functions/wcsrtombs.texi: Likewise.
43253         * doc/posix-functions/wcsspn.texi: Likewise.
43254         * doc/posix-functions/wcsstr.texi: Likewise.
43255         * doc/posix-functions/wcstod.texi: Likewise.
43256         * doc/posix-functions/wcstof.texi: Likewise.
43257         * doc/posix-functions/wcstoimax.texi: Likewise.
43258         * doc/posix-functions/wcstok.texi: Likewise.
43259         * doc/posix-functions/wcstold.texi: Likewise.
43260         * doc/posix-functions/wcstoll.texi: Likewise.
43261         * doc/posix-functions/wcstol.texi: Likewise.
43262         * doc/posix-functions/wcstombs.texi: Likewise.
43263         * doc/posix-functions/wcstoull.texi: Likewise.
43264         * doc/posix-functions/wcstoul.texi: Likewise.
43265         * doc/posix-functions/wcstoumax.texi: Likewise.
43266         * doc/posix-functions/wcswidth.texi: Likewise.
43267         * doc/posix-functions/wcsxfrm.texi: Likewise.
43268         * doc/posix-functions/wctob.texi: Likewise.
43269         * doc/posix-functions/wctomb.texi: Likewise.
43270         * doc/posix-functions/wctrans.texi: Likewise.
43271         * doc/posix-functions/wctype.texi: Likewise.
43272         * doc/posix-functions/wcwidth.texi: Likewise.
43273         * doc/posix-functions/wmemchr.texi: Likewise.
43274         * doc/posix-functions/wmemcmp.texi: Likewise.
43275         * doc/posix-functions/wmemcpy.texi: Likewise.
43276         * doc/posix-functions/wmemmove.texi: Likewise.
43277         * doc/posix-functions/wmemset.texi: Likewise.
43278         * doc/posix-functions/wprintf.texi: Likewise.
43279         * doc/posix-functions/wscanf.texi: Likewise.
43280
43281 2008-12-21  Bruno Haible  <bruno@clisp.org>
43282
43283         Update doc for HP-UX 11.11.
43284         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43285         in HP-UX version 11.00, not in all versions of HP-UX 11.
43286         * doc/posix-functions/fwide.texi: Likewise.
43287         * doc/posix-functions/fwprintf.texi: Likewise.
43288         * doc/posix-functions/fwscanf.texi: Likewise.
43289         * doc/posix-functions/inet_ntop.texi: Likewise.
43290         * doc/posix-functions/inet_pton.texi: Likewise.
43291         * doc/posix-functions/mbrlen.texi: Likewise.
43292         * doc/posix-functions/mbrtowc.texi: Likewise.
43293         * doc/posix-functions/mbsinit.texi: Likewise.
43294         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43295         * doc/posix-functions/swprintf.texi: Likewise.
43296         * doc/posix-functions/swscanf.texi: Likewise.
43297         * doc/posix-functions/towctrans.texi: Likewise.
43298         * doc/posix-functions/vfwprintf.texi: Likewise.
43299         * doc/posix-functions/vswprintf.texi: Likewise.
43300         * doc/posix-functions/vwprintf.texi: Likewise.
43301         * doc/posix-functions/wcrtomb.texi: Likewise.
43302         * doc/posix-functions/wcsrtombs.texi: Likewise.
43303         * doc/posix-functions/wcsstr.texi: Likewise.
43304         * doc/posix-functions/wctob.texi: Likewise.
43305         * doc/posix-functions/wctrans.texi: Likewise.
43306         * doc/posix-functions/wmemchr.texi: Likewise.
43307         * doc/posix-functions/wmemcmp.texi: Likewise.
43308         * doc/posix-functions/wmemcpy.texi: Likewise.
43309         * doc/posix-functions/wmemmove.texi: Likewise.
43310         * doc/posix-functions/wmemset.texi: Likewise.
43311         * doc/posix-functions/wprintf.texi: Likewise.
43312         * doc/posix-functions/wscanf.texi: Likewise.
43313
43314 2008-12-21  Bruno Haible  <bruno@clisp.org>
43315
43316         Work around a portability problem.
43317         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43318         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43319
43320 2008-12-20  Bruno Haible  <bruno@clisp.org>
43321
43322         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43323         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43324         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43326         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43327
43328         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43329         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43330         set.
43331         (GNULIB_defined_mbstate_t): New macro.
43332         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43333         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43334         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43335         reuses the system's mbrtowc function but works around the bugs.
43336         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43337         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43338         macros.
43339         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43340         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43341         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43342         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43343         REPLACE_MBSINIT if mbsinit needs to be overridden.
43344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43345         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43346         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43347         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43348         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43349         m4/locale-zh.m4.
43350         (Depends): Add mbsinit.
43351         * modules/mbsinit (Depends): Add mbrtowc.
43352         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43353
43354 2008-12-20  Bruno Haible  <bruno@clisp.org>
43355
43356         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43357         so that there are no conversion errors on AIX.
43358         * tests/test-mbsrtowcs.c (main): LIkewise.
43359
43360 2008-12-20  Bruno Haible  <bruno@clisp.org>
43361
43362         Work around wctob bug on Solaris <= 9.
43363         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43364         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43365         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43366         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43367         * modules/wctob (Files): Add m4/locale-fr.m4.
43368         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43369
43370 2008-12-20  Bruno Haible  <bruno@clisp.org>
43371
43372         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43373         /dev/null.
43374         * tests/test-select-in.sh: Likewise.
43375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43376
43377 2008-12-20  Bruno Haible  <bruno@clisp.org>
43378
43379         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43380         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43381         Cygwin 1.5.x.
43382
43383 2008-12-20  Bruno Haible  <bruno@clisp.org>
43384
43385         Ensure mbstate_t is defined on HP-UX 11.11.
43386         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43387         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43388         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43389         AC_USE_SYSTEM_EXTENSIONS.
43390         * modules/fnmatch (Depends-on): Add extensions.
43391         * modules/mbrlen (Depends-on): Likewise.
43392         * modules/mbrtowc (Depends-on): Likewise.
43393         * modules/mbsinit (Depends-on): Likewise.
43394         * modules/mbsrtowcs (Depends-on): Likewise.
43395         * modules/mbswidth (Depends-on): Likewise.
43396         * modules/quotearg (Depends-on): Likewise.
43397         * modules/strftime (Depends-on): Likewise.
43398
43399 2008-12-20  Bruno Haible  <bruno@clisp.org>
43400
43401         Ensure wctob is declared on IRIX 6.5.
43402         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43403         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43404         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43405         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43406         of HAVE_WCTOB.
43407         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43408         HAVE_WCTOB.
43409         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43410
43411 2008-12-19  Bruno Haible  <bruno@clisp.org>
43412
43413         * modules/mbsrtowcs-tests: New file.
43414         * tests/test-mbsrtowcs1.sh: New file.
43415         * tests/test-mbsrtowcs2.sh: New file.
43416         * tests/test-mbsrtowcs3.sh: New file.
43417         * tests/test-mbsrtowcs4.sh: New file.
43418         * tests/test-mbsrtowcs.c: New file.
43419
43420         New module 'mbsrtowcs'.
43421         * lib/wchar.in.h (mbsrtowcs): New declaration.
43422         * lib/mbsrtowcs.c: New file.
43423         * m4/mbsrtowcs.m4: New file.
43424         * modules/mbsrtowcs: New file.
43425         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43426         HAVE_MBSRTOWCS.
43427         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43428         HAVE_MBSRTOWCS.
43429         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43430
43431 2008-12-19  Bruno Haible  <bruno@clisp.org>
43432
43433         New module 'mbrlen'.
43434         * lib/wchar.in.h (mbrlen): New declaration.
43435         * lib/mbrlen.c: New file.
43436         * m4/mbrlen.m4: New file.
43437         * modules/mbrlen: New file.
43438         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43439         HAVE_MBRLEN.
43440         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43441         HAVE_MBRLEN.
43442         * doc/posix-functions/mbrlen.texi: Document the new module.
43443
43444 2008-12-19  Bruno Haible  <bruno@clisp.org>
43445
43446         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43447         * modules/mbrtowc (Depends-on): Add verify.
43448         Suggested by Paul Eggert.
43449
43450 2008-12-18  Bruno Haible  <bruno@clisp.org>
43451
43452         * modules/mbsinit-tests: New file.
43453         * tests/test-mbsinit.sh: New file.
43454         * tests/test-mbsinit.c: New file.
43455
43456 2008-12-18  Bruno Haible  <bruno@clisp.org>
43457
43458         * modules/mbrtowc-tests: New file.
43459         * tests/test-mbrtowc1.sh: New file.
43460         * tests/test-mbrtowc2.sh: New file.
43461         * tests/test-mbrtowc3.sh: New file.
43462         * tests/test-mbrtowc4.sh: New file.
43463         * tests/test-mbrtowc.c: New file.
43464
43465         New module 'mbrtowc'.
43466         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43467         mbsinit and mbrtowc.
43468         (mbrtowc): New declaration.
43469         * lib/mbrtowc.c: New file.
43470         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43471         * modules/mbrtowc: New file.
43472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43473         HAVE_MBRTOWC.
43474         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43475         HAVE_MBRTOWC.
43476         * doc/posix-functions/mbrtowc.texi: Document the new module.
43477
43478 2008-12-18  Bruno Haible  <bruno@clisp.org>
43479
43480         New module 'wctob'.
43481         * lib/wchar.in.h (wctob): New declaration.
43482         * lib/wctob.c: New file.
43483         * m4/wctob.m4: New file.
43484         * modules/wctob: New file.
43485         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43486         HAVE_WCTOB.
43487         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43488         * doc/posix-functions/wctob.texi: Document the new module.
43489
43490 2008-12-18  Bruno Haible  <bruno@clisp.org>
43491
43492         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43493         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43494
43495 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43496
43497         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43498         G. Christensen" <tgc@jupiterrise.com>.
43499
43500         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43501         G. Christensen" <tgc@jupiterrise.com>.
43502
43503         * lib/flock.c: Need to include string.h.  Reported by "Tom
43504         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43505         <ebb9@byu.net>.
43506
43507 2008-12-18  Bruno Haible  <bruno@clisp.org>
43508
43509         * m4/locale-ja.m4: New file, from GNU gettext.
43510
43511 2008-12-17  Bruno Haible  <bruno@clisp.org>
43512
43513         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43514         Suggested by Eric Blake.
43515
43516 2008-12-17  Bruno Haible  <bruno@clisp.org>
43517
43518         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43519
43520 2008-12-17  Bruno Haible  <bruno@clisp.org>
43521
43522         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43523         * modules/mbsinit (Depends-on): Add verify.
43524         Suggested by Paul Eggert.
43525
43526 2008-12-17  Bruno Haible  <bruno@clisp.org>
43527
43528         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43529         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43530         gl_FUNC_MBRTOWC.
43531         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43532         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43533         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43534         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43535         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43536         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43537         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43538         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43539         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43540         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43541         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43542         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43543         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43544         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43545         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43546         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43547         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43548         * modules/trim (configure.ac): Likewise.
43549
43550 2008-12-17  Bruno Haible  <bruno@clisp.org>
43551
43552         * modules/btowc-tests: New file.
43553         * tests/test-btowc1.sh: New file.
43554         * tests/test-btowc2.sh: New file.
43555         * tests/test-btowc.c: New file.
43556
43557         New module 'btowc'.
43558         * lib/wchar.in.h (btowc): New declaration.
43559         * lib/btowc.c: New file.
43560         * m4/btowc.m4: New file.
43561         * modules/btowc: New file.
43562         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43563         HAVE_BTOWC.
43564         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43565         * doc/posix-functions/btowc.texi: Document the new module.
43566
43567 2008-12-17  Bruno Haible  <bruno@clisp.org>
43568
43569         New module 'mbsinit'.
43570         * lib/wchar.in.h (mbsinit): New declaration.
43571         * lib/mbsinit.c: New file.
43572         * m4/mbsinit.m4: New file.
43573         * modules/mbsinit: New file.
43574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43575         HAVE_MBSINIT.
43576         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43577         HAVE_MBSINIT.
43578         * doc/posix-functions/mbsinit.texi: Document the new module.
43579
43580 2008-12-16  Bruno Haible  <bruno@clisp.org>
43581
43582         * lib/unistd.in.h: Add comment.
43583         * tests/test-environ.c: Don't include <stdlib.h>.
43584
43585 2008-12-16  Bruno Haible  <bruno@clisp.org>
43586
43587         * lib/parse-duration.h (parse_duration): Document return value
43588         convention.
43589         * lib/parse-duration.c: Include specification header first. Add
43590         comments.
43591         (_): Remove macro.
43592         (parse_year_month_day, parse_hour_minute_second): Move side effects
43593         outside of strchr call.
43594         (parse_non_iso8601): Move side effects outside of isspace call.
43595         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43596         call.
43597
43598 2008-12-16  Bruno Haible  <bruno@clisp.org>
43599
43600         * tests/test-parse-duration.sh: Produce no output when the test
43601         succeeds.
43602
43603 2008-12-16  Bruno Haible  <bruno@clisp.org>
43604
43605         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43606         expressions.
43607
43608 2008-12-15  Bruno Haible  <bruno@clisp.org>
43609
43610         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43611         * doc/glibc-functions/flistxattr.texi: Likewise.
43612         * doc/glibc-functions/fopencookie.texi: Likewise.
43613         * doc/glibc-functions/fremovexattr.texi: Likewise.
43614         * doc/glibc-functions/fsetxattr.texi: Likewise.
43615         * doc/glibc-functions/getxattr.texi: Likewise.
43616         * doc/glibc-functions/lgetxattr.texi: Likewise.
43617         * doc/glibc-functions/listxattr.texi: Likewise.
43618         * doc/glibc-functions/llistxattr.texi: Likewise.
43619         * doc/glibc-functions/lremovexattr.texi: Likewise.
43620         * doc/glibc-functions/lsetxattr.texi: Likewise.
43621         * doc/glibc-functions/removexattr.texi: Likewise.
43622         * doc/glibc-functions/setxattr.texi: Likewise.
43623         * doc/posix-functions/open_memstream.texi: Likewise.
43624
43625 2008-12-15  Eric Blake  <ebb9@byu.net>
43626
43627         Update doc for cygwin 1.7.
43628         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43629         functions.
43630         * doc/posix-functions/fchmodat.texi: Likewise.
43631         * doc/posix-functions/fchownat.texi: Likewise.
43632         * doc/posix-functions/fdopendir.texi: Likewise.
43633         * doc/posix-functions/fmemopen.texi: Likewise.
43634         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43635         * doc/posix-functions/fstatat.texi: Likewise.
43636         * doc/posix-functions/futimens.texi: Likewise.
43637         * doc/posix-functions/gai_strerror.texi: Likewise.
43638         * doc/posix-functions/getaddrinfo.texi: Likewise.
43639         * doc/posix-functions/getnameinfo.texi: Likewise.
43640         * doc/posix-functions/if_freenameindex.texi: Likewise.
43641         * doc/posix-functions/if_indextoname.texi: Likewise.
43642         * doc/posix-functions/if_nameindex.texi: Likewise.
43643         * doc/posix-functions/if_nametoindex.texi: Likewise.
43644         * doc/posix-functions/insque.texi: Likewise.
43645         * doc/posix-functions/linkat.texi: Likewise.
43646         * doc/posix-functions/llrint.texi: Likewise.
43647         * doc/posix-functions/llrintf.texi: Likewise.
43648         * doc/posix-functions/llrintl.texi: Likewise.
43649         * doc/posix-functions/lockf.texi: Likewise.
43650         * doc/posix-functions/lrintl.texi: Likewise.
43651         * doc/posix-functions/mkdirat.texi: Likewise.
43652         * doc/posix-functions/mkfifoat.texi: Likewise.
43653         * doc/posix-functions/mknodat.texi: Likewise.
43654         * doc/posix-functions/mq_close.texi: Likewise.
43655         * doc/posix-functions/mq_getattr.texi: Likewise.
43656         * doc/posix-functions/mq_notify.texi: Likewise.
43657         * doc/posix-functions/mq_open.texi: Likewise.
43658         * doc/posix-functions/mq_receive.texi: Likewise.
43659         * doc/posix-functions/mq_send.texi: Likewise.
43660         * doc/posix-functions/mq_setattr.texi: Likewise.
43661         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43662         * doc/posix-functions/mq_timedsend.texi: Likewise.
43663         * doc/posix-functions/mq_unlink.texi: Likewise.
43664         * doc/posix-functions/open_memstream.texi: Likewise.
43665         * doc/posix-functions/openat.texi: Likewise.
43666         * doc/posix-functions/posix_fadvise.texi: Likewise.
43667         * doc/posix-functions/posix_fallocate.texi: Likewise.
43668         * doc/posix-functions/posix_madvise.texi: Likewise.
43669         * doc/posix-functions/posix_memalign.texi: Likewise.
43670         * doc/posix-functions/posix_openpt.texi: Likewise.
43671         * doc/posix-functions/readlinkat.texi: Likewise.
43672         * doc/posix-functions/remque.texi: Likewise.
43673         * doc/posix-functions/renameat.texi: Likewise.
43674         * doc/posix-functions/rintl.texi: Likewise.
43675         * doc/posix-functions/sem_unlink.texi: Likewise.
43676         * doc/posix-functions/shm_open.texi: Likewise.
43677         * doc/posix-functions/shm_unlink.texi: Likewise.
43678         * doc/posix-functions/signgam.texi: Likewise.
43679         * doc/posix-functions/sigset.texi: Likewise.
43680         * doc/posix-functions/stpcpy.texi: Likewise.
43681         * doc/posix-functions/stpncpy.texi: Likewise.
43682         * doc/posix-functions/strerror.texi: Likewise.
43683         * doc/posix-functions/strtod.texi: Likewise.
43684         * doc/posix-functions/symlinkat.texi: Likewise.
43685         * doc/posix-functions/unlinkat.texi: Likewise.
43686         * doc/posix-functions/utimensat.texi: Likewise.
43687         * doc/glibc-functions/bindresvport.texi: Likewise.
43688         * doc/glibc-functions/dn_expand.texi: Likewise.
43689         * doc/glibc-functions/exp10.texi: Likewise.
43690         * doc/glibc-functions/exp10f.texi: Likewise.
43691         * doc/glibc-functions/fgetxattr.texi: Likewise.
43692         * doc/glibc-functions/flistxattr.texi: Likewise.
43693         * doc/glibc-functions/fopencookie.texi: Likewise.
43694         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43695         * doc/glibc-functions/fremovexattr.texi: Likewise.
43696         * doc/glibc-functions/fsetxattr.texi: Likewise.
43697         * doc/glibc-functions/getifaddrs.texi: Likewise.
43698         * doc/glibc-functions/getxattr.texi: Likewise.
43699         * doc/glibc-functions/lgetxattr.texi: Likewise.
43700         * doc/glibc-functions/listxattr.texi: Likewise.
43701         * doc/glibc-functions/llistxattr.texi: Likewise.
43702         * doc/glibc-functions/lremovexattr.texi: Likewise.
43703         * doc/glibc-functions/lsetxattr.texi: Likewise.
43704         * doc/glibc-functions/pow10.texi: Likewise.
43705         * doc/glibc-functions/pow10f.texi: Likewise.
43706         * doc/glibc-functions/rcmd_af.texi: Likewise.
43707         * doc/glibc-functions/removexattr.texi: Likewise.
43708         * doc/glibc-functions/res_init.texi: Likewise.
43709         * doc/glibc-functions/res_mkquery.texi: Likewise.
43710         * doc/glibc-functions/res_query.texi: Likewise.
43711         * doc/glibc-functions/res_querydomain.texi: Likewise.
43712         * doc/glibc-functions/res_send.texi: Likewise.
43713         * doc/glibc-functions/rresvport_af.texi: Likewise.
43714         * doc/glibc-functions/setxattr.texi: Likewise.
43715         * doc/glibc-functions/strcasestr.texi: Likewise.
43716
43717 2008-12-15  Bruno Haible  <bruno@clisp.org>
43718
43719         Fix compilation error on OSF/1 4.0.
43720         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43721         <sys/time.h>, simply delegate to the system header.
43722         Reported by Daniel Richard G. <oss@teragram.com>.
43723
43724 2008-12-15  Bruno Haible  <bruno@clisp.org>
43725
43726         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43727         * doc/posix-functions/fchmodat.texi: Likewise.
43728         * doc/posix-functions/fchownat.texi: Likewise.
43729         * doc/posix-functions/fdopendir.texi: Likewise.
43730         * doc/posix-functions/fstatat.texi: Likewise.
43731         * doc/posix-functions/mkdirat.texi: Likewise.
43732         * doc/posix-functions/unlinkat.texi: Likewise.
43733
43734 2008-12-14  Bruno Haible  <bruno@clisp.org>
43735
43736         Update doc for POSIX:2008.
43737         * doc/posix-functions/faccessat.texi: New file.
43738         * doc/posix-functions/fchmodat.texi: New file.
43739         * doc/posix-functions/fchownat.texi: New file.
43740         * doc/posix-functions/fdopendir.texi: New file.
43741         * doc/posix-functions/fstatat.texi: New file.
43742         * doc/posix-functions/futimens.texi: New file.
43743         * doc/posix-functions/linkat.texi: New file.
43744         * doc/posix-functions/mkdirat.texi: New file.
43745         * doc/posix-functions/mkfifoat.texi: New file.
43746         * doc/posix-functions/mknodat.texi: New file.
43747         * doc/posix-functions/open_wmemstream.texi: New file.
43748         * doc/posix-functions/openat.texi: New file.
43749         * doc/posix-functions/psiginfo.texi: New file.
43750         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43751         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43752         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43753         * doc/posix-functions/readlinkat.texi: New file.
43754         * doc/posix-functions/renameat.texi: New file.
43755         * doc/posix-functions/strerror_l.texi: New file.
43756         * doc/posix-functions/symlinkat.texi: New file.
43757         * doc/posix-functions/unlinkat.texi: New file.
43758         * doc/posix-functions/utimensat.texi: New file.
43759         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43760
43761 2008-12-14  Bruno Haible  <bruno@clisp.org>
43762
43763         Update doc for POSIX:2008.
43764         * doc/posix-functions/alphasort.texi: Renamed from
43765         doc/glibc-functions/alphasort.texi.
43766         * doc/posix-functions/dirfd.texi: Renamed from
43767         doc/glibc-functions/dirfd.texi.
43768         * doc/posix-functions/dprintf.texi: Renamed from
43769         doc/glibc-functions/dprintf.texi.
43770         * doc/posix-functions/duplocale.texi: Renamed from
43771         doc/glibc-functions/duplocale.texi.
43772         * doc/posix-functions/fexecve.texi: Renamed from
43773         doc/glibc-functions/fexecve.texi.
43774         * doc/posix-functions/fmemopen.texi: Renamed from
43775         doc/glibc-functions/fmemopen.texi.
43776         * doc/posix-functions/freelocale.texi: Renamed from
43777         doc/glibc-functions/freelocale.texi.
43778         * doc/posix-functions/getdate_err.texi: Renamed from
43779         doc/glibc-functions/getdate_err.texi.
43780         * doc/posix-functions/isalnum_l.texi: Renamed from
43781         doc/glibc-functions/isalnum_l.texi.
43782         * doc/posix-functions/isalpha_l.texi: Renamed from
43783         doc/glibc-functions/isalpha_l.texi.
43784         * doc/posix-functions/isblank_l.texi: Renamed from
43785         doc/glibc-functions/isblank_l.texi.
43786         * doc/posix-functions/iscntrl_l.texi: Renamed from
43787         doc/glibc-functions/iscntrl_l.texi.
43788         * doc/posix-functions/isdigit_l.texi: Renamed from
43789         doc/glibc-functions/isdigit_l.texi.
43790         * doc/posix-functions/isgraph_l.texi: Renamed from
43791         doc/glibc-functions/isgraph_l.texi.
43792         * doc/posix-functions/islower_l.texi: Renamed from
43793         doc/glibc-functions/islower_l.texi.
43794         * doc/posix-functions/isprint_l.texi: Renamed from
43795         doc/glibc-functions/isprint_l.texi.
43796         * doc/posix-functions/ispunct_l.texi: Renamed from
43797         doc/glibc-functions/ispunct_l.texi.
43798         * doc/posix-functions/isspace_l.texi: Renamed from
43799         doc/glibc-functions/isspace_l.texi.
43800         * doc/posix-functions/isupper_l.texi: Renamed from
43801         doc/glibc-functions/isupper_l.texi.
43802         * doc/posix-functions/iswalnum_l.texi: Renamed from
43803         doc/glibc-functions/iswalnum_l.texi.
43804         * doc/posix-functions/iswalpha_l.texi: Renamed from
43805         doc/glibc-functions/iswalpha_l.texi.
43806         * doc/posix-functions/iswblank_l.texi: Renamed from
43807         doc/glibc-functions/iswblank_l.texi.
43808         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43809         doc/glibc-functions/iswcntrl_l.texi.
43810         * doc/posix-functions/iswctype_l.texi: Renamed from
43811         doc/glibc-functions/iswctype_l.texi.
43812         * doc/posix-functions/iswdigit_l.texi: Renamed from
43813         doc/glibc-functions/iswdigit_l.texi.
43814         * doc/posix-functions/iswgraph_l.texi: Renamed from
43815         doc/glibc-functions/iswgraph_l.texi.
43816         * doc/posix-functions/iswlower_l.texi: Renamed from
43817         doc/glibc-functions/iswlower_l.texi.
43818         * doc/posix-functions/iswprint_l.texi: Renamed from
43819         doc/glibc-functions/iswprint_l.texi.
43820         * doc/posix-functions/iswpunct_l.texi: Renamed from
43821         doc/glibc-functions/iswpunct_l.texi.
43822         * doc/posix-functions/iswspace_l.texi: Renamed from
43823         doc/glibc-functions/iswspace_l.texi.
43824         * doc/posix-functions/iswupper_l.texi: Renamed from
43825         doc/glibc-functions/iswupper_l.texi.
43826         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43827         doc/glibc-functions/iswxdigit_l.texi.
43828         * doc/posix-functions/isxdigit_l.texi: Renamed from
43829         doc/glibc-functions/isxdigit_l.texi.
43830         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43831         doc/glibc-functions/mbsnrtowcs.texi.
43832         * doc/posix-functions/mkdtemp.texi: Renamed from
43833         doc/glibc-functions/mkdtemp.texi.
43834         * doc/posix-functions/newlocale.texi: Renamed from
43835         doc/glibc-functions/newlocale.texi.
43836         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43837         doc/glibc-functions/nl_langinfo_l.texi.
43838         * doc/posix-functions/open_memstream.texi: Renamed from
43839         doc/glibc-functions/open_memstream.texi.
43840         * doc/posix-functions/opterr.texi: Renamed from
43841         doc/glibc-functions/opterr.texi.
43842         * doc/posix-functions/optind.texi: Renamed from
43843         doc/glibc-functions/optind.texi.
43844         * doc/posix-functions/optopt.texi: Renamed from
43845         doc/glibc-functions/optopt.texi.
43846         * doc/posix-functions/psignal.texi: Renamed from
43847         doc/glibc-functions/psignal.texi.
43848         * doc/posix-functions/scandir.texi: Renamed from
43849         doc/glibc-functions/scandir.texi.
43850         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43851         doc/glibc-functions/sched_get_priority_min.texi.
43852         * doc/posix-functions/signgam.texi: Renamed from
43853         doc/glibc-functions/signgam.texi.
43854         * doc/posix-functions/stpcpy.texi: Renamed from
43855         doc/glibc-functions/stpcpy.texi.
43856         * doc/posix-functions/stpncpy.texi: Renamed from
43857         doc/glibc-functions/stpncpy.texi.
43858         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43859         doc/glibc-functions/strcasecmp_l.texi.
43860         * doc/posix-functions/strcoll_l.texi: Renamed from
43861         doc/glibc-functions/strcoll_l.texi.
43862         * doc/posix-functions/strfmon_l.texi: Renamed from
43863         doc/glibc-functions/strfmon_l.texi.
43864         * doc/posix-functions/strftime_l.texi: Renamed from
43865         doc/glibc-functions/strftime_l.texi.
43866         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43867         doc/glibc-functions/strncasecmp_l.texi.
43868         * doc/posix-functions/strndup.texi: Renamed from
43869         doc/glibc-functions/strndup.texi.
43870         * doc/posix-functions/strnlen.texi: Renamed from
43871         doc/glibc-functions/strnlen.texi.
43872         * doc/posix-functions/strsignal.texi: Renamed from
43873         doc/glibc-functions/strsignal.texi.
43874         * doc/posix-functions/strxfrm_l.texi: Renamed from
43875         doc/glibc-functions/strxfrm_l.texi.
43876         * doc/posix-functions/timer_gettime.texi: Renamed from
43877         doc/glibc-functions/timer_gettime.texi.
43878         * doc/posix-functions/tolower_l.texi: Renamed from
43879         doc/glibc-functions/tolower_l.texi.
43880         * doc/posix-functions/toupper_l.texi: Renamed from
43881         doc/glibc-functions/toupper_l.texi.
43882         * doc/posix-functions/towctrans_l.texi: Renamed from
43883         doc/glibc-functions/towctrans_l.texi.
43884         * doc/posix-functions/towlower_l.texi: Renamed from
43885         doc/glibc-functions/towlower_l.texi.
43886         * doc/posix-functions/towupper_l.texi: Renamed from
43887         doc/glibc-functions/towupper_l.texi.
43888         * doc/posix-functions/uselocale.texi: Renamed from
43889         doc/glibc-functions/uselocale.texi.
43890         * doc/posix-functions/vdprintf.texi: Renamed from
43891         doc/glibc-functions/vdprintf.texi.
43892         * doc/posix-functions/wcpcpy.texi:
43893         Renamed from doc/glibc-functions/wcpcpy.texi.
43894         * doc/posix-functions/wcpncpy.texi: Renamed from
43895         doc/glibc-functions/wcpncpy.texi.
43896         * doc/posix-functions/wcscasecmp.texi: Renamed from
43897         doc/glibc-functions/wcscasecmp.texi.
43898         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43899         doc/glibc-functions/wcscasecmp_l.texi.
43900         * doc/posix-functions/wcscoll_l.texi: Renamed from
43901         doc/glibc-functions/wcscoll_l.texi.
43902         * doc/posix-functions/wcsdup.texi: Renamed from
43903         doc/glibc-functions/wcsdup.texi.
43904         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43905         doc/glibc-functions/wcsncasecmp.texi.
43906         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43907         doc/glibc-functions/wcsncasecmp_l.texi.
43908         * doc/posix-functions/wcsnlen.texi: Renamed from
43909         doc/glibc-functions/wcsnlen.texi.
43910         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43911         doc/glibc-functions/wcsnrtombs.texi.
43912         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43913         doc/glibc-functions/wcsxfrm_l.texi.
43914         * doc/posix-functions/wctrans_l.texi: Renamed from
43915         doc/glibc-functions/wctrans_l.texi.
43916         * doc/posix-functions/wctype_l.texi: Renamed from
43917         doc/glibc-functions/wctype_l.texi.
43918         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43919         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43920         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43921         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43922         these subsections.
43923         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43924         Remove sections.
43925
43926 2008-12-14  Bruno Haible  <bruno@clisp.org>
43927
43928         Update doc for POSIX:2008.
43929         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43930
43931 2008-12-14  Bruno Haible  <bruno@clisp.org>
43932
43933         Update doc for POSIX:2008.
43934         * doc/pastposix-functions/bcmp.texi: Renamed from
43935         doc/posix-functions/bcmp.texi.
43936         * doc/pastposix-functions/bcopy.texi: Renamed from
43937         doc/posix-functions/bcopy.texi.
43938         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43939         doc/posix-functions/bsd_signal.texi.
43940         * doc/pastposix-functions/bzero.texi: Renamed from
43941         doc/posix-functions/bzero.texi.
43942         * doc/pastposix-functions/ecvt.texi: Renamed from
43943         doc/posix-functions/ecvt.texi.
43944         * doc/pastposix-functions/fcvt.texi: Renamed from
43945         doc/posix-functions/fcvt.texi.
43946         * doc/pastposix-functions/ftime.texi: Renamed from
43947         doc/posix-functions/ftime.texi.
43948         * doc/pastposix-functions/gcvt.texi: Renamed from
43949         doc/posix-functions/gcvt.texi.
43950         * doc/pastposix-functions/getcontext.texi: Renamed from
43951         doc/posix-functions/getcontext.texi.
43952         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43953         doc/posix-functions/gethostbyaddr.texi.
43954         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43955         doc/posix-functions/gethostbyname.texi.
43956         * doc/pastposix-functions/getwd.texi: Renamed from
43957         doc/posix-functions/getwd.texi.
43958         * doc/pastposix-functions/h_errno.texi: Renamed from
43959         doc/posix-functions/h_errno.texi.
43960         * doc/pastposix-functions/index.texi: Renamed from
43961         doc/posix-functions/index.texi.
43962         * doc/pastposix-functions/makecontext.texi: Renamed from
43963         doc/posix-functions/makecontext.texi.
43964         * doc/pastposix-functions/mktemp.texi: Renamed from
43965         doc/posix-functions/mktemp.texi.
43966         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43967         doc/posix-functions/pthread_attr_getstackaddr.texi.
43968         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43969         doc/posix-functions/pthread_attr_setstackaddr.texi.
43970         * doc/pastposix-functions/rindex.texi: Renamed from
43971         doc/posix-functions/rindex.texi.
43972         * doc/pastposix-functions/scalb.texi: Renamed from
43973         doc/posix-functions/scalb.texi.
43974         * doc/pastposix-functions/setcontext.texi: Renamed from
43975         doc/posix-functions/setcontext.texi.
43976         * doc/pastposix-functions/swapcontext.texi: Renamed from
43977         doc/posix-functions/swapcontext.texi.
43978         * doc/pastposix-functions/ualarm.texi: Renamed from
43979         doc/posix-functions/ualarm.texi.
43980         * doc/pastposix-functions/usleep.texi: Renamed from
43981         doc/posix-functions/usleep.texi.
43982         * doc/pastposix-functions/vfork.texi: Renamed from
43983         doc/posix-functions/vfork.texi.
43984         * doc/pastposix-functions/wcswcs.texi: Renamed from
43985         doc/posix-functions/wcswcs.texi.
43986         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43987         (Function Substitutes): Update.
43988
43989 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43990
43991         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43992         m4/strerror.m4.
43993
43994 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43995             Bruno Haible  <bruno@clisp.org>
43996
43997         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43998
43999 2008-12-13  Bruno Haible  <bruno@clisp.org>
44000
44001         * modules/strtoull (Depends-on): Remove unistd.
44002
44003 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44004
44005         * modules/strtoull (Depends-on): Add stdlib.
44006
44007 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44008
44009         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44010
44011 2008-12-10  Jim Meyering  <meyering@redhat.com>
44012
44013         gl_ASSERT: don't say assertions are disabled when they're not
44014         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44015         "checking whether to enable assertions... no", when they are in
44016         fact enabled.  This is solely a bug in the output of configure.
44017         In spite of saying "no", NDEBUG was not defined in that case.
44018         Also, as noted by Eric Blake, leave assertions enabled upon
44019         --enable-assert=INVALID.
44020
44021 2008-12-10  Bruno Haible  <bruno@clisp.org>
44022
44023         Change MODULES.html to refer to POSIX:2008 where possible.
44024         * MODULES.html.sh (POSIX2008_URL): New variable.
44025         (posix_headers): Remove sys/timeb, ucontext.
44026         (posix2001_headers): New variable.
44027         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44028         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44029         index, makecontext, mktemp, pthread_attr_getstackaddr,
44030         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44031         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44032         (posix2001_functions): New variable.
44033         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44034         otherwise.
44035
44036 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44037
44038         add missing include to parse-duration.c
44039         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44040         * modules/parse-duration (Depends-on): Add xalloc.
44041
44042         fix sed script reading maint.mk
44043         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44044         (syntax-check-rules): Use it.
44045
44046 2008-12-09  Bruno Haible  <bruno@clisp.org>
44047
44048         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44049         MacOS X 10.4/PowerPC.
44050         Reported by Simon Josefsson.
44051
44052 2008-12-08  Jim Meyering  <meyering@redhat.com>
44053
44054         work around mingw's lack of some S_IF definitions
44055         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44056         Reported by Simon Josefsson.
44057
44058 2008-12-08  Bruno Haible  <bruno@clisp.org>
44059
44060         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44061         applied to variables. Needed on MacOS X 10.4/PowerPC.
44062         Reported by Simon Josefsson.
44063
44064 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44065         and Eric Blake  <ebb9@byu.net>
44066
44067         assert: honor --enable-assert
44068         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44069         order to honor --enable-assert, rather than treating it as a
44070         synonym for --disable-assert.
44071
44072 2008-12-08  Jim Meyering  <meyering@redhat.com>
44073
44074         * lib/posixtm.c: Remove now-useless declaration of mktime.
44075
44076         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44077
44078 2008-12-07  Bruno Haible  <bruno@clisp.org>
44079
44080         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44081         test_once): Mark functions as static.
44082         * tests/test-tls.c (test_tls): Likewise.
44083
44084 2008-12-07  Bruno Haible  <bruno@clisp.org>
44085
44086         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44087         iconv_register_autodetect.
44088
44089 2008-12-07  Jim Meyering  <meyering@redhat.com>
44090
44091         posixtm.c: avoid a warning
44092         * lib/posixtm.c (posixtime): Don't initialize tm0.
44093         It's no longer needed to placate gcc4's -Wuninitialized,
44094         and the attempt to placate would elicit a new warning.
44095
44096         unicodeio.c: mark unused parameters
44097         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44098         (fallback_failure_callback): Likewise.
44099
44100 2008-12-07  Bruno Haible  <bruno@clisp.org>
44101
44102         * gnulib-tool (func_create_testdir): When building the tests
44103         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44104         Reported by Simon Josefsson.
44105
44106 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44107
44108         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44109
44110 2008-12-06  Bruno Haible  <bruno@clisp.org>
44111
44112         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44113         Suggested by Eric Blake.
44114
44115 2008-12-06  Bruno Haible  <bruno@clisp.org>
44116
44117         Fix a c-stack test failure on MacOS X.
44118         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44119         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44120         handler for SIGBUS as well.
44121         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44122         install a signal handler for SIGBUS as well.
44123         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44124
44125 2008-12-06  Bruno Haible  <bruno@clisp.org>
44126
44127         Advocacy documentation.
44128         * doc/gnulib-intro.texi (Benefits): New section.
44129         * doc/gnulib.texi: Update.
44130
44131 2008-12-06  Bruno Haible  <bruno@clisp.org>
44132
44133         Document the 'manywarnings' module.
44134         * doc/manywarnings.texi: New file.
44135         * doc/gnulib.texi: Include it.
44136
44137 2008-12-05  Eric Blake  <ebb9@byu.net>
44138
44139         tests: silence some gcc warnings
44140         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44141         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44142         type mismatches.
44143
44144 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44145             Bruno Haible  <bruno@clisp.org>
44146
44147         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44148
44149 2008-11-29  Jim Meyering  <meyering@redhat.com>
44150
44151         unicodeio.c: mark unused parameters
44152         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44153         (fallback_failure_callback): Likewise.
44154
44155         fts: fix a thinko
44156         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44157         (set_stat_type): Return S_IF*-valued "type" directly.
44158         Prompted by James Youngman's spotting a related bug.
44159         Confirmed by further testing through find.
44160
44161         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44162         * lib/fts.c (D_TYPE): Define.
44163         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44164         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44165         (s_ifmt_shift_bits): New function.
44166         (set_stat_type): New function.
44167         (fts_build): When not calling fts_stat, call set_stat_type
44168         to propagate dirent.d_type info to fts_read caller.
44169         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44170         fts_statp->st_mode type information may be valid.
44171
44172 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44173
44174         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44175         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44176         <sds@gnu.org>.
44177
44178 2008-11-20  Bruno Haible  <bruno@clisp.org>
44179
44180         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44181         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44182         INCLUDE_NEXT.
44183         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44184         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44185         * modules/math (Makefile.am): Substitute
44186         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44187         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44188
44189 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44190             Bruno Haible  <bruno@clisp.org>
44191
44192         * lib/stdint.in.h: Define all type macros so that their expansion is
44193         a single typedef'ed token. Fixes a compilation failure in Boost which
44194         does "using ::int8_t;".
44195
44196 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44197
44198         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44199         gl_MANYWARN_ALL_GCC.
44200         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44201         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44202         * modules/manywarnings: New file.
44203         * MODULES.html.sh: Mention manywarnings module.
44204
44205 2008-11-18  Bruno Haible  <bruno@clisp.org>
44206
44207         * doc/gnulib-tool.texi (Unit tests): New section.
44208
44209 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44210
44211         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44212         paths like 'lib/po/foo.po'.
44213
44214 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44215
44216         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44217         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44218
44219 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44220
44221         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44222         parameter works.
44223
44224 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44225
44226         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44227
44228 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44229
44230         * modules/parse-duration-tests: New file.
44231         * tests/test-parse-duration.sh: New file.
44232         * tests/test-parse-duration.c: New file.
44233
44234         New module 'parse-duration'.
44235         * lib/parse-duration.h: New file.
44236         * lib/parse-duration.c: New file.
44237         * modules/parse-duration: New file.
44238
44239 2008-11-17  Bruno Haible  <bruno@clisp.org>
44240
44241         * tests/test-select-out.sh: Comment out the first pipe test.
44242         Reported by Simon Josefsson.
44243
44244 2008-11-17  Bruno Haible  <bruno@clisp.org>
44245
44246         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44248         gl_HOSTENT.
44249
44250 2008-11-17  Bruno Haible  <bruno@clisp.org>
44251
44252         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44253         -lnetwork and -lnet. Needed for Haiku and BeOS.
44254
44255 2008-11-16  Bruno Haible  <bruno@clisp.org>
44256
44257         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44258
44259 2008-11-16  Bruno Haible  <bruno@clisp.org>
44260
44261         Avoid test failure on Haiku.
44262         * tests/test-fsync.c: Include <errno.h>.
44263         (main): Don't require that fsync (0) fails.
44264
44265 2008-11-15  Bruno Haible  <bruno@clisp.org>
44266
44267         New module 'hostent'.
44268         * modules/hostent: New file.
44269         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44270
44271 2008-11-15  Bruno Haible  <bruno@clisp.org>
44272
44273         New module 'servent'.
44274         * modules/servent: New file.
44275         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44276
44277 2008-11-15  Bruno Haible  <bruno@clisp.org>
44278
44279         Avoid generating same test program with two different rules.
44280         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44281         test-frexp to test-frexp-nolibm.
44282         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44283         test-frexpl to test-frexpl-nolibm.
44284
44285 2008-11-15  Bruno Haible  <bruno@clisp.org>
44286
44287         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44288         $(FREXPL_LIBM).
44289
44290 2008-11-15  Bruno Haible  <bruno@clisp.org>
44291
44292         * lib/netdb.in.h: Activate the definitions also when the system's
44293         <netdb.h> has 'struct addrinfo'.
44294         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44295         EAI_OVERFLOW or AI_NUMERICSERV.
44296         * doc/posix-headers/netdb.texi: Document the problem.
44297
44298 2008-11-15  Bruno Haible  <bruno@clisp.org>
44299
44300         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44301
44302         Make the 'sched' module work on platforms where <sched.h> exists but
44303         is incomplete (such as Haiku).
44304         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44305         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44306         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44307         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44308         HAVE_STRUCT_SCHED_PARAM.
44309         * modules/sched (Depends-on): Add include_next.
44310         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44311         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44312         * doc/posix-headers/sched.texi: Document the issue.
44313
44314 2008-11-13  Jim Meyering  <meyering@redhat.com>
44315
44316         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44317         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44318         test would fail due to the difference in the Report bugs to ...
44319         line.  The expected address is empty, "<>", while the actual
44320         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44321
44322 2008-11-12  Bruno Haible  <bruno@clisp.org>
44323
44324         lstat: don't compile lstat.c on systems lacking lstat
44325         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44326         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44327         Reported by Daniel P. Berrange via Jim Meyering.
44328
44329 2008-11-12  Jim Meyering  <meyering@redhat.com>
44330
44331         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44332
44333 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44334
44335         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44336         instead.
44337
44338 2008-11-12  Bruno Haible  <bruno@clisp.org>
44339
44340         * lib/unicodeio.c: Include unistr.h.
44341         (utf8_wctomb): Remove function.
44342         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44343
44344 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44345
44346         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44347         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44348         <bruno@clisp.org>.
44349         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44350
44351 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44352
44353         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44354         * doc/gnulib.texi: Add section for warnings.
44355
44356 2008-11-11  Bruno Haible  <bruno@clisp.org>
44357
44358         * lib/sockets.h: Add a comment.
44359
44360 2008-11-11  Karl Berry  <karl@gnu.org>
44361
44362         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44363
44364 2008-11-11  Eric Blake  <ebb9@byu.net>
44365
44366         fdl.texi: avoid git symlinks
44367         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44368
44369 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44370
44371         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44372
44373 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44374
44375         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44376         (gl_WARN_ADD): Substitute $2 if literal.
44377
44378 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44379
44380         * m4/warning.m4: Remove.
44381
44382 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44383
44384         * m4/warnings.m4: Almost complete rewrite. :-)
44385
44386 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44387
44388         * modules/warnings: New module.
44389         * m4/warnings.m4: New file.
44390         * MODULES.html.sh: Mention warnings module.
44391         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44392         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44393
44394 2008-11-10  Eric Blake  <ebb9@byu.net>
44395
44396         fdl.texi: make a symlink to the latest version
44397         * doc/standards.texi: Revert today's earlier change.
44398         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44399         * doc/fdl.texi: ...and replace this with a symlink to the newer
44400         fdl-1.3.texi.
44401
44402 2008-11-10  Bruno Haible  <bruno@clisp.org>
44403
44404         * tests/test-select-fd.c (main): Accept the result file name as fourth
44405         argument.
44406         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44407         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44408
44409 2008-11-10  Bruno Haible  <bruno@clisp.org>
44410
44411         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44412         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44413         as autoconf-substituted macros.
44414         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44415         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44416         gl_NETDB_H_DEFAULTS. Set these variables.
44417         * modules/netdb (Makefile.am): Substitute these variables.
44418
44419 2008-11-10  Eric Blake  <ebb9@byu.net>
44420
44421         standards.texi: include correct file for FDL 1.3
44422         * doc/standards.texi (GNU Free Documentation License): Change
44423         include file to pull in FDL 1.3, not 1.2.
44424
44425         fdl.texi: revert accidental change to license
44426         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44427
44428 2008-11-10  Bruno Haible  <bruno@clisp.org>
44429
44430         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44431         cross-compiling guesses also when the native compile gives no result.
44432
44433 2008-11-10  Bruno Haible  <bruno@clisp.org>
44434
44435         * lib/spawni.c (__spawni): Force variable into the stack.
44436
44437 2008-11-10  Bruno Haible  <bruno@clisp.org>
44438
44439         Add support for Haiku.
44440         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44441         glibc and BeOS, but also on Haiku.
44442         * lib/fpurge.c (fpurge): Likewise.
44443         * lib/freadable.c (freadable): Likewise.
44444         * lib/freadahead.c (freadahead): Likewise.
44445         * lib/freading.c (freading): Likewise.
44446         * lib/freadptr.c (freadptr): Likewise.
44447         * lib/freadseek.c (freadptrinc): Likewise.
44448         * lib/fseeko.c (rpl_fseeko): Likewise.
44449         * lib/fseterr.c (fseterr): Likewise.
44450         * lib/fwritable.c (fwritable): Likewise.
44451         * lib/fwriting.c (fwriting): Likewise.
44452         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44453
44454 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44455
44456         * lib/config.charset: Treat Haiku like BeOS.
44457
44458 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44459
44460         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44461         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44462
44463 2008-11-08  Bruno Haible  <bruno@clisp.org>
44464
44465         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44466         AC_CACHE_CHECK.
44467
44468 2008-11-08  Bruno Haible  <bruno@clisp.org>
44469
44470         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44471
44472 2008-11-08  Bruno Haible  <bruno@clisp.org>
44473
44474         * tests/test-select-fd.c: New file.
44475         * tests/test-select-in.sh: New file.
44476         * tests/test-select-out.sh: New file.
44477         * tests/test-select-stdin.c: New file.
44478         * modules/select-tests (Files): Add the new files.
44479         (Depends-on): Add gettimeofday.
44480         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44481         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44482         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44483
44484 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44485             Bruno Haible  <bruno@clisp.org>
44486
44487         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44488
44489 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44490
44491         * build-aux/pmccabe2html: Added support for C++ source files.
44492
44493 2008-11-05  Ben Pfaff  <blp@gnu.org>
44494
44495         Fix lib/close.c build on Windows.
44496         * modules/close (Files): Add lib/w32sock.h.
44497
44498 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44499
44500         Accept Bison's NEWS format.
44501         * build-aux/announce-gen (print_news_deltas): Tweak
44502         $re_prefix.
44503
44504 2008-11-04  Bruno Haible  <bruno@clisp.org>
44505
44506         * modules/random_r (Maintainer): Add glibc.
44507
44508 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44509
44510         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44511         by karl@freefriends.org (Karl Berry).
44512         * doc/alloca.texi: Likewise.
44513         * doc/c-ctype.texi: Likewise.
44514         * doc/c-strcase.texi: Likewise.
44515         * doc/c-strcaseeq.texi: Likewise.
44516         * doc/c-strcasestr.texi: Likewise.
44517         * doc/c-strstr.texi: Likewise.
44518         * doc/c-strtod.texi: Likewise.
44519         * doc/c-strtold.texi: Likewise.
44520         * doc/ctime.texi: Likewise.
44521         * doc/error.texi: Likewise.
44522         * doc/fdl.texi: Likewise.
44523         * doc/gcd.texi: Likewise.
44524         * doc/getdate.texi: Likewise.
44525         * doc/gnulib-intro.texi: Likewise.
44526         * doc/gnulib-tool.texi: Likewise.
44527         * doc/gnulib.texi: Likewise.
44528         * doc/inet_ntoa.texi: Likewise.
44529         * doc/maintain.texi: Likewise.
44530         * doc/make-stds.texi: Likewise.
44531         * doc/quote.texi: Likewise.
44532         * doc/regexprops-generic.texi: Likewise.
44533         * doc/standards.texi: Likewise.
44534         * doc/verify.texi: Likewise.
44535         * doc/visibility.texi: Likewise.
44536         * doc/gnulib.texi (GNU Free Documentation License): Include
44537         fdl-1.3.texi instead of fdl.texi.
44538
44539 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44540
44541         * doc/fdl-1.3.texi: New file, from
44542         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44543         * modules/fdl-1.3: Add.
44544         * MODULES.html.sh: Add fdl-1.3.
44545
44546 2008-11-03  Bruno Haible  <bruno@clisp.org>
44547
44548         Make determination of absolute name of header file work with AIX xlc.
44549         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44550         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44551         preprocessing.
44552         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44553         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44554
44555 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44556
44557         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44558         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44559         <ludo@gnu.org>.
44560
44561 2008-11-02  Bruno Haible  <bruno@clisp.org>
44562
44563         Mark 'strpbrk' obsolete.
44564         * modules/strpbrk (Status, Notice): New sections.
44565         * modules/strtok_r (Depends-on): Add strpbrk.
44566
44567 2008-11-02  Bruno Haible  <bruno@clisp.org>
44568
44569         Mark 'strdup' obsolete.
44570         * modules/strdup (Status, Notice): New sections.
44571         * modules/findprog (Depends-on): Add strdup.
44572         * modules/getaddrinfo (Depends-on): Likewise.
44573         * modules/localename (Depends-on): Likewise.
44574         * modules/relocatable-lib (Depends-on): Likewise.
44575         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44576         * modules/relocatable-prog (Depends-on): Likewise.
44577         * modules/trim (Depends-on): Likewise.
44578         * modules/unictype/gen-ctype (Depends-on): Likewise.
44579         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44580
44581 2008-11-02  Bruno Haible  <bruno@clisp.org>
44582
44583         Mark 'strcspn' obsolete.
44584         * modules/strcspn (Status, Notice): New sections.
44585
44586 2008-11-02  Bruno Haible  <bruno@clisp.org>
44587
44588         Mark 'rmdir' obsolete.
44589         * modules/rmdir (Status, Notice): New sections.
44590         * modules/clean-temp (Depends-on): Add rmdir.
44591         * modules/openat (Depends-on): Likewise.
44592
44593 2008-11-02  Bruno Haible  <bruno@clisp.org>
44594
44595         Mark 'raise' obsolete.
44596         * modules/raise (Status, Notice): New sections.
44597         (Include): Specify <signal.h>.
44598         * modules/stdio (Depends-on): Add raise.
44599         * modules/write (Depends-on): Likewise.
44600
44601 2008-11-02  Bruno Haible  <bruno@clisp.org>
44602
44603         Mark 'memset' obsolete.
44604         * modules/memset (Status, Notice): New sections.
44605
44606 2008-11-02  Bruno Haible  <bruno@clisp.org>
44607
44608         Mark 'memmove' obsolete.
44609         * modules/memmove (Status, Notice): New sections.
44610         * modules/argp (Depends-on): Add memmove.
44611         * modules/argz (Depends-on): Likewise.
44612         * modules/canonicalize (Depends-on): Likewise.
44613         * modules/canonicalize-lgpl (Depends-on): Likewise.
44614         * modules/fts (Depends-on): Likewise.
44615         * modules/getcwd (Depends-on): Likewise.
44616         * modules/human (Depends-on): Likewise.
44617         * modules/regex (Depends-on): Likewise.
44618         * modules/striconveh (Depends-on): Likewise.
44619         * modules/trim (Depends-on): Likewise.
44620         * modules/unistr/u8-move (Depends-on): Likewise.
44621         * modules/unistr/u16-move (Depends-on): Likewise.
44622         * modules/unistr/u32-move (Depends-on): Likewise.
44623
44624 2008-11-02  Bruno Haible  <bruno@clisp.org>
44625
44626         Mark 'memcpy' obsolete.
44627         * modules/memcpy (Status, Notice): New sections.
44628
44629 2008-11-02  Bruno Haible  <bruno@clisp.org>
44630
44631         Mark 'memcmp' obsolete.
44632         * modules/memcmp (Status, Notice): New sections.
44633         * modules/argmatch (Depends-on): Add memchr.
44634         * modules/backupfile (Depends-on): Likewise.
44635         * modules/c-strcasestr (Depends-on): Likewise.
44636         * modules/crypto/des (Depends-on): Likewise.
44637         * modules/csharpcomp (Depends-on): Likewise.
44638         * modules/fnmatch (Depends-on): Likewise.
44639         * modules/git-merge-changelog (Depends-on): Likewise.
44640         * modules/isnand (Depends-on): Likewise.
44641         * modules/isnand-nolibm (Depends-on): Likewise.
44642         * modules/isnanf (Depends-on): Likewise.
44643         * modules/isnanf-nolibm (Depends-on): Likewise.
44644         * modules/isnanl (Depends-on): Likewise.
44645         * modules/isnanl-nolibm (Depends-on): Likewise.
44646         * modules/mbchar (Depends-on): Likewise.
44647         * modules/memcoll (Depends-on): Likewise.
44648         * modules/quotearg (Depends-on): Likewise.
44649         * modules/regex (Depends-on): Likewise.
44650         * modules/relocatable-prog (Depends-on): Likewise.
44651         * modules/same (Depends-on): Likewise.
44652         * modules/signbit (Depends-on): Likewise.
44653         * modules/strcasestr-simple (Depends-on): Likewise.
44654         * modules/unictype/gen-ctype (Depends-on): Likewise.
44655         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44656         * modules/uniname/uniname (Depends-on): Likewise.
44657         * modules/unistr/u8-cmp (Depends-on): Likewise.
44658
44659 2008-11-02  Bruno Haible  <bruno@clisp.org>
44660
44661         Mark 'memchr' obsolete.
44662         * modules/memchr (Status, Notice): New sections.
44663         * modules/argp (Depends-on): Add memchr.
44664         * modules/base64 (Depends-on): Likewise.
44665         * modules/c-strcasestr (Depends-on): Likewise.
44666         * modules/chdir-long (Depends-on): Likewise.
44667         * modules/fnmatch (Depends-on): Likewise.
44668         * modules/getsubopt (Depends-on): Likewise.
44669         * modules/git-merge-changelog (Depends-on): Likewise.
44670         * modules/glob (Depends-on): Likewise.
44671         * modules/strcasestr-simple (Depends-on): Likewise.
44672         * modules/strnlen (Depends-on): Likewise.
44673
44674 2008-11-02  Bruno Haible  <bruno@clisp.org>
44675
44676         Mark 'atexit' obsolete.
44677         * modules/atexit (Status, Notice): New sections.
44678         * modules/chdir-long (Depends-on): Add atexit.
44679         * modules/wait-process (Depends-on): Likewise.
44680
44681 2008-11-02  Bruno Haible  <bruno@clisp.org>
44682
44683         * gnulib-tool: New option --with-obsolete.
44684         (func_usage): Document it.
44685         (func_modules_transitive_closure): Drop obsolete dependencies if
44686         incobsolete is not true.
44687         (func_import): Read and save the incobsolete variable to the cache.
44688
44689 2008-11-02  Bruno Haible  <bruno@clisp.org>
44690
44691         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44692         * gnulib-tool: New option --extract-status.
44693         (func_usage): Document it.
44694         (sed_extract_prog): Recognize it.
44695         (func_get_status): New function.
44696
44697 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44698
44699         * modules/sockets (License): Change from LGPL to LGPLv2+.
44700
44701 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44702
44703         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44704
44705 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44706
44707         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44708         Mention times and sys_times.
44709         * modules/sys_times, modules/sys_times-tests: New modules.
44710         * modules/times, modules/times-tests: Likewise
44711         * m4/sys_times_h.m4: New file.
44712         * lib/sys_times.in.h: Likewise
44713         * lib/times.c: Likewise.
44714         * tests/test-sys_times.c: Likewise.
44715         * tests/test-times.c: Likewise.
44716         * doc/posix-headers/sys_times.texi: Update.
44717         * doc/posix-functions/times.texi: Update.
44718
44719 2008-10-28  Jim Meyering  <meyering@redhat.com>
44720
44721         * modules/tempname (Depends-on): Add lstat.
44722
44723         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44724
44725 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44726
44727         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44728         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44729         using idiom used elsewhere in gnulib.
44730
44731 2008-10-27  Jim Meyering  <meyering@redhat.com>
44732
44733         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44734
44735 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44736
44737         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44738         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44739         programs.
44740         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44741
44742 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44743
44744         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44745
44746 2008-10-27  Bruno Haible  <bruno@clisp.org>
44747
44748         * tests/test-lstat.c: Include <stdio.h>.
44749
44750 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44751
44752         * modules/lstat-tests: New module.
44753         * tests/test-lstat.c: New file.
44754
44755 2008-10-26  Jim Meyering  <meyering@redhat.com>
44756
44757         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44758
44759 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44760             Bruno Haible  <bruno@clisp.org>
44761
44762         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44763         * modules/configmake (Include): Add a note that the include must come
44764         after all system headers.
44765         * lib/javaversion.c: Include configmake.h after all other includes.
44766
44767 2008-10-26  Bruno Haible  <bruno@clisp.org>
44768
44769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44770         HAVE_STRUCT_RANDOM_DATA to 1.
44771         (gl_STDLIB_H): Simplify.
44772
44773 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44774
44775         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44776         substitute HAVE_STRUCT_RANDOM_DATA.
44777         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44778         random_data.
44779         * modules/stdlib (Makefile.am): Substitute
44780         HAVE_STRUCT_RANDOM_DATA.
44781
44782 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44783
44784         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44785         * doc/gnulib-intro.texi (Copyright): Likewise.
44786
44787 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44788
44789         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44790         findings.
44791
44792 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44793             Bruno Haible  <bruno@clisp.org>
44794
44795         * lib/unistd.in.h: Include <winsock2.h>.
44796         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44797         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44798         Provide dummy declarations.
44799         (gethostname): Override.
44800         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44801         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44802         gl_PREREQ_SYS_H_WINSOCK2.
44803         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44804         * doc/posix-functions/gethostname.texi: More details.
44805
44806 2008-10-25  Bruno Haible  <bruno@clisp.org>
44807
44808         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44809         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44810         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44811
44812         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44813         here ...
44814         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44815         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44816         gl_UNISTD_H_DEFAULTS.
44817
44818 2008-10-25  Eric Blake  <ebb9@byu.net>
44819
44820         signbit: avoid spurious compiler failure
44821         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44822         declarations inside function.
44823
44824 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44825             Bruno Haible  <bruno@clisp.org>
44826
44827         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44828         * modules/random_r (Depends-on): Add stdint.
44829
44830 2008-10-24  Bruno Haible  <bruno@clisp.org>
44831
44832         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44833         Eggert.
44834         * modules/strerror (License): Likewise.
44835
44836 2008-10-24  Jim Meyering  <meyering@redhat.com>
44837
44838         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44839         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44840
44841 2008-10-24  Eric Blake  <ebb9@byu.net>
44842
44843         getgroups: fix compilation when getgroups is available
44844         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44845         but with <config.h> override of getgroups disabled.
44846
44847 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44848
44849         * doc/gnulib.texi (Header files): Add note about C++ problems.
44850         Explained by Bruno Haible <bruno@clisp.org>.
44851
44852 2008-10-23  Bruno Haible  <bruno@clisp.org>
44853
44854         Define a dummy SA_NODEFER macro on Interix.
44855         * lib/signal.in.h (SA_NODEFER): Define fallback.
44856         Reported by Aleksey Cheusov <cheusov@tut.by> via
44857         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44858
44859 2008-10-23  Bruno Haible  <bruno@clisp.org>
44860
44861         * modules/freadahead (License): Change to LGPLv2+.
44862         Suggested by Simon Josefsson.
44863
44864 2008-10-23  Jim Meyering  <meyering@redhat.com>
44865
44866         random_r: new module
44867         * modules/random_r: New file.
44868         * m4/random_r.m4: New file.
44869         * lib/random_r.c: New file, from glibc.
44870         * modules/random_r-tests: New file.
44871         * tests/test-random_r.c: New file.
44872         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44873          Declare.
44874         (RAND_MAX): Define.
44875         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44876         * modules/stdlib: Substitute them, too.
44877         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44878         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44879         * doc/glibc-functions/random_r.texi: Likewise.
44880         * doc/glibc-functions/setstate_r.texi: Likewise.
44881         * doc/glibc-functions/srandom_r.texi: Likewise.
44882         * config/srclist.txt: Mention it.
44883
44884 2008-10-23  David Lutterkort  <lutter@redhat.com>
44885
44886         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44887         link requirement
44888
44889 2008-10-23  Jim Meyering  <meyering@redhat.com>
44890
44891         selinux-h: mark parameters of stub functions as intentionally unused
44892         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44893         * lib/se-context.in.h: Likewise.
44894
44895 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44896
44897         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44898
44899 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44900
44901         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44902
44903 2008-10-22  Eric Blake  <ebb9@byu.net>
44904
44905         glthread/thread: avoid compiler warning
44906         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44907         Add unreachable abort to silence compiler.
44908
44909 2008-10-22  Eric Blake  <ebb9@byu.net>
44910
44911         netdb: also supply struct addrinfo for cygwin 1.5.x
44912         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44913         older cygwin.
44914         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44915         cygwin.
44916         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44917
44918 2008-10-22  Bruno Haible  <bruno@clisp.org>
44919
44920         * users.txt: Update entry about pspp.
44921
44922 2008-10-21  Bruno Haible  <bruno@clisp.org>
44923
44924         Simplification.
44925         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44926         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44927
44928         Simplification.
44929         * lib/ioctl.c (ioctl): Don't undefine.
44930         * lib/socket.c (socket): Don't undefine.
44931
44932         Remove unused module indicator macros.
44933         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44934         GNULIB_$1 as a C macro.
44935
44936         * doc/posix-functions/close.texi: Undo last change.
44937         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44938         Windows platforms.
44939
44940 2008-10-21  Bruno Haible  <bruno@clisp.org>
44941
44942         Add gethostname() declaration to <unistd.h>.
44943         * lib/unistd.in.h (gethostname): New declaration.
44944         * lib/gethostname.c: Include <unistd.h>.
44945         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44946         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44948         and HAVE_GETHOSTNAME.
44949         * modules/gethostname (Depends-on): Add unistd.
44950         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44951         (Include): Specify <unistd.h>.
44952         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44953         HAVE_GETHOSTNAME.
44954         * tests/test-gethostname.c: Include <unistd.h> first.
44955
44956 2008-10-21  Bruno Haible  <bruno@clisp.org>
44957
44958         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44959         * modules/select-tests (Depends-on): Likewise.
44960         Reported by Simon Josefsson.
44961
44962 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44963
44964         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44965         * lib/accept.c: New file, based on winsock.c.
44966         * lib/bind.c: New file, based on winsock.c.
44967         * lib/connect.c: New file, based on winsock.c.
44968         * lib/getpeername.c: New file, based on winsock.c.
44969         * lib/getsockname.c: New file, based on winsock.c.
44970         * lib/getsockopt.c: New file, based on winsock.c.
44971         * lib/ioctl.c: New file, based on winsock.c.
44972         * lib/listen.c: New file, based on winsock.c.
44973         * lib/recv.c: New file, based on winsock.c.
44974         * lib/recvfrom.c: New file, based on winsock.c.
44975         * lib/send.c: New file, based on winsock.c.
44976         * lib/sendto.c: New file, based on winsock.c.
44977         * lib/setsockopt.c: New file, based on winsock.c.
44978         * lib/shutdown.c: New file, based on winsock.c.
44979         * lib/socket.c: New file, based on winsock.c.
44980         * lib/w32sock.h: New file, based on winsock.c.
44981         * lib/winsock.c: Remove file.
44982         * modules/accept: Likewise.
44983         * modules/bind: Likewise.
44984         * modules/connect: Likewise.
44985         * modules/getpeername: Likewise.
44986         * modules/getsockname: Likewise.
44987         * modules/getsockopt: Likewise.
44988         * modules/ioctl: Likewise.
44989         * modules/listen: Likewise.
44990         * modules/recv: Likewise.
44991         * modules/recvfrom: Likewise.
44992         * modules/send: Likewise.
44993         * modules/sendto: Likewise.
44994         * modules/setsockopt: Likewise.
44995         * modules/shutdown: Likewise.
44996         * modules/socket: Use socket.c instead of winsock.c.
44997         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44998         * doc/posix-functions/accept.texi: Doc fix.
44999         * doc/posix-functions/bind.texi: Doc fix.
45000         * doc/posix-functions/close.texi: Doc fix.
45001         * doc/posix-functions/connect.texi: Doc fix.
45002         * doc/posix-functions/getpeername.texi: Doc fix.
45003         * doc/posix-functions/getsockname.texi: Doc fix.
45004         * doc/posix-functions/getsockopt.texi: Doc fix.
45005         * doc/posix-functions/ioctl.texi: Doc fix.
45006         * doc/posix-functions/listen.texi: Doc fix.
45007         * doc/posix-functions/recv.texi: Doc fix.
45008         * doc/posix-functions/recvfrom.texi: Doc fix.
45009         * doc/posix-functions/send.texi: Doc fix.
45010         * doc/posix-functions/sendto.texi: Doc fix.
45011         * doc/posix-functions/setsockopt.texi: Doc fix.
45012         * doc/posix-functions/shutdown.texi: Doc fix.
45013         * doc/posix-functions/socket.texi: Doc fix.
45014
45015 2008-10-20  Bruno Haible  <bruno@clisp.org>
45016
45017         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45018         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45019         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45020         as an alias for SIGABRT.
45021         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45022         (sigaction): Map it to SIGABRT.
45023         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45024
45025 2008-10-20  Bruno Haible  <bruno@clisp.org>
45026
45027         * lib/fts.c: Don't include lstat.h.
45028         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45029
45030         Move the lstat() declaration to <sys/stat.h>.
45031         * lib/lstat.h: Remove file.
45032         * lib/sys_stat.in.h: Add special invocation convention.
45033         (lstat): New declaration.
45034         * lib/lstat.c (orig_lstat): New function.
45035         (rpl_lstat): Use orig_lstat instead of lstat.
45036         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45037         AC_C_INLINE. Set REPLACE_LSTAT.
45038         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45039         and REPLACE_LSTAT.
45040         * modules/lstat (Files): Remove lib/lstat.h.
45041         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45042         (Include): Specify <sys/stat.h> instead of lstat.h.
45043         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45044         REPLACE_LSTAT.
45045         * NEWS: Mention the change.
45046
45047 2008-10-20  Bruno Haible  <bruno@clisp.org>
45048
45049         * modules/posix_spawn-tests: New file.
45050         * tests/test-posix_spawn3.c: New file.
45051
45052 2008-10-20  Bruno Haible  <bruno@clisp.org>
45053
45054         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45055         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45056         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45057         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45058         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45059
45060 2008-10-20  Bruno Haible  <bruno@clisp.org>
45061
45062         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45063         of posix_spawn on AIX 5.3.
45064
45065 2008-10-20  Bruno Haible  <bruno@clisp.org>
45066
45067         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45068
45069 2008-10-20  Bruno Haible  <bruno@clisp.org>
45070
45071         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45072         of AC_LANG_PROGRAM.
45073
45074 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45075
45076         * lib/netdb.in.h: Don't define GNU specific constants until they
45077         are supported or needed.  Reported by Bruno Haible
45078         <bruno@clisp.org>.
45079
45080 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45081
45082         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45083
45084 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45085
45086         * lib/getaddrinfo.h: Remove file.
45087         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45088         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45089         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45090         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45091         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45092         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45093         * tests/test-getaddrinfo.c: Likewise.
45094         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45095         * NEWS: Mention change.
45096
45097 2008-10-19  Bruno Haible  <bruno@clisp.org>
45098
45099         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45100
45101 2008-10-19  Bruno Haible  <bruno@clisp.org>
45102
45103         * lib/wait-process.c: Include simply <sys/wait.h>.
45104         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45105         WIFSTOPPED): Remove fallback definitions.
45106         * modules/wait-process (Depends-on): Add sys_wait.
45107
45108         New module 'sys_wait'.
45109         * modules/sys_wait: New file.
45110         * lib/sys_wait.in.h: New file, partially copied from
45111         lib/wait-process.c.
45112         * m4/sys_wait_h.m4: New file.
45113         * doc/posix-headers/sys_wait.texi: Mention the new module.
45114
45115 2008-10-19  Bruno Haible  <bruno@clisp.org>
45116
45117         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45118
45119 2008-10-19  Bruno Haible  <bruno@clisp.org>
45120
45121         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45122         * lib/wait-process.c (WAIT_T): Remove type.
45123         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45124         (wait_subprocess): Update.
45125
45126 2008-10-19  Bruno Haible  <bruno@clisp.org>
45127
45128         New module 'atoll'.
45129         * modules/atoll: New file.
45130         * lib/stdlib.in.h (atoll): New declaration.
45131         * lib/atoll.c: New file, from glibc with modifications.
45132         * m4/atoll.m4: New file.
45133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45134         HAVE_ATOLL.
45135         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45136         * doc/posix-functions/atoll.texi: Mention the new module.
45137
45138 2008-10-19  Bruno Haible  <bruno@clisp.org>
45139
45140         Add strtoull() declaration to <stdlib.h>.
45141         * lib/stdlib.in.h (strtoull): New declaration.
45142         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45143         Set HAVE_STRTOULL.
45144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45145         HAVE_STRTOULL.
45146         * modules/strtoull (Depends-on): Add stdlib.
45147         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45148         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45149         HAVE_STRTOULL.
45150
45151 2008-10-19  Bruno Haible  <bruno@clisp.org>
45152
45153         Add strtoll() declaration to <stdlib.h>.
45154         * lib/stdlib.in.h (strtoll): New declaration.
45155         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45156         Set HAVE_STRTOLL.
45157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45158         HAVE_STRTOLL.
45159         * modules/strtoll (Depends-on): Add stdlib.
45160         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45161         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45162
45163 2008-10-19  Bruno Haible  <bruno@clisp.org>
45164
45165         * modules/bcopy (Depends-on): Add strings.
45166         (Include): Specify <strings.h>.
45167
45168 2008-10-19  Bruno Haible  <bruno@clisp.org>
45169
45170         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45171
45172 2008-10-19  Bruno Haible  <bruno@clisp.org>
45173
45174         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45175         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45176         mingw.
45177
45178 2008-10-19  Bruno Haible  <bruno@clisp.org>
45179
45180         * lib/atanl.c: Don't include isnanl.h.
45181         * lib/cosl.c: Likewise.
45182         * lib/ldexpl.c: Likewise.
45183         * lib/logl.c: Likewise.
45184         * lib/sinl.c: Likewise.
45185         * lib/sqrtl.c: Likewise.
45186         * lib/tanl.c: Likewise.
45187
45188         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45189         * lib/isnanf.h: Remove file.
45190         * lib/isnand.h: Remove file.
45191         * lib/isnanl.h: Remove file.
45192         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45193         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45194         macros.
45195         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45196         HAVE_ISNANF, don't define it as a C macro.
45197         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45198         HAVE_ISNAND, don't define it as a C macro.
45199         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45200         HAVE_ISNANL, don't define it as a C macro.
45201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45202         HAVE_ISNAN[FDL].
45203         * modules/isnanf (Files): Remove lib/isnanf.h.
45204         (Depends-on): Add math.
45205         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45206         (Include): Specify <math.h> instead of isnanf.h.
45207         * modules/isnand (Files): Remove lib/isnand.h.
45208         (Depends-on): Add math.
45209         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45210         (Include): Specify <math.h> instead of isnand.h.
45211         * modules/isnanl (Files): Remove lib/isnanl.h.
45212         (Depends-on): Add math.
45213         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45214         (Include): Specify <math.h> instead of isnanl.h.
45215         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45216         HAVE_ISNAN[FDL].
45217         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45218         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45219         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45220         * NEWS: Mention the change.
45221
45222 2008-10-18  Bruno Haible  <bruno@clisp.org>
45223
45224         Add getusershell(), setusershell(), endusershell() declarations to
45225         <unistd.h>.
45226         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45227         declarations.
45228         * lib/getusershell.c: Include unistd.h.
45229         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45230         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45231         HAVE_GETUSERSHELL.
45232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45233         and HAVE_GETUSERSHELL.
45234         * modules/getusershell (Depends-on): Add unistd, extensions.
45235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45236         (Include): Specify <unistd.h>.
45237         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45238         HAVE_GETUSERSHELL.
45239
45240 2008-10-18  Bruno Haible  <bruno@clisp.org>
45241
45242         Add a getloadavg() declaration to <stdlib.h>.
45243         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45244         getloadavg declaration.
45245         (getloadavg): New declaration.
45246         * lib/getloadavg.c: Include <stdlib.h> first.
45247         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45248         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45249         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45251         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45252         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45253         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45254         (Include): Specify <stdlib.h>.
45255         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45256         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45257
45258 2008-10-18  Bruno Haible  <bruno@clisp.org>
45259
45260         * lib/dirchownmod.c: Don't include lchmod.h.
45261
45262         Move the lchmod() declaration to <sys/stat.h>.
45263         * lib/lchmod.h: Remove file.
45264         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45265         (lchmod): New declaration, moved here from lib/lchown.h.
45266         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45267         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45268         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45269         and HAVE_LCHMOD.
45270         * modules/lchmod (Files): Remove lib/lchmod.h.
45271         (Depends-on): Add sys_stat, extensions.
45272         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45273         (Include): Specify <sys/stat.h> instead of lchmod.h.
45274         * modules/sys_stat (Depends-on): Add link-warning.
45275         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45276         definition of GL_LINK_WARNING.
45277         * NEWS: Mention the change.
45278
45279 2008-10-18  Bruno Haible  <bruno@clisp.org>
45280
45281         * lib/fchdir.c: Don't include dirfd.h.
45282         * lib/fts.c: Likewise.
45283         * lib/getcwd.c: Likewise.
45284         * lib/glob.c: Likewise.
45285
45286         Move the dirfd() declaration to <dirent.h>.
45287         * lib/dirfd.h: Remove file.
45288         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45289         (dirfd): New declaration.
45290         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45291         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45292         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45293         HAVE_DECL_DIRFD.
45294         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45295         HAVE_DECL_DIRFD.
45296         * modules/dirfd (Files): Remove lib/dirfd.h.
45297         (Depends-on): Add dirent, extensions.
45298         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45299         (Include): Specify <dirent.h> instead of dirfd.h.
45300         * modules/dirent (Depends-on): Add link-warning.
45301         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45302         definition of GL_LINK_WARNING.
45303         * NEWS: Mention the change.
45304
45305 2008-10-18  Bruno Haible  <bruno@clisp.org>
45306
45307         Move the euidaccess() declaration to <unistd.h>.
45308         * lib/euidaccess.h: Remove file.
45309         * lib/unistd.in.h (euidaccess): New declaration.
45310         * lib/euidaccess.c: Don't include euidaccess.h.
45311         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45312         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45314         and HAVE_EUIDACCESS.
45315         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45316         (Depends-on): Add unistd.
45317         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45318         (Include): Specify <unistd.h> instead of euidaccess.h.
45319         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45320         HAVE_EUIDACCESS.
45321         * NEWS: Mention the change.
45322
45323 2008-10-18  Bruno Haible  <bruno@clisp.org>
45324
45325         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45326
45327         Move the getdomainname() declaration to <unistd.h>.
45328         * lib/getdomainname.h: Remove file.
45329         * lib/unistd.in.h (getdomainname): New declaration.
45330         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45331         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45332         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45333         HAVE_GETDOMAINNAME.
45334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45335         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45336         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45337         (Depends-on): Add unistd, extensions.
45338         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45339         (Includes): Specify <unistd.h> instead of getdomainname.h.
45340         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45341         HAVE_GETDOMAINNAME.
45342         * NEWS: Mention the change.
45343
45344 2008-10-18  Bruno Haible  <bruno@clisp.org>
45345
45346         * modules/dirent: New file.
45347         * m4/dirent_h.m4: New file.
45348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45349         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45350         * modules/fchdir (Files): Remove lib/dirent.in.h.
45351         (Depends-on): Add dirent.
45352         (Makefile.am): Move rules to modules/dirent.
45353         * doc/posix-headers/dirent.texi: Mention the new module.
45354
45355 2008-10-18  Bruno Haible  <bruno@clisp.org>
45356
45357         Avoid -Wunused-parameter warnings in public gnulib header files.
45358         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45359         macro.
45360         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45361
45362 2008-10-18  Bruno Haible  <bruno@clisp.org>
45363
45364         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45365         * doc/glibc-functions/error.texi: Mention the module 'error'.
45366         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45367         * doc/glibc-functions/getdomainname.texi: Mention the module
45368         'getdomainname'.
45369         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45370         * doc/glibc-functions/getpagesize.texi: Mention the module
45371         'getpagesize'.
45372         * doc/glibc-functions/getusershell.texi: Mention the module
45373         'getusershell'.
45374         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45375         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45376         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45377         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45378         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45379         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45380         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45381         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45382         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45383         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45384         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45385         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45386         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45387         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45388
45389 2008-10-17  Bruno Haible  <bruno@clisp.org>
45390
45391         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45392         HP-UX and IRIX, use -0.0L.
45393         * tests/test-ceill.c (minus_zero): Likewise.
45394         * tests/test-floorl.c (minus_zero): Likewise.
45395         * tests/test-frexpl.c (minus_zero): Likewise.
45396         * tests/test-isnan.c (minus_zerol): Likewise.
45397         * tests/test-isnanl.h (minus_zero): Likewise.
45398         * tests/test-ldexpl.c (minus_zero): Likewise.
45399         * tests/test-roundl.c (minus_zero): Likewise.
45400         * tests/test-signbit.c (minus_zerol): Likewise.
45401         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45402         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45403         * tests/test-truncl.c (minus_zero): Likewise.
45404         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45405         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45406         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45407         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45408
45409 2008-10-17  Bruno Haible  <bruno@clisp.org>
45410
45411         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45412         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45413         that it gets activated only for gcc >= 3.0.
45414         * lib/dirent.in.h: Likewise.
45415         * lib/errno.in.h: Likewise.
45416         * lib/fcntl.in.h: Likewise.
45417         * lib/float.in.h: Likewise.
45418         * lib/iconv.in.h: Likewise.
45419         * lib/inttypes.in.h: Likewise.
45420         * lib/locale.in.h: Likewise.
45421         * lib/math.in.h: Likewise.
45422         * lib/netdb.in.h: Likewise.
45423         * lib/netinet_in.in.h: Likewise.
45424         * lib/search.in.h: Likewise.
45425         * lib/signal.in.h: Likewise.
45426         * lib/spawn.in.h: Likewise.
45427         * lib/stdarg.in.h: Likewise.
45428         * lib/stdint.in.h: Likewise.
45429         * lib/stdio.in.h: Likewise.
45430         * lib/stdlib.in.h: Likewise.
45431         * lib/string.in.h: Likewise.
45432         * lib/strings.in.h: Likewise.
45433         * lib/sys_file.in.h: Likewise.
45434         * lib/sys_ioctl.in.h: Likewise.
45435         * lib/sys_select.in.h: Likewise.
45436         * lib/sys_socket.in.h: Likewise.
45437         * lib/sys_stat.in.h: Likewise.
45438         * lib/sys_time.in.h: Likewise.
45439         * lib/sysexits.in.h: Likewise.
45440         * lib/time.in.h: Likewise.
45441         * lib/unistd.in.h: Likewise.
45442         * lib/wchar.in.h: Likewise.
45443         * lib/wctype.in.h: Likewise.
45444         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45445
45446 2008-10-17  Jim Meyering  <meyering@redhat.com>
45447
45448         ignore-value: don't depend on inline module
45449         * modules/ignore-value (Depends-on): Remove 'inline'.
45450         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45451         Suggestion from Bruno Haible.
45452
45453 2008-10-17  Bruno Haible  <bruno@clisp.org>
45454
45455         New implementation of condition variables for Win32.
45456         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45457         (gl_linked_waitqueue_t): New type.
45458         (gl_cond_t): Use it.
45459         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45460         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45461         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45462         (glthread_cond_init_func, glthread_cond_wait_func,
45463         glthread_cond_timedwait_func, glthread_cond_signal_func,
45464         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45465         Reimplemented on the basis of gl_linked_waitqueue_t.
45466         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45467         gl_waitqueue_t.
45468         (gl_rwlock_t): Update.
45469         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45470
45471 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45472
45473         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45474         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45475
45476 2008-10-17  Jim Meyering  <meyering@redhat.com>
45477
45478         ignore-value: new module
45479         * modules/ignore-value: New file.
45480         * lib/ignore-value.h: New file.
45481         * MODULES.html.sh (Compiler warning management): New section,
45482         just for this module.  More to come.
45483
45484 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45485
45486         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45487         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45488         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45489
45490 2008-10-16  Jim Meyering  <meyering@redhat.com>
45491
45492         openat-die.c: avoid 'no previous prototype' warning
45493         * lib/openat-die.c: Include "openat.h".
45494         Reported by Reuben Thomas <rrt@sc3d.org>.
45495
45496 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45497
45498         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45499         * lib/netdb.in.h: Fix typo.
45500         Reported by Bruno Haible  <bruno@clisp.org>
45501
45502         * lib/netdb.in.h: Include sys/socket.h for platforms without
45503         netdb.h, to get structures like hostent on MinGW.
45504         * modules/netdb (Depends-on): Add sys_socket.
45505
45506 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45507
45508         * modules/netdb, modules/netdb-tests: New file.
45509         * m4/netdb_h.m4: New file.
45510         * lib/netdb.in.h: Add, currently just an empty file pending
45511         definitions.
45512         * tests/test-netdb.c: New file.
45513         * doc/posix-headers/netdb.texi: Mention that we replace it if
45514         needed.
45515         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45516         netdb.
45517
45518 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45519
45520         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45521         with code.
45522
45523 2008-10-13  Bruno Haible  <bruno@clisp.org>
45524
45525         * lib/glthread/cond.c (glthread_cond_wait_func,
45526         glthread_cond_timedwait_func): Add a comment.
45527
45528 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45529
45530         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45531         * tests/test-select.c: Likewise,
45532
45533 2008-10-13  Bruno Haible  <bruno@clisp.org>
45534
45535         * lib/glthread/cond.c (glthread_cond_wait_func,
45536         glthread_cond_timedwait_func): Fix variable name.
45537         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45538
45539 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45540
45541         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45542         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45543         struct sockaddr.sa_len.
45544         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45545
45546 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45547
45548         * build-aux/pmccabe2html: Add css and css_url parameters.
45549
45550 2008-10-12  Bruno Haible  <bruno@clisp.org>
45551
45552         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45553         calling aclx_get.
45554         Reported by Rainer Tammer <tammer@tammer.net>.
45555
45556 2008-10-12  Bruno Haible  <bruno@clisp.org>
45557
45558         Use msvcrt aware primitives for creation/termination of Win32 threads.
45559         * lib/glthread/thread.c: Include <process.h>.
45560         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45561         (wrapper_func): Update signature.
45562         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45563
45564 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45565             Bruno Haible  <bruno@clisp.org>
45566
45567         Provide a Win32 implementation of the 'cond' module.
45568         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45569         * lib/glthread/cond.c (glthread_cond_init_func,
45570         glthread_cond_wait_func, glthread_cond_timedwait_func,
45571         glthread_cond_signal_func, glthread_cond_broadcast_func,
45572         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45573         * modules/cond (Dependencies): Add gettimeofday.
45574
45575 2008-10-11  Bruno Haible  <bruno@clisp.org>
45576
45577         Make sleep work on older versions of mingw.
45578         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45579         only whether it exists.
45580         * doc/posix-functions/sleep.texi: Mention the problem with older
45581         versions of mingw.
45582
45583 2008-10-11  Bruno Haible  <bruno@clisp.org>
45584
45585         New module 'shutdown'.
45586         * modules/shutdown: New file.
45587         * lib/sys_socket.in.h (shutdown): New declaration.
45588         * lib/winsock.c (shutdown): New function.
45589         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45590         GNULIB_SHUTDOWN.
45591         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45592         * doc/posix-functions/shutdown.texi: Document the new module.
45593
45594 2008-10-11  Jim Meyering  <meyering@redhat.com>
45595
45596         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45597
45598 2008-10-11  Bruno Haible  <bruno@clisp.org>
45599
45600         New module 'fclose'.
45601         * modules/fclose: New file.
45602         * lib/stdio.in.h (fclose): New declaration.
45603         * lib/fclose.c: New file.
45604         * m4/fclose.m4: New file.
45605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45606         REPLACE_FCLOSE.
45607         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45608         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45609         REPLACE_FCLOSE.
45610         * modules/close (Depends-on): fclose.
45611         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45612
45613 2008-10-11  Bruno Haible  <bruno@clisp.org>
45614
45615         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45616         set errno and don't call _close.
45617
45618 2008-10-10  Bruno Haible  <bruno@clisp.org>
45619
45620         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45621         ACL, not afterwards. Fixes test failure on Cygwin.
45622
45623 2008-10-09  Ben Pfaff  <blp@gnu.org>
45624
45625         * build-aux/announce-gen: Fix gnulib version related part of usage
45626         message.  Die with a useful error message if no tarballs are
45627         found.
45628
45629 2008-10-10  Jim Meyering  <meyering@redhat.com>
45630
45631         bootstrap: use git's --depth=N option only if it's supported
45632         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45633         recognize the --depth option.  Reported by Pádraig Brady.
45634
45635 2008-10-09  Bruno Haible  <bruno@clisp.org>
45636
45637         New module 'ioctl'.
45638         * modules/ioctl: New file.
45639         * lib/sys_socket.in.h (ioctl): Remove declaration.
45640         * lib/winsock.c: Include <sys/ioctl.h>.
45641         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45642         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45643         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45644         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45645         * doc/posix-functions/ioctl.texi: Mention the new module.
45646
45647 2008-10-09  Bruno Haible  <bruno@clisp.org>
45648
45649         New module 'sys_ioctl'.
45650         * lib/sys_ioctl.in.h: New file.
45651         * m4/sys_ioctl_h.m4: New file.
45652         * modules/sys_ioctl: New file.
45653         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45654
45655 2008-10-09  Bruno Haible  <bruno@clisp.org>
45656
45657         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45658         * lib/winsock.c: Include <stdarg.h>.
45659         (rpl_ioctl): Change to second argument 'int' and then varargs.
45660
45661 2008-10-09  Bruno Haible  <bruno@clisp.org>
45662
45663         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45664         when the sys_socket module is present and the system has <winsock2.h>.
45665
45666 2008-10-09  Bruno Haible  <bruno@clisp.org>
45667
45668         * doc/posix-functions/close.texi: Mention module 'close' instead of
45669         module 'sys_socket'.
45670
45671 2008-10-09  Bruno Haible  <bruno@clisp.org>
45672
45673         * doc/glibc-headers/sys_ioctl.texi: New file.
45674         * doc/gnulib.texi: Include it.
45675
45676 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45677             Bruno Haible  <bruno@clisp.org>
45678
45679         Combine the two replacements of 'close'.
45680         * lib/sys_socket.in.h (close): Define to a reminder to include
45681         <unistd.h>.
45682         (_gl_close_fd_maybe_socket): New declaration.
45683         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45684         * lib/winsock.c (close): Remove undefinition.
45685         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45686         needed for the gnulib module 'close'.
45687         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45688         define to an error symbol or to a warning, if suitable.
45689         * lib/close.c: Include <sys/socket.h>.
45690         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45691         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45692         UNISTD_H_HAVE_WINSOCK2_H.
45693         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45695         UNISTD_H_HAVE_WINSOCK2_H.
45696         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45697         (configure.ac): Set a module indicator.
45698         (Makefile.am): Substitute GNULIB_CLOSE.
45699         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45700         * modules/poll-tests (Depends-on): Add close.
45701         * modules/select-tests (Depends-on): Likewise.
45702
45703 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45704             Bruno Haible  <bruno@clisp.org>
45705
45706         New module 'close'.
45707         * modules/close: New file.
45708         * lib/unistd.in.h (close): Move declaration out of the
45709         FCHDIR_REPLACEMENT scope.
45710         (_gl_unregister_fd): New declaration.
45711         * lib/close.c: New file.
45712         * lib/fchdir.c (rpl_close): Remove function.
45713         * m4/close.m4: New file.
45714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45715         close.
45716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45717         REPLACE_CLOSE.
45718         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45719         REPLACE_CLOSE.
45720         * modules/fchdir (Depends-on): Add close.
45721
45722 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45723             Bruno Haible  <bruno@clisp.org>
45724
45725         * lib/fcntl.in.h (open): Simplify conditionals.
45726         (_gl_register_fd): New declaration.
45727         * lib/fchdir.c (rpl_open): Remove function.
45728         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45729         also.
45730         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45731         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45732         open.
45733
45734 2008-10-09  Jim Meyering  <meyering@redhat.com>
45735
45736         GNUmakefile: use the more name-space-friendly "_version"
45737         * top/GNUmakefile (_dummy): Update.
45738         (_version): Rename from "version".
45739
45740 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45741             Bruno Haible  <bruno@clisp.org>
45742
45743         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45744         rpl_close.
45745         (_gl_register_fd): New function, extracted from rpl_open.
45746         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45747         (rpl_open, rpl_opendir): Use _gl_register_fd.
45748
45749 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45750
45751         Fix organization of 'open' replacement.
45752         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45753         (gl_FUNC_OPEN): Use it.
45754         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45755
45756 2008-10-08  Bruno Haible  <bruno@clisp.org>
45757
45758         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45759
45760 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45761
45762         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45763         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45764         listen).
45765
45766 2008-10-08  Eric Blake  <ebb9@byu.net>
45767
45768         GNUmakefile: add 'make version' target
45769         * top/GNUmakefile (_curr-ver): Split version update rules...
45770         (version): ...into a target.
45771
45772 2008-10-07  Bruno Haible  <bruno@clisp.org>
45773
45774         Use a more portable replacement expression for -0.0L.
45775         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45776         instead of -0.0L. Fix m4 quotation.
45777
45778         * tests/test-signbit.c: Include <float.h>.
45779         (minus_zero): New variable.
45780         (test_signbitl): Use minus_zero instead of -zero.
45781         * modules/signbit-tests (Depends-on): Add float.
45782
45783         * tests/test-ceill.c: Include <float.h>.
45784         (zero): Remove variable.
45785         (minus_zero): New variable.
45786         (main): Use minus_zero instead of -zero.
45787         * modules/ceill-tests (Depends-on): Add float.
45788
45789         * tests/test-floorl.c: Include <float.h>.
45790         (zero): Remove variable.
45791         (minus_zero): New variable.
45792         (main): Use minus_zero instead of -zero.
45793         * modules/floorl-tests (Depends-on): Add float.
45794
45795         * tests/test-roundl.c: Include <float.h>.
45796         (zero): Remove variable.
45797         (minus_zero): New variable.
45798         (main): Use minus_zero instead of -zero.
45799         * modules/roundl-tests (Depends-on): Add float.
45800
45801         * tests/test-truncl.c: Include <float.h>.
45802         (zero): Remove variable.
45803         (minus_zero): New variable.
45804         (main): Use minus_zero instead of -zero.
45805         * modules/truncl-tests (Depends-on): Add float.
45806
45807         * tests/test-frexpl.c (zero): Remove variable.
45808         (minus_zero): New variable.
45809         (main): Use minus_zero instead of -zero.
45810         * modules/frexpl-tests (Depends-on): Add float.
45811
45812         * tests/test-isnan.c (zerol): Remove variable.
45813         (minus_zerol): New variable.
45814         (test_long_double): Use minus_zerol instead of -zerol.
45815         * modules/isnan-tests (Depends-on): Add float.
45816
45817         * tests/test-isnanl.h (zero): Remove variable.
45818         (minus_zero): New variable.
45819         (main): Use minus_zero instead of -zero.
45820         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45821         * modules/isnanl-tests (Depends-on): Add float.
45822
45823         * tests/test-ldexpl.c (zero): Remove variable.
45824         (minus_zero): New variable.
45825         (main): Use minus_zero instead of -zero.
45826         * modules/ldexpl-tests (Depends-on): Add float.
45827
45828         * tests/test-snprintf-posix.h (zerol): Remove variable.
45829         (minus_zerol): New variable.
45830         (test_function): Use minus_zerol instead of -zerol.
45831         * modules/snprintf-posix-tests (Depends-on): Add float.
45832         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45833
45834         * tests/test-sprintf-posix.h (zerol): Remove variable.
45835         (minus_zerol): New variable.
45836         (test_function): Use minus_zerol instead of -zerol.
45837         * modules/sprintf-posix-tests (Depends-on): Add float.
45838         * modules/vsprintf-posix-tests (Depends-on): Add float.
45839
45840         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45841         (minus_zerol): New variable.
45842         (test_function): Use minus_zerol instead of -zerol.
45843         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45844
45845         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45846         (minus_zerol): New variable.
45847         (test_function): Use minus_zerol instead of -zerol.
45848         * modules/vasprintf-posix-tests (Depends-on): Add float.
45849
45850 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45851
45852         * MODULES.html.sh (Support for building documentation): Mention
45853         pmccabe2html.  Sort entries.
45854
45855         Add pmccabe2html module, from gnupdf.
45856         * build-aux/pmccabe.css: New file.
45857         * build-aux/pmccabe2html: New file.
45858         * m4/pmccabe2html.m4: New file.
45859         * modules/pmccabe2html: New file.
45860
45861 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45862
45863         flock: new module
45864         * MODULES.html.sh: Add to list of modules.
45865         * lib/flock.c: flock implementation for Windows and Unix systems
45866         which have fcntl.
45867         * doc/glibc-functions/flock.texi: Update documentation.
45868         * lib/sys_file.in.h: <sys/file.h> header file.
45869         * m4/flock.m4: M4 macros.
45870         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45871         * modules/flock: flock module.
45872         * modules/flock-tests: flock tests module.
45873         * modules/sys_file: sys/file.h module.
45874         * tests/test-flock.c: test suite for flock.
45875
45876 2008-10-06  Jim Meyering  <meyering@redhat.com>
45877
45878         bootstrap: check for LT_INIT more portably still ;-)
45879         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45880         Spotted by Bruno Haible.
45881
45882 2008-10-06  Eric Blake  <ebb9@byu.net>
45883
45884         test-signbit: avoid tripping Irix cc bug on -0.0L
45885         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45886         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45887         entire testsuite consistent and avoids an Irix 6.2 bug.
45888
45889 2008-10-05  Bruno Haible  <bruno@clisp.org>
45890             Jim Meyering  <jim@meyering.net>
45891
45892         Add an option for ignoring EPIPE during close_stdout.
45893         * lib/closeout.h: Include <stdbool.h>.
45894         (close_stdout_set_ignore_EPIPE): New declaration.
45895         * lib/closeout.c: Include <stdbool.h>.
45896         (ignore_EPIPE): New variable.
45897         (close_stdout_set_ignore_EPIPE): New function.
45898         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45899         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45900         failure.
45901         * modules/closeout (Depends-on): Add stdbool.
45902
45903 2008-10-05  Bruno Haible  <bruno@clisp.org>
45904
45905         * modules/accept: New file.
45906         * modules/bind: New file.
45907         * modules/connect: New file.
45908         * modules/getpeername: New file.
45909         * modules/getsockname: New file.
45910         * modules/getsockopt: New file.
45911         * modules/listen: New file.
45912         * modules/recv: New file.
45913         * modules/recvfrom: New file.
45914         * modules/send: New file.
45915         * modules/sendto: New file.
45916         * modules/setsockopt: New file.
45917         * modules/socket: New file.
45918         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45919         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45920         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45921         the particular module is requested. Add a link warning when the
45922         particular module is not requested.
45923         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45924         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45925         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45926         the particular module is requested.
45927         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45928         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45929         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45930         * modules/sys_socket (Depends-on): Add link-warning.
45931         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45932         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45933         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45934         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45935         GL_LINK_WARNING.
45936         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45937         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45938         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45939         * doc/posix-functions/getpeername.texi: Mention the new module
45940         'getpeername'.
45941         * doc/posix-functions/getsockname.texi: Mention the new module
45942         'getsockname'.
45943         * doc/posix-functions/getsockopt.texi: Mention the new module
45944         'getsockopt'.
45945         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45946         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45947         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45948         * doc/posix-functions/send.texi: Mention the new module 'send'.
45949         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45950         * doc/posix-functions/setsockopt.texi: Mention the new module
45951         'setsockopt'.
45952         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45953         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45954         listen, connect, accept.
45955         * modules/select-tests (Depends-on): Likewise.
45956
45957 2008-10-05  Bruno Haible  <bruno@clisp.org>
45958
45959         * lib/winsock.c (strerror): Remove unused #undef.
45960         (rpl_close): Remove unused local variable.
45961
45962         * modules/sys_socket (Depends-on); Add errno.
45963
45964 2008-10-05  Bruno Haible  <bruno@clisp.org>
45965
45966         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45967         (select): Add a link warning when the 'select' module is not used.
45968         * modules/sys_select (Depends-on): Add link-warning.
45969         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45970         Suggested by Paolo Bonzini.
45971
45972 2008-10-05  Jim Meyering  <meyering@redhat.com>
45973
45974         bootstrap: check for LT_INIT more portably
45975         * build-aux/bootstrap: Avoid using grep -E, since it's not
45976         portable enough.  Suggestion from Bruno Haible.
45977
45978 2008-10-05  Bruno Haible  <bruno@clisp.org>
45979
45980         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45981         as being fixed by gnulib.
45982
45983 2008-10-05  Bruno Haible  <bruno@clisp.org>
45984
45985         * modules/select-tests: New file, mostly copied from
45986         modules/sys_select-tests.
45987         * tests/test-select.c: New file, mostly copied from
45988         tests/test-sys_select.c.
45989         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45990         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45991         (Makefile.am): Remove test_sys_select_LDADD.
45992
45993         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45994         to an undefined symbol, for an error message.
45995         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45996         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45997         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45998         winsock-select.c here.
45999         * modules/sys_select (Files): Remove lib/winsock-select.c.
46000         (Depends-on): Remove alloca.
46001         (Makefile.am): Substitute GNULIB_SELECT.
46002         * modules/select: New file.
46003         * doc/posix-functions/select.texi: Update.
46004
46005 2008-10-05  Bruno Haible  <bruno@clisp.org>
46006
46007         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46008         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46009         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46010         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46011         getdtablesize.
46012         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46013         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46014
46015 2008-10-05  Bruno Haible  <bruno@clisp.org>
46016
46017         * modules/getdtablesize-tests: New file.
46018         * tests/test-getdtablesize.c: New file.
46019
46020         New module 'getdtablesize'.
46021         * lib/unistd.in.h (getdtablesize): New declaration.
46022         * lib/getdtablesize.c: New file.
46023         * m4/getdtablesize.m4: New file.
46024         * modules/getdtablesize: New file.
46025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46026         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46027         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46028         HAVE_GETDTABLESIZE.
46029         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46030
46031 2008-10-05  Bruno Haible  <bruno@clisp.org>
46032
46033         * modules/sched (Makefile.am): Fix typo.
46034         Reported by Simon Josefsson.
46035
46036 2008-10-05  Jim Meyering  <meyering@redhat.com>
46037
46038         bootstrap: check for LT_INIT, too
46039         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46040         are deprecated.  Suggestion from Ralf Wildenhues.
46041
46042 2008-10-05  Bruno Haible  <bruno@clisp.org>
46043
46044         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46045         overriding them by ours.
46046         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46047
46048 2008-10-05  Jim Meyering  <meyering@redhat.com>
46049
46050         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46051         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46052         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46053
46054 2008-10-04  Bruno Haible  <bruno@clisp.org>
46055
46056         * modules/dup2 (License): Change to LGPLv2+.
46057         * modules/sleep (License): Likewise.
46058         * modules/perror (License): Likewise.
46059         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46060         Blake.
46061         * modules/signal (License): Likewise.
46062         * modules/sigprocmask (License): Likewise.
46063         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46064         Meyering.
46065
46066 2008-10-04  Bruno Haible  <bruno@clisp.org>
46067
46068         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46069         Reported by Rainer Tammer <tammer@tammer.net>.
46070
46071 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46072             Bruno Haible  <bruno@clisp.org>
46073
46074         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46075         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46076         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46077
46078 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46079
46080         filevercmp: new module
46081         * lib/filevercmp.h: New function filevercmp comparing version strings.
46082         * lib/filevercmp.c: Implementation of filevercmp function.
46083         * modules/filevercmp: Module metadata.
46084         * tests/test-filevercmp.c: Unit test for new module.
46085         * modules/filevercmp-tests: Unit test metadata.
46086         * MODULES.html.sh: Add filevercmp module.
46087
46088 2008-10-03  Bruno Haible  <bruno@clisp.org>
46089
46090         * lib/c-ctype.h: Add comment.
46091         Reported by Jim Meyering.
46092
46093 2008-10-02  Bruno Haible  <bruno@clisp.org>
46094
46095         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46096
46097 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46098
46099         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46100         name of bootstrap.conf accordingly.
46101
46102 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46103
46104         * build-aux/bootstrap: Install git-merge-changelog configuration
46105         items into .gitconfig if needed.
46106
46107 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46108
46109         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46110         git repository, and initialize/update it accordingly.
46111
46112 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46113
46114         * modules/fsync-tests: New file.
46115         * tests/test-fsync.c: New file.
46116
46117         New module 'fsync'.
46118         * lib/fsync.c: New file.
46119         * m4/fsync.m4: New file.
46120         * modules/fsync: New file.
46121         * lib/unistd.in.h (fsync): New declaration.
46122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46123         GNULIB_FSYNC and HAVE_FSYNC.
46124         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46125         * MODULES.html.sh (posix_functions): Add fsync.
46126         * doc/posix-functions/fsync.texi: Mention the new module.
46127
46128 2008-10-02  Jim Meyering  <meyering@redhat.com>
46129
46130         fts.c: sync with similar code from coreutils' remove.c
46131         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46132         Guard also with "#if defined __linux__", since for now at least,
46133         this code is Linux-kernel-specific.
46134
46135 2008-10-02  Jim Meyering  <meyering@redhat.com>
46136
46137         fts: bug fixes
46138         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46139         Include <sys/vfs.h>, not <sys/statfs.h>.
46140
46141         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46142         Include <sys/vfs.h>, not <sys/statfs.h>.
46143
46144 2008-10-01  Bruno Haible  <bruno@clisp.org>
46145
46146         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46147         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46148         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46149         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46150         * doc/posix-functions/posix_spawnp.texi: Likewise.
46151         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46152         whether posix_spawn actually works.
46153         * m4/pipe.m4 (gl_PIPE): Likewise.
46154         * modules/execute (Files): Add m4/posix_spawn.m4.
46155         * modules/pipe (Files): Add m4/posix_spawn.m4.
46156         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46157
46158 2008-10-01  Jim Meyering  <meyering@redhat.com>
46159
46160         remove trailing spaces
46161         * NEWS: Likewise.
46162         * lib/poll.c (poll): Likewise.
46163         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46164         * lib/winsock.c (rpl_close): Likewise.
46165         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46166         * modules/yield: Likewise.
46167         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46168         * tests/test-sys_select.c (connect_to_socket): Likewise.
46169
46170         fts.c: adjust a new interface to be more generally useful
46171         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46172         (fts_build): Adjust caller.
46173
46174 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46175
46176         * modules/cond-tests: New file.
46177         * tests/test-cond.c: New file.
46178
46179 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46180             Bruno Haible  <bruno@clisp.org>
46181
46182         * modules/cond (Dependencies): Add errno, time.
46183         * lib/glthread/cond.h: Include <time.h>.
46184         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46185         across platforms.
46186
46187 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46188             Bruno Haible  <bruno@clisp.org>
46189
46190         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46191
46192 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46193             Bruno Haible  <bruno@clisp.org>
46194
46195         * modules/tls-tests (Depends-on): Add thread, yield.
46196         (configure.ac): Remove all checks.
46197         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46198         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46199         gl_thread_self): Remove definitions. Include glthread/thread.h and
46200         glthread/yield.h instead.
46201         (test_tls): Pass an additional NULL argument to gl_thread_join.
46202
46203 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46204             Bruno Haible  <bruno@clisp.org>
46205
46206         * modules/lock-tests (Depends-on): Add thread, yield.
46207         (configure.ac): Remove all checks.
46208         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46209         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46210         gl_thread_self): Remove definitions. Include glthread/thread.h and
46211         glthread/yield.h instead.
46212         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46213         additional NULL argument to gl_thread_join.
46214
46215 2008-09-30  Bruno Haible  <bruno@clisp.org>
46216
46217         Fix the Win32 implementation of the 'thread' module.
46218         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46219         pointer type.
46220         (gl_thread_self): Invoke gl_thread_self_func.
46221         (gl_thread_self_func): New declaration.
46222         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46223         (do_init_self_key, init_self_key): New functions.
46224         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46225         Remove some fields.
46226         (running_threads, running_lock): Remove variables.
46227         (get_current_thread_handle): New function.
46228         (gl_thread_self_func, wrapper_func, glthread_create_func,
46229         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46230         simplified.
46231
46232 2008-09-30  Bruno Haible  <bruno@clisp.org>
46233
46234         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46235         files.
46236
46237 2008-09-30  Jim Meyering  <meyering@redhat.com>
46238
46239         fts.m4: correct the test for statfs.f_type
46240         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46241         when checking for statfs.f_type.
46242
46243 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46244
46245         tests: avoid some compiler warnings
46246         * tests/test-memchr.c (main): Pass NULL indirectly.
46247         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46248
46249 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46250
46251         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46252         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46253         exactly specified dayshifts.
46254         (dayshift): New rule.
46255         (rel): Add dayshift.
46256         (relative_time_table) [tomorrow, yesterday, today, now]:
46257         Use tDAY_SHIFT in place of tDAY_UNIT.
46258         * tests/test-getdate.c: Add tests for now-disallowed countable
46259         dayshifts, e.g., "4 yesterday ago".
46260
46261 2008-09-29  Bruno Haible  <bruno@clisp.org>
46262
46263         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46264         * tests/test-posix_spawn1.in.sh: Renamed from
46265         tests/test-posix_spawn.in.sh.
46266         * tests/test-posix_spawn2.c: New file.
46267         * tests/test-posix_spawn2.in.sh: New file.
46268         * modules/posix_spawnp-tests (Files): Update.
46269         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46270
46271 2008-09-29  Bruno Haible  <bruno@clisp.org>
46272
46273         Propagate effects of putenv/setenv/unsetenv to child processes.
46274         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46275         * lib/pipe.c (create_pipe): Likewise.
46276
46277 2008-09-29  Bruno Haible  <bruno@clisp.org>
46278
46279         Enable use of shell scripts as executables in mingw.
46280         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46281         run the program as a shell script.
46282         * lib/pipe.c (create_pipe): Likewise.
46283         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46284         resulting array.
46285
46286 2008-09-29  Eric Blake  <ebb9@byu.net>
46287
46288         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46289
46290 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46291
46292         * doc/posix-functions/accept.texi: Update mingw problems.
46293         * doc/posix-functions/bind.texi: Update mingw problems.
46294         * doc/posix-functions/close.texi: Update mingw problems.
46295         * doc/posix-functions/connect.texi: Update mingw problems.
46296         * doc/posix-functions/getpeername.texi: Update mingw problems.
46297         * doc/posix-functions/getsockname.texi: Update mingw problems.
46298         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46299         * doc/posix-functions/ioctl.texi: Update mingw problems.
46300         * doc/posix-functions/listen.texi: Update mingw problems.
46301         * doc/posix-functions/recv.texi: Update mingw problems.
46302         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46303         * doc/posix-functions/select.texi: Update mingw problems.
46304         * doc/posix-functions/send.texi: Update mingw problems.
46305         * doc/posix-functions/sendto.texi: Update mingw problems.
46306         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46307         * doc/posix-functions/socket.texi: Update mingw problems.
46308
46309 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46310             Bruno Haible  <bruno@clisp.org>
46311
46312         * lib/sys_select.in.h: Include sys/time.h.
46313         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46314         * modules/sys_select: Depend on sys_time.
46315         * tests/test-sys_select.c: Test that sys/select.h defines struct
46316         timeval fully.
46317
46318 2008-09-29  Bruno Haible  <bruno@clisp.org>
46319
46320         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46321         * lib/sys_select.in.h: Likewise.
46322
46323 2008-09-29  Bruno Haible  <bruno@clisp.org>
46324
46325         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46326
46327 2008-09-29  Bruno Haible  <bruno@clisp.org>
46328
46329         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46330         Set LIBSOCKET instead of augmenting LIBS.
46331         * modules/sockets (Link): New section.
46332         * modules/sockets-tests (test_sockets_LDADD): New variable.
46333         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46334         * modules/poll-tests (test_poll_LDADD): New variable.
46335         * NEWS: Document the change.
46336
46337 2008-09-29  Bruno Haible  <bruno@clisp.org>
46338
46339         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46340         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46341         ARPA_INET_H directly.
46342         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46343
46344 2008-09-28  Bruno Haible  <bruno@clisp.org>
46345
46346         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46347         from gl_HEADER_SYS_SOCKET.
46348         (gl_HEADER_SYS_SOCKET): Invoke it.
46349         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46350
46351 2008-09-28  Bruno Haible  <bruno@clisp.org>
46352
46353         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46354         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46355         Needed on OSF/1 4.0.
46356
46357 2008-09-28  Bruno Haible  <bruno@clisp.org>
46358
46359         Override open more carefully.
46360         * lib/open.c (orig_open): New function.
46361         (rpl_open): Use orig_open instead of open.
46362         * lib/fcntl.in.h: Add special invocation convention.
46363         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46364         (gl_FUNC_OPEN): Invoke it.
46365
46366         Override freopen more carefully.
46367         * lib/freopen.c (orig_freopen): New function.
46368         (rpl_freopen): Use orig_freopen instead of freopen.
46369         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46370         (gl_FUNC_FREOPEN): Invoke it.
46371
46372         Override fopen more carefully.
46373         * lib/fopen.c (orig_fopen): New function.
46374         (rpl_fopen): Use orig_fopen instead of fopen.
46375         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46376         (gl_FUNC_FOPEN): Invoke it.
46377         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46378
46379 2008-09-28  Bruno Haible  <bruno@clisp.org>
46380
46381         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46382         SIGPIPE.
46383
46384 2008-09-28  Bruno Haible  <bruno@clisp.org>
46385
46386         * tests/test-sigaction.c (handler, main): Disable the check whether
46387         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46388         glibc systems with LinuxThreads.
46389
46390 2008-09-28  Bruno Haible  <bruno@clisp.org>
46391
46392         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46393
46394         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46395         with AIX xlc.
46396         * lib/fcntl.in.h (open): Likewise.
46397         Reported by Rainer Tammer <tammer@tammer.net>.
46398
46399 2008-09-28  Bruno Haible  <bruno@clisp.org>
46400
46401         * modules/posix_spawnp-tests: New file.
46402         * tests/test-posix_spawn.c: New file.
46403         * tests/test-posix_spawn.in.sh: New file.
46404
46405         New module 'posix_spawnp'.
46406         * modules/posix_spawnp: New file.
46407         * lib/spawnp.c: New file, from GNU libc with modifications.
46408         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46409
46410         New module 'posix_spawn'.
46411         * modules/posix_spawn: New file.
46412         * lib/spawn.c: New file, from GNU libc with modifications.
46413         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46414
46415         New module 'posix_spawnattr_destroy'.
46416         * modules/posix_spawnattr_destroy: New file.
46417         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46418         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46419         module.
46420
46421         New module 'posix_spawnattr_setsigmask'.
46422         * modules/posix_spawnattr_setsigmask: New file.
46423         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46424         modifications.
46425         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46426         new module.
46427
46428         New module 'posix_spawnattr_getsigmask'.
46429         * modules/posix_spawnattr_getsigmask: New file.
46430         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46431         modifications.
46432         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46433         new module.
46434
46435         New module 'posix_spawnattr_setsigdefault'.
46436         * modules/posix_spawnattr_setsigdefault: New file.
46437         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46438         modifications.
46439         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46440         new module.
46441
46442         New module 'posix_spawnattr_getsigdefault'.
46443         * modules/posix_spawnattr_getsigdefault: New file.
46444         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46445         modifications.
46446         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46447         new module.
46448
46449         New module 'posix_spawnattr_setschedpolicy'.
46450         * modules/posix_spawnattr_setschedpolicy: New file.
46451         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46452         modifications.
46453         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46454         new module.
46455
46456         New module 'posix_spawnattr_getschedpolicy'.
46457         * modules/posix_spawnattr_getschedpolicy: New file.
46458         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46459         modifications.
46460         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46461         new module.
46462
46463         New module 'posix_spawnattr_setschedparam'.
46464         * modules/posix_spawnattr_setschedparam: New file.
46465         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46466         modifications.
46467         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46468         new module.
46469
46470         New module 'posix_spawnattr_getschedparam'.
46471         * modules/posix_spawnattr_getschedparam: New file.
46472         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46473         modifications.
46474         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46475         new module.
46476
46477         New module 'posix_spawnattr_setpgroup'.
46478         * modules/posix_spawnattr_setpgroup: New file.
46479         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46480         modifications.
46481         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46482         module.
46483
46484         New module 'posix_spawnattr_getpgroup'.
46485         * modules/posix_spawnattr_getpgroup: New file.
46486         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46487         modifications.
46488         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46489         module.
46490
46491         New module 'posix_spawnattr_setflags'.
46492         * modules/posix_spawnattr_setflags: New file.
46493         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46494         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46495         module.
46496
46497         New module 'posix_spawnattr_getflags'.
46498         * modules/posix_spawnattr_getflags: New file.
46499         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46500         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46501         module.
46502
46503         New module 'posix_spawnattr_init'.
46504         * modules/posix_spawnattr_init: New file.
46505         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46506         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46507         module.
46508
46509         New module 'posix_spawn_file_actions_destroy'.
46510         * modules/posix_spawn_file_actions_destroy: New file.
46511         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46512         modifications.
46513         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46514         the new module.
46515
46516         New module 'posix_spawn_file_actions_addopen'.
46517         * modules/posix_spawn_file_actions_addopen: New file.
46518         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46519         modifications.
46520         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46521         the new module.
46522
46523         New module 'posix_spawn_file_actions_adddup2'.
46524         * modules/posix_spawn_file_actions_adddup2: New file.
46525         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46526         modifications.
46527         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46528         the new module.
46529
46530         New module 'posix_spawn_file_actions_addclose'.
46531         * modules/posix_spawn_file_actions_addclose: New file.
46532         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46533         modifications.
46534         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46535         the new module.
46536
46537         New module 'posix_spawn_file_actions_init'.
46538         * modules/posix_spawn_file_actions_init: New file.
46539         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46540         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46541         new module.
46542
46543         New module 'posix_spawn-internal'.
46544         * modules/posix_spawn-internal: New file.
46545         * lib/spawn_int.h: New file, from GNU libc with modifications.
46546         * lib/spawni.c: New file, from GNU libc with modifications.
46547         * m4/posix_spawn.m4: New file.
46548
46549         New module 'spawn'.
46550         * modules/spawn: New file.
46551         * lib/spawn.in.h: New file, from GNU libc with modifications.
46552         * m4/spawn_h.m4: New file.
46553         * doc/posix-headers/spawn.texi: Mention the new module.
46554
46555 2008-09-28  Bruno Haible  <bruno@clisp.org>
46556
46557         * modules/sched-tests: New file.
46558         * tests/test-sched.c: New file.
46559
46560         New module 'sched'.
46561         * modules/sched: New file.
46562         * lib/sched.in.h: New file.
46563         * m4/sched_h.m4: New file.
46564         * doc/posix-headers/sched.texi: Mention the new module.
46565
46566 2008-09-27  Eric Blake  <ebb9@byu.net>
46567
46568         Fix previous patch, and tweak references to $0.
46569         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46570         (func_version, func_gnulib_dir): Don't call this program
46571         gnulib-tool.
46572         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46573         with using $0 in function.
46574         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46575         (func_fatal_error): Reuse the name the user invoked us with.
46576
46577 2008-09-27  Bruno Haible  <bruno@clisp.org>
46578
46579         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46580         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46581         (gl_ICONV_H): Not here.
46582         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46583         instead of assigning ICONV_H directly.
46584
46585         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46586         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46587         WCHAR_H directly.
46588
46589 2008-09-27  Bruno Haible  <bruno@clisp.org>
46590
46591         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46592         * modules/arpa_inet (Depends-on): Add link-warning.
46593         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46594         * modules/unistd (Makefile.am): Likewise.
46595
46596 2008-09-26  Bruno Haible  <bruno@clisp.org>
46597
46598         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46599         variables.
46600         (func_version): Essentially copied from gnulib-tool.
46601         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46602         func_readlink): Copied from gnulib-tool.
46603
46604 2008-09-26  Bruno Haible  <bruno@clisp.org>
46605
46606         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46607         invoking git-version-gen.
46608
46609 2008-09-26  Bruno Haible  <bruno@clisp.org>
46610
46611         * posix-modules: Update to directory names changed on 2008-01-19.
46612         Remove commas in output before splitting into words. No more need to
46613         avoid 'ftruncate' since 2007-02-19.
46614
46615 2008-09-26  Bruno Haible  <bruno@clisp.org>
46616
46617         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46618
46619 2008-09-26  Bruno Haible  <bruno@clisp.org>
46620
46621         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46622         * modules/fwriteerror (Depends-on): Add errno.
46623
46624 2008-09-26  Bruno Haible  <bruno@clisp.org>
46625
46626         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46627         * tests/test-vc-list-files-cvs.sh: Likewise.
46628
46629 2008-09-26  Bruno Haible  <bruno@clisp.org>
46630
46631         * doc/posix-headers/sys_resource.texi: Reorder items.
46632
46633 2008-09-26  Jim Meyering  <meyering@redhat.com>
46634
46635         fts: tweak inode comparison function
46636         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46637         inode numbers, as documented.
46638
46639         fts: sort dirent entries on inode number before traversing
46640         This avoids a quadratic, seek-related performance penalty when
46641         operating on a directory containing many entries (measurable at 10k;
46642         3.5 hours at 2 million entries with a cold cache) on certain types
46643         of file systems, including ext3 and ext4, but not tmpfs.
46644         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46645         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46646         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46647         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46648         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46649         (fts_build): Set the stat.st_ino member from D_INO.
46650         If it is likely to be useful, sort dirent entries on inode number.
46651
46652         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46653         and the struct statfs.f_type member.
46654         * modules/fts (Depends-on): Add d-ino.
46655
46656 2008-09-26  Bruno Haible  <bruno@clisp.org>
46657
46658         * modules/sigpipe-die (Depends-on): Add sigpipe.
46659
46660         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46661         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46662         and GNULIB_STDIO_H_SIGPIPE are set.
46663         * lib/stdio-write.c: New file.
46664         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46665         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46666         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46667         REPLACE_STDIO_WRITE_FUNCS.
46668         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46669         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46670         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46671         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46672         * modules/stdio (Files): Add lib/stdio-write.c.
46673         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46674         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46675         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46676         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46677         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46678         REPLACE_FPRINTF_POSIX.
46679         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46680         REPLACE_PRINTF_POSIX.
46681         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46682         REPLACE_VFPRINTF_POSIX.
46683         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46684         REPLACE_VPRINTF_POSIX.
46685         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46686         SIGPIPE issue.
46687         * doc/posix-functions/fputc.texi: Likewise.
46688         * doc/posix-functions/fputs.texi: Likewise.
46689         * doc/posix-functions/fwrite.texi: Likewise.
46690         * doc/posix-functions/printf.texi: Likewise.
46691         * doc/posix-functions/putc.texi: Likewise.
46692         * doc/posix-functions/putchar.texi: Likewise.
46693         * doc/posix-functions/puts.texi: Likewise.
46694         * doc/posix-functions/vfprintf.texi: Likewise.
46695         * doc/posix-functions/vprintf.texi: Likewise.
46696
46697         * modules/safe-write (Depends-on): Add write.
46698
46699         * modules/sigpipe-tests: New file.
46700         * tests/test-sigpipe.c: New file.
46701         * tests/test-sigpipe.sh: New file.
46702
46703         * modules/write: New file.
46704         * lib/unistd.in.h: Include <sys/types.h>.
46705         (write): New declaration.
46706         * lib/write.c: New file.
46707         * m4/write.m4: New file.
46708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46709         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46710         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46711         GNULIB_WRITE, REPLACE_WRITE.
46712         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46713         and the SIGPIPE issue.
46714
46715         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46716         (raise): New declaration.
46717         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46718         (ext_signal): New function.
46719         (rpl_raise): New function.
46720         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46721         GNULIB_SIGNAL_H_SIGPIPE.
46722         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46723         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46724
46725         * modules/sigpipe: New file.
46726         * m4/sigpipe.m4: New file.
46727
46728 2008-09-25  Derek Price  <derek@ximbiot.com>
46729             Bruno Haible  <bruno@clisp.org>
46730
46731         * gnulib-tool (func_import): Report all license incompatibilities, not
46732         just the first one.
46733
46734 2008-09-25  Bruno Haible  <bruno@clisp.org>
46735
46736         * gnulib-tool (func_import): When computing the edits, consider not
46737         only the Makefile.ams that exist but also those that will be generated.
46738
46739 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46740
46741         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46742         fixes gnulib-tool --test warning about duplicate dependency.
46743
46744 2008-09-25  Bruno Haible  <bruno@clisp.org>
46745
46746         * gnulib-tool: Don't ask the user to perform edits in the generated
46747         Makefile.ams.
46748         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46749         apply to the Makefile.am being generated.
46750         (func_emit_tests_Makefile_am): Execute edits that apply to the
46751         Makefile.am being generated.
46752         (func_import): Setup list of Makefile.am edits before emitting the
46753         Makefile.ams, not at the end.
46754         (func_create_testdir): Update.
46755         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46756
46757 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46758
46759         * gnulib-tool (func_import): Store the --tests-base option in the
46760         comment in gnulib-cache.m4.
46761
46762 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46763
46764         * NEWS: Document increased portability that sys_select now provides.
46765
46766         * lib/sys_select.in.h: Install select wrapper.
46767         * lib/sys_socket.in.h: Use more descriptive name when there is no
46768         select wrapper.
46769         * lib/winsock-select.c: New.
46770         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46771         Require gl_HEADER_SYS_SOCKET.
46772         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46773         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46774         * tests/test-sys_select.c: Add functional tests.
46775
46776 2008-09-24  Eric Blake  <ebb9@byu.net>
46777
46778         open, fopen: close fd leak in last patch
46779         * lib/open.c (rpl_open): Close fd before returning error.
46780         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46781         * doc/posix-functions/open.texi (open): Document that Irix also
46782         has the bug.
46783         * doc/posix-functions/fopen.texi (fopen): Likewise.
46784         Reported by Paolo Bonzini.
46785
46786 2008-09-24  Bruno Haible  <bruno@clisp.org>
46787
46788         Ensure that a filename ending in a slash cannot be used to access a
46789         non-directory.
46790         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46791         to check whether it's really a directory.
46792         * lib/fopen.c: Include fcntl.h, unistd.h.
46793         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46794         and fdopen().
46795         * modules/fopen (Depends-on): Add unistd.
46796         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46797         * tests/test-fopen.c (main): Likewise.
46798         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46799         * doc/posix-functions/fopen.texi: Likewise.
46800         Reported by Eric Blake.
46801
46802 2008-09-23  Eric Blake  <ebb9@byu.net>
46803
46804         c-stack: avoid compiler optimizations when provoking overflow
46805         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46806         recursion harder to optimize, to ensure a stack overflow occurs.
46807         * tests/test-c-stack.c (recurse): Likewise.
46808         Borrowed from libsigsegv.
46809
46810         c-stack: work around Irix sigaltstack bug
46811         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46812         whether sigaltstack uses wrong end of stack_t (copied in part from
46813         libsigsegv).
46814         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46815         Irix bug, without requiring an over-allocation.
46816         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46817         bug.
46818
46819         fopen: document mingw bug on directories
46820         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46821         not allowing a stream visiting a directory, even though reading
46822         from such a stream is not portable.
46823
46824 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46825
46826         * lib/poll.c: Rewrite.
46827         * modules/poll: Depend on alloca.
46828
46829 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46830
46831         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46832         instead define prototypes for a full set of wrappers.  Ensure
46833         that Cygwin does not use the compatibility code, which is only
46834         for MinGW.
46835         * lib/winsock.c: New.
46836         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46837         * modules/sys_socket: Add lib/winsock.c.
46838
46839         * modules/poll-tests: Add errno and perror.
46840         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46841
46842 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46843
46844         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46845
46846 2008-09-23  Bruno Haible  <bruno@clisp.org>
46847
46848         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46849         * doc/glibc-functions/*: Likewise.
46850
46851 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46852
46853         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46854         success.
46855
46856 2008-09-22  Eric Blake  <ebb9@byu.net>
46857             Bruno Haible  <bruno@clisp.org>
46858
46859         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46860         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46861         supply %A but mishandle pseudo-NaN.
46862         Reported by Simon Josefsson.
46863
46864 2008-09-21  Bruno Haible  <bruno@clisp.org>
46865
46866         * tests/test-lock.c (main): Tweak skip message.
46867         * tests/test-tls.c (main): Likewise.
46868
46869 2008-09-21  Bruno Haible  <bruno@clisp.org>
46870
46871         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46872         whether 'struct sigaction' has sa_sigaction here...
46873         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46874         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46875
46876 2008-09-21  Bruno Haible  <bruno@clisp.org>
46877
46878         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46879         section.
46880         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46881         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46882         the new section.
46883         (Support for obsolete systems lacking POSIX:2001): New section.
46884         (String handling <string.h>): Move strdup to the new section.
46885         Suggested by Simon Josefsson and Paolo Bonzini.
46886
46887 2008-09-21  Bruno Haible  <bruno@clisp.org>
46888
46889         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46890         exponents in %e and %g results on 'long double'. Needed for mingw's
46891         improved *printf functions.
46892         * tests/test-vasprintf-posix.c (test_function): Likewise.
46893         * tests/test-snprintf-posix.h (test_function): Likewise.
46894         * tests/test-sprintf-posix.h (test_function): Likewise.
46895         Reported by Eric Blake.
46896
46897 2008-09-21  Bruno Haible  <bruno@clisp.org>
46898
46899         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46900         * tests/test-sprintf-posix.h (test_function): Likewise.
46901
46902 2008-09-21  Bruno Haible  <bruno@clisp.org>
46903
46904         * modules/getpass (Depends-on): Add strdup-posix.
46905
46906         New module 'strdup-posix'.
46907         * modules/strdup-posix: New file.
46908         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46909         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46911         REPLACE_STRDUP.
46912         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46913         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46914         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46915         strdup-posix.
46916
46917         * modules/strdup (Depends-on): Remove malloc-posix.
46918
46919 2008-09-20  Bruno Haible  <bruno@clisp.org>
46920
46921         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46922         Wildenhues.
46923
46924 2008-09-20  Bruno Haible  <bruno@clisp.org>
46925
46926         Ensure that wint_t gets defined on IRIX 5.3.
46927         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46928         * lib/wctype.in.h (wint_t): Likewise.
46929         (__wctype_wint_t): Remove type.
46930         (isw*): Use wint_t instead of __wctype_wint_t.
46931         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46932         * modules/wchar (Files): Add m4/wint_t.m4.
46933         (Makefile.am): Substitute HAVE_WINT_T.
46934         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46935         * tests/test-wctype.c: Check that wint_t is defined.
46936         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46937         * doc/posix-headers/wctype.texi: Likewise.
46938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46939
46940 2008-09-18  Bruno Haible  <bruno@clisp.org>
46941
46942         * gnulib-tool (func_exit): Update comment.
46943
46944 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46945
46946         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46947         assumes strdup exists and does not depend on strdup to return
46948         ENOMEM on out of memory conditions.
46949
46950 2008-09-18  Bruno Haible  <bruno@clisp.org>
46951
46952         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46953         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46954         digits for the exponent.
46955
46956 2008-09-18  Jim Meyering  <meyering@redhat.com>
46957             Bruno Haible  <bruno@clisp.org>
46958
46959         * lib/vasnprintf.c (decimal_point_char): Define also if
46960         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46961
46962 2008-09-16  Bruno Haible  <bruno@clisp.org>
46963         and Eric Blake  <ebb9@byu.net>
46964
46965         vasnprintf: support Irix 5.3
46966         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46967         that mishandle long double infinity.
46968         Reported by Tom G. Christensen.
46969
46970 2008-09-16  Bruno Haible  <bruno@clisp.org>
46971
46972         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46973         Solaris 9.
46974         * doc/glibc-functions/alphasort.texi: Likewise.
46975         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46976
46977 2008-09-16  Jim Meyering  <meyering@redhat.com>
46978
46979         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46980         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46981         a umask modification leak out of a subshell.  Otherwise, the
46982         opensolaris /bin/sh would be accepted and thus cause unwarranted
46983         failures in the coreutils test suite.
46984
46985 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46986
46987         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46988         to succeed.
46989
46990 2008-09-16  Jim Meyering  <meyering@redhat.com>
46991
46992         avoid spurious test failure when library is built without ACL support
46993         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46994         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46995         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46996         * tests/test-copy-acl.sh: Likewise.
46997
46998 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46999
47000         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47001         based on character occurrence counts.
47002
47003 2008-09-15  Eric Blake  <ebb9@byu.net>
47004
47005         tests: avoid some compiler warnings
47006         * tests/test-memchr.c (main): Pass NULL indirectly.
47007         * tests/test-closein.c (main): Avoid unused variable.
47008
47009 2008-09-15  Bruno Haible  <bruno@clisp.org>
47010
47011         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47012         are missing on OpenBSD 4.0 individually.
47013         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47014
47015 2008-09-15  Bruno Haible  <bruno@clisp.org>
47016
47017         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47018         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47019         * doc/posix-functions/perror.texi: Likewise.
47020         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47021         is missing.
47022         Reported by Eric Blake.
47023
47024         * lib/errno.in.h: Use replacement values >= 2000.
47025         Reported by Eric Blake.
47026
47027 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47028
47029         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47030         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47031         limit.
47032         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47033         compareseq was aborted.
47034
47035 2008-09-14  Bruno Haible  <bruno@clisp.org>
47036
47037         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47038         yvec_edit_count.
47039         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47040         (fstrcmp_bounded): Simplify result computation accordingly.
47041
47042 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47043
47044         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47045         (fstrcmp): Define in terms of fstrcmp_bounded.
47046         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47047         lower_bound argument.
47048         Return quickly if the result is certainly < lower_bound.
47049         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47050
47051 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47052
47053         * lib/diffseq.h (EARLY_ABORT): New macro.
47054         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47055         evaluates to true.
47056
47057 2008-09-14  Bruno Haible  <bruno@clisp.org>
47058
47059         * modules/perror-tests: New file.
47060         * tests/test-perror.sh: New file.
47061         * tests/test-perror.c: New file.
47062
47063         New module 'perror'.
47064         * lib/stdio.in.h (perror): New declaration.
47065         * lib/perror.c: New file.
47066         * m4/perror.m4: New file.
47067         * modules/perror: New file.
47068         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47069         * doc/posix-functions/perror.texi: Mention the perror module.
47070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47071         REPLACE_PERROR.
47072         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47073         REPLACE_PERROR.
47074
47075 2008-09-14  Bruno Haible  <bruno@clisp.org>
47076
47077         * modules/stdio (Makefile.am): Reorder to match the order in
47078         lib/stdio.in.h.
47079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47080
47081 2008-09-13  Bruno Haible  <bruno@clisp.org>
47082
47083         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47084
47085 2008-09-13  Bruno Haible  <bruno@clisp.org>
47086
47087         Extend strerror to cover the added errno values.
47088         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47089         (rpl_strerror): Provide error messages for the added errno values and
47090         for the WSA* values.
47091         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47092         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47093         strerror.
47094         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47095         * modules/strerror (Depends-on): Add errno.
47096         * doc/posix-functions/strerror.texi: Document the change.
47097         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47098         and EOVERFLOW.
47099
47100 2008-09-13  Bruno Haible  <bruno@clisp.org>
47101
47102         * modules/EOVERFLOW: Remove file.
47103         * m4/eoverflow.m4: Remove file.
47104         * modules/EOVERFLOW-tests: Remove file.
47105         * tests/test-EOVERFLOW.c: Remove file.
47106         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47107         * modules/ftell (Depends-on): Likewise.
47108         * modules/getdelim (Depends-on): Likewise.
47109         * modules/getugroups (Depends-on): Likewise.
47110         * modules/poll (Depends-on): Likewise.
47111         * modules/snprintf (Depends-on): Likewise.
47112         * modules/sprintf-posix (Depends-on): Likewise.
47113         * modules/vasnprintf (Depends-on): Likewise.
47114         * modules/vasprintf (Depends-on): Likewise.
47115         * modules/vfprintf-posix (Depends-on): Likewise.
47116         * modules/vsnprintf (Depends-on): Likewise.
47117         * modules/vsprintf-posix (Depends-on): Likewise.
47118         * modules/xvasprintf (Depends-on): Likewise.
47119         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47120         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47121         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47122         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47123         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47124         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47125         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47126         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47127         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47128         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47129         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47130         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47131         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47132         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47133         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47134         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47135         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47136         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47137         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47138         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47139         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47140         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47141         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47142         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47143         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47144         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47145         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47146         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47147         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47148         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47149         * MODULES.html.sh: Remove EOVERFLOW.
47150         * NEWS: Mention the change.
47151
47152 2008-09-13  Bruno Haible  <bruno@clisp.org>
47153
47154         * modules/errno-tests: New file.
47155         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47156
47157         * lib/errno.in.h: New file.
47158         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47159         * modules/errno: New file.
47160         * doc/posix-headers/errno.texi: Update documentation.
47161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47162
47163 2008-09-13  Bruno Haible  <bruno@clisp.org>
47164
47165         * tests/test-poll.c: Use #if for native Windows, rather than testing
47166         __MSVCRT__.
47167
47168 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47169             Bruno Haible  <bruno@clisp.org>
47170
47171         * lib/glob.c: Don't include <pwd.h> on native Windows.
47172         (WINDOWS32): New macro.
47173         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47174
47175 2008-09-13  Bruno Haible  <bruno@clisp.org>
47176
47177         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47178         (ETIMEDOUT): Remove macro.
47179         (glthread_cond_timedwait_multithreaded): New declaration.
47180         (glthread_cond_timedwait): Use it.
47181         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47182         (glthread_cond_timedwait_multithreaded): New function.
47183
47184 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47185
47186         * modules/poll-tests: Do not check for io.h.
47187         * tests/test-poll.c: Check for __MSVCRT__ instead.
47188
47189 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47190
47191         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47192         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47193         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47194
47195 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47196
47197         * modules/poll-tests: New.
47198         * tests/test-poll.c: New.
47199
47200 2008-09-12  Eric Blake  <ebb9@byu.net>
47201
47202         frexp: test for NetBSD failure on -0.0
47203         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47204         not all, bugs from NetBSD 3.0 have been fixed.
47205         * doc/posix-functions/frexp.texi (frexp): Document bug.
47206         Reported by Thomas Klausner.
47207
47208         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47209         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47210         literal -0.0.
47211         Reported by Jonathan C. Patschke <jp@centtech.com>.
47212
47213 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47214
47215         * lib/glthread/cond.h: Use dummy implementation also if
47216         USE_WIN32_THREADS.
47217
47218 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47219
47220         * modules/fnmatch-posix (License): Change to LGPLv2+.
47221         * modules/fnmatch-gnu (License): Likewise.
47222
47223 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47224
47225         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47226
47227 2008-09-11  Jim Meyering  <meyering@redhat.com>
47228
47229         * users.txt: Add gtk-vnc.
47230
47231 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47232
47233         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47234         rotate amounts.
47235
47236         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47237         required for 16-bit and 8-bit rotates.
47238         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47239         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47240         UINT8_MAX instead of hard-coded constants.
47241         Suggested by Paul Eggert.
47242
47243 2008-09-07  Bruno Haible  <bruno@clisp.org>
47244
47245         * tests/test-striconveh.c (main): Check behaviour when converting from
47246         UTF-7.
47247
47248         Make striconveh work better with stateful encodings.
47249         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47250         that iconv does not increment the inptr when returning -1/EINVAL.
47251
47252 2008-09-07  Bruno Haible  <bruno@clisp.org>
47253
47254         * build-aux/config.rpath: Update according to libtool-2.2.6.
47255         * build-aux/config.libpath: Likewise.
47256
47257 2008-09-06  Bruno Haible  <bruno@clisp.org>
47258
47259         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47260         * lib/freadptr.c (freadptr): Likewise.
47261         * lib/freadseek.c (freadptrinc): Likewise.
47262         Reported by Simon Josefsson.
47263
47264 2008-09-06  Bruno Haible  <bruno@clisp.org>
47265
47266         * modules/freadptr (License): Change to LGPLv2+.
47267         * modules/freadseek (License): Likewise.
47268         Suggested by Eric Blake.
47269
47270         * modules/memchr2 (License): Change to LGPLv2+.
47271         Approved by Eric Blake.
47272
47273 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47274             Bruno Haible  <bruno@clisp.org>
47275
47276         Make gnulib-tool work with native 'sed' on AIX.
47277         * gnulib-tool (sed_noop): New variable.
47278         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47279         func_add_or_update, func_create_testdir): Use it to initialize sed
47280         script variables.
47281         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47282
47283 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47284             Bruno Haible  <bruno@clisp.org>
47285
47286         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47287         also works after #include directives.
47288
47289 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47290
47291         getdate.y: reject an out-of-range timezone value
47292         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47293         the range [-24...+24].  When specified with only one or two digits,
47294         * tests/test-getdate.c: Tests for the fix.
47295         * doc/getdate.texi: Document this change.
47296
47297 2008-09-03  Bruno Haible  <bruno@clisp.org>
47298
47299         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47300
47301 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47302
47303         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47304         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47305         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47306         Blake <ebb9@byu.net>.
47307
47308         * tests/test-bitrotate.c: Add more test vectors.
47309
47310 2008-09-02  Eric Blake  <ebb9@byu.net>
47311
47312         vasnprintf-posix: handle large precision via %.*d
47313         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47314         when handling it ourselves.
47315         * tests/test-vasnprintf-posix.c (test_function): Add test.
47316         * tests/test-snprintf-posix.h (test_function): Likewise.
47317         * tests/test-sprintf-posix.h (test_function): Likewise.
47318         * tests/test-vasprintf-posix.c (test_function): Likewise.
47319         Reported by Alain Guibert.
47320
47321 2008-09-01  Eric Blake  <ebb9@byu.net>
47322
47323         c-stack: make configure-time check more robust
47324         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47325         successful sigaction call.
47326         Reported by Tom G. Christensen.
47327
47328 2008-09-01  Bruno Haible  <bruno@clisp.org>
47329
47330         New module 'findprog-lgpl'.
47331         * modules/findprog-lgpl: New file.
47332         * lib/findprog-lgpl.c: New file.
47333         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47334         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47335         to decide whether to use strdup or xstrdup, concatenated_filename or
47336         xconcatenated_filename.
47337
47338 2008-09-01  Bruno Haible  <bruno@clisp.org>
47339
47340         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47341         'xconcat-filename' (GPL).
47342         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47343         (License): Change to LGPLv2+.
47344         * modules/xconcat-filename: New file.
47345         * lib/concat-filename.h (concatenated_filename): Change specification.
47346         (xconcatenated_filename): New declaration.
47347         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47348         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47349         memory situations.
47350         * lib/xconcat-filename.c: New file.
47351         * NEWS: Mention the change.
47352         * lib/findprog.c: Include concat-filename.h, not filename.h.
47353         (find_in_path): Use xconcatenated_filename instead of
47354         concatenated_filename.
47355         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47356         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47357         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47358         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47359         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47360         instead of concatenated_filename.
47361         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47362         (execute_java_class): Use xconcatenated_filename instead of
47363         concatenated_filename.
47364         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47365         * modules/javacomp (Depends-on): Likewise.
47366         * modules/javaexec (Depends-on): Likewise.
47367
47368 2008-09-01  Bruno Haible  <bruno@clisp.org>
47369
47370         Split module 'filename' into 'filename' and 'concat-filename'.
47371         * modules/filename: Keep only lib/filename.h.
47372         (License): Change to LGPLv2+.
47373         * modules/concat-filename: New file, extracted from modules/filename.
47374         * lib/filename.h (concatenated_filename): Remove declaration.
47375         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47376         * lib/concat-filename.c: Include concat-filename.h.
47377         * NEWS: Mention the change.
47378
47379 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47380
47381         * lib/bitrotate.h (rotl8, rotr8): Add.
47382
47383         * modules/bitrotate (configure.ac): Need
47384         AC_REQUIRE([AC_C_INLINE]).
47385         (Description): Mention stdint.h.  Reported by Bruno Haible
47386         <bruno@clisp.org>.
47387
47388         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47389         Paolo Bonzini <bonzini@gnu.org>.
47390
47391 2008-08-31  Bruno Haible  <bruno@clisp.org>
47392
47393         Assume Solaris specific bi-arch conventions on Solaris systems.
47394         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47395         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47396         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47397         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47398         like acl_libdirstem.
47399         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47400         acl_libdirstem.
47401         * NEWS: Mention the change.
47402         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47403
47404 2008-08-31  Jim Meyering  <meyering@redhat.com>
47405
47406         * lib/strftime.h: Add comments describing the two added arguments.
47407
47408         remove duplicate #include directives
47409         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47410         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47411
47412 2008-08-31  Bruno Haible  <bruno@clisp.org>
47413
47414         New module 'sigpipe-die'.
47415         * modules/sigpipe-die: New file.
47416         * lib/sigpipe-die.h: New file.
47417         * lib/sigpipe-die.c: New file.
47418         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47419
47420 2008-08-31  Bruno Haible  <bruno@clisp.org>
47421
47422         Don't override previously installed signal handlers.
47423         * lib/fatal-signal.c (saved_sigactions): New variable.
47424         (uninstall_handlers): Reset the signal to the saved handler, not
47425         to SIG_DFL (except when ignored).
47426         (install_handlers): Save the previous handlers.
47427
47428 2008-08-30  Bruno Haible  <bruno@clisp.org>
47429
47430         * gnulib-tool (func_reset_sigpipe): New function.
47431         (func_get_automake_snippet, func_modules_transitive_closure,
47432         func_import): Invoke it before a join command that reads from stdin,
47433         to avoid "echo: write error: Broken pipe" error messages on stderr.
47434         Reported by Sam Steingold <sds@gnu.org>.
47435
47436 2008-08-30  Bruno Haible  <bruno@clisp.org>
47437
47438         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47439         Code copied from m4/open.m4.
47440         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47441         access and the filename ends in a slash. Code copied from lib/open.c.
47442         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47443         * tests/test-fopen.c (main): Check against bug with trailing slash.
47444
47445 2008-08-29  Bruno Haible  <bruno@clisp.org>
47446
47447         Avoid some "gcc -pedantic" warnings.
47448         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47449         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47450         * lib/dirent.in.h: Likewise.
47451         * lib/fcntl.in.h: Likewise.
47452         * lib/float.in.h: Likewise.
47453         * lib/iconv.in.h: Likewise.
47454         * lib/inttypes.in.h: Likewise.
47455         * lib/locale.in.h: Likewise.
47456         * lib/math.in.h: Likewise.
47457         * lib/netinet_in.in.h: Likewise.
47458         * lib/search.in.h: Likewise.
47459         * lib/signal.in.h: Likewise.
47460         * lib/stdarg.in.h: Likewise.
47461         * lib/stdint.in.h: Likewise.
47462         * lib/stdio.in.h: Likewise.
47463         * lib/stdlib.in.h: Likewise.
47464         * lib/string.in.h: Likewise.
47465         * lib/strings.in.h: Likewise.
47466         * lib/sys_select.in.h: Likewise.
47467         * lib/sys_socket.in.h: Likewise.
47468         * lib/sys_stat.in.h: Likewise.
47469         * lib/sys_time.in.h: Likewise.
47470         * lib/sysexits.in.h: Likewise.
47471         * lib/time.in.h: Likewise.
47472         * lib/unistd.in.h: Likewise.
47473         * lib/wchar.in.h: Likewise.
47474         * lib/wctype.in.h: Likewise.
47475         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47476         * modules/fchdir (Makefile.am): Likewise.
47477         * modules/fcntl (Makefile.am): Likewise.
47478         * modules/float (Makefile.am): Likewise.
47479         * modules/iconv_open (Makefile.am): Likewise.
47480         * modules/inttypes (Makefile.am): Likewise.
47481         * modules/locale (Makefile.am): Likewise.
47482         * modules/math (Makefile.am): Likewise.
47483         * modules/netinet_in (Makefile.am): Likewise.
47484         * modules/search (Makefile.am): Likewise.
47485         * modules/signal (Makefile.am): Likewise.
47486         * modules/stdarg (Makefile.am): Likewise.
47487         * modules/stdint (Makefile.am): Likewise.
47488         * modules/stdio (Makefile.am): Likewise.
47489         * modules/stdlib (Makefile.am): Likewise.
47490         * modules/string (Makefile.am): Likewise.
47491         * modules/strings (Makefile.am): Likewise.
47492         * modules/sys_select (Makefile.am): Likewise.
47493         * modules/sys_socket (Makefile.am): Likewise.
47494         * modules/sys_stat (Makefile.am): Likewise.
47495         * modules/sys_time (Makefile.am): Likewise.
47496         * modules/sysexits (Makefile.am): Likewise.
47497         * modules/time (Makefile.am): Likewise.
47498         * modules/unistd (Makefile.am): Likewise.
47499         * modules/wchar (Makefile.am): Likewise.
47500         * modules/wctype (Makefile.am): Likewise.
47501         Reported by Reuben Thomas <rrt@sc3d.org>.
47502
47503 2008-08-29  Bruno Haible  <bruno@clisp.org>
47504
47505         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47506         any more.
47507
47508 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47509
47510         * MODULES.html.sh (Misc): Add bitrotate.
47511
47512         * modules/bitrotate: New file.
47513
47514         * lib/bitrotate.h: New file.
47515
47516         * modules/bitrotate-tests: New file.
47517
47518         * tests/test-bitrotate.c: New file.
47519
47520         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47521         on the bitrotate module.
47522
47523         * lib/arctwo.c: Use new bitrotate module.
47524
47525 2008-08-29  Jim Meyering  <meyering@redhat.com>
47526
47527         bootstrap: merge changes from coreutils
47528         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47529         of copied files.  Remove a kludge, now that this is fixed.
47530         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47531         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47532         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47533
47534 2008-08-29  Bruno Haible  <bruno@clisp.org>
47535
47536         * MODULES.html.sh: Remove --cvs-urls option.
47537
47538 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47539
47540         maint.mk: adjust to file name change
47541         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47542
47543 2008-08-28  Jim Meyering  <meyering@redhat.com>
47544
47545         * modules/getndelim2 (License): Relicense to LGPLv2+.
47546         Approved by Richard Stallman for the version of 1995, and by
47547         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47548
47549 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47550
47551         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47552         dummy if one is not available.  Do not touch them if
47553         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47554         (getc_maybe_unlocked): New.
47555         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47556
47557 2008-08-26  Eric Blake  <ebb9@byu.net>
47558
47559         doc/INSTALL: resync from autoconf
47560         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47561         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47562         moving...
47563         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47564         * INSTALL: Regenerate.
47565         * INSTALL.ISO: New file.
47566         * INSTALL.UTF-8: Likewise.
47567
47568 2008-08-26  Jim Meyering  <meyering@redhat.com>
47569
47570         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47571         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47572         these definitions conditional, so that they may be overridden, too.
47573
47574 2008-08-26  Bruno Haible  <bruno@clisp.org>
47575
47576         Generate INSTALL file variants with prettier quotes.
47577         * doc/Makefile (INSTALL_PRELUDE): New macro.
47578         (INSTALL): Use it.
47579         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47580
47581 2008-08-26  Bruno Haible  <bruno@clisp.org>
47582
47583         Run makeinfo in an English locale.
47584         * doc/Makefile (MAKEINFO): New variable.
47585
47586 2008-08-26  Bruno Haible  <bruno@clisp.org>
47587
47588         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47589         Suggested by Eric Blake.
47590
47591 2008-08-25  Bruno Haible  <bruno@clisp.org>
47592
47593         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47594
47595 2008-08-25  Eric Blake  <ebb9@byu.net>
47596
47597         c-stack: test that stack overflow can be caught
47598         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47599         that platform allows handling stack overflow; at least OS/2 EMX
47600         has sigaltstack, but crashes before transferring control to
47601         handler on stack overflow.
47602         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47603         check for HAVE_STACK_OVERFLOW_HANDLING.
47604         Reported by Elbert Pol.
47605
47606 2008-08-25  Bruno Haible  <bruno@clisp.org>
47607
47608         * doc/posix-functions/strftime.texi: Fix description of strftime
47609         module.
47610
47611 2008-08-24  Bruno Haible  <bruno@clisp.org>
47612
47613         * tests/uniwidth/test-uc_width2.c: New file.
47614         * tests/uniwidth/test-uc_width2.sh: New file.
47615         * modules/uniwidth/width-tests (Files): Add the new files.
47616         (TESTS): Add uniwidth/test-uc_width2.sh.
47617         (TESTS_ENVIRONMENT): New variable.
47618         (check_PROGRAMS): Add test-uc_width2.
47619         (test_uc_width2_SOURCES): New variable.
47620
47621         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47622         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47623         not 0x00AB.
47624         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47625
47626 2008-08-22  Eric Blake  <ebb9@byu.net>
47627
47628         test-lock, test-tls: mention why a test is skipped
47629         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47630         skipped.
47631         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47632
47633         count-one-bits: relax license
47634         * modules/count-one-bits (License): Relicense to LGPLv2+.
47635         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47636
47637 2008-08-22  Andreas Schwab  <schwab@suse.de>
47638
47639         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47640         Remove spurious space in assignment.
47641
47642 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47643
47644         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47645         Paul Eggert <eggert@CS.UCLA.EDU>.
47646
47647 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47648
47649         * modules/gettext: Add m4/threadlib.m4.
47650
47651 2008-08-19  Eric Blake  <ebb9@byu.net>
47652
47653         test-c-stack: fix compilation failure on FreeBSD 5.0
47654         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47655         headers before <sys/resource.h>.
47656         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47657         the bug.
47658         Reported by Nelson H. F. Beebe.
47659
47660         strverscmp: migrate from "strverscmp.h" to <string.h>
47661         * modules/string (Makefile.am): Add new hooks.
47662         * modules/strverscmp (Files): Remove strverscmp.h.
47663         (Depends-on): Add string.
47664         (configure.ac): Add indicator.
47665         (Include): Mention new header.
47666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47667         defaults.
47668         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47669         results.
47670         * lib/strverscmp.h: Delete.
47671         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47672         * tests/test-strverscmp.c (includes): Adjust client.
47673         * lib/check-version.c (includes): Likewise.
47674         * NEWS: Document the change.
47675
47676         strverscmp: add unit test
47677         * modules/strverscmp-tests: New file.
47678         * tests/test-strverscmp.c: Likewise.
47679
47680 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47681
47682         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47683         regarding Windows crypto stuff, from Mono.
47684
47685 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47686
47687         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47688         if present, for intel RND.  Return error on failures.
47689
47690 2008-08-18  Ben Pfaff  <blp@gnu.org>
47691
47692         gitlog-to-changelog: give better diagnostic for failed pipe-open
47693         * build-aux/gitlog-to-changelog: Improve error message: suggest
47694         that the version of Git may be too old.
47695
47696 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47697
47698         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47699         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47700
47701 2008-08-18  Bruno Haible  <bruno@clisp.org>
47702
47703         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47704         pthread_in_use().
47705
47706 2008-08-18  Bruno Haible  <bruno@clisp.org>
47707
47708         * lib/glthread/threadlib.c: Include <pthread.h>.
47709
47710 2008-08-18  Bruno Haible  <bruno@clisp.org>
47711
47712         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47713         glthread_recursive_lock_* macros.
47714         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47715         Fix syntax error.
47716
47717 2008-08-18  Bruno Haible  <bruno@clisp.org>
47718
47719         * lib/glthread/thread.c: Avoid forcing a context switch right after
47720         thread creation.
47721
47722 2008-08-17  Bruno Haible  <bruno@clisp.org>
47723
47724         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47725         * lib/glthread/thread.h: Provide Win32 specific implementation.
47726         * modules/thread (Files): Add lib/glthread/thread.c.
47727         (Depends-on): Add lock.
47728         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47729
47730 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47731
47732         New module 'yield'.
47733         * modules/yield: New file.
47734         * lib/glthread/yield.h: New file.
47735         * m4/yield.m4: New file.
47736         * MODULES.html.sh (Multithreading): Add yield.
47737
47738 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47739
47740         New module 'thread'.
47741         * modules/thread: New file.
47742         * lib/glthread/thread.h: New file.
47743         * m4/thread.m4: New file.
47744         * MODULES.html.sh (Multithreading): Add thread.
47745
47746 2008-08-17  Bruno Haible  <bruno@clisp.org>
47747
47748         * lib/glthread/lock.h: Include <stdlib.h> always.
47749         * lib/glthread/tls.h: Likewise.
47750         * lib/glthread/cond.h: Likewise.
47751
47752 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47753
47754         New module 'cond'.
47755         * modules/cond: New file.
47756         * lib/glthread/cond.h: New file.
47757         * lib/glthread/cond.c: New file.
47758         * m4/cond.m4: New file.
47759         * MODULES.html.sh (Multithreading): Add cond.
47760
47761 2008-08-16  Eric Blake  <ebb9@byu.net>
47762
47763         c-stack: fix regression on Irix 5.3 from 2008-06-21
47764         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47765         sa_sigaction...
47766         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47767         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47768         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47769         * modules/signal (Makefile.am): Use the value.
47770         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47771         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47772         * doc/posix-headers/signal.texi (signal.h): Document this
47773         portability issue.
47774         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47775         Reported by Tom G. Christensen.
47776
47777 2008-08-17  Bruno Haible  <bruno@clisp.org>
47778
47779         New module 'threadlib'.
47780         * modules/threadlib: New file.
47781         * lib/glthread/threadlib.c: New file, extracted from
47782         lib/glthread/lock.c.
47783         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47784         functions.
47785         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47786         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47787         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47788         macros.
47789         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47790         (gl_DISABLE_THREADS): Remove macro.
47791         * modules/lock (Files): Remove build-aux/config.rpath.
47792         (Depends-on): Remove havelib. Add threadlib.
47793         (configure.ac-early): Remove section.
47794         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47795         * modules/tls (Depends-on): Remove lock. Add threadlib.
47796         (Link): New section, copied from threadlib.
47797         * MODULES.html.sh (Multithreading): Add threadlib.
47798
47799 2008-08-14  Bruno Haible  <bruno@clisp.org>
47800
47801         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47802         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47803         glthread_rwlock_unlock, glthread_rwlock_destroy,
47804         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47805         glthread_recursive_lock_destroy): Define as macros always.
47806         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47807         glthread_lock_lock.
47808         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47809         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47810         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47811         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47812         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47813         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47814         (glthread_recursive_lock_lock_func): Renamed from
47815         glthread_recursive_lock_lock.
47816         (glthread_recursive_lock_unlock_func): Renamed from
47817         glthread_recursive_lock_unlock.
47818         (glthread_recursive_lock_destroy_func): Renamed from
47819         glthread_recursive_lock_destroy.
47820
47821 2008-08-14  Bruno Haible  <bruno@clisp.org>
47822
47823         * lib/glthread/lock.h: Renamed from lib/lock.h.
47824         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47825         * lib/glthread/tls.h: Renamed from lib/tls.h.
47826         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47827         * lib/fstrcmp.c: Update includes.
47828         * lib/strsignal.c: Update includes.
47829         * modules/lock (Files, Makefile.am): Update.
47830         (Include): Change to "glthread/lock.h".
47831         * modules/tls (Files, Makefile.am): Update.
47832         (Include): Change to "glthread/tls.h".
47833         * tests/test-lock.c: Update includes.
47834         * tests/test-tls.c: Update includes.
47835         * NEWS: Mention the renamed header files.
47836
47837 2008-08-11  Jim Meyering  <meyering@redhat.com>
47838
47839         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47840
47841 2008-08-11  Eric Blake  <ebb9@byu.net>
47842
47843         test-c-stack: avoid C99-ism
47844         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47845         before statement.
47846         Reported by Alain Guibert.
47847
47848 2008-08-10  Jim Meyering  <meyering@redhat.com>
47849
47850         ensure that return value of uinttostr et al are not ignored
47851         * lib/inttostr.h (__GNUC_PREREQ): Define.
47852         (__attribute_warn_unused_result__): Define.
47853         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47854
47855 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47856
47857         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47858         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47859
47860 2008-08-07  Jim Meyering  <meyering@redhat.com>
47861
47862         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47863
47864         * modules/mkstemp (License): Relicense under LGPLv2+.
47865         * modules/tempname (License): Likewise.
47866
47867 2008-08-06  Bruno Haible  <bruno@clisp.org>
47868
47869         * lib/poll.c (poll): Further micro-optimization.
47870
47871 2008-08-06  Jim Meyering  <meyering@redhat.com>
47872
47873         inet_pton.c: use locale-independent tolower
47874         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47875         (inet_pton6): Use c_tolower rather than tolower.
47876         * modules/inet_pton (Depends-on): Add c-ctype.
47877
47878 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47879
47880         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47881         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47882
47883 2008-08-06  Jim Meyering  <meyering@redhat.com>
47884
47885         * modules/inet_pton (License): Relicense under LGPLv2+.
47886
47887 2008-08-03  Bruno Haible  <bruno@clisp.org>
47888
47889         Additional non-aborting API for lock and tls.
47890         * lib/lock.h: Include <errno.h>.
47891         (glthread_lock_init): New macro/function.
47892         (gl_lock_init): Define as wrapper around glthread_lock_init.
47893         (glthread_lock_lock): New macro/function.
47894         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47895         (glthread_lock_unlock): New macro/function.
47896         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47897         (glthread_lock_destroy): New macro/function.
47898         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47899         (glthread_rwlock_init): New macro/function.
47900         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47901         (glthread_rwlock_rdlock): New macro/function.
47902         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47903         (glthread_rwlock_wrlock): New macro/function.
47904         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47905         (glthread_rwlock_unlock): New macro/function.
47906         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47907         (glthread_rwlock_destroy): New macro/function.
47908         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47909         (glthread_recursive_lock_init): New macro/function.
47910         (gl_recursive_lock_init): Define as wrapper around
47911         glthread_recursive_lock_init.
47912         (glthread_recursive_lock_lock): New macro/function.
47913         (gl_recursive_lock_lock): Define as wrapper around
47914         glthread_recursive_lock_lock.
47915         (glthread_recursive_lock_unlock): New macro/function.
47916         (gl_recursive_lock_unlock): Define as wrapper around
47917         glthread_recursive_lock_unlock.
47918         (glthread_recursive_lock_destroy): New macro/function.
47919         (gl_recursive_lock_destroy): Define as wrapper around
47920         glthread_recursive_lock_destroy.
47921         (glthread_once): New macro/function.
47922         (gl_once): Define as wrapper around glthread_once.
47923         Update function declarations.
47924         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47925         glthread_rwlock_init. Return error code.
47926         (glthread_rwlock_rdlock_multithreaded): Renamed from
47927         glthread_rwlock_rdlock. Return error code.
47928         (glthread_rwlock_wrlock_multithreaded): Renamed from
47929         glthread_rwlock_wrlock. Return error code.
47930         (glthread_rwlock_unlock_multithreaded): Renamed from
47931         glthread_rwlock_unlock. Return error code.
47932         (glthread_rwlock_destroy_multithreaded): Renamed from
47933         glthread_rwlock_destroy. Return error code.
47934         (glthread_recursive_lock_init_multithreaded): Renamed from
47935         glthread_recursive_lock_init. Return error code.
47936         (glthread_recursive_lock_lock_multithreaded): Renamed from
47937         glthread_recursive_lock_lock. Return error code.
47938         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47939         glthread_recursive_lock_unlock. Return error code.
47940         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47941         glthread_recursive_lock_destroy. Return error code.
47942         (glthread_once_call): Make static.
47943         (glthread_once_multithreaded): Renamed from glthread_once.
47944         * lib/tls.h: Include <errno.h>.
47945         (glthread_tls_key_init): New macro/function.
47946         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47947         (glthread_tls_set): New macro/function.
47948         (gl_tls_set): Define as wrapper around glthread_tls_set.
47949         (glthread_tls_key_destroy): New macro/function.
47950         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47951         Update function declarations.
47952         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47953         glthread_tls_get.
47954         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47955
47956 2008-08-04  Eric Blake  <ebb9@byu.net>
47957
47958         gnumakefile: use space, not TAB, outside of targets
47959         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47960
47961 2008-08-02  Jim Meyering  <meyering@redhat.com>
47962
47963         getdate.y: avoid locale-dependent date parsing failure
47964         In Turkish locales, getdate would fail to recognize keywords
47965         containing a lowercase "i".  The solution is not to rely on
47966         locale-sensitive case-conversion.
47967         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47968         (lookup_word): Use c_toupper in place of toupper.
47969         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47970         Reported by Vefa Bicakci <bicave@superonline.com> in
47971         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47972         * modules/getdate (Depends-on): Add c-ctype.
47973
47974 2008-08-02  Bruno Haible  <bruno@clisp.org>
47975
47976         * gnulib-tool (func_import): When updating or creating a .gitignore
47977         file, prepend each added line with a slash, and ignore leading slashes
47978         from the existing lines.
47979         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47980
47981 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47982
47983         Portability fix for GNU make 3.79.1.
47984         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47985         versions do not understand.
47986
47987 2008-08-01  Bruno Haible  <bruno@clisp.org>
47988
47989         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47990         * tests/test-isnanf.h (zero): New variable.
47991         (main): Avoid literal -0.0f.
47992         * tests/test-isnand.h (zero): New variable.
47993         (main): Avoid literal -0.0.
47994         * tests/test-isnanl.h (zero): New variable.
47995         (main): Avoid literal -0.0L.
47996         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47997         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47998         -0.0, -0.0L.
47999         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48000         (test_signbitd): Avoid literal -0.0.
48001         (test_signbitl): Avoid literal -0.0L.
48002         * tests/test-ceilf1.c (zero): New variable.
48003         (main): Avoid literal -0.0f.
48004         * tests/test-ceill.c (zero): New variable.
48005         (main): Avoid literal -0.0L.
48006         * tests/test-floorf1.c (zero): New variable.
48007         (main): Avoid literal -0.0f.
48008         * tests/test-floorl.c (zero): New variable.
48009         (main): Avoid literal -0.0L.
48010         * tests/test-roundf1.c (zero): New variable.
48011         (main): Avoid literal -0.0f.
48012         * tests/test-round1.c (zero): New variable.
48013         (main): Avoid literal -0.0.
48014         * tests/test-roundl.c (zero): New variable.
48015         (main): Avoid literal -0.0L.
48016         * tests/test-truncf1.c (zero): New variable.
48017         (main): Avoid literal -0.0f.
48018         * tests/test-trunc1.c (zero): New variable.
48019         (main): Avoid literal -0.0.
48020         * tests/test-truncl.c (zero): New variable.
48021         (main): Avoid literal -0.0L.
48022         * tests/test-frexp.c (zero): New variable.
48023         (main): Avoid literal -0.0.
48024         * tests/test-frexpl.c (zero): New variable.
48025         (main): Avoid literal -0.0L.
48026         * tests/test-ldexpl.c (zero): New variable.
48027         (main): Avoid literal -0.0L.
48028         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48029         (zerod, zerol): New variables.
48030         (test_function): Avoid literals -0.0, -0.0L.
48031         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48032         (zerod, zerol): New variables.
48033         (test_function): Avoid literals -0.0, -0.0L.
48034         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48035         (zerod, zerol): New variables.
48036         (test_function): Avoid literals -0.0, -0.0L.
48037         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48038         (zerod, zerol): New variables.
48039         (test_function): Avoid literals -0.0, -0.0L.
48040         * tests/test-strtod.c (zero): New variable.
48041         (main): Avoid literal -0.0.
48042         Reported by Jonathan C. Patschke <jp@centtech.com>.
48043
48044 2008-07-31  Jim Meyering  <meyering@redhat.com>
48045
48046         sha256.h: correct definition of SHA224_DIGEST_SIZE
48047         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48048         Reported by Paulie Pena IV <paulie4@gmail.com>.
48049         Define as 224 / 8, rather than as a literal.
48050         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48051         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48052         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48053
48054 2008-07-31  Bruno Haible  <bruno@clisp.org>
48055
48056         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48057         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48058         Reported by Jonathan Patschke <jp@centtech.com>.
48059
48060 2008-07-31  Bruno Haible  <bruno@clisp.org>
48061
48062         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48063         Reported by Paolo Bonzini <bonzini@gnu.org>.
48064
48065 2008-07-30  Eric Blake  <ebb9@byu.net>
48066
48067         test-strtod: allow compilation without -lm
48068         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48069         Reported by Dennis Clarke <blastwave@gmail.com>.
48070
48071 2008-07-28  Jim Meyering  <meyering@redhat.com>
48072
48073         bootstrap: work also when there are no .po files in po/
48074         * build-aux/bootstrap (update_po_files): Complete the change
48075         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48076
48077 2008-07-27  Jim Meyering  <meyering@redhat.com>
48078
48079         * users.txt: Add zile.
48080
48081 2008-07-26  Ben Pfaff  <blp@gnu.org>
48082
48083         Add missing dependencies on new m4/exponent[fdl].m4 files.
48084         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48085         * modules/isnand-nolibm: Add m4/exponentd.m4.
48086         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48087         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48088         m4/isnan[fdl].m4, because the macros actually used moved.
48089         Reported by Jim Meyering.
48090
48091 2008-07-14  Ben Pfaff  <blp@gnu.org>
48092
48093         Add isinf module.
48094         * lib/isinf.c: New file.
48095         * lib/math.in.h: Define isinf macro if we have decided to replace
48096         it.
48097         * m4/isinf.m4: New file.
48098         * m4/math_h.m4: Initialize and substitute variables for isinf
48099         module.
48100         * modules/isinf: New file.
48101         * modules/isinf-tests: New file.
48102         * modules/math: Add substitutions for new module.
48103         * tests/test-isinf.c: New file.
48104         * doc/posix-functions/isinf.texi: Mention new module.
48105         * MODULES.html.sh: Mention new module.
48106
48107 2008-07-14  Ben Pfaff  <blp@gnu.org>
48108
48109         Factor out some macros for use by additional modules.
48110         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48111         exponentf.m4.
48112         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48113         exponentd.m4.
48114         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48115         file exponentl.m4.
48116         * m4/exponentf.m4: New file.
48117         * m4/exponentd.m4: New file.
48118         * m4/exponentl.m4: New file.
48119         * modules/isnanf: Use new file m4/exponentf.m4.
48120         * modules/isnand: Use new file m4/exponentd.m4.
48121         * modules/isnanl: Use new file m4/exponentl.m4.
48122
48123 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48124
48125         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48126         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48127         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48128         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48129
48130         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48131         readlink on platforms without PATH_MAX.
48132
48133 2008-07-21  Eric Blake  <ebb9@byu.net>
48134
48135         Warn, not fail, on stale version.
48136         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48137
48138         Don't allow installation with stale devel version number.
48139         * top/GNUmakefile (_is-install-target): New macro.
48140         (_curr-ver): Forbid installation with stale version number.
48141
48142 2008-07-20  Bruno Haible  <bruno@clisp.org>
48143
48144         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48145         TESTS_ENVIRONMENT.
48146         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48147
48148 2008-07-20  Bruno Haible  <bruno@clisp.org>
48149
48150         * lib/c-stack.h (c_stack_action): Add documentation.
48151         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48152
48153 2008-07-20  Bruno Haible  <bruno@clisp.org>
48154
48155         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48156         * modules/readlink (License): Likewise.
48157
48158 2008-07-17  Eric Blake  <ebb9@byu.net>
48159
48160         * modules/c-stack (Link): Fix typo.
48161
48162         Make c-stack use libsigsegv, when available.
48163         * modules/c-stack (Depends-on): Add libsigsegv.
48164         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48165         needed.
48166         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48167         (segv_handler, overflow_handler, c_stack_action)
48168         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48169         implementation when libsigsegv is available, but only when using
48170         the library is necessary.
48171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48172         comment, explaining why XSI check fails on Linux.
48173         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48174         * tests/test-c-stack2.sh: Tweak skip message.
48175         * NEWS: Document new link-time requirements.
48176
48177 2008-07-16  Eric Blake  <ebb9@byu.net>
48178
48179         c-stack: Expose false positives when not using libsigsegv.
48180         * modules/c-stack-tests (Files): Expand test.
48181         * tests/test-c-stack.c (main): Add means to conditionally trigger
48182         non-overflow SIGSEGV.
48183         * tests/test-c-stack2.sh: New file.
48184
48185 2008-07-14  Bruno Haible  <bruno@clisp.org>
48186
48187         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48188         Reported by Eric Blake.
48189
48190 2008-07-14  Sam Steingold  <sds@gnu.org>
48191             Bruno Haible  <bruno@clisp.org>
48192
48193         New module libsigsegv.
48194         * modules/libsigsegv: New file.
48195         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48196         modifications.
48197         * MODULES.html.sh (Signal handling): New section.
48198
48199 2008-07-14  Bruno Haible  <bruno@clisp.org>
48200
48201         * modules/unictype/ctype-* (Description): Add the word "function".
48202         Improves the resulting doc in MODULES.html.
48203
48204 2008-07-12  Ben Pfaff  <blp@gnu.org>
48205
48206         Add longlong module.
48207         * modules/longlong: New file.
48208
48209 2008-07-12  Bruno Haible  <bruno@clisp.org>
48210
48211         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48212         to empty.
48213
48214 2008-07-10  Ben Pfaff  <blp@gnu.org>
48215
48216         Add isnan module.
48217         * doc/posix-functions/isnan.texi: Mention new module.
48218         * lib/math.in.h: Define isnan macro if we have decided to replace
48219         it.
48220         * m4/isnan.m4: New file.
48221         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48222         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48223         also.
48224         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48225         redundancy.
48226         * m4/math_h.m4: Initialize and substitute variables for isnan
48227         module.
48228         * modules/isnan: New file.
48229         * modules/isnan-tests: New file.
48230         * modules/math: Add substitutions for new module.
48231         * tests/test-isnan.c: New file.
48232         * MODULES.html.sh: Mention new module.
48233
48234 2008-07-10  Ben Pfaff  <blp@gnu.org>
48235
48236         Add isnanf module.
48237         * lib/isnanf.m4: New file.
48238         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48239         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48240         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48241         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48242         * modules/isnanf: New file.
48243         * modules/isnanf-tests: New file.
48244         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48245         files.
48246         * tests/test-isnanf-nolibm.c: factored most of its contents into
48247         new file tests/test-isnanf.h.
48248         * tests/test-isnanf.h: New file.
48249         * tests/test-isnanf.c: New file.
48250         * MODULES.html.sh: Mention new module.
48251         * doc/glibc-functions/isnanf.texi: Mention new module.
48252
48253 2008-07-10  Ben Pfaff  <blp@gnu.org>
48254
48255         Add isnand module.
48256         * lib/isnand.h: New file.
48257         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48258         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48259         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48260         functionality also.
48261         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48262         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48263         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48264         * modules/isnand: New file.
48265         * modules/isnand-tests: New file.
48266         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48267         files.
48268         * tests/test-isnand-nolibm.c: factored most of its contents into
48269         new file tests/test-isnand.h.
48270         * tests/test-isnand.h: New file.
48271         * tests/test-isnand.c: New file.
48272         * MODULES.html.sh: Mention new module.
48273
48274 2008-07-10  Ben Pfaff  <blp@gnu.org>
48275
48276         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48277         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48278         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48279         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48280         * modules/isnanf-nolibm: Update references to renamed files.
48281         * modules/isnand-nolibm: Likewise.
48282         * modules/isnanf-nolibm-tests: Likewise.
48283         * modules/isnand-nolibm-tests: Likewise.
48284         * lib/frexp.c: Likewise.
48285         * lib/isfinite.c: Likewise.
48286         * lib/signbitd.c: Likewise.
48287         * lib/signbitf.c: Likewise.
48288         * lib/vasnprintf.c: Likewise.
48289         * tests/test-ceilf1.c: Likewise.
48290         * tests/test-ceilf2.c: Likewise.
48291         * tests/test-floorf1.c: Likewise.
48292         * tests/test-floorf2.c: Likewise.
48293         * tests/test-frexp.c: Likewise.
48294         * tests/test-round1.c: Likewise.
48295         * tests/test-round2.c: Likewise.
48296         * tests/test-roundf1.c: Likewise.
48297         * tests/test-strtod.c: Likewise.
48298         * tests/test-trunc1.c: Likewise.
48299         * tests/test-trunc2.c: Likewise.
48300         * tests/test-truncf1.c: Likewise.
48301         * tests/test-truncf2.c: Likewise.
48302         * NEWS: Mention the renamed header files.
48303
48304 2008-07-11  Jim Meyering  <meyering@redhat.com>
48305
48306         vc-list-files: make the last-resort awk code more portable
48307         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48308         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48309         does not support it.
48310
48311 2008-07-10  Eric Blake  <ebb9@byu.net>
48312
48313         Work with tar's bootstrap.
48314         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48315         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48316         an m4 comment.
48317
48318 2008-07-09  Jim Meyering  <meyering@redhat.com>
48319
48320         posix-shell.m4: fix typo that made this test malfunction
48321         * m4/posix-shell.m4: Remove capitalization in variable name.
48322
48323 2008-07-08  Bruno Haible  <bruno@clisp.org>
48324
48325         * m4/onceonly.m4: Update comments.
48326         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48327
48328 2008-07-04  Jim Meyering  <meyering@redhat.com>
48329
48330         * users.txt: Add vc-dwim.
48331         (bison, coreutils): Use the gitweb URL.
48332
48333 2008-07-03  Jim Meyering  <meyering@redhat.com>
48334
48335         * users.txt: Add libffcall.  From Sam Steingold.
48336
48337 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48338
48339         getdate.y: do not ignore TZ with relative day, month or year offset
48340         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48341         relative-date-handling, since otherwise, the latter would clobber the
48342         sole output (an updated Start value) of the tz-handling block.
48343         * tests/test-getdate.c: Tests for the fix
48344
48345 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48346
48347         Recognize 'foo_LIBRARIES += libgnu.a'.
48348         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48349         makefile snippet has already specified an installation location,
48350         also using '+='.
48351
48352 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48353
48354         getdate.y: factor out common actions
48355         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48356         Use them in place of open-coded actions.
48357
48358 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48359
48360         Add self-test for getdate module.
48361         * modules/getdate-tests: New file.
48362         * tests/test-getdate.c: New file.
48363
48364 2008-06-29  Bruno Haible  <bruno@clisp.org>
48365
48366         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48367         .gitignore.
48368         Reported by Sylvain Beucler <beuc@beuc.net>.
48369
48370 2008-06-29  Bruno Haible  <bruno@clisp.org>
48371
48372         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48373         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48374
48375 2008-06-29  Bruno Haible  <bruno@clisp.org>
48376
48377         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48378         EXTRA_DIST.
48379         Reported by Sylvain Beucler <beuc@beuc.net>.
48380
48381 2008-06-26  Jim Meyering  <meyering@redhat.com>
48382
48383         make several modules depend on the "open" module
48384         This provides slightly increased consistency when opening-for-write
48385         the name of a non-directory spelled with a trailing slash.
48386         * modules/chdir-safer: Likewise.
48387         * modules/chown: Likewise.
48388         * modules/clean-temp: Likewise.
48389         * modules/copy-file: Likewise.
48390         * modules/fchdir: Likewise.
48391         * modules/fcntl-safer: Likewise.
48392         * modules/pipe: Likewise.
48393         * modules/utime: Likewise.
48394         Prompted by Eric Blake and Bruno Haible.
48395
48396 2008-06-24  Andreas Schwab  <schwab@suse.de>
48397
48398         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48399         literals can be used as initializers for global variables.
48400
48401 2008-06-23  Eric Blake  <ebb9@byu.net>
48402
48403         Make gnulib-cache.m4 easier to diff.
48404         * gnulib-tool (func_import): Allow newlines when reading cached
48405         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48406
48407 2008-06-23  Bruno Haible  <bruno@clisp.org>
48408
48409         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48410         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48411         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48412         m4/signalblocking.m4.
48413         (gl_PREREQ_SIGACTION): Don't invoke it.
48414         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48415         gl_PREREQ_SIG_HANDLER_H.
48416         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48417         Don't check for sigaction here.
48418
48419 2008-06-23  Bruno Haible  <bruno@clisp.org>
48420
48421         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48422         (install_handlers): Don't set the SA_RESETHAND flag.
48423
48424 2008-06-23  Bruno Haible  <bruno@clisp.org>
48425
48426         * m4/sigaction.m4: Comment fixes.
48427         * lib/signal.in.h: Likewise.
48428
48429 2008-06-23  Eric Blake  <ebb9@byu.net>
48430
48431         Fix typo.
48432         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48433
48434         Avoid SA_ namespace.
48435         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48436         Reported by Ralf Wildenhues.
48437
48438         Avoid test failure due to SA_RESTORER.
48439         * tests/test-sigaction.c (SA_MASK): New macro.
48440         (main): Avoid failing due to extension flags being set.
48441         Reported by Jim Meyering.
48442
48443         Revert use of sig-handler.h in sigprocmask.c.
48444         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48445         it requires the existence of struct sigaction.
48446         * lib/sigprocmask.c (handler_t): Restore typedef.
48447         (rpl_signal, old_handlers): Use local type.
48448
48449 2008-06-22  Bruno Haible  <bruno@clisp.org>
48450
48451         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48452         conditionally.
48453         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48454
48455 2008-06-22  Bruno Haible  <bruno@clisp.org>
48456
48457         * doc/posix-functions/siginterrupt.texi: Move note.
48458
48459         * lib/signal.in.h (SA_RESTART): New macro.
48460         * lib/sigaction.c: Update comment.
48461
48462         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48463
48464         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48465         (gl_PREREQ_SIGPROCMASK): Invoke it.
48466         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48467
48468         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48469
48470         * lib/sigprocmask.c: Update a comment.
48471
48472 2008-06-21  Eric Blake  <ebb9@byu.net>
48473
48474         Use sigaction module rather than signal().
48475         * modules/c-stack (Depends-on): Add sigaction.
48476         * modules/fatal-signal (Depends-on): Likewise.
48477         * modules/nanosleep (Depends-on): Likewise.
48478         * modules/sigprocmask (Files): Add sig-handler.h.
48479         * modules/sigaction (Files): Likewise.
48480         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48481         Eggert.
48482         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48483         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48484         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48485         (init_fatal_signals): Likewise.
48486         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48487         (siginterrupt): Delete fallback.
48488         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48489         instead.
48490         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48491         siginterrupt.
48492
48493         New module sigaction, for mingw.
48494         * modules/sigaction: New module...
48495         * modules/sigaction-tests: ...and its test.
48496         * m4/sigaction.m4: New file.
48497         * lib/sigaction.c: Likewise.
48498         * tests/test-sigaction.c: Likewise.
48499         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48500         * modules/signal (Makefile.am): Likewise.
48501         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48502         needed.
48503         * doc/posix-headers/signal.texi (signal.h): Mention provided
48504         types.
48505         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48506         that sigaction is preferable.
48507         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48508         module.
48509         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48510         sigaction.
48511
48512         Improve robustness of sigprocmask by overriding signal.
48513         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48514         is in use.
48515         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48516         (SIGKILL, SIGSTOP): Provide fallbacks.
48517         (rpl_signal): Implement.
48518         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48519         signal can be called inside handlers.
48520
48521         Fix nanosleep module on mingw.
48522         * modules/nanosleep (Depends-on): Add sys_select.
48523         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48524
48525         Fix licensing of sigprocmask.
48526         * modules/raise (License): Relicense as LGPL.
48527
48528 2008-06-21  Bruno Haible  <bruno@clisp.org>
48529
48530         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48531         result if it contains question marks.
48532         Reported by Michael Geng <linux@michaelgeng.de>.
48533
48534 2008-06-19  Bruno Haible  <bruno@clisp.org>
48535
48536         Fix CVS-ism.
48537         * doc/gnulib.texi: Include updated-stamp.texi.
48538         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48539         (updated-stamp.texi): New rule.
48540         (gnulib.info): Depend on it.
48541         * doc/.gitignore: Add updated-stamp.texi.
48542         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48543
48544 2008-06-19  Bruno Haible  <bruno@clisp.org>
48545
48546         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48547         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48548
48549 2008-06-19  Eric Blake  <ebb9@byu.net>
48550
48551         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48552         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48553         Reported by Stepan Kasal.
48554
48555 2008-06-18  Bruno Haible  <bruno@clisp.org>
48556
48557         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48558         Reported by Eric Blake.
48559
48560 2008-06-18  Eric Blake  <ebb9@byu.net>
48561
48562         Work around cygwin 1.5.25 strsignal bug.
48563         * tests/test-strsignal.c: Allow for const char *.
48564         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48565
48566 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48567
48568         * users.txt: Update URL to article and add author/date
48569         information.
48570
48571 2008-06-17  Bruno Haible  <bruno@clisp.org>
48572
48573         New macro gl_DISABLE_THREADS.
48574         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48575         if the user did not pass --enable-threads or --disable-threads option.
48576         (gl_DISABLE_THREADS): New macro.
48577         Reported by Eric Blake <ebb9@byu.net>.
48578
48579 2008-06-17  Bruno Haible  <bruno@clisp.org>
48580
48581         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48582         when the macro ignores it.
48583         Based on a patch by Eric Blake <ebb9@byu.net>.
48584
48585 2008-06-17  Bruno Haible  <bruno@clisp.org>
48586
48587         * modules/tls (License): Change to LGPLv2+.
48588         Reported by Eric Blake.
48589
48590 2008-06-17  Eric Blake  <ebb9@byu.net>
48591
48592         Simplify c-stack prerequisites.
48593         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48594         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48595         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48596         check.
48597         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48598         <sys/resource.h>.
48599
48600         Move c-stack test into testsuite.
48601         * modules/c-stack-tests: New file.
48602         * lib/c-stack.c [DEBUG]: Move test program...
48603         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48604         fail test if sigaltstack is lacking.
48605         * tests/test-c-stack.sh: New driver file.
48606
48607 2008-06-16  Eric Blake  <ebb9@byu.net>
48608
48609         Use raise module consistently.
48610         * modules/fatal-signal (Depends-on): Add raise.
48611         * modules/sigprocmask (Depends-on): Likewise.
48612         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48613         * lib/sigprocmask.c (sigprocmask): Likewise.
48614         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48615         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48616
48617         Fix compliance bug in sigpending.
48618         * lib/sigprocmask.c (sigpending): Return pending array via
48619         parameter, not return value.
48620
48621 2008-06-14  Eric Blake  <ebb9@byu.net>
48622
48623         Improve obstack-printf test code.
48624         * tests/test-obstack-printf.c (test_function): Fix comment, and
48625         simplify usage of obstack_* in macros.  Add a test for coverage.
48626         Reported by Bruno Haible.
48627
48628 2008-06-14  Bruno Haible  <bruno@clisp.org>
48629
48630         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48631         array size as a constant, not as a const variable.
48632         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48633         AC_USE_SYSTEM_EXTENSIONS.
48634         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48635         Test whether the obstack_printf function actually exists.
48636         * modules/obstack-printf (Depends-on): Add extensions.
48637         (Include): Remove obstack.h.
48638         * modules/obstack-printf-posix (Depends-on): Add extensions.
48639         (Include): Remove obstack.h.
48640
48641 2008-06-13  Eric Blake  <ebb9@byu.net>
48642
48643         Add obstack-printf and obstack-printf-posix modules.
48644         * modules/obstack-printf: New file.
48645         * modules/obstack-printf-posix: Likewise.
48646         * MODULES.html.sh (Misc): Mention them.
48647         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48648         Likewise.
48649         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48650         Likewise.
48651         * modules/stdio (Makefile.am): Accomodate new modules.
48652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48653         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48654         Declare.
48655         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48656         functions.
48657         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48658         (gl_REPLACE_OBSTACK_PRINTF): New macros
48659         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48660         * tests/test-obstack-printf.c: New file.
48661         * modules/obstack-printf-tests: Likewise.
48662         * modules/obstack-printf-posix-tests: Likewise.
48663
48664 2008-06-11  Bruno Haible  <bruno@clisp.org>
48665
48666         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48667         * lib/open.c: Include errno.h.
48668         (open): Fail when attempting to write to a file that has a trailing
48669         slash.
48670         * tests/test-open.c (main): Test against trailing slash bug.
48671         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48672
48673 2008-06-10  Bruno Haible  <bruno@clisp.org>
48674
48675         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48676         for $? to work inside the trap command, with various /bin/sh-s.
48677         * tests/test-vc-list-files-cvs.sh: Likewise.
48678
48679 2008-06-10  Bruno Haible  <bruno@clisp.org>
48680
48681         * lib/acl-internal.h: Don't include gettext.h here.
48682         * lib/set-mode-acl.c: Include gettext.h here.
48683         * lib/copy-acl.c: Likewise.
48684
48685 2008-06-10  Bruno Haible  <bruno@clisp.org>
48686
48687         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48688         * lib/wait-process.c (wait_subprocess): Likewise.
48689         * lib/execute.h (execute): Add termsigp argument.
48690         * lib/execute.c (execute): Likewise.
48691         * lib/csharpcomp.c (compile_csharp_using_pnet,
48692         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48693         * lib/csharpexec.c (execute_csharp_using_pnet,
48694         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48695         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48696         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48697         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48698         is_jikes_present): Update.
48699         * lib/javaexec.c (execute_java_class): Update.
48700         * lib/javaversion.c (execute_and_read_line): Update.
48701         * NEWS: Document the changes.
48702         Reported by Eric Blake.
48703
48704 2008-06-10  Eric Blake  <ebb9@byu.net>
48705
48706         Add missing include.
48707         * tests/test-strstr.c (includes): Add <signal.h>.
48708         * tests/test-strcasestr.c (includes): Likewise.
48709         * tests/test-memmem.c (includes): Likewise.
48710
48711 2008-06-10  Bruno Haible  <bruno@clisp.org>
48712
48713         * lib/wait-process.c (wait_subprocess): Add an assertion.
48714
48715 2008-06-10  Bruno Haible  <bruno@clisp.org>
48716
48717         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48718
48719 2008-06-10  Bruno Haible  <bruno@clisp.org>
48720
48721         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48722         using alarm().
48723         * tests/test-strcasestr.c (main): Likewise.
48724         * tests/test-strstr.c (main): Likewise.
48725
48726 2008-06-09  Bruno Haible  <bruno@clisp.org>
48727
48728         Work around the Solaris 10 ACE ACLs ABI change.
48729         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48730         declare if ACL_NO_TRIVIAL is present.
48731         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48732         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48733         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48734         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48735         define if ACL_NO_TRIVIAL is present.
48736         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48737         and use the current ABI.
48738         (file_has_acl): Use same #if condition as elsewhere.
48739         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48740         in use, and use the current ABI.
48741         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48742         Reported by Jim Meyering.
48743
48744 2008-06-09  Eric Blake  <ebb9@byu.net>
48745
48746         Work around environments that (stupidly) ignore SIGALRM.
48747         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48748         before using alarm().
48749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48750         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48751         Reported by Ian Beckwith <ianb@erislabs.net>.
48752
48753         Produce autobuild blurb earlier in log.
48754         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48755
48756 2008-06-09  Jim Meyering  <meyering@redhat.com>
48757         and OndÅ™ej Vašík  <ovasik@redhat.com>
48758
48759         utimens.c: correct kernel bug work-around
48760         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48761         failure, not success, and the kernel bug we're trying to work
48762         around affects not just the utimensat call, but also the fallback
48763         futimens call.
48764         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48765         not success.
48766         [HAVE_FUTIMENS]: Use the same work-around, here.
48767
48768 2008-06-09  Jim Meyering  <meyering@redhat.com>
48769
48770         add more guards around definition of ACE_-related code
48771         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48772         ALLOW and ACE_OWNER are also defined.
48773
48774 2008-06-08  Bruno Haible  <bruno@clisp.org>
48775
48776         * lib/acl-internal.h: Add me as co-author.
48777         * lib/file-has-acl.c: Likewise.
48778         * lib/set-mode-acl.c: Likewise.
48779         * lib/copy-acl.c: Likewise.
48780
48781 2008-06-08  Bruno Haible  <bruno@clisp.org>
48782
48783         Add support for AIX ACLs.
48784         * lib/acl-internal.h (acl_nontrivial): New declaration.
48785         * lib/file-has-acl.c (acl_nontrivial): New function.
48786         (file_has_acl): Add implementation using AIX 4 ACL API.
48787         * lib/set-mode-acl.c (qset_acl): Likewise.
48788         * lib/copy-acl.c (qcopy_acl): Likewise.
48789
48790 2008-06-08  Bruno Haible  <bruno@clisp.org>
48791
48792         Add support for HP-UX ACLs.
48793         * lib/acl-internal.h (acl_nontrivial): New declaration.
48794         * lib/file-has-acl.c (acl_nontrivial): New function.
48795         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48796         * lib/set-mode-acl.c (qset_acl): Likewise.
48797         * lib/copy-acl.c (qcopy_acl): Likewise.
48798
48799 2008-06-08  Bruno Haible  <bruno@clisp.org>
48800
48801         Add support for Cygwin ACLs.
48802         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48803         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48804         the chmod_or_fchmod call.
48805         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48806
48807 2008-06-08  Bruno Haible  <bruno@clisp.org>
48808
48809         Fix bug with setuid modes in Solaris 10+ code.
48810         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48811         succeeded, when the mode contains some special bits.
48812
48813 2008-06-08  Bruno Haible  <bruno@clisp.org>
48814
48815         Add support for Solaris 7..10 ACLs.
48816         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48817         declarations.
48818         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48819         functions.
48820         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48821         * lib/set-mode-acl.c (qset_acl): Likewise.
48822         * lib/copy-acl.c (qcopy_acl): Likewise.
48823
48824 2008-06-08  Bruno Haible  <bruno@clisp.org>
48825
48826         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48827         declaration.
48828         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48829         (acl_access_nontrivial): Remove MacOS X case.
48830         (file_has_acl): Use acl_extended_nontrivial.
48831         * lib/copy-acl.c (qcopy_acl): Likewise.
48832
48833 2008-06-08  Bruno Haible  <bruno@clisp.org>
48834
48835         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48836
48837 2008-06-08  Jim Meyering  <meyering@redhat.com>
48838
48839         * modules/acl (Maintainer): Add Bruno Haible.
48840
48841 2008-06-07  Bruno Haible  <bruno@clisp.org>
48842
48843         Improve support for Tru64 ACLs.
48844         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48845         ACL on OSF/1.
48846
48847 2008-06-07  Bruno Haible  <bruno@clisp.org>
48848
48849         Add support for MacOS X ACLs.
48850         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48851         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48852         * lib/set-mode-acl.c (qset_acl): Likewise.
48853         * lib/copy-acl.c (qcopy_acl): Likewise.
48854
48855 2008-06-07  Bruno Haible  <bruno@clisp.org>
48856
48857         Fix memory leak introduced on 2008-05-22.
48858         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48859         use.
48860
48861 2008-06-07  Bruno Haible  <bruno@clisp.org>
48862
48863         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48864         to construct an empty ACL.
48865
48866 2008-06-07  Bruno Haible  <bruno@clisp.org>
48867
48868         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48869         precisely.
48870         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48871
48872 2008-06-07  Bruno Haible  <bruno@clisp.org>
48873
48874         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48875         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48876
48877 2008-06-07  Bruno Haible  <bruno@clisp.org>
48878
48879         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48880         regardless of POSIX.
48881         * doc/posix-functions/_longjmp.texi: Likewise.
48882         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48883         SystemV platform in this case.
48884
48885 2008-06-06  Eric Blake  <ebb9@byu.net>
48886
48887         Document abort() bugs.
48888         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48889
48890         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48891         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48892         sigsetjmp.
48893         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48894         siglongjmp, but only as a macro.
48895         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48896         is obsolete.
48897         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48898
48899         Tweak documentation to cover cygwin argz bugs.
48900         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48901         argz bug fix; no code change needed since no cygwin releases
48902         occurred between the last fix and the bug being tested.
48903         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48904         module and recently fixed cygwin bugs.
48905         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48906         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48907         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48908         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48909         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48910         Likewise.
48911         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48912         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48913         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48914         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48915         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48916         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48917         Likewise.
48918
48919         Avoid gcc warning on cygwin.
48920         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48921         !ACL_NO_TRIVIAL]: Avoid unused variable.
48922
48923 2008-06-05  Eric Blake  <ebb9@byu.net>
48924
48925         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48926         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48927         git-version-gen fails to come up with a version.
48928         Reported by Simon Josefsson.
48929
48930 2008-06-05  Jim Meyering  <meyering@redhat.com>
48931             Paul Eggert  <eggert@cs.ucla.edu>
48932
48933         utimens.c: work around a probable Linux kernel bug
48934         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48935         appears to be a kernel bug that causes utimensat to return 280
48936         instead of 0, indicating success.
48937
48938 2008-06-04  Bruno Haible  <bruno@clisp.org>
48939
48940         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48941         2008-06-01 commit.
48942
48943 2008-06-04  Bruno Haible  <bruno@clisp.org>
48944
48945         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48946         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48947         (file_has_acl): Use it. Save errno afterwards.
48948         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48949
48950 2008-06-03  Bruno Haible  <bruno@clisp.org>
48951
48952         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48953         draft code. Simplify #ifs.
48954         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48955         Put Solaris code after POSIX-draft code. Fix comments regarding
48956         Solaris 10, HP-UX. Mention Cygwin.
48957         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48958
48959 2008-06-03  Eric Blake  <ebb9@byu.net>
48960
48961         Provide fallback for older kernels.
48962         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48963         Provide runtime fallback if kernel lacks support.
48964         Reported by Mike Frysinger.
48965
48966 2008-06-02  Bruno Haible  <bruno@clisp.org>
48967
48968         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48969         it exists.
48970
48971 2008-06-02  Bruno Haible  <bruno@clisp.org>
48972
48973         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48974         * lib/copy-acl.c (qcopy_acl): Update comment.
48975
48976 2008-06-02  Bruno Haible  <bruno@clisp.org>
48977
48978         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48979         like ACL APIs.
48980
48981 2008-06-02  Bruno Haible  <bruno@clisp.org>
48982
48983         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48984         * tests/test-set-mode-acl.sh: Likewise.
48985         * tests/test-copy-acl.sh: Likewise.
48986         * tests/test-copy-file.sh: Likewise.
48987
48988 2008-06-02  Bruno Haible  <bruno@clisp.org>
48989
48990         * tests/test-file-has-acl.sh: Remove unused code.
48991
48992 2008-06-01  Bruno Haible  <bruno@clisp.org>
48993
48994         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48995         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48996         messages.
48997         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48998
48999 2008-06-01  Bruno Haible  <bruno@clisp.org>
49000
49001         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49002         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49003         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49004         APIs.
49005         * modules/acl-tests (configure.ac): Remove tests now contained in
49006         m4/acl.m4.
49007
49008 2008-06-02  Jim Meyering  <meyering@redhat.com>
49009
49010         announce-gen: use a better key-server host name
49011         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49012         it may be more consistently reliable.  Suggested by Werner Koch
49013         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49014
49015 2008-06-01  Bruno Haible  <bruno@clisp.org>
49016
49017         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49018         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49019
49020 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49021
49022         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49023
49024 2008-06-01  Bruno Haible  <bruno@clisp.org>
49025
49026         New ACL tests.
49027         * tests/test-file-has-acl.sh: New file.
49028         * tests/test-file-has-acl.c: New file.
49029         * tests/test-set-mode-acl.sh: New file.
49030         * tests/test-set-mode-acl.c: New file.
49031         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49032         * tests/test-copy-acl.c: New file.
49033         * modules/acl-tests: New file, based on modules/copy-file-tests.
49034         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49035         (Depends-on): Add acl-tests.
49036         (configure.ac): Remove checks.
49037         (Makefile.am): Don't create test-sameacls program here any more.
49038
49039 2008-06-01  Bruno Haible  <bruno@clisp.org>
49040
49041         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49042         * tests/test-sameacls.c: Include progname.h.
49043         (main): Invoke set_program_name. Portability fixes for MacOS X,
49044         Solaris, HP-UX.
49045
49046 2008-06-01  Bruno Haible  <bruno@clisp.org>
49047
49048         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49049         function.
49050         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49051
49052 2008-06-01  Bruno Haible  <bruno@clisp.org>
49053
49054         * modules/rpmatch (Depends-on): Add strdup.
49055
49056 2008-06-01  Bruno Haible  <bruno@clisp.org>
49057
49058         * lib/pipe.c: Include unistd-safer.h.
49059         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49060         * modules/pipe (Depends-on): Add unistd-safer.
49061
49062 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49063
49064         * modules/autobuild (configure.ac): Call AB_INIT.
49065
49066 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49067
49068         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49069         Suggested by Bruno Haible <bruno@clisp.org>.
49070
49071 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49072
49073         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49074         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49075         <bruno@clisp.org>.
49076
49077 2008-05-29  Eric Blake  <ebb9@byu.net>
49078
49079         Prefer new POSIX 200x interfaces over futimesat.
49080         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49081         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49082         when available.
49083         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49084
49085 2008-05-28  Bruno Haible  <bruno@clisp.org>
49086
49087         * modules/stpcpy (License): Change to LGPLv2+.
49088         Requested by David Lutterkort <dlutter@redhat.com>.
49089
49090 2008-05-27  Bruno Haible  <bruno@clisp.org>
49091
49092         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49093         current mingw.
49094         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49095
49096 2008-05-27  Bruno Haible  <bruno@clisp.org>
49097
49098         * modules/iconv_open (Link): New section, from module 'iconv'.
49099         * modules/striconv (Link): Likewise.
49100         * modules/striconveh (Link): Likewise.
49101         * modules/xstriconv (Link): Likewise.
49102         * modules/unicodeio (Link): Likewise.
49103         * modules/propername (Link): Likewise.
49104         Reported by Jim Meyering.
49105
49106 2008-05-26  Jim Meyering  <meyering@redhat.com>
49107
49108         sha256: do not artificially restrict buffer length to be < 2^32
49109         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49110         uint32_t to size_t.
49111         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49112         to match.
49113
49114         avoid unaligned access errors, e.g., on sparc
49115         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49116         direct access through a possibly-unaligned uint64* pointer.
49117         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49118         direct access through a possibly-unaligned uint32* pointer.
49119         Prompted by this patch from Tom "spot" Callaway:
49120         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49121
49122         sha512.c: fix typo in comment
49123         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49124
49125 2008-05-25  Bruno Haible  <bruno@clisp.org>
49126
49127         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49128         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49129         (Makefile.am): Update lib_SOURCES.
49130
49131 2008-05-25  Bruno Haible  <bruno@clisp.org>
49132
49133         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49134
49135 2008-05-25  Jim Meyering  <meyering@redhat.com>
49136
49137         useless-if-before-free: freed expr may have white-space differences
49138         * build-aux/useless-if-before-free: Recognize cases in which the
49139         freed expression differs from the tested one in embedded white
49140         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49141         $1 was used, so we can't make any regexp shy.  Improved tests now
49142         detect this.
49143
49144         useless-if-before-free: accept white space in the expression.
49145         * build-aux/useless-if-before-free: For now, any white space
49146         in the expression must be identical in the free argument.
49147
49148         useless-if-before-free: efficiency tweak
49149         * build-aux/useless-if-before-free: Make the expression-matching
49150         regexp "shy".
49151         Make the *outer* regexp shy, not the expr-matching one.
49152
49153         update code-in-comment to accept cast of free arg
49154         * build-aux/useless-if-before-free: Update regexp.
49155
49156 2008-05-25  Bruno Haible  <bruno@clisp.org>
49157
49158         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49159         * modules/copy-file-tests (Files, Makefile.am): Update.
49160         * tests/test-copy-file.c (func_test_copy): Update.
49161
49162 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49163
49164         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49165
49166 2008-05-23  Bruno Haible  <bruno@clisp.org>
49167
49168         Improve support for ACLs on OSF/1.
49169         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49170         Remove fallback for unknown flavors of ACLs.
49171
49172 2008-05-22  Bruno Haible  <bruno@clisp.org>
49173
49174         Add support for ACLs on OSF/1.
49175         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49176         replacements.
49177         (acl_free_text): New macro fallback.
49178         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49179         acl_free.
49180         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49181         acl_free_text function. Require AC_C_INLINE.
49182
49183 2008-05-22  Bruno Haible  <bruno@clisp.org>
49184
49185         Make copy_acl work on MacOS X 10.5.
49186         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49187         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49188         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49189         If MODE_INSIDE_ACL, don't assume that every system has the same text
49190         representation for ACLs as FreeBSD.
49191         * lib/copy-acl.c (copy_acl): Add support for platforms with
49192         !MODE_INSIDE_ACL.
49193         * lib/file-has-acl.c (file_has_acl): Likewise.
49194         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49195         FreeBSD, MacOS X, or IRIX, respectively.
49196
49197 2008-05-22  Bruno Haible  <bruno@clisp.org>
49198
49199         * lib/acl.h: Don't include <sys/acl.h>.
49200         (GETACLCNT): Move fallback to lib/acl-internal.h.
49201         * lib/acl-internal.h: Include <sys/acl.h> here.
49202         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49203
49204 2008-05-22  Bruno Haible  <bruno@clisp.org>
49205
49206         Split off copy_acl function to separate file.
49207         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49208         * lib/acl.c (copy_acl): Moved function to separate file.
49209         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49210         * modules/acl (Files): Add lib/copy-acl.c.
49211         (Makefiles.am): Augment lib_SOURCES.
49212
49213 2008-05-22  Bruno Haible  <bruno@clisp.org>
49214
49215         * modules/copy-file-tests: New file.
49216         * tests/test-copy-file.sh: New file.
49217         * tests/test-copy-file.c: New file.
49218         * tests/test-copy-file-sameacls.c: New file.
49219
49220 2008-05-22  Eric Blake  <ebb9@byu.net>
49221
49222         Avoid gcc warning.
49223         * tests/test-memcmp.c (main): Pass NULL indirectly.
49224
49225 2008-05-21  Bruno Haible  <bruno@clisp.org>
49226
49227         Add reference doc about ACLs.
49228         * doc/acl-resources.txt: New file.
49229         * doc/acl-cygwin.txt: New file.
49230
49231 2008-05-21  Bruno Haible  <bruno@clisp.org>
49232
49233         Avoid one more warning from gcc.
49234         * lib/vasnprintf.c (IF_LINT): Update comments.
49235         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49236
49237 2008-05-21  Jim Meyering  <meyering@redhat.com>
49238
49239         avoid a warning from gcc
49240         * lib/vasnprintf.c (IF_LINT): Define.
49241         (scale10_round_decimal_long_double):
49242         Use it to avoid a "may be used uninitialized" warning.
49243         (scale10_round_decimal_double): Likewise.
49244
49245 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49246
49247         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49248         declared.
49249
49250 2008-05-20  Bruno Haible  <bruno@clisp.org>
49251
49252         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49253         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49254
49255 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49256
49257         * modules/memcmp-tests: New file.
49258         * tests/test-memcmp.c: New file.
49259
49260 2008-05-19  Bruno Haible  <bruno@clisp.org>
49261
49262         * modules/propername (Notice, configure.ac): Put quoted "..." into
49263         --keyword option.
49264         * lib/propername.h: Update comments accordingly.
49265         Reported by Eric Blake.
49266
49267 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49268
49269         * modules/getpass-gnu (Depends-on): Add fseeko.
49270
49271 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49272
49273         * modules/base64-tests: New file.
49274
49275 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49276
49277         * lib/base64.c (base64_decode_ctx): If a decode context structure
49278         was passed in use it to ignore newlines.  If a context structure
49279         was _not_ passed in, continue to treat newlines as garbage (this
49280         is the historical behavior).  Formerly base64_decode.
49281         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49282         takes a decode context structure.
49283         * lib/base64.h (base64_decode): Macro for four-argument calls.
49284         (base64_decode_alloc): Likewise.
49285         * lib/base64.c (base64_decode_ctx): If a decode context structure
49286         was passed in use it to ignore newlines.  If a context structure
49287         was _not_ passed in, continue to treat newlines as garbage (this
49288         is the historical behavior).  Formerly base64_decode.
49289         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49290         takes a decode context structure.
49291         * lib/base64.h (base64_decode): Macro for four-argument calls.
49292         (base64_decode_alloc): Likewise.
49293
49294 2008-05-19  Jim Meyering  <meyering@redhat.com>
49295
49296         avoid a warning from gcc
49297         * lib/trim.c (IF_LINT): Define.
49298         (trim2): Use it to avoid a "may be used uninitialized" warning.
49299
49300         Fix doc typo.
49301         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49302
49303 2008-05-19  Bruno Haible  <bruno@clisp.org>
49304
49305         * doc/glibc-functions/getpass.texi: Document limits of other
49306         implementations.
49307
49308 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49309             Bruno Haible <bruno@clisp.org>
49310
49311         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49312
49313 2008-05-18  Bruno Haible  <bruno@clisp.org>
49314
49315         * modules/propername: New file, from GNU gettext.
49316         * lib/propername.h: New file, from GNU gettext.
49317         * lib/propername.c: New file, from GNU gettext.
49318         * MODULES.html.sh (Internationalization functions): Add propername.
49319
49320 2008-05-16  Jim Meyering  <meyering@redhat.com>
49321             Bruno Haible  <bruno@clisp.org>
49322
49323         Avoid some warnings from "gcc -Wshadow".
49324         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49325
49326 2008-05-15  Eric Blake  <ebb9@byu.net>
49327
49328         Extend previous patch to cygwin 1.7.0.
49329         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49330         fast implementation in cygwin >= 1.7.0.
49331         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49332         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49333
49334 2008-05-15  Bruno Haible  <bruno@clisp.org>
49335
49336         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49337         implementation in glibc >= 2.9.
49338         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49340
49341 2008-05-15  Bruno Haible  <bruno@clisp.org>
49342
49343         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49344         (Unicode string functions): Add unilbrk/*.
49345         Reported by Karl Berry.
49346
49347 2008-05-15  Eric Blake  <ebb9@byu.net>
49348
49349         Fix violation of <stdbool.h> replacement in regex.
49350         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49351         * lib/regexec.c (re_search_internal): Likewise.
49352         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49353
49354 2008-05-15  Jim Meyering  <meyering@redhat.com>
49355
49356         avoid distracting test output when git or cvs is not found
49357         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49358         * tests/test-vc-list-files-git.sh: Likewise.
49359
49360 2008-05-15  Eric Blake  <ebb9@byu.net>
49361
49362         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49363         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49364         glibc version.
49365         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49366         * doc/posix-functions/strstr.texi (strstr): Likewise.
49367         * lib/str-two-way.h (MAX): Sychronize with glibc.
49368
49369 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49370
49371         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49372         opr.ctx_type.
49373         (calc_first): Initialize constraint field.
49374         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49375         Fix grammar.
49376         (duplicate_node): Merge constraint field for all node types.
49377         (calc_eclosure_iter): Look at constraint field for all node types.
49378         * lib/regex_internal.c (create_cd_newstate): Don't look at
49379         opr.ctx_type.
49380
49381 2008-05-14  Bruno Haible  <bruno@clisp.org>
49382
49383         Help GCC to do better code generation.
49384         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49385         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49386         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49387         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49388         Declare with attribute 'malloc' if supported.
49389
49390 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49391
49392         use "echo STR|wc -c" rather than unportable "expr length STR"
49393         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49394         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49395
49396 2008-05-14  Jim Meyering  <meyering@redhat.com>
49397
49398         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49399         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49400         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49401         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49402         via Collin Lasse.
49403
49404 2008-05-14  Eric Blake  <ebb9@byu.net>
49405
49406         Avoid quadratic growth in gl_LIBSOURCES.
49407         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49408         Suggested by Bruno Haible.
49409
49410         Test xmemdup0.
49411         * modules/xmemdup0-tests: New file.
49412         * tests/test-xmemdup0.c: Likewise.
49413
49414 2008-05-13  Eric Blake  <ebb9@byu.net>
49415
49416         Split xmemdup0 into its own module.
49417         * modules/xmemdup0: New file.
49418         * lib/xmemdup0.h: Likewise.
49419         * lib/xmemdup0.c: Likewise.
49420         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49421         * lib/xalloc.h (xmemdup0): Remove.
49422         * lib/xmalloc.c (xmemdup0): Likewise.
49423
49424 2008-05-13  Eric Blake  <ebb9@byu.net>
49425             Bruno Haible  <bruno@clisp.org>
49426
49427         Reduce number of forks required during autoconf.
49428         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49429         and gl_LIBSOURCES_DIR.
49430         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49431         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49432         m4_syscmd per file.
49433         <m4_foreach_w>: Move...
49434         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49435
49436 2008-05-13  Eric Blake  <ebb9@byu.net>
49437
49438         * gnulib-tool: Fix various comment typos.
49439
49440 2008-05-12  Bruno Haible  <bruno@clisp.org>
49441
49442         Tailor the linebreaking algorithm.
49443         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49444
49445 2008-05-12  Bruno Haible  <bruno@clisp.org>
49446
49447         Update to Unicode 5.0.0.
49448         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49449         LBP_JV, LBP_JT. Redistribute values.
49450         (unilbrk_table): Change size.
49451         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49452         Unicode TR#14 rev. 22.
49453         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49454         LBP_JV, LBP_JT. Redistribute values.
49455         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49456         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49457         Update.
49458         * lib/unilbrk/lbrkprop1.h: Regenerated.
49459         * lib/unilbrk/lbrkprop2.h: Regenerated.
49460         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49461         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49462         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49463         Likewise.
49464         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49465         Likewise.
49466         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49467         result.
49468         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49469         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49470         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49471         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49472         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49473         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49474
49475 2008-05-11  Bruno Haible  <bruno@clisp.org>
49476
49477         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49478
49479 2008-05-11  Bruno Haible  <bruno@clisp.org>
49480
49481         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49482         * modules/unilbrk/gen-lbrk: New file.
49483
49484 2008-05-11  Bruno Haible  <bruno@clisp.org>
49485
49486         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49487         * m4/sha512.m4 (gl_SHA512): Likewise.
49488
49489 2008-05-11  Jim Meyering  <meyering@redhat.com>
49490
49491         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49492         * modules/crypto/sha256: New file.
49493         * modules/crypto/sha512: Likewise.
49494         * lib/sha256.c: Likewise.
49495         * lib/sha256.h: Likewise.
49496         * lib/sha512.c: Likewise.
49497         * lib/sha512.h: Likewise.
49498         * lib/u64.h: Likewise.
49499         * m4/sha256.m4: Likewise.
49500         * m4/sha512.m4: Likewise.
49501         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49502
49503 2008-05-10  Bruno Haible  <bruno@clisp.org>
49504
49505         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49506         (Input/Output <stdio.h>): Add xprintf.
49507         (Signal handling <signal.h>): Add strsignal.
49508         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49509         (Core language properties): Add func.
49510         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49511         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49512         strings.
49513         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49514         (Input/output): New section.
49515         (File system functions): Add openat-die, stat-macros.
49516         (Networking functions): Add sockets.
49517         (Unicode string functions): Add unictype/*.
49518         (Support for building libraries and executables): Add gperf.
49519         (Support for building documentation): Add agpl-3.0.
49520         (Misc): Add nocrash.
49521
49522 2008-05-10  Bruno Haible  <bruno@clisp.org>
49523
49524         * modules/unictype/gen-ctype: New file.
49525
49526 2008-05-10  Jim Meyering  <meyering@redhat.com>
49527
49528         Make chdir-safer.c more efficient on a system with no symlinks.
49529         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49530         also if ELOOP is zero.  Suggested by Bruno Haible.
49531
49532         Make chdir-safer.c slightly safer.
49533         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49534         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49535
49536         Avoid compile failure on systems without ELOOP (like mingw).
49537         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49538         Reported by Bruno Haible.
49539
49540 2008-05-10  Bruno Haible  <bruno@clisp.org>
49541
49542         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49543         (is_utf8_encoding): Use a case-insensitive comparison.
49544         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49545         streq.
49546
49547 2008-05-10  Bruno Haible  <bruno@clisp.org>
49548
49549         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49550         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49551         * lib/unilbrk/ulc-common.h (iconv_string_length,
49552         iconv_string_keeping_offsets): Remove declarations.
49553         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49554         Don't include <iconv.h>, streq.h, xsize.h.
49555         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49556         conversion.
49557         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49558         <iconv.h>, streq.h, xsize.h.
49559         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49560         conversion.
49561         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49562         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49563         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49564         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49565
49566 2008-05-10  Bruno Haible  <bruno@clisp.org>
49567
49568         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49569         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49570
49571         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49572         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49573
49574         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49575         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49576
49577         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49578         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49579
49580         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49581         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49582
49583         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49584         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49585
49586         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49587         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49588
49589         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49590         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49591
49592 2008-05-10  Bruno Haible  <bruno@clisp.org>
49593
49594         Split up 'linebreak' module.
49595         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49596         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49597         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49598         modifications.
49599         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49600         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49601         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49602         lib/linebreak.c.
49603         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49604         lib/linebreak.c.
49605         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49606         lib/linebreak.c.
49607         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49608         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49609         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49610         lib/linebreak.c.
49611         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49612         lib/linebreak.c.
49613         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49614         lib/linebreak.c.
49615         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49616         lib/linebreak.c.
49617         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49618         lib/linebreak.c.
49619         * modules/unilbrk/base: New file.
49620         * modules/unilbrk/tables: New file.
49621         * modules/unilbrk/u8-possible-linebreaks: New file.
49622         * modules/unilbrk/u16-possible-linebreaks: New file.
49623         * modules/unilbrk/u32-possible-linebreaks: New file.
49624         * modules/unilbrk/ulc-common: New file.
49625         * modules/unilbrk/ulc-possible-linebreaks: New file.
49626         * modules/unilbrk/u8-width-linebreaks: New file.
49627         * modules/unilbrk/u16-width-linebreaks: New file.
49628         * modules/unilbrk/u32-width-linebreaks: New file.
49629         * modules/unilbrk/ulc-width-linebreaks: New file.
49630         * lib/linebreak.h: Remove file.
49631         * lib/linebreak.c: Remove file.
49632         * m4/linebreak.m4: Remove file.
49633         * modules/linebreak: Remove file.
49634         * NEWS: Mention the changes.
49635
49636 2008-05-09  Eric Blake  <ebb9@byu.net>
49637
49638         Add xmemdup0.
49639         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49640         implementation.
49641         * lib/xmalloc.c (xmemdup0): New C implementation.
49642
49643 2008-05-08  Bruno Haible  <bruno@clisp.org>
49644
49645         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49646
49647 2008-05-07  Eric Blake  <ebb9@byu.net>
49648
49649         Support cross-compilation of <wctype.h>.
49650         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49651         AC_CACHE_CHECK.
49652
49653 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49654
49655         * build-aux/vc-list-files: Add support for bzr.
49656
49657 2008-05-03  Jim Meyering  <meyering@redhat.com>
49658
49659         avoid failed assertion with tight malloc
49660         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49661
49662 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49663
49664         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49665         are needed from arpa/inet.h.
49666         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49667         Reported by Bruno Haible.
49668
49669 2008-05-02  Jim Meyering  <meyering@redhat.com>
49670
49671         avoid compilation error on FreeBSD 6
49672         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49673
49674 2008-05-01  Jim Meyering  <meyering@redhat.com>
49675
49676         useless-if-before-free: correct --help's exit status description
49677         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49678         for one or more matches, etc.  Reported by Bruno Haible.
49679
49680         vc-list-files: make the stand-alone gnulib test work
49681         * modules/vc-list-files-tests (configure.ac):
49682         Define and AC_SUBST abs_aux_dir.
49683         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49684         $(abs_top_srcdir) to each script and having each of them
49685         duplicate the work of setting PATH, set PATH here, using
49686         the new variable, abs_aux_dir instead.
49687         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49688         * tests/test-vc-list-files-git.sh: Likewise.
49689         Reported by Bruno Haible.
49690
49691 2008-05-01  Bruno Haible  <bruno@clisp.org>
49692
49693         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49694         reallocation. Rename 'done' to 'found_delimiter'.
49695
49696 2008-05-01  Jim Meyering  <meyering@redhat.com>
49697
49698         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49699         * build-aux/vc-list-files: Use `...`, not $(...).
49700
49701 2008-04-30  Jim Meyering  <meyering@redhat.com>
49702
49703         add tests for vc-list-files
49704         * modules/vc-list-files-tests: New module.
49705         * tests/test-vc-list-files-cvs.sh: New file.
49706         * tests/test-vc-list-files-git.sh: New file.
49707
49708         avoid a warning from gcc
49709         * lib/getndelim2.c (IF_LINT): Define.
49710         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49711
49712         vc-list-files: work properly with build-aux/cvsu, too
49713         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49714         to all cvs-based clauses.
49715
49716         vc-list-files: work properly in the CVS+awk case, too
49717         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49718
49719         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49720         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49721         take more than one file argument, so .  Add quotes, just in case $dir
49722         ever contains a shell meta-character.  Prompted by Soren Hansen in
49723         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49724
49725 2008-04-29  Eric Blake  <ebb9@byu.net>
49726
49727         Optimize getndelim2 to use block operations when possible.
49728         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49729         freadseek, and memchr2.
49730         * lib/getndelim2.c (getndelim2): Use them for block reads.
49731
49732 2008-04-29  Bruno Haible  <bruno@clisp.org>
49733
49734         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49735         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49736         * modules/inet_ntop (Depends-on): Add extensions.
49737         * modules/inet_pton (Depends-on): Likewise.
49738         Reported by Simon Josefsson.
49739
49740 2008-04-29  Jim Meyering  <meyering@redhat.com>
49741
49742         When the is more than one match in a block, match all of them.
49743         * build-aux/useless-if-before-free: Iterate through each block
49744         until there are no more matches.
49745
49746         Fix broken useless-if-before-free script.
49747         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49748         the expression to match cast of argument to free-like function.
49749
49750 2008-04-29  Eric Blake  <ebb9@byu.net>
49751
49752         Use new header.
49753         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49754
49755 2008-04-29  Jim Meyering  <meyering@redhat.com>
49756
49757         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49758         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49759         by gnulib to exist and to declare e.g., inet_ntop.
49760         Don't include "inet_ntop.h", now removed.
49761
49762         * m4/arpa_inet_h.m4: Remove trailing blanks.
49763
49764 2008-04-29  Eric Blake  <ebb9@byu.net>
49765
49766         Silence valgrind on safe reads beyond potential array bounds.
49767         * lib/rawmemchr.valgrind: New file.
49768         * lib/strchrnul.valgrind: Likewise.
49769         * modules/rawmemchr (Files): Distribute new file.
49770         * modules/strchrnul (Files): Likewise.
49771         Suggested by Bruno Haible.
49772
49773 2008-04-29  Bruno Haible  <bruno@clisp.org>
49774
49775         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49776         (inet_ntop, inet_pton): Change portability warning's wording.
49777         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49778         Invoke gl_CHECK_NEXT_HEADERS.
49779         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49780         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49781         set ARPA_INET_H.
49782         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49783         * modules/arpa_inet (Description): No longer only for systems that
49784         lack it.
49785         (Depends-on): Add include_next.
49786         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49787         HAVE_ARPA_INET_H.
49788
49789 2008-04-29  Jim Meyering  <meyering@redhat.com>
49790
49791         * modules/mkdir (License): Re-license as LGPLv2+.
49792
49793 2008-04-29  Bruno Haible  <bruno@clisp.org>
49794
49795         * modules/rawmemchr (Maintainer): Set to Eric.
49796         * modules/strchrnul (Maintainer): Likewise.
49797
49798 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49799
49800         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49801         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49802
49803         * modules/arpa_inet (arpa/inet.h): Use them.
49804
49805 2008-04-28  Eric Blake  <ebb9@byu.net>
49806
49807         Test getndelim2.
49808         * modules/getndelim2-tests: New file.
49809         * tests/test-getndelim2.c: Likewise.
49810         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49811         stream.
49812         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49813
49814         * MODULES.html.sh: Document new module.
49815
49816 2008-04-20  Bruno Haible  <bruno@clisp.org>
49817
49818         * lib/c-stack.c (die): Use raise.
49819         * modules/c-stack (Depends-on): Add raise.
49820
49821 2008-04-28  Bruno Haible  <bruno@clisp.org>
49822
49823         Expect rpmatch to be declared.
49824         * lib/yesno.c (rpmatch): Remove declaration.
49825
49826         Declare rpmatch.
49827         * lib/stdlib.in.h (rpmatch): New declaration.
49828         * lib/rpmatch.c: Include <stdlib.h> first.
49829         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49830         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49832         HAVE_RPMATCH.
49833         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49834         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49835         (Include): Set to <stdlib.h>.
49836         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49837         HAVE_RPMATCH.
49838         * NEWS: Document the change.
49839
49840 2008-04-28  Bruno Haible  <bruno@clisp.org>
49841
49842         Change rpmatch to use nl_langinfo when appropriate.
49843         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49844         (N_): New macro.
49845         (localized_pattern): New function/macro.
49846         (try): Remove match, nomatch arguments. Copy the pattern into safe
49847         memory before caching it.
49848         (rpmatch): Use localized_pattern. Add translator comments.
49849         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49850         Suggested by Eric Blake.
49851         * modules/rpmatch (Depends-on): Add stdbool.
49852
49853 2008-04-28  Eric Blake  <ebb9@byu.net>
49854
49855         Add rawmemchr module, matching glibc.
49856         * modules/string (Makefile.am): New indicator.
49857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49858         * lib/string.in.h (rawmemchr): Declare when appropriate.
49859         * modules/rawmemchr: New file.
49860         * m4/rawmemchr.m4: Likewise.
49861         * lib/rawmemchr.c: Likewise.
49862         * modules/rawmemchr-tests: Likewise.
49863         * tests/test-rawmemchr.c: Likewise.
49864         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49865         module.
49866         * modules/strchrnul (Depends-on): Add rawmemchr.
49867         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49868
49869         Whitespace cleanup.
49870         * tests/test-strchrnul.c: Reindent.
49871         * lib/strchrnul.c: Likewise.
49872
49873         Optimize and test strchrnul.
49874         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49875         * modules/strchrnul-tests: New file.
49876         * tests/test-strchrnul.c: Likewise.
49877
49878         Remove intprops dependency.
49879         * modules/memchr (Depends-on): Remove intprops.
49880         * modules/memrchr (Depends-on): Likewise.
49881         * modules/memchr2 (Depends-on): Likewise.
49882         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49883         * lib/memrchr.c (__memrchr): Likewise.
49884         * lib/memrchr2.c (memchr2): Likewise.
49885         Reported by Simon Josefsson.
49886
49887 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49888
49889         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49890         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49891
49892 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49893
49894         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49895
49896         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49897
49898         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49899
49900         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49901         declarations.
49902         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49903
49904         * m4/inet_pton.m4: Don't check for header files.
49905
49906         * m4/inet_ntop.m4: Don't check for header files.
49907
49908 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49909
49910         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49911         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49912         trigger for cygwin).
49913         Reported by Bruno Haible  <bruno@clisp.org>.
49914
49915 2008-04-28  Bruno Haible  <bruno@clisp.org>
49916
49917         * doc/posix-functions/strdup.texi: Mention mingw problem.
49918
49919 2008-04-27  Bruno Haible  <bruno@clisp.org>
49920
49921         * modules/stat-time-tests (Depends-on): Add sleep.
49922         * tests/test-stat-time.c (force_unlink): New function.
49923         (cleanup): Use it.
49924         (test_mtime): Remove the ctime related tests.
49925         (test_ctime): New function, containing the ctime related tests.
49926         (main): Call test_ctime, except on native Windows platforms.
49927
49928 2008-04-27  Bruno Haible  <bruno@clisp.org>
49929
49930         * lib/rpmatch.c (rpmatch): Add some comments.
49931         Reported by James Youngman <jay@gnu.org>.
49932
49933 2008-04-27  Bruno Haible  <bruno@clisp.org>
49934
49935         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49936         quiet NaNs.
49937
49938 2008-04-27  Bruno Haible  <bruno@clisp.org>
49939
49940         Make test-yesno.sh work on mingw.
49941         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49942         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49943         (main): Set stdin to binary mode.
49944         * modules/yesno-tests (Depends-on): Add binary-io.
49945
49946 2008-04-27  Bruno Haible  <bruno@clisp.org>
49947
49948         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49949         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49950         argument that lie outside the IEEE 854 domain.
49951         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49952         (gl_ISFINITE): Use it.
49953         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49954
49955 2008-04-27  Bruno Haible  <bruno@clisp.org>
49956
49957         Allow local renaming in config.h.
49958         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49959
49960 2008-04-27  Bruno Haible  <bruno@clisp.org>
49961
49962         * lib/memchr.c (__memchr): Change type of 'i'.
49963         * lib/memchr2.c (memchr2): Likewise.
49964
49965 2008-04-26  Eric Blake  <ebb9@byu.net>
49966         and Bruno Haible  <bruno@clisp.org>
49967
49968         Optimize and test memrchr.
49969         * modules/memrchr (Depends-on): Add intprops.
49970         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49971         * modules/memrchr-tests: New file.
49972         * tests/test-memrchr.c: New file.
49973
49974 2008-04-26  Bruno Haible  <bruno@clisp.org>
49975
49976         Add tentative support for DragonFly BSD.
49977         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49978         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49979         fp.
49980         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49981         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49982         * lib/fpurge.c (fpurge): Likewise.
49983         * lib/freadable.c (freaadable): Likewise.
49984         * lib/freadahead.c (freadahead): Likewise.
49985         * lib/freading.c (freading): Likewise.
49986         * lib/freadptr.c (freadptr): Likewise.
49987         * lib/freadseek.c (freadptrinc): Likewise.
49988         * lib/fseeko.c (fseeko): Likewise.
49989         * lib/fseterr.c (fseterr): Likewise.
49990         * lib/fwritable.c (fwritable): Likewise.
49991         * lib/fwriting.c (fwriting): Likewise.
49992
49993 2008-04-26  Bruno Haible  <bruno@clisp.org>
49994
49995         * lib/stdio-impl.h: New file.
49996         * lib/fbufmode.c: Include stdio-impl.h.
49997         (fbufmode): Use fp_, remove redundant #defines.
49998         * lib/fflush.c: Include stdio-impl.h.
49999         (clear_ungetc_buffer): Remove redundant #defines.
50000         * lib/fpurge.c: Include stdio-impl.h.
50001         (fpurge): Remove redundant #defines.
50002         * lib/freadable.c: Include stdio-impl.h.
50003         (freadable): Remove redundant #defines.
50004         * lib/freadahead.c: Include stdio-impl.h.
50005         (freadahead): Remove redundant #defines.
50006         * lib/freading.c: Include stdio-impl.h.
50007         (freading): Remove redundant #defines.
50008         * lib/freadptr.c: Include stdio-impl.h.
50009         (freadptr): Remove redundant #defines.
50010         * lib/freadseek.c: Include stdio-impl.h.
50011         (freadptrinc): Remove redundant #defines.
50012         * lib/fseeko.c: Include stdio-impl.h.
50013         (rpl_fseeko): Remove redundant #defines.
50014         * lib/fseterr.c: Include stdio-impl.h.
50015         (fseterr): Remove redundant #defines.
50016         * lib/fwritable.c: Include stdio-impl.h.
50017         (fwritable: Remove redundant #defines.
50018         * lib/fwriting.c: Include stdio-impl.h.
50019         (fwriting): Remove redundant #defines.
50020         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50021         * modules/fflush (Files): Likewise.
50022         * modules/fpurge (Files): Likewise.
50023         * modules/freadable (Files): Likewise.
50024         * modules/freadahead (Files): Likewise.
50025         * modules/freading (Files): Likewise.
50026         * modules/freadptr (Files): Likewise.
50027         * modules/freadseek (Files): Likewise.
50028         * modules/fseeko (Files): Likewise.
50029         * modules/fseterr (Files): Likewise.
50030         * modules/fwritable (Files): Likewise.
50031         * modules/fwriting (Files): Likewise.
50032
50033 2008-04-26  Bruno Haible  <bruno@clisp.org>
50034
50035         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50036         restore_seek_optimization, update_fpos_cache): New functions, extracted
50037         from rpl_fflush.
50038         (rpl_fflush): Use them.
50039         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50040         (gl_REPLACE_FFLUSH): Use it.
50041
50042 2008-04-26  Bruno Haible  <bruno@clisp.org>
50043
50044         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50045         on Solaris.
50046         * tests/test-xstrtoimax.sh: Likewise.
50047         * tests/test-xstrtoumax.sh: Likewise.
50048         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50049
50050 2008-04-26  Bruno Haible  <bruno@clisp.org>
50051
50052         * modules/memchr-tests: New file.
50053         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50054
50055 2008-04-26  Eric Blake  <ebb9@byu.net>
50056             Bruno Haible  <bruno@clisp.org>
50057
50058         * lib/memchr.c: Include intprops.h.
50059         (__memchr): Optimize parallel detection of matching bytes. Rename local
50060         variables. Add explanatory comments.
50061
50062 2008-04-26  Bruno Haible  <bruno@clisp.org>
50063
50064         Fix module 'memchr', broken since 2000-10-28.
50065         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50066
50067 2008-04-26  Bruno Haible  <bruno@clisp.org>
50068
50069         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50070         comments.
50071
50072 2008-04-25  Eric Blake  <ebb9@byu.net>
50073
50074         Use native fstatat on cygwin 1.7.0.
50075         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50076         first.
50077
50078 2008-04-23  Eric Blake  <ebb9@byu.net>
50079
50080         Improve memchr2 performance.
50081         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50082         NUL bytes.
50083         * modules/memchr2 (Depends-on): Use intprops.h.
50084
50085 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50086
50087         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50088         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50089         <blp@cs.stanford.edu>.
50090
50091 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50092
50093         * lib/arpa_inet.in.h: New file.
50094
50095         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50096         (Makefile.am): Sed in substitute header file.
50097
50098         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50099         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50100
50101         * modules/inet_ntop (configure.ac): Use
50102         gl_ARPA_INET_MODULE_INDICATOR.
50103
50104         * modules/inet_pton (configure.ac): Use
50105         gl_ARPA_INET_MODULE_INDICATOR.
50106
50107 2008-04-22  Jim Meyering  <meyering@redhat.com>
50108
50109         * modules/verify (License): Re-license as LGPLv2+.
50110
50111 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50112
50113         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50114         parameter to void* as per POSIX standard (MinGW uses char*).
50115
50116 2008-04-21  Bruno Haible  <bruno@clisp.org>
50117
50118         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50119         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50120         Define to replacements if REPLACE_ISWCNTRL is 1.
50121         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50122         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50123         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50124         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50125         what it fixes.
50126         * doc/posix-functions/iswalpha.texi: Likewise.
50127         * doc/posix-functions/iswblank.texi: Likewise.
50128         * doc/posix-functions/iswcntrl.texi: Likewise.
50129         * doc/posix-functions/iswdigit.texi: Likewise.
50130         * doc/posix-functions/iswgraph.texi: Likewise.
50131         * doc/posix-functions/iswlower.texi: Likewise.
50132         * doc/posix-functions/iswprint.texi: Likewise.
50133         * doc/posix-functions/iswpunct.texi: Likewise.
50134         * doc/posix-functions/iswspace.texi: Likewise.
50135         * doc/posix-functions/iswupper.texi: Likewise.
50136         * doc/posix-functions/iswxdigit.texi: Likewise.
50137         Reported by Alain Guibert.
50138
50139 2008-04-21  Bruno Haible  <bruno@clisp.org>
50140
50141         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50142         Patch by Alain Guibert.
50143
50144 2008-04-21  Bruno Haible  <bruno@clisp.org>
50145
50146         Fix test failures on mingw.
50147         * tests/test-xstrtol.c (print_no_progname): New function.
50148         (main): Install it in error_print_progname hook.
50149         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50150         * tests/test-xstrtoimax.sh: Likewise.
50151         * tests/test-xstrtoumax.sh: Likewise.
50152
50153 2008-04-21  Bruno Haible  <bruno@clisp.org>
50154
50155         Fix test failure on mingw.
50156         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50157
50158 2008-04-21  Bruno Haible  <bruno@clisp.org>
50159
50160         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50161         Actually assign a value.
50162
50163 2008-04-20  Bruno Haible  <bruno@clisp.org>
50164
50165         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50166         take 2.
50167         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50168         'canonicalize-lgpl' module is also used.
50169         * lib/canonicalize-lgpl.c: Undo last change.
50170         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50171
50172 2008-04-20  Bruno Haible  <bruno@clisp.org>
50173
50174         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50175         config.h. Provide _mkdir based fallback for mingw.
50176         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50177         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50178         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50179         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50180         rather than defining mkdir in config.h.
50181         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50182         (gl_SYS_STAT_H_DEFAULTS): New macro.
50183         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50184         HAVE_IO_H any more.
50185         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50186         HAVE_DECL_MKDIR and HAVE_IO_H.
50187
50188 2008-04-20  Bruno Haible  <bruno@clisp.org>
50189
50190         * lib/isapipe.c: Port to native Windows platforms.
50191
50192 2008-04-20  Bruno Haible  <bruno@clisp.org>
50193
50194         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50195
50196 2008-04-21  Eric Blake  <ebb9@byu.net>
50197
50198         Work around preprocessors that don't handle UINTMAX_MAX.
50199         * lib/memchr2.c (memchr2): Avoid embedded #if.
50200         Reported by Alain Guibert, fix suggested by Bruno Haible.
50201
50202 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50203
50204         * doc/posix-functions/strftime.texi (strftime): Explain better
50205         Windows incompatibility.  Suggested by Micah Cowan
50206         <micah@cowan.name>.
50207
50208 2008-04-20  Bruno Haible  <bruno@clisp.org>
50209
50210         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50211         unistr/u8-mblen.
50212
50213 2008-04-20  Bruno Haible  <bruno@clisp.org>
50214
50215         Fix test failure on platforms with non-GNU iconv.
50216         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50217         (U_TO_U8): Use it, rather than u16_to_u8.
50218         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50219         units at the end of the input string.
50220         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50221
50222 2008-04-20  Bruno Haible  <bruno@clisp.org>
50223
50224         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50225         when the resulting length is 0.
50226         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50227
50228 2008-04-20  Bruno Haible  <bruno@clisp.org>
50229
50230         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50231         works.
50232         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50233
50234 2008-04-20  Bruno Haible  <bruno@clisp.org>
50235
50236         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50237         * modules/tsearch-tests (configure.ac): Test for initstate function.
50238
50239 2008-04-20  Bruno Haible  <bruno@clisp.org>
50240
50241         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50242         for nlink_t if missing.
50243         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50244
50245 2008-04-19  Bruno Haible  <bruno@clisp.org>
50246
50247         Work around snprintf bug on Linux libc5.
50248         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50249         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50250         gl_SNPRINTF_SIZE1.
50251         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50252         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50253         that test failed.
50254         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50255         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50256         * modules/snprintf (Files): Add m4/printf.m4.
50257         * modules/vsnprintf (Files): Likewise.
50258         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50259         * doc/posix-functions/vsnprintf.texi: Likewise.
50260
50261 2008-04-19  Bruno Haible  <bruno@clisp.org>
50262
50263         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50264         from 0.0058 to less than 10^-7.
50265
50266 2008-04-19  Bruno Haible  <bruno@clisp.org>
50267
50268         Fix rounding when a precision is given.
50269         * lib/vasnprintf.c (is_borderline): New function.
50270         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50271         9...9x.
50272         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50273         %e, %g.
50274         * tests/test-vasprintf-posix.c (test_function): Likewise.
50275         * tests/test-snprintf-posix.h (test_function): Likewise.
50276         * tests/test-sprintf-posix.h (test_function): Likewise.
50277         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50278         * tests/test-printf-posix.h (test_function): Likewise.
50279         * tests/test-printf-posix.output: Update.
50280         Reported by John Darrington <john@darrington.wattle.id.au> via
50281         Ben Pfaff <blp@cs.stanford.edu>.
50282
50283 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50284
50285         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50286         Suggested by Bruno Haible <bruno@clisp.org>.
50287
50288 2008-04-17  Bruno Haible  <bruno@clisp.org>
50289
50290         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50291         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50292         implementation.
50293         Patch by Bruce Merry <bmerry@gmail.com>.
50294
50295 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50296
50297         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50298         doesn't work under Windows.
50299
50300 2008-04-16  Bruno Haible  <bruno@clisp.org>
50301
50302         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50303         New macros.
50304         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50305         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50306         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50307         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50308         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50309         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50310         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50311         macros.
50312         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50313         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50314         Northern Sotho, Uighur.
50315
50316 2008-04-16  Bruno Haible  <bruno@clisp.org>
50317
50318         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50319         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50320         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50321         Reported by Daniel Bergström <daniel@octocode.com>.
50322
50323 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50324             Bruno Haible  <bruno@clisp.org>
50325
50326         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50327         function.
50328         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50329         New functions, mostly extracted from gl_locale_name_default.
50330         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50331
50332 2008-04-16  Eric Blake  <ebb9@byu.net>
50333
50334         Adjust strtod detection to catch glibc 2.7 bug.
50335         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50336         Reported by John Gatewood Ham.
50337
50338 2008-04-16  Bruno Haible  <bruno@clisp.org>
50339
50340         Add tentative support for Linux libc5.
50341         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50342         * lib/fpurge.c (fpurge): Likewise.
50343         * lib/freadable.c (freadable): Likewise.
50344         * lib/freadahead.c (freadahead): Likewise.
50345         * lib/freading.c (freading): Likewise.
50346         * lib/freadptr.c (freadptr): Likewise.
50347         * lib/freadseek.c (freadptrinc): Likewise.
50348         * lib/fseeko.c (rpl_fseeko): Likewise.
50349         * lib/fseterr.c (fseterr): Likewise.
50350         * lib/fwritable.c (fwritable): Likewise.
50351         * lib/fwriting.c (fwriting): Likewise.
50352         Reported by Alain Guibert <alguibert+bts@free.fr>.
50353
50354 2008-04-15  Bruno Haible  <bruno@clisp.org>
50355
50356         * modules/mathl (configure.ac): Define module indicator.
50357
50358 2008-04-15  Bruno Haible  <bruno@clisp.org>
50359
50360         * lib/logl.c (logl): Remove unused variables.
50361
50362 2008-04-15  Bruno Haible  <bruno@clisp.org>
50363
50364         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50365         fails.
50366
50367 2008-04-15  Bruno Haible  <bruno@clisp.org>
50368
50369         * lib/trim.c (trim2): Fix argument of isspace() macro.
50370
50371 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50372
50373         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50374         to 0.
50375         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50376
50377 2008-04-14  Bruno Haible  <bruno@clisp.org>
50378
50379         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50380         AC_LANG_PROGRAM argument.
50381         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50382         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50384         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50385         * m4/math_h.m4 (gl_MATH_H): Likewise.
50386         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50387         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50388         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50389         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50390         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50391         * m4/regex.m4 (gl_REGEX): Likewise.
50392         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50393         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50395         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50396         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50397         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50398         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50399         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50400
50401 2008-04-14  Jim Meyering  <meyering@redhat.com>
50402
50403         test-strtod: fix typos: s/abs/fabs/
50404         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50405
50406 2008-04-13  Bruno Haible  <bruno@clisp.org>
50407
50408         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50409         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50410         module is also used and while not building the reloc-wrapper.
50411
50412 2008-04-13  Bruno Haible  <bruno@clisp.org>
50413
50414         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50415
50416 2008-04-13  Bruno Haible  <bruno@clisp.org>
50417
50418         Fix AIX compilation failure introduced on 2008-04-02.
50419         * tests/test-frexp.c (exp): Undefine before redefining.
50420         * tests/test-frexpl.c (exp): Likewise.
50421
50422 2008-04-13  Bruno Haible  <bruno@clisp.org>
50423
50424         Work around a HP-UX stdio bug.
50425         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50426         * tests/test-ftello.c (main): Likewise.
50427         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50428         * doc/posix-functions/ftello.texi: Likewise.
50429
50430 2008-04-13  Bruno Haible  <bruno@clisp.org>
50431
50432         Make test-signbit pass on HP-UX/hppa.
50433         * tests/test-signbit.c (minus_zerol): New variable.
50434         (test_signbitl): Use it.
50435
50436 2008-04-13  Bruno Haible  <bruno@clisp.org>
50437
50438         Make truncl work on OSF/1 4.0.
50439         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50440         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50441         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50443         HAVE_DECL_TRUNCL.
50444         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50445         HAVE_DECL_TRUNCL.
50446         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50447
50448 2008-04-13  Bruno Haible  <bruno@clisp.org>
50449
50450         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50451
50452 2008-04-13  Bruno Haible  <bruno@clisp.org>
50453
50454         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50455         expression, so as to avoid HP-UX 11 cc compiler bug.
50456
50457 2008-04-13  Bruno Haible  <bruno@clisp.org>
50458
50459         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50460
50461 2008-04-13  Bruno Haible  <bruno@clisp.org>
50462
50463         * lib/git-merge-changelog.c: Remove empty declaration outside of
50464         functions.
50465
50466 2008-04-13  Bruno Haible  <bruno@clisp.org>
50467
50468         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50469
50470 2008-04-13  Bruno Haible  <bruno@clisp.org>
50471
50472         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50473         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50474         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50475         also if it exists but lacks definitions of the SHUT_* macros.
50476         * modules/sys_socket (Description): Update.
50477         Reported by Elbert Pol <e.pol@chello.nl>.
50478
50479 2008-04-13  Bruno Haible  <bruno@clisp.org>
50480
50481         * lib/localcharset.c (OS2): Don't redefine if already defined.
50482         Reported by Elbert Pol <e.pol@chello.nl>.
50483
50484 2008-04-13  Bruno Haible  <bruno@clisp.org>
50485
50486         * lib/binary-io.h [__EMX__]: Include <io.h>.
50487         Reported by Elbert Pol <e.pol@chello.nl>.
50488
50489 2008-04-12  Bruno Haible  <bruno@clisp.org>
50490
50491         * lib/fpucw.h: Enable the definitions also for x86_64.
50492         Needed for NetBSD/x86_64.
50493         Reported by Thomas Klausner <tk@giga.or.at>.
50494
50495 2008-04-12  Bruno Haible  <bruno@clisp.org>
50496
50497         * tests/test-strtod.c: Include isnand.h.
50498         (main): Use isnand instead of isnan.
50499         Reported by Jim Meyering.
50500
50501 2008-04-12  Bruno Haible  <bruno@clisp.org>
50502
50503         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50504         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50505
50506 2008-04-12  Jim Meyering  <meyering@redhat.com>
50507
50508         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50509
50510 2008-04-12  Bruno Haible  <bruno@clisp.org>
50511
50512         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50513         Reported by Elbert Pol <e.pol@chello.nl>.
50514
50515 2008-04-12  Eric Blake  <ebb9@byu.net>
50516
50517         Work around Solaris 10 math.h bug.
50518         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50519         (gl_MATH_H_DEFAULTS): Set up default.
50520         * modules/math (Makefile.am): Replace new indicators.
50521         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50522         * tests/test-math.c (main): Test this.
50523         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50524         * doc/posix-headers/math.texi (math.h): Mention bug.
50525         Reported by Nelson H. F. Beebe and Jim Meyering.
50526
50527 2008-04-11  Bruno Haible  <bruno@clisp.org>
50528
50529         Adapt to future versions of Apple GCC.
50530         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50531         Reported by Peter O'Gorman <peter@pogma.com>.
50532
50533 2008-04-11  Bruno Haible  <bruno@clisp.org>
50534
50535         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50536
50537 2008-04-11  Bruno Haible  <bruno@clisp.org>
50538
50539         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50540
50541         * modules/getaddrinfo-tests (Makefile.am): Define
50542         test_getaddrinfo_LDADD.
50543
50544 2008-04-11  Bruno Haible  <bruno@clisp.org>
50545
50546         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50547         (init): Fix syntax error.
50548         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50549         is declared.
50550
50551 2008-04-11  Bruno Haible  <bruno@clisp.org>
50552
50553         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50554         * modules/glob (Depends-on): Add stdbool.
50555
50556 2008-04-11  Bruno Haible  <bruno@clisp.org>
50557
50558         * lib/trim.c: Include <string.h>.
50559
50560 2008-04-11  Eric Blake  <ebb9@byu.net>
50561
50562         Avoid compile failure on OS/2.
50563         * lib/regex_internal.h (internal_function): Disable optimization
50564         on OS/2 (__EMX__), where it caused compiler error.
50565         Reported by Elbert Pol.
50566
50567 2008-04-11  Bruno Haible  <bruno@clisp.org>
50568
50569         Flush the standard error stream before aborting. Needed on mingw.
50570         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50571         * tests/test-array_list.c (ASSERT): Likewise.
50572         * tests/test-array_oset.c (ASSERT): Likewise.
50573         * tests/test-avltree_list.c (ASSERT): Likewise.
50574         * tests/test-avltree_oset.c (ASSERT): Likewise.
50575         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50576         * tests/test-binary-io.c (ASSERT): Likewise.
50577         * tests/test-byteswap.c (ASSERT): Likewise.
50578         * tests/test-c-ctype.c (ASSERT): Likewise.
50579         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50580         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50581         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50582         * tests/test-c-strstr.c (ASSERT): Likewise.
50583         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50584         * tests/test-canonicalize.c (ASSERT): Likewise.
50585         * tests/test-carray_list.c (ASSERT): Likewise.
50586         * tests/test-ceilf1.c (ASSERT): Likewise.
50587         * tests/test-ceilf2.c (ASSERT): Likewise.
50588         * tests/test-ceill.c (ASSERT): Likewise.
50589         * tests/test-count-one-bits.c (ASSERT): Likewise.
50590         * tests/test-fbufmode.c (ASSERT): Likewise.
50591         * tests/test-fflush2.c (ASSERT): Likewise.
50592         * tests/test-floorf1.c (ASSERT): Likewise.
50593         * tests/test-floorf2.c (ASSERT): Likewise.
50594         * tests/test-floorl.c (ASSERT): Likewise.
50595         * tests/test-fopen.c (ASSERT): Likewise.
50596         * tests/test-fpending.c (ASSERT): Likewise.
50597         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50598         * tests/test-fpurge.c (ASSERT): Likewise.
50599         * tests/test-freadable.c (ASSERT): Likewise.
50600         * tests/test-freadahead.c (ASSERT): Likewise.
50601         * tests/test-freading.c (ASSERT): Likewise.
50602         * tests/test-freadptr.c (ASSERT): Likewise.
50603         * tests/test-freadptr2.c (ASSERT): Likewise.
50604         * tests/test-freadseek.c (ASSERT): Likewise.
50605         * tests/test-freopen.c (ASSERT): Likewise.
50606         * tests/test-frexp.c (ASSERT): Likewise.
50607         * tests/test-frexpl.c (ASSERT): Likewise.
50608         * tests/test-fseek.c (ASSERT): Likewise.
50609         * tests/test-fseeko.c (ASSERT): Likewise.
50610         * tests/test-fstrcmp.c (ASSERT): Likewise.
50611         * tests/test-ftell.c (ASSERT): Likewise.
50612         * tests/test-ftello.c (ASSERT): Likewise.
50613         * tests/test-func.c (ASSERT): Likewise.
50614         * tests/test-fwritable.c (ASSERT): Likewise.
50615         * tests/test-fwriting.c (ASSERT): Likewise.
50616         * tests/test-getdelim.c (ASSERT): Likewise.
50617         * tests/test-getline.c (ASSERT): Likewise.
50618         * tests/test-i-ring.c (ASSERT): Likewise.
50619         * tests/test-iconv-utf.c (ASSERT): Likewise.
50620         * tests/test-iconv.c (ASSERT): Likewise.
50621         * tests/test-isfinite.c (ASSERT): Likewise.
50622         * tests/test-isnand.c (ASSERT): Likewise.
50623         * tests/test-isnanf.c (ASSERT): Likewise.
50624         * tests/test-isnanl.h (ASSERT): Likewise.
50625         * tests/test-ldexpl.c (ASSERT): Likewise.
50626         * tests/test-linked_list.c (ASSERT): Likewise.
50627         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50628         * tests/test-localename.c (ASSERT): Likewise.
50629         * tests/test-lseek.c (ASSERT): Likewise.
50630         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50631         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50632         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50633         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50634         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50635         * tests/test-mbschr.c (ASSERT): Likewise.
50636         * tests/test-mbscspn.c (ASSERT): Likewise.
50637         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50638         * tests/test-mbspbrk.c (ASSERT): Likewise.
50639         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50640         * tests/test-mbsrchr.c (ASSERT): Likewise.
50641         * tests/test-mbsspn.c (ASSERT): Likewise.
50642         * tests/test-mbsstr1.c (ASSERT): Likewise.
50643         * tests/test-mbsstr2.c (ASSERT): Likewise.
50644         * tests/test-mbsstr3.c (ASSERT): Likewise.
50645         * tests/test-memchr2.c (ASSERT): Likewise.
50646         * tests/test-memmem.c (ASSERT): Likewise.
50647         * tests/test-open.c (ASSERT): Likewise.
50648         * tests/test-printf-frexp.c (ASSERT): Likewise.
50649         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50650         * tests/test-printf-posix.c (ASSERT): Likewise.
50651         * tests/test-quotearg.c (ASSERT): Likewise.
50652         * tests/test-rbtree_list.c (ASSERT): Likewise.
50653         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50654         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50655         * tests/test-round1.c (ASSERT): Likewise.
50656         * tests/test-roundf1.c (ASSERT): Likewise.
50657         * tests/test-roundl.c (ASSERT): Likewise.
50658         * tests/test-signbit.c (ASSERT): Likewise.
50659         * tests/test-sleep.c (ASSERT): Likewise.
50660         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50661         * tests/test-snprintf.c (ASSERT): Likewise.
50662         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50663         * tests/test-stat-time.c (ASSERT): Likewise.
50664         * tests/test-strcasestr.c (ASSERT): Likewise.
50665         * tests/test-strerror.c (ASSERT): Likewise.
50666         * tests/test-striconv.c (ASSERT): Likewise.
50667         * tests/test-striconveh.c (ASSERT): Likewise.
50668         * tests/test-striconveha.c (ASSERT): Likewise.
50669         * tests/test-strsignal.c (ASSERT): Likewise.
50670         * tests/test-strstr.c (ASSERT): Likewise.
50671         * tests/test-strtod.c (ASSERT): Likewise.
50672         * tests/test-trunc1.c (ASSERT): Likewise.
50673         * tests/test-trunc2.c (ASSERT): Likewise.
50674         * tests/test-truncf1.c (ASSERT): Likewise.
50675         * tests/test-truncf2.c (ASSERT): Likewise.
50676         * tests/test-truncl.c (ASSERT): Likewise.
50677         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50678         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50679         * tests/test-vasnprintf.c (ASSERT): Likewise.
50680         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50681         * tests/test-vasprintf.c (ASSERT): Likewise.
50682         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50683         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50684         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50685         * tests/test-vsnprintf.c (ASSERT): Likewise.
50686         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50687         * tests/test-wcwidth.c (ASSERT): Likewise.
50688         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50689         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50690         * tests/test-xvasprintf.c (ASSERT): Likewise.
50691         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50692         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50693         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50694         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50695         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50696         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50697         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50698         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50699         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50700         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50701         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50702         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50703         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50704         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50705         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50706         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50707         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50708         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50709         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50710         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50711         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50712         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50713         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50714         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50715         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50716         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50717         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50718         * tests/unictype/test-combining.c (ASSERT): Likewise.
50719         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50720         * tests/unictype/test-digit.c (ASSERT): Likewise.
50721         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50722         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50723         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50724         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50725         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50726         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50727         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50728         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50729         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50730         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50731         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50732         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50733         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50734         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50735         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50736         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50737         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50738         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50739         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50740         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50741         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50742         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50743         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50744         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50745         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50746         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50747         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50748         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50749         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50750         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50751         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50752         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50753         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50754         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50755         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50756         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50757         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50758         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50759         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50760         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50761         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50762         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50763         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50764         Reported by Eric Blake.
50765
50766 2008-04-11  Bruno Haible  <bruno@clisp.org>
50767
50768         * lib/wchar.in.h: Tweak comment.
50769
50770 2008-04-11  Bruno Haible  <bruno@clisp.org>
50771
50772         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50773         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50774         gl_COMMON.
50775         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50776
50777 2008-04-11  Bruno Haible  <bruno@clisp.org>
50778
50779         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50780
50781 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50782
50783         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50784         of attempting to use non-existing /dev/*random.  Based on patch
50785         from Adam Strzelecki <ono@java.pl> in
50786         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50787
50788 2008-04-08  Bruno Haible  <bruno@clisp.org>
50789
50790         Add tentative support for emx+gcc.
50791         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50792         * lib/fpurge.c (fpurge): Likewise.
50793         * lib/freadable.c (freadable): Likewise.
50794         * lib/freadahead.c (freadahead): Likewise.
50795         * lib/freading.c (freading): Likewise.
50796         * lib/freadptr.c (freadptr): Likewise.
50797         * lib/freadseek.c (freadptrinc): Likewise.
50798         * lib/fseeko.c (rpl_fseeko): Likewise.
50799         * lib/fseterr.c (fseterr): Likewise.
50800         * lib/fwritable.c (fwritable): Likewise.
50801         * lib/fwriting.c (fwriting): Likewise.
50802         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50803
50804 2008-04-09  Eric Blake  <ebb9@byu.net>
50805
50806         Avoid some autoconf warnings.
50807         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50808         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50809         * m4/afs.m4 (gl_AFS): Likewise.
50810         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50811         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50812         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50813         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50814         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50815         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50816         (AC_CHECK_DECLS_ONCE): Likewise.
50817         Rename file...
50818         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50819         gnulib-tool requires autoconf 2.59 or better.
50820         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50821
50822 2008-04-08  Eric Blake  <ebb9@byu.net>
50823
50824         Use 'git describe --match' if present (added in git 1.5.5).
50825         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50826         if possible.
50827
50828 2008-04-08  Bruno Haible  <bruno@clisp.org>
50829
50830         Add tentative support for OpenServer.
50831         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50832         _ptr, _cnt.
50833         * lib/fpurge.c (fpurge): Likewise.
50834         * lib/freadable.c (freadable): Likewise.
50835         * lib/freadahead.c (freadahead): Likewise.
50836         * lib/freading.c (freading): Likewise.
50837         * lib/freadptr.c (freadptr): Likewise.
50838         * lib/freadseek.c (freadptrinc): Likewise.
50839         * lib/fseeko.c (rpl_fseeko): Likewise.
50840         * lib/fseterr.c (fseterr): Likewise.
50841         * lib/fwritable.c (fwritable): Likewise.
50842         * lib/fwriting.c (fwriting): Likewise.
50843         Reported by Roger Cornelius <rac@tenzing.org> and
50844         Brian K. White <brian@aljex.com>.
50845
50846 2008-04-06  Jim Meyering  <meyering@redhat.com>
50847
50848         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50849
50850 2008-04-06  Bruno Haible  <bruno@clisp.org>
50851
50852         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50853         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50854         * tests/test-printf-posix.sh: Likewise.
50855         * tests/test-vfprintf-posix.sh: Likewise.
50856         * tests/test-vprintf-posix.sh: Likewise.
50857         * tests/test-xprintf-posix.sh: Likewise.
50858
50859 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50860
50861         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50862         hide error from 'ls', needed on OS/2.
50863         Report by Elbert Pol <elbert.pol@gmail.com>.
50864
50865 2008-04-04  Eric Blake  <ebb9@byu.net>
50866
50867         Make test-fseeko.c failures meaningful.
50868         * tests/test-fseeko.c: Print line number on failure.
50869         * tests/test-fseek.c: Likewise.
50870         Reported by Nelson H. F. Beebe.
50871
50872         Improve strtod bug detection check.
50873         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50874         required for Solaris 10.
50875         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50876
50877 2008-04-04  Bruno Haible  <bruno@clisp.org>
50878
50879         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50880         by m4/setenv.m4.
50881
50882 2008-04-03  Eric Blake  <ebb9@byu.net>
50883
50884         Ensure sane .version contents.
50885         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50886         version string.
50887         * build-aux/git-version-gen: Improve documentation.
50888
50889         Make GNU make output nicer.
50890         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50891         MAKECMDGOALS to enforce message for all command line targets.  Set
50892         srcdir for use in maint.mk.
50893
50894         Another maintainer tweak.
50895         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50896         a target that regenerates version.
50897
50898 2008-04-03  Jim Meyering  <meyering@redhat.com>
50899
50900         vc-list-files: don't cause coreutils "make po-check" failure
50901         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50902
50903 2008-04-03  Eric Blake  <ebb9@byu.net>
50904
50905         Allow VPATH usage of vc-list-files.
50906         * build-aux/vc-list-files (scriptversion): Add timestamp.
50907         (options): Add --help, --version, -C.
50908         (CVS): Support installed cvsu.
50909
50910 2008-04-02  Bruno Haible  <bruno@clisp.org>
50911
50912         Avoid some "statement with no effect" warnings from gcc.
50913         * tests/test-wctype.c (main): Explicitly ignore unused values.
50914         Reported by Jim Meyering.
50915
50916 2008-04-02  Jim Meyering  <meyering@redhat.com>
50917
50918         Avoid some warnings from "gcc -Wshadow".
50919         * tests/test-frexp.c (exp): Define to a different identifier.
50920         * tests/test-frexpl.c (exp): Likewise.
50921
50922 2008-04-03  Jim Meyering  <meyering@redhat.com>
50923
50924         bootstrap: remove dangling *.[ch] symlinks from lib
50925         * build-aux/bootstrap [dangling symlink removal]: Move find's
50926         -depth option to precede all others, to avoid a warning.
50927         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50928
50929 2008-04-02  Bruno Haible  <bruno@clisp.org>
50930
50931         Avoid some warnings from "gcc -Wshadow".
50932         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50933         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50934         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50935         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50936         Reported by Jim Meyering.
50937
50938 2008-04-01  Bruno Haible  <bruno@clisp.org>
50939
50940         Fix test to work on IRIX 6.5 with cc.
50941         * tests/test-math.c (numeric_equal): New function.
50942         (main): Use it.
50943
50944 2008-04-01  Bruno Haible  <bruno@clisp.org>
50945
50946         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50947
50948 2008-04-01  Bruno Haible  <bruno@clisp.org>
50949
50950         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50951         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50952         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50953         (Depends-on): Remove math.
50954
50955         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50956         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50957         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50958         (Depends-on): Remove math.
50959
50960         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50961         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50962         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50963         (Depends-on): Remove math.
50964         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50965         (Depends-on): Remove math.
50966
50967         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50968         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50969         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50970         (Depends-on): Remove math.
50971         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50972         (Depends-on): Remove math.
50973
50974         * tests/test-round1.c: Include nan.h.
50975         (main): Use NaNd instead of NAN.
50976         * modules/round-tests (Files): Add tests/nan.h.
50977
50978         * tests/test-trunc1.c: Include nan.h.
50979         (main): Use NaNd instead of NAN.
50980         * modules/trunc-tests (Files): Add tests/nan.h.
50981
50982         * tests/test-roundf1.c: Include nan.h.
50983         (main): Use NaNf instead of NAN.
50984         * modules/roundf-tests (Files): Add tests/nan.h.
50985
50986         * tests/test-truncf1.c: Include nan.h.
50987         (main): Use NaNf instead of NAN.
50988         * modules/truncf-tests (Files): Add tests/nan.h.
50989
50990         * tests/test-ceilf1.c: Include nan.h.
50991         (main): Use NaNf instead of NAN.
50992         * modules/ceilf-tests (Files): Add tests/nan.h.
50993
50994         * tests/test-floorf1.c: Include nan.h.
50995         (main): Use NaNf instead of NAN.
50996         * modules/floorf-tests (Files): Add tests/nan.h.
50997
50998         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50999         (main): Use NaNf instead of NAN.
51000         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51001
51002         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51003         (main): Use NaNd instead of NAN.
51004         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51005
51006         * tests/test-frexp.c: Include nan.h.
51007         (main): Use NaNd instead of NAN.
51008         * modules/frexp-tests (Files): Add tests/nan.h.
51009
51010         * lib/isnan.c: Don't include <math.h>.
51011         (FUNC): Don't use NAN macro.
51012         * modules/isnand-nolibm (Depends-on): Remove math.
51013         * modules/isnanf-nolibm (Depends-on): Remove math.
51014         * modules/isnanl (Depends-on): Remove math.
51015         * modules/isnanl-nolibm (Depends-on): Remove math.
51016
51017         * tests/nan.h: New file.
51018
51019 2008-04-01  Eric Blake  <ebb9@byu.net>
51020
51021         Fix typos.
51022         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51023         values to be the right type.
51024
51025         For now, cater to gnulib strtod inaccuracies.
51026         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51027         fractional results.  While not as nice from a QoI perspective, it
51028         is a quicker patch than correctly implementing decimal to binary
51029         rounding.
51030
51031 2008-03-31  Eric Blake  <ebb9@byu.net>
51032
51033         Guarantee a definition of NAN.
51034         * lib/math.in.h (NAN): Define if missing.
51035         * tests/test-math.c (main): Test it.
51036         * doc/posix-headers/math.texi (math.h): Document this.
51037         * lib/isnan.c (rpl_isnand): Use it.
51038         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51039         * tests/test-floorf1.c (NaN): Likewise.
51040         * tests/test-frexp.c (NaN): Likewise.
51041         * tests/test-isnand.c (NaN): Likewise.
51042         * tests/test-isnanf.c (NaN): Likewise.
51043         * tests/test-round1.c (NaN): Likewise.
51044         * tests/test-roundf1.c (NaN): Likewise.
51045         * tests/test-snprintf-posix.h (NaN): Likewise.
51046         * tests/test-sprintf-posix.h (NaN): Likewise.
51047         * tests/test-trunc1.c (NaN): Likewise.
51048         * tests/test-truncf1.c (NaN): Likewise.
51049         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51050         * tests/test-vasprintf-posix.c (NaN): Likewise.
51051         * modules/isnand-nolibm (Depends-on): Add math.
51052         * modules/isnanf-nolibm (Depends-on): Likewise.
51053         * modules/isnanl (Depends-on): Likewise.
51054         * modules/isnanl-nolibm (Depends-on): Likewise.
51055         * modules/snprintf-posix-tests (Depends-on): Likewise.
51056         * modules/sprintf-posix-tests (Depends-on): Likewise.
51057         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51058         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51059         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51060         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51061
51062 2008-03-31  Bruno Haible  <bruno@clisp.org>
51063
51064         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51065         * doc/posix-functions/strtod.texi: Likewise.
51066
51067 2008-03-31  Bruno Haible  <bruno@clisp.org>
51068
51069         * tests/test-strtod.c (main): Don't use C99 syntax.
51070
51071 2008-03-31  Bruno Haible  <bruno@clisp.org>
51072
51073         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51074         Reported by Eric Blake.
51075
51076 2008-03-31  Jim Meyering  <meyering@redhat.com>
51077
51078         Don't compare actual signbit return values.
51079         * tests/test-strtod.c (main): Rather, compare only their
51080         zero/non-zero nature.
51081
51082 2008-03-31  Eric Blake  <ebb9@byu.net>
51083
51084         More strtod documentation.
51085         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51086         failures as distinct bugs.
51087
51088 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51089
51090         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51091         Problem reported by Erik Benada in
51092         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51093
51094 2008-03-30  Bruno Haible  <bruno@clisp.org>
51095
51096         * tests/test-strtod.c: Add comments about which assertion fails on which
51097         platform.
51098         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51099
51100 2008-03-30  Eric Blake  <ebb9@byu.net>
51101
51102         Test signbit behavior on zeros.
51103         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51104         (test_signbitd, test_signbitl): Likewise.
51105
51106         More strtod touchups.
51107         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51108         sign of negative underflow, for now.  Use .5, not .1.
51109         * doc/posix-functions/strtod.texi (strtod): Mention these
51110         limitations.
51111         Reported by Jim Meyering.
51112
51113 2008-03-30  Bruno Haible  <bruno@clisp.org>
51114
51115         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51116         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51117
51118 2008-03-30  Bruno Haible  <bruno@clisp.org>
51119
51120         Avoid failure when attempting to return empty iconv results on some
51121         platforms.
51122         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51123         allocation, don't report ENOMEM when the resulting string is empty.
51124
51125 2008-03-30  Bruno Haible  <bruno@clisp.org>
51126
51127         Fix buffer overrun.
51128         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51129         Don't consider the width for tmp_length. Check count against tmp_length
51130         before doing the padding. Ensure enough allocation during padding.
51131
51132 2008-03-30  Eric Blake  <ebb9@byu.net>
51133
51134         strtod touchups.
51135         * lib/strtod.c (strtod): Avoid compiler warnings.
51136         Reported by Jim Meyering.
51137
51138 2008-03-30  Bruno Haible  <bruno@clisp.org>
51139
51140         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51141         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51142         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51143         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51144         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51145         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51146         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51147         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51148
51149         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51150         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51151         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51152         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51153         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51154         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51155         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51156         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51157
51158         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51159         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51160         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51161         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51162         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51163         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51164         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51165         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51166
51167         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51168         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51169
51170         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51171         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51172
51173         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51174         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51175
51176         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51177         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51178         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51179
51180         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51182         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51183
51184         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51185         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51186         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51187
51188         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51189         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51190         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51191
51192         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51193         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51195         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51196         (Depends-on): Add EOVERFLOW.
51197         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51198         (Depends-on): Add EOVERFLOW.
51199         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51200         (Depends-on): Add EOVERFLOW.
51201         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51202         (Depends-on): Add EOVERFLOW.
51203         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51204         (Depends-on): Add EOVERFLOW.
51205         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51206         (Depends-on): Add EOVERFLOW.
51207         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51208         (Depends-on): Add EOVERFLOW.
51209         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51210         (Depends-on): Add EOVERFLOW.
51211
51212         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51214         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51215
51216         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51218         * modules/snprintf (Depends-on): Add EOVERFLOW.
51219
51220         * lib/poll.c (EOVERFLOW): Remove fallback.
51221         * modules/poll (Depends-on): Add EOVERFLOW.
51222
51223         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51224         * modules/getugroups (Depends-on): Add EOVERFLOW.
51225
51226         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51227         * modules/getdelim (Depends-on): Add EOVERFLOW.
51228
51229         * lib/ftell.c (EOVERFLOW): Remove fallback.
51230         * modules/ftell (Depends-on): Add EOVERFLOW.
51231
51232         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51233         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51234         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51235
51236         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51237
51238         * modules/EOVERFLOW-tests: New file.
51239         * tests/test-EOVERFLOW.c: New file.
51240
51241         * modules/EOVERFLOW: New file.
51242         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51243
51244 2008-03-30  Bruno Haible  <bruno@clisp.org>
51245
51246         Fix bug introduced on 2007-06-10.
51247         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51248         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51249
51250 2008-03-30  Bruno Haible  <bruno@clisp.org>
51251
51252         Improve freadseek's efficiency after ungetc.
51253         * lib/freadseek.c: Include freadahead.h.
51254         (freadptrinc): New function, extracted from freadseek.
51255         (freadseek): Use it in a loop. Use freadahead to determine the number
51256         of loop iterations.
51257         * modules/freadseek (Depends-on): Add freadahead.
51258         (configure.ac): Require AC_C_INLINE.
51259
51260 2008-03-30  Bruno Haible  <bruno@clisp.org>
51261
51262         * lib/freadseek.c (freadseek): Don't ignore the return value of
51263         freadptr.
51264
51265 2008-03-29  Eric Blake  <ebb9@byu.net>
51266
51267         Add hex float support.
51268         * modules/strtod (Depends-on): Add c-ctype.
51269         (Link): Mention POW_LIB.
51270         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51271         whitespace between 'e' and exponent.
51272         * tests/test-strtod.c (main): Enable hex float tests.
51273         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51274         now provides.
51275
51276         Document various strtod bugs, with some fixes.
51277         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51278         "-0x", "inf", "nan", and hex constants.
51279         * doc/posix-functions/atof.texi (atof): Likewise.
51280         * modules/stdlib (Makefile.am): Support strtod.
51281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51282         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51283         detect additional strtod bugs.
51284         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51285         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51286         bool where appropriate.  Parse 'inf' and 'nan'.
51287         * tests/test-strtod.c: New file.
51288         * modules/strtod (Depends-on): Add stdbool, stdlib.
51289         (configure.ac): Turn on module indicator.
51290         * modules/strtod-tests: New module.
51291
51292 2008-03-29  Eric Blake  <ebb9@byu.net>
51293
51294         Fix ftell on mingw.
51295         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51296         * modules/ftell-tests (Depends-on): Add binary-io.
51297         * modules/ftello-tests (Depends-on): Likewise.
51298         * tests/test-ftell.c (main): Enhance test to cover behavior after
51299         ungetc.  Enforce binary mode.
51300         * tests/test-ftello.c (main): Likewise.
51301
51302         Pass test-freadseek on cygwin.
51303         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51304         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51305         ungetc buffer.
51306
51307         * tests/test-fflush2.c (main): Fix typo.
51308
51309 2008-03-29  Bruno Haible  <bruno@clisp.org>
51310
51311         * tests/test-fflush2.c (main): Temporarily disable the contents of
51312         this test.
51313         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51314         Reported by Eric Blake.
51315
51316 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51317
51318         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51319         (GC_SHA224_DIGEST_SIZE): Add.
51320
51321         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51322         (gc_hash_digest_length): Likewise.
51323         (gc_hash_buffer): Likewise.
51324
51325 2008-03-25  Bruno Haible  <bruno@clisp.org>
51326
51327         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51328         detail which gettext release to use.
51329         Reported by Simon Josefsson.
51330
51331 2008-03-26  Jim Meyering  <meyering@redhat.com>
51332
51333         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51334         * modules/gnumakefile (clean-GNUmakefile): Also, use
51335         test ... && ... || : syntax rather than if-then ... fi.
51336
51337         gnumakefile: Don't double-quote-expand $(VPATH) value.
51338         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51339
51340 2008-03-24  Eric Blake  <ebb9@byu.net>
51341
51342         Alter GNUmakefile to install into top directory.
51343         * modules/maintainer-makefile: Split, and add dependency...
51344         * modules/gnumakefile: to this new module.
51345         * build-aux/GNUmakefile: Move...
51346         * top/GNUmakefile: ...here.
51347         * build-aux/maint.mk: Move...
51348         * top/maint.mk: ...here.
51349         * MODULES.html.sh (Support for maintaining...): Document new
51350         module.
51351
51352 2008-03-23  Bruno Haible  <bruno@clisp.org>
51353
51354         * gnulib-tool: New options --vc-files, --no-vc-files.
51355         (func_usage): Document them.
51356         (vc_files): New variable.
51357         (func_import): Consider vc_files.
51358         (func_create_testdir): Set vc_files to empty.
51359         Suggested by Jim Meyering and Karl Berry.
51360
51361 2008-03-23  Bruno Haible  <bruno@clisp.org>
51362
51363         Fix regex compilation error on HP-UX 11.
51364         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51365         * modules/regex (Files): Add m4/mbstate_t.m4.
51366         Reported by Ton Voon <ton.voon@altinity.com>.
51367
51368 2008-03-23  Bruno Haible  <bruno@clisp.org>
51369
51370         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51371
51372 2008-03-23  Eric Blake  <ebb9@byu.net>
51373             Bruno Haible  <bruno@clisp.org>
51374
51375         Install files from top/ in the destination directory.
51376         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51377         augmentation also for the files from top/.
51378         (func_import, func_create_testdir): Rewrite file names:
51379         top/filename -> filename.
51380
51381 2008-03-23  Bruno Haible  <bruno@clisp.org>
51382
51383         Tweak "gnulib --version" output.
51384         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51385
51386 2008-03-23  Bruno Haible  <bruno@clisp.org>
51387
51388         Tweak "gnulib --version" output.
51389         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51390         rather than contents of ChangeLog, when possible.
51391
51392 2008-03-21  Eric Blake  <ebb9@byu.net>
51393
51394         More --version tweaks.
51395         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51396         date of last ChangeLog entry.
51397
51398 2008-03-21  Jim Meyering  <meyering@redhat.com>
51399
51400         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51401
51402 2008-03-20  Eric Blake  <ebb9@byu.net>
51403
51404         VPATH fix.
51405         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51406
51407 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51408
51409         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51410         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51411
51412 2008-03-20  Eric Blake  <ebb9@byu.net>
51413
51414         Sync GNUmakefile with coreutils.
51415         * build-aux/GNUmakefile (have-Makefile): Rename...
51416         (_have-Makefile): ...to this, for namespace consideration.
51417         (GNUmakefile.cfg): Include, if present.
51418         (_autoreconf): Define a default.
51419         (_is-dist-target): New rule for rebuilds to pick up intra-release
51420         version.
51421         (maint-cfg.mk): Rename...
51422         (cfg.mk): ...to this.
51423
51424 2008-03-18  Jim Meyering  <meyering@redhat.com>
51425
51426         New script and module: mktempd
51427         * MODULES.html.sh (maint+release support): Add mktempd.
51428         * build-aux/mktempd: New file.
51429         * modules/mktempd: New file.
51430
51431 2008-03-15  Jim Meyering  <meyering@redhat.com>
51432
51433         Undo last change.
51434         * lib/sha1.c, lib/md5.c: 63 != ~63.
51435         Reported by Andreas Schwab.
51436
51437         sha1.c, md5.c: Hoist a redundant expression.
51438         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51439         "ctx->buflen" only once, before calling *_process_block.
51440         * lib/md5.c (md5_process_bytes): Likewise.
51441
51442 2008-03-14  Eric Blake  <ebb9@byu.net>
51443
51444         Bump copyright year in files generated by gnulib-tool.
51445         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51446         gnulib-tool, rather than hard-coding it.
51447
51448         Fix 'gnulib-tool --version' output to work with git.
51449         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51450         (startup): ...here.
51451         (func_version): Use it to invoke git-version-gen, rather than
51452         relying on CVS keyword expansion.  Modernize wording.
51453         (cvsdatestamp, last_checkin_date, version): Kill unused
51454         variables.
51455
51456 2008-03-12  Jim Meyering  <meyering@redhat.com>
51457
51458         Recognize optional cast of the argument to free.
51459         * build-aux/useless-if-before-free: Update regexps.
51460
51461         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51462
51463 2008-03-11  Bruno Haible  <bruno@clisp.org>
51464
51465         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51466         by a single package.
51467         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51468         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51469         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51470         Reported by Sam Steingold <sds@gnu.org>.
51471
51472 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51473
51474         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51475         repositories.
51476
51477 2008-03-11  Bruno Haible  <bruno@clisp.org>
51478
51479         Avoid conflicts between local macro definitions.
51480         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51481         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51482
51483 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51484             Bruno Haible  <bruno@clisp.org>
51485
51486         Make va_copy work with some version of xlc on AIX 5.1.
51487         * lib/stdarg.in.h: New file.
51488         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51489         On AIX, use a <stdarg.h> file substitute.
51490         * modules/stdarg (Files): Add lib/stdarg.in.h.
51491         (Depends-on): Add include_next.
51492         (Makefile.am): Build a stdarg.h substitute if requested.
51493         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51494
51495 2008-03-10  Bruno Haible  <bruno@clisp.org>
51496
51497         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51498         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51499         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51500
51501 2008-03-10  Bruno Haible  <bruno@clisp.org>
51502
51503         * modules/stdlib (Depends-on): Add include_next, remove
51504         absolute-header.
51505
51506 2008-03-09  Bruno Haible  <bruno@clisp.org>
51507
51508         * lib/freadahead.h (freadahead): Document more precisely.
51509         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51510         the sum of both buffer sizes.
51511         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51512         * NEWS: Document the change.
51513
51514 2008-03-09  Bruno Haible  <bruno@clisp.org>
51515
51516         Extend freadptr to return also the buffer size.
51517         * lib/freadptr.h (freadptr): Add sizep argument.
51518         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51519         (freadptr): Add sizep argument. Determine buffer size like freadahead
51520         does.
51521         * tests/test-freadptr.c: Don't include freadahead.h.
51522         (main): Adapt for new calling convention of freadptr.
51523         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51524         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51525         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51526         tests/test-freadptr2.sh.
51527         (Depends): Remove freadahead.
51528         (TESTS): Add test-freadptr2.sh.
51529         (check_PROGRAMS): Add test-freadptr2.
51530
51531 2008-03-09  Bruno Haible  <bruno@clisp.org>
51532
51533         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51534         Report and solution by Simon Josefsson.
51535
51536 2008-03-06  Bruno Haible  <bruno@clisp.org>
51537
51538         Make fflush after ungetc work on BSD platforms.
51539         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51540         * tests/test-fflush2.c: New file.
51541         * tests/test-fflush2.sh: New file.
51542         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51543         tests/test-fflush2.c.
51544         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51545         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51546
51547 2008-03-06  Eric Blake  <ebb9@byu.net>
51548
51549         Likewise for ftello.
51550         * modules/ftello (Dependencies): Add extensions.
51551         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51552
51553 2008-03-06  Bruno Haible  <bruno@clisp.org>
51554
51555         * modules/fseeko (Dependencies): Add extensions.
51556         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51557         Needed on glibc systems.
51558
51559 2008-03-06  Bruno Haible  <bruno@clisp.org>
51560
51561         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51562         email address.
51563         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51564
51565 2008-03-06  Bruno Haible  <bruno@clisp.org>
51566
51567         * users.txt: Add libgnupdf.
51568
51569 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51570
51571         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51572         (Header File Substitutes, Function Substitutes,
51573         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51574         (Build robot for gnulib): Fix typo.
51575
51576 2008-03-06  Bruno Haible  <bruno@clisp.org>
51577
51578         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51579         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51580
51581 2008-03-06  Bruno Haible  <bruno@clisp.org>
51582
51583         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51584         * doc/gnulib.texi: Include it.
51585
51586 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51587
51588         * modules/func (License): Change license to unlimited; there was
51589         no LGPL parts in the module anyway.
51590
51591 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51592
51593         * modules/__func__: Renamed to modules/func.
51594         * modules/__func__-tests: Renamed to modules/func-tests.
51595         * tests/test-__func__.c: Renamed to tests/test-func.c.
51596         * m4/__func__.m4: Renamed to m4/func.m4.
51597         * doc/gnulib.texi (__func__): Section renamed to func.
51598         Suggested by Eric Blake <ebb9@byu.net>.
51599
51600 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51601
51602         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51603         about __func__.  Make example self-contained.  Suggested by Eric
51604         Blake <ebb9@byu.net>.
51605
51606         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51607         Suggested by Eric Blake <ebb9@byu.net>.
51608
51609 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51610
51611         * modules/__func__: New file.
51612         * modules/__func__-tests: New file.
51613         * tests/test-__func__.c: New file.
51614         * m4/__func__.m4: New file.
51615         * doc/gnulib.texi (__func__): Document __func__ module.
51616
51617 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51618
51619         * modules/byteswap (License): Re-license as LGPLv2+.
51620
51621 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51622
51623         * doc/Makefile: Add pdf target.
51624
51625 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51626
51627         * modules/inline (License): Use 'unlimited', since there are only
51628         *.m4 files in this module.
51629
51630 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51631             Bruno Haible  <bruno@clisp.org>
51632
51633         Add support for HP C 7.1 on OpenVMS 8.3.
51634         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51635
51636 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51637
51638         Update VMS specifics.
51639         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51640
51641 2008-03-02  Jim Meyering  <meyering@redhat.com>
51642
51643         Remove the last dependency on the "free" module.
51644         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51645         Reported by Bob Proulx.
51646
51647         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51648
51649         Remove useless "if" tests before free.  Deprecate "free" module.
51650         * doc/posix-functions/free.texi: Mention that this
51651         module is no longer useful.
51652         * modules/free (Notice): Say this module is obsolete.
51653         * modules/readutmp (Depends-on): Remove free.
51654         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51655         * lib/putenv.c (putenv): Likewise.
51656         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51657         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51658         * tests/test-c-strcasestr.c (main): Likewise.
51659         * tests/test-c-strstr.c (main): Likewise.
51660         * tests/test-mbscasestr1.c (main): Likewise.
51661         * tests/test-mbscasestr2.c (main): Likewise.
51662         * tests/test-mbsstr1.c (main): Likewise.
51663         * tests/test-mbsstr2.c (main): Likewise.
51664         * tests/test-memmem.c (main): Likewise.
51665         * tests/test-strcasestr.c (main): Likewise.
51666         * tests/test-striconv.c (main): Likewise.
51667         * tests/test-striconveh.c (main): Likewise.
51668         * tests/test-striconveha.c (main): Likewise.
51669         * tests/test-strstr.c (main): Likewise.
51670
51671         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51672
51673         bootstrap: sync from coreutils again
51674         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51675
51676 2008-03-01  Jim Meyering  <meyering@redhat.com>
51677
51678         bootstrap: sync from coreutils
51679         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51680         also when the target doesn't exist.
51681
51682 2008-03-01  Eric Blake  <ebb9@byu.net>
51683
51684         Fix bugs in last patch.
51685         * lib/memchr2.c (memchr2): Fix typo.
51686         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51687         extension.
51688         Reported by Bruce Korb.
51689
51690         New module 'memchr2'.
51691         * modules/memchr2: New file.
51692         * modules/memchr2-tests: Likewise.
51693         * lib/memchr2.h: Likewise.
51694         * lib/memchr2.c: Likewise, based on memchr.c.
51695         * tests/test-memchr2.c: New test.
51696         * MODULES.html.sh (String handling): Add memchr2.
51697
51698 2008-02-29  Bruno Haible  <bruno@clisp.org>
51699
51700         * modules/freadseek-tests: New file.
51701         * tests/test-freadseek.sh: New file.
51702         * tests/test-freadseek.c: New file.
51703
51704         New module 'freadseek'.
51705         * modules/freadseek: New file.
51706         * lib/freadseek.h: New file.
51707         * lib/freadseek.c: New file.
51708         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51709
51710 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51711
51712         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51713         wydawca.
51714
51715         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51716         program_invocation_name and program_invocation_short_name are
51717         present.
51718
51719 2008-02-28  Bruno Haible  <bruno@clisp.org>
51720
51721         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51722         * tests/test-freadptr.sh: Also test non-seekable stdin.
51723
51724 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51725
51726         * build-aux/bootstrap (source_base, m4_base)
51727         (doc_base, tests_base): New variables.
51728         (gnulib_tool_options): Do not hardcode base directories, use
51729         the above variables instead.
51730
51731 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51732
51733         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51734
51735 2008-02-28  Bruno Haible  <bruno@clisp.org>
51736
51737         * modules/freadptr-tests: New file.
51738         * tests/test-freadptr.sh: New file.
51739         * tests/test-freadptr.c: New file.
51740
51741         New module 'freadptr'.
51742         * modules/freadptr: New file.
51743         * lib/freadptr.h: New file.
51744         * lib/freadptr.c: New file.
51745         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51746
51747 2008-02-26  Karl Berry  <karl@freefriends.org>
51748
51749         Sync from Libtool:
51750         * libltdl/argz.c (argz_add, argz_count): New functions.
51751         * libltdl/argz.in.h: Declare them.
51752         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51753
51754 2008-02-22  Bruno Haible  <bruno@clisp.org>
51755
51756         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51757         is a pointer type.  Needed for HP-UX 10.
51758         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51759         * doc/posix-functions/gmtime_r.texi: Likewise.
51760         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51761
51762 2008-02-24  Bruno Haible  <bruno@clisp.org>
51763
51764         * modules/environ-tests: New file.
51765         * tests/test-environ.c: New file.
51766
51767         New module 'environ'.
51768         * modules/environ: New file.
51769         * lib/unistd.in.h (environ): New declaration.
51770         * m4/environ.m4: New file.
51771         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51772         after use.
51773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51774         HAVE_DECL_ENVIRON.
51775         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51776         HAVE_DECL_ENVIRON.
51777         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51778         wrong claim that 'environ' is missing on some systems.
51779         * modules/execute (Depends-on): Add environ.
51780         * lib/execute.c (environ): Remove fallback declaration.
51781         * modules/pipe (Depends-on): Add environ.
51782         * lib/pipe.c (environ): Remove fallback declaration.
51783         * modules/setenv (Depends-on): Add environ.
51784         * lib/setenv.c (environ): Remove fallback declaration.
51785         * modules/unsetenv (Depends-on): Add environ.
51786         * lib/unsetenv.c (environ): Remove fallback declaration.
51787         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51788         m4/environ.m4.
51789         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51790         (gl_PREREQ_UNSETENV): Likewise.
51791
51792 2008-02-24  Bruno Haible  <bruno@clisp.org>
51793
51794         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51795
51796 2008-02-20  Bob Proulx  <bob@proulx.com>
51797
51798         Enable use of older two part flavor 'git describe'.
51799         * build-aux/git-version-gen: If using the older two part flavor of
51800         git version then recreate the third part now present in the
51801         newer three part flavor of git describe.
51802
51803 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51804
51805         * lib/fts.c (fts_build): Typo correction to comment.
51806
51807 2008-02-17  Bruno Haible  <bruno@clisp.org>
51808
51809         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51810         generating no-op conflicts.
51811
51812 2008-02-17  Bruno Haible  <bruno@clisp.org>
51813
51814         Speed up by 10%.
51815         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51816         result_entries, rather than an index-based loop.
51817
51818 2008-02-17  Bruno Haible  <bruno@clisp.org>
51819
51820         Speed up by 25%.
51821         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51822         'hashcode_cached'.
51823         (entry_create): New function.
51824         (entry_hashcode): Use the cached hashcode if possible.
51825         (read_changelog_file, try_split_merged_entry): Use entry_create.
51826
51827 2008-02-17  Bruno Haible  <bruno@clisp.org>
51828
51829         Speed up from O(n^2) to O(n) for long ChangeLog files.
51830         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51831         (read_changelog_file): Change implementation of entries_reversed list
51832         to rbtreehash.
51833         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51834
51835 2008-02-17  Bruno Haible  <bruno@clisp.org>
51836
51837         New option --split-merged-entry.
51838         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51839         (find_paragraph_end, try_split_merged_entry): New functions.
51840         (long_options): Add option --split-merged-entry.
51841         (usage): Document option --split-merged-entry.
51842         (main): Implement option --split-merged-entry.
51843         Reported by Eric Blake.
51844
51845 2008-02-17  Bruno Haible  <bruno@clisp.org>
51846
51847         * lib/git-merge-changelog.c: Include c-strstr.h.
51848         (main): Support the "git pull --rebase" situation.
51849         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51850         Reported by Eric Blake.
51851
51852 2008-02-16  Eric Blake  <ebb9@byu.net>
51853
51854         Avoid doubling \ in common case of "c-maybe" quoting style.
51855         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51856         eliding outer quotes.
51857         * lib/quotearg.h: Document this.
51858         * tests/test-quotearg.c (result_strings, inputs, results_g)
51859         (flag_results, locale_results): Test it by adding a new string to
51860         each test group.
51861         (compare_strings): Test new string.
51862
51863 2008-02-13  Eric Blake  <ebb9@byu.net>
51864
51865         Avoid trigraph quoting in default output.
51866         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51867         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51868         unless explicitly requested.
51869         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51870
51871 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51872
51873         Don't rely on signed integer overflowing to negative value.
51874         * lib/getugroups.c (getugroups): Include <limits.h>.
51875         Instead, compare against INT_MAX, and increment only if the test passes.
51876
51877 2008-02-13  Jim Meyering  <meyering@redhat.com>
51878         and Eric Blake  <ebb9@byu.net>
51879
51880         Avoid shadowing warning and compile errors on Linux.
51881         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51882         forwarding macros on Linux.
51883         (dcgettext): Define a stub, for Linux.
51884         (results_g, main): Avoid warnings.
51885
51886 2008-02-12  Eric Blake  <ebb9@byu.net>
51887
51888         Silence warning in last patch.
51889         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51890
51891         Quotearg part 4: add tests, fix c-maybe colon quoting.
51892         * lib/quotearg.h: Improve documentation.
51893         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51894         escapes when adding outer quotes.  When quoting trigraphs, use
51895         valid C notation.  When quoting NUL, omit extra characters if next
51896         character is not digit.  Alter prototype.
51897         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51898         callers.
51899         * modules/quotearg-tests: New module.
51900         * tests/test-quotearg.c: New test.
51901
51902 2008-02-07  Eric Blake  <ebb9@byu.net>
51903
51904         Quotearg part 3: add flag to control outer quote elision.
51905         * lib/quotearg.h (c_maybe_quoting_style): New style.
51906         (enum quoting_flags): Better documentation of flags.
51907         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51908         c-maybe style.
51909         (quotearg_buffer_restyled): Handle new flag to elide outer
51910         quotes.
51911
51912         Quotearg part 2: add flag that can control NUL elision.
51913         * lib/quotearg.h (set_quoting_flags): New prototype.
51914         * lib/quotearg.c (struct quoting_options): Add flag field.
51915         (set_quoting_flags): New function.
51916         (quotearg_buffer_restyled): Add flags parameter.
51917         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51918         (quotearg_n_options): Set the flag, since length cannot be
51919         returned.
51920         (quoting_options_from_style): Default flags correctly.
51921
51922         Quotearg part 1: more wrappers, restore quotearg_char state.
51923         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51924         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51925         (quotearg_colon_mem): New wrappers.
51926         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51927         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51928         functions.
51929         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51930         (quotearg_colon_mem): New functions.
51931
51932 2008-02-11  Bruno Haible  <bruno@clisp.org>
51933
51934         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51935         library in the current directory: it does not work with parallel make.
51936         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51937
51938 2008-02-11  Bruno Haible  <bruno@clisp.org>
51939
51940         * .gitattributes: New file.
51941
51942 2008-02-11  Jim Meyering  <meyering@redhat.com>
51943
51944         useless-if-before-free: Fix reversed exit values.
51945         * build-aux/useless-if-before-free: Use correct values
51946         for EXIT_MATCH and EXIT_NO_MATCH.
51947
51948         * build-aux/useless-if-before-free: Close stdout carefully.
51949
51950 2008-02-10  Bruno Haible  <bruno@clisp.org>
51951
51952         New module 'git-merge-changelog'.
51953         * modules/git-merge-changelog: New file.
51954         * lib/git-merge-changelog.c: New file.
51955
51956 2008-02-10  Jim Meyering  <meyering@redhat.com>
51957
51958         useless-if-before-free: New option: --list (-l).
51959
51960         useless-if-before-free: Don't exit immediately upon open failure.
51961         * build-aux/useless-if-before-free: Exit 2 for errors.
51962         Upon failure to open a file, don't exit immediately.
51963         Rather, just warn and continue with any remaining files.
51964
51965 2008-02-10  Bruno Haible  <bruno@clisp.org>
51966
51967         New abstract list operation 'node_set_value'.
51968         * lib/gl_list.h (gl_list_node_set_value): New function.
51969         (struct gl_list_implementation): New field node_set_value.
51970         * lib/gl_list.c (gl_list_node_set_value): New function.
51971         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51972         (gl_array_list_implementation): Update.
51973         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51974         (gl_carray_list_implementation): Update.
51975         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51976         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51977         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51978         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51979         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51980         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51981         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51982         Update.
51983         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51984         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51985         (gl_sublist_list_implementation): Update.
51986
51987 2008-02-10  Bruno Haible  <bruno@clisp.org>
51988
51989         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51990         Needed when ELEMENT is #defined to 'some_type *'.
51991
51992 2008-02-10  Jim Meyering  <meyering@redhat.com>
51993
51994         New script and module: useless-if-before-free
51995         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51996         * build-aux/useless-if-before-free: New file.
51997         * modules/useless-if-before-free: New file.
51998
51999         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52000
52001         xstrtol_error: Fix typo.
52002         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52003         s/exit_failure/exit_status/.
52004
52005 2008-02-09  Jim Meyering  <meyering@redhat.com>
52006
52007         New script and module: gitlog-to-changelog
52008         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52009         * modules/gitlog-to-changelog: New file.
52010         * build-aux/gitlog-to-changelog: New file.
52011
52012 2008-02-08  Jim Meyering  <meyering@redhat.com>
52013
52014         Avoid two "parameter unused" warnings.
52015         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52016         Mark "st" as used.
52017
52018         Use "git COMMAND", not "git-COMMAND".
52019         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52020         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52021         * build-aux/git-version-gen: Use "git status", not "git-status".
52022
52023 2008-02-07  Bruno Haible  <bruno@clisp.org>
52024
52025         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52026         Avoids a crash on Windows Vista.
52027         Reported by Adam Strzelecki <ono@java.pl> via
52028         Simon Josefsson <simon@josefsson.org>.
52029
52030 2008-02-06  Bruno Haible  <bruno@clisp.org>
52031
52032         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52033         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52034         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52036         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52037         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52038         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52039         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52040         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52041         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52044         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52045         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52046         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52047         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52048         left-adjust flag.
52049         * tests/test-snprintf-posix.h (test_function): Likewise.
52050         * tests/test-sprintf-posix.h (test_function): Likewise.
52051         * tests/test-vasprintf-posix.c (test_function): Likewise.
52052         * doc/posix-functions/fprintf.texi: Update.
52053         * doc/posix-functions/printf.texi: Update.
52054         * doc/posix-functions/snprintf.texi: Update.
52055         * doc/posix-functions/sprintf.texi: Update.
52056         * doc/posix-functions/vfprintf.texi: Update.
52057         * doc/posix-functions/vprintf.texi: Update.
52058         * doc/posix-functions/vsnprintf.texi: Update.
52059         * doc/posix-functions/vsprintf.texi: Update.
52060         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52061
52062 2008-02-06  Bruno Haible  <bruno@clisp.org>
52063
52064         Fix bug introduced on 2008-01-26.
52065         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52066
52067 2008-02-06  Bruno Haible  <bruno@clisp.org>
52068
52069         Fix bug introduced on 2007-06-10.
52070         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52071         !NEED_PRINTF_FLAG_ZERO.
52072
52073 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52074
52075         getloadavg: use libperfstat on AIX5
52076         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52077
52078 2008-02-03  Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/diffseq.h: Add comments about required #includes.
52081         Reported by Michael Biggs <gnulib@doubleplum.net>.
52082
52083 2008-02-01  Bruno Haible  <bruno@clisp.org>
52084
52085         * users.txt: Add gnuit.
52086
52087 2008-01-31  Bruno Haible  <bruno@clisp.org>
52088
52089         * lib/md4.c (set_uint32): Mark as inline.
52090         * lib/md5.c (set_uint32): Likewise.
52091         * lib/sha1.c (set_uint32): Likewise.
52092         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52093         * m4/md5.m4 (gl_MD5): Likewise.
52094         * m4/sha1.m4 (gl_SHA1): Likewise.
52095
52096 2008-01-31  Jim Meyering  <meyering@redhat.com>
52097
52098         Use "sizeof VAR", rather than a literal "4".
52099         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52100         * lib/md4.c (md4_read_ctx): Likewise.
52101         * lib/sha1.c (sha1_read_ctx): Likewise.
52102
52103 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52104
52105         * tests/test-sha1.c: New file, based on test-md5.c.
52106
52107         * modules/crypto/sha1-tests: New file.
52108
52109 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52110
52111         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52112
52113 2008-01-31  Jim Meyering  <meyering@redhat.com>
52114
52115         Prefer "sizeof v" over the equivalent "4".
52116         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52117         * lib/md5.c (set_uint32): Likewise.
52118         * lib/sha1.c (set_uint32): Likewise.
52119
52120 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52121
52122         * lib/sha1.c (set_uint32): Mark function as static.
52123
52124 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52125
52126         md2: clarify comments to say that alignment is not required.
52127         * lib/md2.h: Remove warning about alignment in comment.
52128         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52129         never been required.
52130
52131 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52132
52133         md4: adapt alignment constraint fix from sha1.
52134         * lib/md4.c (set_uint32): New function, from sha1.c
52135         (md4_read_ctx): Use it.
52136         (md4_finish_ctx): Doc fix.
52137         * lib/md4.h: Doc fix.
52138
52139 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52140
52141         md5: adapt alignment constraint fix from sha1.
52142         * lib/md5.c (set_uint32): New function, from sha1.c
52143         (md5_read_ctx): Use it.
52144         (md5_finish_ctx): Doc fix.
52145         * lib/md5.h: Doc fix.
52146
52147 2008-01-30  Peter Palfrader  <weasel@debian.org>
52148
52149         sha1: remove the result buffer alignment constraint
52150         * lib/sha1.c (set_uint32): New function.
52151         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52152         constraint.
52153         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52154         * lib/sha1.h: Likewise.
52155
52156 2008-01-30  Andreas Schwab  <schwab@suse.de>
52157             Bruno Haible  <bruno@clisp.org>
52158
52159         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52160         correct definition of LDBL_MIN_EXP.
52161
52162 2008-01-30  Karl Berry  <karl@gnu.org>
52163
52164         * config/srclist-update: try to preserve x bit on updates.
52165         * config/srclistvars.sh: update for karl.
52166
52167 2008-01-29  Jim Meyering  <meyering@redhat.com>
52168
52169         vasnprintf.c: Avoid warning about unused label
52170         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52171         "overflow" label definition and associated code with the
52172         same cpp condition that guards the sole use of that label.
52173
52174 2008-01-26  Bruno Haible  <bruno@clisp.org>
52175
52176         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52177         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52178         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52179         * lib/isnanl-nolibm.h (isnanl): Likewise.
52180         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52181
52182 2008-01-26  Bruno Haible  <bruno@clisp.org>
52183
52184         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52185         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52186
52187 2008-01-26  Bruno Haible  <bruno@clisp.org>
52188
52189         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52190         GCC >= 4.0 built-in.
52191         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52192
52193 2008-01-26  Bruno Haible  <bruno@clisp.org>
52194
52195         Rename isnan, applicable to 'double' only, to isnand.
52196         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52197         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52198         (configure.ac): Update.
52199         (Include): Replace "isnan.h" with "isnand.h".
52200         * m4/isnand.m4: Renamed from m4/isnan.m4.
52201         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52202         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52203         instead of isnan.c.
52204         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52205         instead of HAVE_ISNAN_IN_LIBC.
52206         (isnand): Renamed from isnan.
52207         * lib/isnand.c: New file.
52208         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52209         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52210         (Makefile.am): Update.
52211         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52212         Include isnand.h instead of isnan.h.
52213         (main): Test isnand instead of isnan.
52214         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52215         isnan-nolibm.
52216         * modules/frexp (Depends-on): Likewise.
52217         * modules/frexp-tests (Depends-on): Likewise.
52218         * modules/frexp-nolibm (Depends-on): Likewise.
52219         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52220         * modules/isfinite (Depends-on): Likewise.
52221         * modules/round-tests (Depends-on): Likewise.
52222         * modules/signbit (Depends-on): Likewise.
52223         * modules/signbit-tests (Depends-on): Likewise.
52224         * modules/snprintf-posix (Depends-on): Likewise.
52225         * modules/sprintf-posix (Depends-on): Likewise.
52226         * modules/trunc-tests (Depends-on): Likewise.
52227         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52228         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52229         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52230         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52231         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52232         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52233         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52234         * modules/vasnprintf-posix (Depends-on): Likewise.
52235         * modules/vasprintf-posix (Depends-on): Likewise.
52236         * modules/vfprintf-posix (Depends-on): Likewise.
52237         * modules/vsnprintf-posix (Depends-on): Likewise.
52238         * modules/vsprintf-posix (Depends-on): Likewise.
52239         * lib/frexp.c: Include isnand.h instead of isnan.h.
52240         (ISNAN): Set to isnand instead of isnan.
52241         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52242         (gl_isfinited): Use isnand instead of isnan.
52243         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52244         (gl_signbitd): Use isnand instead of isnan.
52245         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52246         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52247         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52248         (main): Use isnand instead of isnan.
52249         * tests/test-round1.c: Include isnand.h.
52250         (main): Use isnand instead of isnan.
52251         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52252         (ISNAN): Set to isnand instead of isnan.
52253         * tests/test-trunc1.c: Include isnand.h.
52254         (main): Use isnand instead of isnan.
52255         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52256         (equal): Use isnand instead of isnan.
52257         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52258         isnand-nolibm.
52259         * NEWS: Mention the change.
52260
52261 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52262             Bruno Haible  <bruno@clisp.org>
52263
52264         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52265         the GCC builtins for signbits are present and set
52266         REPLACE_SIGNBIT_USING_GCC if so.
52267         * lib/math.in.h (signbit): Define using GCC builtins if
52268         REPLACE_SIGNBIT_USING_GCC is set.
52269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52270         REPLACE_SIGNBIT_USING_GCC.
52271         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52272
52273 2008-01-25  Jim Meyering  <meyering@redhat.com>
52274
52275         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52276         * lib/poll.c: Include <config.h>, not "config.h".
52277         * tests/test-getaddrinfo.c: Likewise.
52278
52279 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52280
52281         * modules/sockets-tests: New file.
52282
52283 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52284
52285         * modules/sockets: New module, can be used to call WSA_Startup and
52286         WSA_Cleanup when needed.
52287
52288         * lib/sockets.h, lib/sockets.c: New files.
52289
52290         * m4/sockets.m4: New file.
52291
52292         * tests/test-sockets.c: New file.
52293
52294 2008-01-19  Bruno Haible  <bruno@clisp.org>
52295
52296         * doc/posix-headers: Renamed from doc/headers.
52297         * doc/posix-functions: Renamed from doc/functions.
52298         * doc/gnulib.texi: Update.
52299
52300 2008-01-19  Bruno Haible  <bruno@clisp.org>
52301
52302         * doc/glibc-functions/strcasestr.texi: Include contents of
52303         doc/functions/strcasestr.texi, fixing the list of platforms.
52304         * doc/functions/strcasestr.texi: Remove file.
52305
52306 2008-01-19  Bruno Haible  <bruno@clisp.org>
52307
52308         * doc/glibc-functions/memmem.texi: Include contents of
52309         doc/functions/memmem.texi.
52310         * doc/functions/memmem.texi: Remove file.
52311
52312 2008-01-18  Bruno Haible  <bruno@clisp.org>
52313
52314         * doc/glibc-functions/*.texi: New files.
52315         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52316         to use the new files.
52317
52318 2008-01-17  Bruno Haible  <bruno@clisp.org>
52319
52320         * tests/test-gethostname.c (main): Fix printf statement.
52321
52322 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52323
52324         * modules/gethostname-tests: New file.
52325
52326         * tests/test-gethostname.c: New file.
52327
52328 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52329
52330         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52331         used by the UNAME case.  Reported by Bruno Haible
52332         <bruno@clisp.org>.
52333
52334 2008-01-17  Eric Blake  <ebb9@byu.net>
52335
52336         Convert c-strcasestr to be more efficient.
52337         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52338         (Depends-on): Add c-strcase, remove malloca, strnlen.
52339         * tests/test-c-strcasestr.c (main): Enhance test.
52340         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52341
52342 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52343
52344         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52345         Use it in creating po/Makevars.
52346
52347 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52348
52349         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52350         Applications that requires it should initialize libgcrypt
52351         manually.
52352
52353 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52354
52355         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52356
52357 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52358
52359         Fix problem with getdate on mingw32 reported by Simon Josefsson
52360         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52361         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52362         tzname", when deciding whether to declare tzname.
52363         * lib/strftime.c (tzname): Likewise.
52364
52365 2008-01-15  Bruno Haible  <bruno@clisp.org>
52366
52367         Work around a MacOS X 10.5 bug in frexpl().
52368         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52369         * doc/functions/frexpl.texi: Document the bug.
52370         Reported by Elias Pipping <pipping@gentoo.org>.
52371
52372 2008-01-14  Eric Blake  <ebb9@byu.net>
52373
52374         Touch up previous patch.
52375         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52376         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52377
52378         Convert strcasestr module to use Two-Way algorithm.
52379         * modules/strcasestr-simple: New module, based on the old
52380         strcasestr, but with Two-Way rather than KMP.
52381         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52382         * lib/string.in.h (rpl_strcasestr): Declare.
52383         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52384         performance.
52385         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52386         * modules/string (Makefile.am): Support strcasestr.
52387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52388         * modules/strcasestr-tests (Depends-on): Check for alarm.
52389         * tests/test-strcasestr.c: Augment test.
52390         * lib/str-two-way.h: Clean up stray macro.
52391         * NEWS: Document new module.
52392         * MODULES.html.sh (string handling): Likewise.
52393         * doc/functions/strcasestr.texi: New file.
52394         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52395         here, since it is not a POSIX function.
52396
52397 2008-01-14  Colin Watson  <cjwatson@debian.org>
52398             Bruno Haible  <bruno@clisp.org>
52399
52400         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52401         works fine; if not, set REPLACE_STRSIGNAL.
52402         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52404         REPLACE_STRSIGNAL.
52405         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52406         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52407         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52408
52409 2008-01-14  Bruno Haible  <bruno@clisp.org>
52410
52411         * modules/strsignal (Include): Change to <string.h>.
52412
52413 2008-01-14  Colin Watson  <cjwatson@debian.org>
52414
52415         * modules/argp (Notice): Add a notice recommending to change
52416         XGETTEXT_OPTIONS.
52417         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52418
52419 2008-01-13  Colin Watson  <cjwatson@debian.org>
52420
52421         * modules/strsignal-tests: New file.
52422         * tests/test-strsignal.c: New file.
52423
52424         * lib/strsignal.c: New file, from glibc with modifications.
52425         * lib/siglist.h: New file, from glibc with modifications.
52426         * lib/string.in.h (strsignal): New declaration.
52427         * m4/strsignal.m4: New file.
52428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52429         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52430         * modules/strsignal: New file.
52431         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52432         HAVE_DECL_STRSIGNAL.
52433
52434 2008-01-13  Bruno Haible  <bruno@clisp.org>
52435
52436         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52437         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52438         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52439         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52440
52441 2008-01-13  Bruno Haible  <bruno@clisp.org>
52442
52443         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52444         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52445         * lib/argp.h (__attribute__): Likewise.
52446         * lib/c-stack.c (__attribute__): Likewise.
52447         * lib/error.h (__attribute__): Likewise.
52448         * lib/fts.c (__attribute__): Likewise.
52449         * lib/openat.h (__attribute__): Likewise.
52450         * lib/stdio.in.h (__attribute__): Likewise.
52451         * lib/string.in.h (__attribute__): Likewise.
52452         * lib/utimens.c (__attribute__): Likewise.
52453         * lib/vasnprintf.h (__attribute__): Likewise.
52454         * lib/xalloc.h (__attribute__): Likewise.
52455         * lib/xprintf.h (__attribute__): Likewise.
52456         * lib/xstrtol.h (__attribute__): Likewise.
52457         * lib/xvasprintf.h (__attribute__): Likewise.
52458
52459 2008-01-12  Bruno Haible  <bruno@clisp.org>
52460
52461         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52462         * doc/glibc-headers/a.out.texi: New file.
52463         * doc/glibc-headers/aliases.texi: New file.
52464         * doc/glibc-headers/alloca.texi: New file.
52465         * doc/glibc-headers/ar.texi: New file.
52466         * doc/glibc-headers/argp.texi: New file.
52467         * doc/glibc-headers/argz.texi: New file.
52468         * doc/glibc-headers/byteswap.texi: New file.
52469         * doc/glibc-headers/crypt.texi: New file.
52470         * doc/glibc-headers/endian.texi: New file.
52471         * doc/glibc-headers/envz.texi: New file.
52472         * doc/glibc-headers/err.texi: New file.
52473         * doc/glibc-headers/error.texi: New file.
52474         * doc/glibc-headers/execinfo.texi: New file.
52475         * doc/glibc-headers/fpu_control.texi: New file.
52476         * doc/glibc-headers/fstab.texi: New file.
52477         * doc/glibc-headers/fts.texi: New file.
52478         * doc/glibc-headers/getopt.texi: New file.
52479         * doc/glibc-headers/ieee754.texi: New file.
52480         * doc/glibc-headers/ifaddrs.texi: New file.
52481         * doc/glibc-headers/libintl.texi: New file.
52482         * doc/glibc-headers/mcheck.texi: New file.
52483         * doc/glibc-headers/mntent.texi: New file.
52484         * doc/glibc-headers/obstack.texi: New file.
52485         * doc/glibc-headers/paths.texi: New file.
52486         * doc/glibc-headers/printf.texi: New file.
52487         * doc/glibc-headers/pty.texi: New file.
52488         * doc/glibc-headers/resolv.texi: New file.
52489         * doc/glibc-headers/shadow.texi: New file.
52490         * doc/glibc-headers/sysexits.texi: New file.
52491         * doc/glibc-headers/ttyent.texi: New file.
52492
52493 2008-01-12  Jim Meyering  <meyering@redhat.com>
52494
52495         announce-gen: emit Gnulib's git-based version string.
52496         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52497         New option --gnulib-version=V, where V is expected to be
52498         the output of running git describe in the gnulib directory.
52499         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52500         not useful, and plan to stop publishing an xdelta file with each
52501         coreutils release.
52502
52503         * build-aux/announce-gen: Also check for lzma-compressed files.
52504
52505 2008-01-11  Bruno Haible  <bruno@clisp.org>
52506
52507         * tests/test-memmem.c (main): Increase maximum allowed time.
52508         * tests/test-strstr.c (main): Likewise.
52509
52510 2008-01-11  Bruno Haible  <bruno@clisp.org>
52511
52512         * doc/functions/memmem.texi: Add more precisions about platforms.
52513         * doc/functions/strstr.texi: Likewise.
52514
52515 2008-01-10  Eric Blake  <ebb9@byu.net>
52516
52517         * m4/strstr.m4: Delete cruft from copy-n-paste.
52518         Reported by Bruno Haible.
52519
52520 2008-01-10  Bruno Haible  <bruno@clisp.org>
52521
52522         Make c-strstr rely on strstr.
52523         * lib/c-strstr.c: Don't include str-kmp.h.
52524         (c_strstr): Define in terms of strstr.
52525         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52526         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52527
52528 2008-01-10  Bruno Haible  <bruno@clisp.org>
52529
52530         * doc/gnulib.texi (String Functions in C Locale): New section.
52531         * doc/c-ctype.texi: New file.
52532         * doc/c-strcase.texi: New file.
52533         * doc/c-strcaseeq.texi: New file.
52534         * doc/c-strcasestr.texi: New file.
52535         * doc/c-strstr.texi: New file.
52536         * doc/c-strtod.texi: New file.
52537         * doc/c-strtold.texi: New file.
52538
52539 2008-01-10  Eric Blake  <ebb9@byu.net>
52540
52541         * lib/relocatable.h: Fix a comment.
52542
52543 2008-01-10  Eric Blake  <ebb9@byu.net>
52544
52545         Share two-way algorithm.
52546         * lib/str-two-way.h: New file, merged from...
52547         * lib/memmem.c: ...here...
52548         * lib/strstr.c: ...and here.
52549         * modules/memmem (Files): Use it.
52550         * modules/strstr (Files): Likewise.
52551
52552         Avoid quadratic strstr implementations.
52553         * lib/strstr.c: New file.
52554         * m4/strstr.m4: Likewise.
52555         * modules/strstr: Likewise.
52556         * modules/strstr-tests: Likewise.
52557         * tests/test-strstr.c: Likewise.
52558         * lib/string.in.h (rpl_strstr): Declare.
52559         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52561         * modules/string (Makefile.am): Likewise.
52562         * MODULES.html.sh (string handling): Mention new module.
52563         * doc/functions/strstr.texi (strstr): Document the bug.
52564
52565 2008-01-10  Bruno Haible  <bruno@clisp.org>
52566
52567         * lib/relocatable.h (relocate): State whether result is freshly
52568         allocated or not.
52569         * lib/relocatable.c (relocate): Return a freshly allocated string
52570         instead of a pointer to a privately held string.
52571         Reported by Sylvain Beucler <beuc@gnu.org>.
52572
52573 2008-01-10  Colin Watson  <cjwatson@debian.org>
52574
52575         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52576         s/S_ISNLK/S_ISLNK/.
52577
52578 2008-01-09  Bruno Haible  <bruno@clisp.org>
52579
52580         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52581         and other files.
52582         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52583         if it's only a guess.
52584         * modules/memmem: Simplify by depending on memmem-simple.
52585
52586 2008-01-09  Bruno Haible  <bruno@clisp.org>
52587
52588         Work around OpenBSD 4.0 tdelete() bug.
52589         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52590         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52591         macros and don't redefine the enum values.
52592         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52593         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52594         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52595
52596 2008-01-09  Bruno Haible  <bruno@clisp.org>
52597
52598         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52599         (main): Don't perform the tests if setlocale did not install a UTF-8
52600         locale. Needed on OpenBSD 4.0.
52601         * modules/wcwidth-tests (Depends-on): Add localcharset.
52602
52603 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52604
52605         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52606         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52607         * NEWS: announce this.
52608         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52609
52610 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52611         and Eric Blake  <ebb9@byu.net>
52612
52613         Add memmem-simple module.
52614         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52615         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52616         * modules/memmem-simple: New file.
52617         * modules/memmem (Description): Tweak.
52618         * MODULES.html.sh (string handling): Mention new module.
52619         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52620         addressed by memmem-simple.
52621         * NEWS: Document the difference.
52622
52623 2008-01-09  Eric Blake  <ebb9@byu.net>
52624
52625         Give gcc some memmem optimization hints.
52626         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52627         (strcasestr): Declare as pure.
52628         * modules/memmem (Maintainer): Claim my implementation.
52629
52630 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52631
52632         Support AIX 6.1 and higher.
52633         * build-aux/config.libpath: Likewise.
52634         * build-aux/config.rpath: Likewise.
52635
52636 2008-01-08  Jim Meyering  <meyering@redhat.com>
52637             Bruno Haible  <bruno@clisp.org>
52638
52639         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52640         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52641         Reported by Peter Fales in
52642         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52643
52644 2008-01-08  Bruno Haible  <bruno@clisp.org>
52645
52646         * modules/unictype/category-of (Depends-on): Add
52647         unictype/category-none.
52648         * modules/unictype/category-and-tests (Depends-on): Add
52649         unictype/category-{L,N,Lu,Nd}.
52650         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52651         * modules/unictype/category-or-tests (Depends-on): Add
52652         unictype/category-{L,N}.
52653         * modules/unictype/category-name-tests (Depends-on): Add
52654         unictype/category-{Z,Nl}.
52655         Reported by Simon Josefsson.
52656
52657 2008-01-08  Bruno Haible  <bruno@clisp.org>
52658
52659         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52660         convention better.
52661         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52662         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52663         Reported by Peter Miller <millerp@canb.auug.org.au>.
52664
52665 2008-01-08  Eric Blake  <ebb9@byu.net>
52666
52667         Rewrite memmem to guarantee linear complexity without malloc.
52668         * lib/memmem.c (memmem): Use Two-Way rather than
52669         Knuth-Morris-Pratt, to allow O(1) space usage.
52670         (critical_factorization, two_way_short_needle)
52671         (two_way_long_needle): New functions.
52672         (knuth_morris_pratt): Delete.
52673         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52674         Add stdint.
52675         * tests/test-memmem.c (main): Add tests for periodic needle and
52676         sublinear performance.
52677         * doc/functions/memmem.texi (memmem): Document other deficiencies
52678         in cygwin and older glibc.
52679
52680 2008-01-08  Bruno Haible  <bruno@clisp.org>
52681
52682         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52683         augmentation.
52684
52685 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52686
52687         Add a configure time option: --disable-acl.
52688         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52689         AC_ARG_ENABLE(acl).
52690
52691 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52692
52693         * tests/test-localename.c: Don't include obsolete "setenv.h".
52694
52695         * modules/localename-tests (Depends-on): Need unsetenv.
52696
52697 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52698
52699         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52700
52701 2008-01-06  Colin Watson  <cjwatson@debian.org>
52702
52703         * users.txt: Add man-db.
52704
52705 2008-01-07  Bruno Haible  <bruno@clisp.org>
52706
52707         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52708         previous section name.
52709
52710 2008-01-07  Bruno Haible  <bruno@clisp.org>
52711
52712         * lib/progname.c (set_program_name): Don't strip off a leading
52713         "lt-" prefix outside a .libs directory.
52714         Suggested by Paul Eggert.
52715
52716 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52717             Bruno Haible  <bruno@clisp.org>
52718
52719         Improve memory cleanup in 'relocatable' module.
52720         * lib/relocatable.h (compute_curr_prefix): Change return type to
52721         'char *'.
52722         * lib/relocatable.c (compute_curr_prefix): Change return type to
52723         'char *'. Free curr_installdir after use.
52724         (relocate): Free curr_prefix_better after use.
52725         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52726
52727 2008-01-01  Bruno Haible  <bruno@clisp.org>
52728
52729         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52730         failure on older glibc systems.
52731         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52732
52733 2008-01-05  Eric Blake  <ebb9@byu.net>
52734
52735         Avoid quadratic system memmem.
52736         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52737         Reported by Ralf Wildenhues.
52738
52739         Fix memmem test for mingw.
52740         * modules/memmem-tests (configure.ac): Check for alarm.
52741         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52742         it.
52743         * doc/functions/memmem.texi: New file.
52744         * doc/gnulib.texi (Function Substitutes): Add memmem.
52745         Reported by Bruno Haible.
52746
52747 2008-01-04  Bruno Haible  <bruno@clisp.org>
52748
52749         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52750         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52751         gl_HEADER_STRING_H_DEFAULTS.
52752
52753 2008-01-04  Eric Blake  <ebb9@byu.net>
52754
52755         Shorten duration of memmem test.
52756         * tests/test-memmem.c (main): Use alarm to declare failure if test
52757         is taking too long.
52758         Reported by Ralf Wildenhues.
52759
52760 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52761
52762         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52763         string, needed by strerror.
52764
52765 2008-01-03  Colin Watson  <cjwatson@debian.org>
52766             Bruno Haible  <bruno@clisp.org>
52767
52768         * doc/gnulib-tool.texi (Localization): New section.
52769
52770 2008-01-02  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52773         variables to 'unsigned char *' type.
52774         Reported by Paul Eggert.
52775
52776 2008-01-02  Jim Meyering  <jim@meyering.net>
52777
52778         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52779
52780 2007-12-31  Jim Meyering  <jim@meyering.net>
52781
52782         Avoid use of private FTS type name.
52783         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52784
52785 2007-12-30  Karl Berry  <karl@gnu.org>
52786
52787         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52788         work around defect in Texinfo and/or the standalone Info browser.
52789
52790 2007-12-30  Bruno Haible  <bruno@clisp.org>
52791
52792         Unify 5 copies of the KMP code.
52793         * lib/str-kmp.h: New file.
52794         * lib/c-strcasestr.c: Include str-kmp.h.
52795         (knuth_morris_pratt): Remove function.
52796         (c_strcasestr): Update.
52797         * lib/c-strstr.c: Include str-kmp.h.
52798         (knuth_morris_pratt): Remove function.
52799         (c_strcasestr): Update.
52800         * lib/mbscasestr.c: Include str-kmp.h.
52801         (knuth_morris_pratt_unibyte): Remove function.
52802         * lib/mbsstr.c: Include str-kmp.h.
52803         (knuth_morris_pratt_unibyte): Remove function.
52804         * lib/strcasestr.c: Include str-kmp.h.
52805         (knuth_morris_pratt): Remove function.
52806         (strcasestr): Update.
52807         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52808         * modules/c-strstr (Files): Likewise.
52809         * modules/mbscasestr (Files): Likewise.
52810         * modules/mbsstr (Files): Likewise.
52811         * modules/strcasestr (Files): Likewise.
52812         Suggested by Paul Eggert.
52813
52814 2007-12-30  Bruno Haible  <bruno@clisp.org>
52815
52816         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52817         defined.
52818
52819 2007-12-30  Bruno Haible  <bruno@clisp.org>
52820
52821         * lib/xmalloca.h: Include xalloc.h.
52822         (xnmalloca): New macro.
52823
52824 2007-12-30  Bruno Haible  <bruno@clisp.org>
52825
52826         * lib/malloca.h (nmalloca): New macro.
52827         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52828         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52829         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52830         knuth_morris_pratt_multibyte): Likewise.
52831         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52832         knuth_morris_pratt_multibyte): Likewise.
52833         * lib/memmem.c (knuth_morris_pratt): Likewise.
52834         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52835
52836 2007-12-25  Bruno Haible  <bruno@clisp.org>
52837
52838         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52839         * lib/glob.c: Don't include openat.h.
52840         (link_exists2_p): Add back the code that deals with the
52841         !GLOB_ALTDIRFUNC case.
52842         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52843         let it do the filename concatenation.
52844         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52845         * modules/glob (Depends-on): Remove openat.
52846
52847 2007-12-31  Bruno Haible  <bruno@clisp.org>
52848
52849         * modules/dirfd (License): Change to LGPLv2+.
52850         Approved by Jim Meyering.
52851
52852 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52853
52854         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52855         when multiplying M by sizeof (size_t).
52856
52857 2007-12-10  Martin Lambers  <marlam@marlam.de>
52858
52859         Override getpagesize on mingw.
52860         * lib/getpagesize.c: New file.
52861         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52862         * modules/getpagesize (Files): Add lib/getpagesize.c.
52863         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52865         REPLACE_GETPAGESIZE.
52866         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52867
52868 2007-12-25  Bruno Haible  <bruno@clisp.org>
52869
52870         * modules/localcharset (Notice): New field.
52871         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52872         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52873
52874 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52875             Bruno Haible  <bruno@clisp.org>
52876
52877         Avoid using the syntax symbol() in formatted documentation.
52878         * MODULES.html.sh (func_module): When replacing symbol() with a
52879         hyperlink, remove the parentheses. Show an error if some remain.
52880         Recognize and render the '...' syntax.
52881         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52882         Rework. Add paragraph about GCC's inlining.
52883         * doc/alloca.texi: Likewise.
52884         * doc/error.texi: Remove parentheses from symbol reference.
52885         * doc/gnulib-intro.texi: Likewise.
52886         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52887         * modules/fnmatch (Description): Reword to say "the ... function".
52888         * modules/full-read (Description): Likewise.
52889         * modules/full-write (Description): Likewise.
52890         * modules/safe-read (Description): Likewise.
52891         * modules/safe-write (Description): Likewise.
52892         * modules/strchrnul (Description): Likewise.
52893         * modules/trim (Description): Likewise.
52894         * modules/error (Description): Remove parentheses from symbol
52895         references.
52896         * modules/verror (Description): Likewise.
52897         Reported by Karl Berry.
52898
52899 2007-12-25  Bruno Haible  <bruno@clisp.org>
52900
52901         Fixup after 2007-10-16 commit.
52902         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52903
52904 2007-12-24  Bruno Haible  <bruno@clisp.org>
52905
52906         Make --enable-relocatable work with DESTDIR.
52907         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52908         to compute installdir from destprog.
52909         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52910         also set the RELOC_DESTDIR variable.
52911         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52912
52913 2007-12-24  Bruno Haible  <bruno@clisp.org>
52914
52915         Fix link error due to xalloc_die().
52916         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52917         of xreadlink.
52918         * lib/relocwrapper.c: Update comments.
52919         * build-aux/install-reloc: Remove xreadlink.c from file list.
52920         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52921         xreadlink.c.
52922         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52923
52924 2007-12-24  Bruno Haible  <bruno@clisp.org>
52925
52926         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52927         * lib/setenv.h: Remove file.
52928         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52929         lib/setenv.h.
52930         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52931         (Depends-on): Add stdlib.
52932         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52933         gl_FUNC_UNSETENV.
52934         (Include): Replace setenv.h with <stdlib.h>.
52935         * modules/unsetenv: New file.
52936         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52937         * lib/unsetenv.c: Include <stdlib.h> first.
52938         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52939         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52940         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52941         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52942         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52943         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52945         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52946         * doc/functions/unsetenv.texi: Update.
52947         * modules/xsetenv (Depends-on): Add unsetenv.
52948         * modules/getdate (Depends-on): Likewise.
52949         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52950         * lib/xsetenv.c: Don't include setenv.h.
52951         * lib/getdate.y: Likewise.
52952         * lib/relocwrapper.c: Likewise.
52953         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52954         (Depends-on): Add stdlib.
52955         * NEWS: Mention the changes.
52956         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52957
52958 2007-12-23  Bruno Haible  <bruno@clisp.org>
52959
52960         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52961         indentation.
52962
52963 2007-12-23  Bruno Haible  <bruno@clisp.org>
52964
52965         * lib/c-strcasestr.c: Add more comments.
52966         * lib/c-strstr.c: Likewise.
52967         * lib/mbscasestr.c: Likewise.
52968         * lib/mbsstr.c: Likewise.
52969         * lib/strcasestr.c: Likewise.
52970         * lib/memmem.c: Likewise.
52971
52972 2007-12-23  Bruno Haible  <bruno@clisp.org>
52973
52974         * tests/test-memmem.c: Include <string.h> first.
52975
52976 2007-12-22  Bruno Haible  <bruno@clisp.org>
52977
52978         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52979         the contents of $testsbase.
52980         Reported by Ralf Wildenhues.
52981
52982 2007-12-22  Bruno Haible  <bruno@clisp.org>
52983
52984         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52985         two variables local_ldadd_before, local_ldadd_last.
52986
52987 2007-12-20  Eric Blake  <ebb9@byu.net>
52988
52989         Work around circular library issue when cross-compiling.
52990         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52991         that progname.o does not need to pull in rpl_memcmp.
52992
52993 2007-12-19  Eric Blake  <ebb9@byu.net>
52994
52995         Fix memmem to avoid O(n^2) worst-case complexity.
52996         * lib/memmem.c (knuth_morris_pratt): New function.
52997         (memmem): Use it if first few naive iterations fail.
52998         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52999         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53000         * modules/memchr (License): Likewise.
53001         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53002         malloca.
53003         * tests/test-memmem.c: Rewrite, borrowing ideas from
53004         test-mbsstr1.c; the old version wouldn't even compile!
53005         * modules/memmem-tests: New file.
53006         * lib/string.in.h (rpl_memmem): Add declaration.
53007         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53009         REPLACE_MEMMEM.
53010
53011 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53012
53013         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53014         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53015         before any system include files, and undef after them all.  This
53016         should fix a problem on VMS reported by John E. Malmberg in
53017         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53018
53019 2007-12-17  Eric Blake  <ebb9@byu.net>
53020
53021         Revert addition of verify, for BSD/OS.
53022         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53023         can't handle large files, for the sake of obsolete platforms.
53024         * modules/fseeko (Depends-on): Remove verify.
53025         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53026         * doc/functions/ftello.texi (ftello): Likewise.
53027         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53028         Reported by Larry Jones.
53029
53030 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53031
53032         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53033         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53034
53035 2007-12-17  Jim Meyering  <meyering@redhat.com>
53036
53037         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53038         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53039         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53040         * modules/getcwd (Depends-on): Add openat.
53041         Reported by Petr Salinger.
53042
53043 2007-12-17  Bruno Haible  <bruno@clisp.org>
53044
53045         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53046         avoid a segmentation fault of the configure test on x86_64 systems.
53047
53048 2007-12-15  Jim Meyering  <meyering@redhat.com>
53049
53050         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53051
53052 2007-12-13  Eric Blake  <ebb9@byu.net>
53053
53054         Another fseek test.
53055         * tests/test-fseek.c (main): Also test ungetc handling.
53056         * tests/test-fseeko.c (main): Likewise.
53057         * modules/fseeko (Depends-on): Add verify.
53058         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53059         large.
53060         Reported by Larry Jones.
53061
53062         Fix fseeko on mingw.
53063         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53064         seek.
53065
53066         Beef up fseek tests.
53067         * tests/test-fseek.c (main): Also test eof handling.
53068         * tests/test-fseeko.c (main): Likewise.
53069         Reported by Larry Jones.
53070
53071 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53072
53073         Fix fseeko on BSD-based platforms.
53074         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53075         successful seek.
53076
53077 2007-12-12  Eric Blake  <ebb9@byu.net>
53078
53079         Allow circular dependency of separate libtests.a
53080         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53081         when use_libtests.
53082
53083 2007-12-11  Eric Blake  <ebb9@byu.net>
53084
53085         Fix bug with -0.0L in previous patch.
53086         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53087         * tests/test-isnan.c (main): Also test on zeroes.
53088         * tests/test-isnanf.c (main): Likewise.
53089         * tests/test-isnanl.h (main): Likewise.
53090
53091         Detect pseudo-denormals on x86 even when cross-compiling.
53092         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53093         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53094         invalid bit patterns that happen to satisfy ==.
53095
53096         Avoid link failures with separate libtests.a.
53097         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53098         last, to satisfy circular dependencies.
53099
53100 2007-12-11  Eric Blake  <ebb9@byu.net>
53101         and Bruno Haible  <bruno@clisp.org>
53102
53103         Fix OpenBSD 4.0 <float.h> handling of long double.
53104         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53105         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53106         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53107
53108 2007-12-11  Jim Meyering  <meyering@redhat.com>
53109
53110         * users.txt: Add libvirt.
53111
53112         Support versions of autoconf prior to 2.59c.
53113         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53114         if it is not already defined.
53115
53116 2007-12-09  Bruno Haible  <bruno@clisp.org>
53117
53118         Let 'gnulib-tool --import' collect sources needed for the tests in
53119         tests/ rather than in lib/.
53120         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53121         argument. If true, add rules to generate libtests.a, and put libtests.a
53122         into $(LDADD). Consider source files in subdirectories and set
53123         uses_subdirs.
53124         (func_emit_initmacro_start, func_emit_initmacro_end,
53125         func_emit_initmacro_done): Pass all arguments explicitly.
53126         (func_import): Determine two module lists main_modules,
53127         testsrelated_modules. Determine use_libtests. Determine two variables
53128         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53129         instead of just sed_transform_lib_file. Determine two variables
53130         main_files and testsrelated_files. Compute 'files' as the union of
53131         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53132         func_add_or_update. In the generated gnulib-comp.m4, collect the
53133         object files for tests/ in different variables than those for lib/.
53134         Substitute LIBTESTS_LIBDEPS.
53135         (func_create_testdir): Combine the uses_subdirs results from
53136         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53137
53138 2007-12-09  Bruno Haible  <bruno@clisp.org>
53139
53140         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53141         the build-aux directory.
53142
53143 2007-12-09  Bruno Haible  <bruno@clisp.org>
53144
53145         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53146         introduced on 2006-09-09.
53147
53148 2007-12-07  Jim Meyering  <meyering@redhat.com>
53149
53150         Let these macros work also with autoconf-2.59.
53151         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53152         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53153         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53154
53155 2007-12-06  Jim Meyering  <meyering@redhat.com>
53156
53157         Avoid a configure-time syntax error in gl_FUNC_ACL.
53158         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53159         function in each branch, before testing the cache variable.
53160
53161 2007-12-04  Eric Blake  <ebb9@byu.net>
53162
53163         Make scripts executable.
53164         * build-aux/config.guess: Add execute permissions.
53165         * build-aux/config.sub: Likewise.
53166         * build-aux/gendocs.sh: Likewise.
53167
53168         Fix frexp on mingw.
53169         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53170         cross-compiling.
53171         * doc/functions/frexp.texi (frexp): Document the bug.
53172
53173         Make cygwin fseeko check more reliable.
53174         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53175         version numbers, rather than unrelated feature check.
53176         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53177         * doc/functions/ftello.texi (ftello): Likewise.
53178         Reported by Bruno Haible.
53179
53180         * m4/strerror.m4: Bump version number.
53181
53182 2007-12-03  Bruno Haible  <bruno@clisp.org>
53183
53184         * doc/functions/mprotect.texi: Mention the mingw problem.
53185
53186 2007-12-03  Eric Blake  <ebb9@byu.net>
53187
53188         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53189         REPLACE_STRERROR is initialized before this macro.
53190
53191 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53192
53193         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53194         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53195         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53196         put -lsec in even for programs other than 'ls'.  This fixes a problem
53197         for gettext reported by Bruno Haible in
53198         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53199         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53200         Add support for Solaris 10.  This isn't efficient, but should get the
53201         job done for now.
53202
53203 2007-12-03  James Youngman  <jay@gnu.org>
53204
53205         * doc/regexprops-generic.texi: change "an close-group" to "a
53206         close-group" and "illegal" to "not allowed".
53207
53208 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53209
53210         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53211         pr_byname.h. Needed for the rare case when the maintainer has done
53212         "make maintainer-clean" in the source directory and then attempts a
53213         build outside the source directory.
53214         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53215         scripts_byname.h.
53216
53217 2007-12-02  Martin Lambers <marlam@marlam.de>
53218             Bruno Haible  <bruno@clisp.org>
53219
53220         * lib/getpagesize.h: Remove file.
53221         * lib/unistd.in.h: Include declaration of getpagesize here.
53222         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53223         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53224         HAVE_SYS_PARAM_H.
53225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53226         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53227         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53228         (Depends-on): Add unistd.
53229         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53230         (Include): Use <unistd.h> instead of getpagesize.h.
53231         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53232         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53233         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53234         gl_GETPAGESIZE invocation, already handled by module dependency.
53235         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53236
53237 2007-12-02  Bruno Haible  <bruno@clisp.org>
53238
53239         * modules/strings-tests: New file.
53240         * tests/test-strings.c: New file.
53241
53242         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53243         * lib/strings.in.h: New file.
53244         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53245         * m4/strings_h.m4: New file.
53246         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53247         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53248         * modules/strings: New file.
53249         * modules/string (Makefile.am): Update.
53250         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53251         Reported by Karl Berry.
53252
53253 2007-12-01  Eric Blake  <ebb9@byu.net>
53254
53255         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53256         accomodate fix in cygwin 1.5.25.
53257
53258 2007-12-01  Jim Meyering  <meyering@redhat.com>
53259
53260         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53261         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53262         that would inhibit utf8-optimization of a regexp containing line-
53263         or buffer-anchors, e.g., `^', `$'.
53264
53265 2007-11-30  Bruno Haible  <bruno@clisp.org>
53266
53267         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53268         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53269         glthread_recursive_lock_init.
53270         * lib/lock.c (glthread_recursive_lock_init)
53271         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53272         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53273
53274 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53275
53276         New function qset_acl, like set_acl but with syscall semantics.
53277         * lib/acl.h (qset_acl): New decl.
53278         * lib/acl.c (qset_acl): New function.
53279         (set_acl): Use new function.  Use more-consistent diagnostics.
53280
53281 2007-11-28  Jim Meyering  <meyering@redhat.com>
53282
53283         * modules/physmem (License): Change from GPL to LGPLv2+.
53284
53285 2007-11-26  Bruno Haible  <bruno@clisp.org>
53286
53287         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53288         'long double' type has excess precision.
53289         Reported by Jim Meyering in
53290         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53291
53292 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53293
53294         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53295         Sync from <http://gnu.org/licenses>.
53296         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53297         with license text from same location.
53298         * doc/maintain.texi, doc/standards.texi:  Sync from
53299         <http://savannah.gnu.org/projects/gnustandards>.
53300
53301 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53302         and Jim Meyering  <meyering@redhat.com>
53303
53304         Adjust getdate' grammar to accept a slightly more regular language.
53305         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53306         Before, the former was rejected.
53307         * lib/getdate.y (digits_to_date_time): New function, factored
53308         out of ...
53309         (number): ...here.  Just call digits_to_date_time.
53310         (hybrid): New non-terminal to handle an <unsigned number,
53311         signed relative offset> sequence consistently.
53312
53313 2007-11-18  Jim Meyering  <meyering@redhat.com>
53314
53315         Pull my changes from coreutils:
53316         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53317         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53318         use of $gnulib_tool_option_extras, so that it's separated from the
53319         preceding argument.
53320
53321         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53322         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53323         parent destination directories before copying a file into place.
53324
53325 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53326
53327         bootstrap: work also with 4-argument variant of AC_INIT
53328         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53329
53330 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53331
53332         Port test-getaddrinfo to Solaris.
53333         Problem reported by Bruno Haible in
53334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53335         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53336         explanation of setting 'hints'.
53337         Don't reject an implementation merely because it returns EAI_SERVICE.
53338         (EAI_SERVICE): Define to 0 if not defined.
53339
53340 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53341
53342         The license of gnu-make and posix-shell is now "GPLed build tool".
53343         * modules/gnu-make (License): Likewise.
53344         * modules/posix-shell (License): Likewise.
53345
53346         New module posix-shell, for determining a POSIX shell
53347         or perhaps something that is close enough to a POSIX shell.
53348         * m4/posix-shell.m4: New file.
53349         * modules/posix-shell: New file.
53350
53351         * MODULES.html.sh: Mention new module.
53352
53353         New module gnu-make, for determining whether we're using GNU Make.
53354         * m4/gnu-make.m4: New file.
53355         * modules/gnu-make: New file.
53356         * MODULES.html.sh: Mention new module.
53357
53358 2007-11-14  Jim Meyering  <meyering@redhat.com>
53359
53360         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53361         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53362         use this macro to create a function _definition_.
53363         Remove useless "#undef ARGMATCH_DIE".
53364
53365 2007-11-14  Bruno Haible  <bruno@clisp.org>
53366
53367         * lib/config.charset: Update for OpenBSD 4.1.
53368         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53369
53370 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53371
53372         Document 64-bit #if problems in stdint.texi.
53373         * doc/headers/stdint.texi (stdint.h): Mention problems with
53374         64-bit-#if, and how to work around them.
53375
53376         Don't insist on 'long long int' support in the preprocessor.  It
53377         breaks too many things.  For example, PRIdMAX still uses a 'long
53378         long int' format with the latest Sun compiler, even though
53379         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53380         preprocessor problem.  This causes the latest coreutils to dump
53381         core on Solaris 10 sparc with the Sun C compiler.
53382         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53383         the troublesome expressions at configure-time, not at #if-time.
53384         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53385         preprocessor.
53386         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53387         compile-time C checks, done at 'configure'-time.
53388         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53389         * modules/inttypes (Makefile): Substitute the new symbols that
53390         gl_INTTYPES_H now generates.
53391         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53392
53393 2007-11-12  Bruno Haible  <bruno@clisp.org>
53394
53395         Tests for Unicode character classification functions.
53396
53397         * modules/unictype/bidicategory-byname-tests: New file.
53398         * modules/unictype/bidicategory-name-tests: New file.
53399         * modules/unictype/bidicategory-of-tests: New file.
53400         * modules/unictype/bidicategory-test-tests: New file.
53401         * modules/unictype/block-list-tests: New file.
53402         * modules/unictype/block-of-tests: New file.
53403         * modules/unictype/block-test-tests: New file.
53404         * modules/unictype/category-C-tests: New file.
53405         * modules/unictype/category-Cc-tests: New file.
53406         * modules/unictype/category-Cf-tests: New file.
53407         * modules/unictype/category-Cn-tests: New file.
53408         * modules/unictype/category-Co-tests: New file.
53409         * modules/unictype/category-Cs-tests: New file.
53410         * modules/unictype/category-L-tests: New file.
53411         * modules/unictype/category-Ll-tests: New file.
53412         * modules/unictype/category-Lm-tests: New file.
53413         * modules/unictype/category-Lo-tests: New file.
53414         * modules/unictype/category-Lt-tests: New file.
53415         * modules/unictype/category-Lu-tests: New file.
53416         * modules/unictype/category-M-tests: New file.
53417         * modules/unictype/category-Mc-tests: New file.
53418         * modules/unictype/category-Me-tests: New file.
53419         * modules/unictype/category-Mn-tests: New file.
53420         * modules/unictype/category-N-tests: New file.
53421         * modules/unictype/category-Nd-tests: New file.
53422         * modules/unictype/category-Nl-tests: New file.
53423         * modules/unictype/category-No-tests: New file.
53424         * modules/unictype/category-P-tests: New file.
53425         * modules/unictype/category-Pc-tests: New file.
53426         * modules/unictype/category-Pd-tests: New file.
53427         * modules/unictype/category-Pe-tests: New file.
53428         * modules/unictype/category-Pf-tests: New file.
53429         * modules/unictype/category-Pi-tests: New file.
53430         * modules/unictype/category-Po-tests: New file.
53431         * modules/unictype/category-Ps-tests: New file.
53432         * modules/unictype/category-S-tests: New file.
53433         * modules/unictype/category-Sc-tests: New file.
53434         * modules/unictype/category-Sk-tests: New file.
53435         * modules/unictype/category-Sm-tests: New file.
53436         * modules/unictype/category-So-tests: New file.
53437         * modules/unictype/category-Z-tests: New file.
53438         * modules/unictype/category-Zl-tests: New file.
53439         * modules/unictype/category-Zp-tests: New file.
53440         * modules/unictype/category-Zs-tests: New file.
53441         * modules/unictype/category-and-not-tests: New file.
53442         * modules/unictype/category-and-tests: New file.
53443         * modules/unictype/category-byname-tests: New file.
53444         * modules/unictype/category-name-tests: New file.
53445         * modules/unictype/category-none-tests: New file.
53446         * modules/unictype/category-of-tests: New file.
53447         * modules/unictype/category-or-tests: New file.
53448         * modules/unictype/category-test-withtable-tests: New file.
53449         * modules/unictype/combining-class-tests: New file.
53450         * modules/unictype/ctype-alnum-tests: New file.
53451         * modules/unictype/ctype-alpha-tests: New file.
53452         * modules/unictype/ctype-blank-tests: New file.
53453         * modules/unictype/ctype-cntrl-tests: New file.
53454         * modules/unictype/ctype-digit-tests: New file.
53455         * modules/unictype/ctype-graph-tests: New file.
53456         * modules/unictype/ctype-lower-tests: New file.
53457         * modules/unictype/ctype-print-tests: New file.
53458         * modules/unictype/ctype-punct-tests: New file.
53459         * modules/unictype/ctype-space-tests: New file.
53460         * modules/unictype/ctype-upper-tests: New file.
53461         * modules/unictype/ctype-xdigit-tests: New file.
53462         * modules/unictype/decimal-digit-tests: New file.
53463         * modules/unictype/digit-tests: New file.
53464         * modules/unictype/mirror-tests: New file.
53465         * modules/unictype/numeric-tests: New file.
53466         * modules/unictype/property-alphabetic-tests: New file.
53467         * modules/unictype/property-ascii-hex-digit-tests: New file.
53468         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53469         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53470         * modules/unictype/property-bidi-block-separator-tests: New file.
53471         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53472         * modules/unictype/property-bidi-common-separator-tests: New file.
53473         * modules/unictype/property-bidi-control-tests: New file.
53474         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53475         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53476         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53477         * modules/unictype/property-bidi-european-digit-tests: New file.
53478         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53479         * modules/unictype/property-bidi-left-to-right-tests: New file.
53480         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53481         * modules/unictype/property-bidi-other-neutral-tests: New file.
53482         * modules/unictype/property-bidi-pdf-tests: New file.
53483         * modules/unictype/property-bidi-segment-separator-tests: New file.
53484         * modules/unictype/property-bidi-whitespace-tests: New file.
53485         * modules/unictype/property-byname-tests: New file.
53486         * modules/unictype/property-combining-tests: New file.
53487         * modules/unictype/property-composite-tests: New file.
53488         * modules/unictype/property-currency-symbol-tests: New file.
53489         * modules/unictype/property-dash-tests: New file.
53490         * modules/unictype/property-decimal-digit-tests: New file.
53491         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53492         * modules/unictype/property-deprecated-tests: New file.
53493         * modules/unictype/property-diacritic-tests: New file.
53494         * modules/unictype/property-extender-tests: New file.
53495         * modules/unictype/property-format-control-tests: New file.
53496         * modules/unictype/property-grapheme-base-tests: New file.
53497         * modules/unictype/property-grapheme-extend-tests: New file.
53498         * modules/unictype/property-grapheme-link-tests: New file.
53499         * modules/unictype/property-hex-digit-tests: New file.
53500         * modules/unictype/property-hyphen-tests: New file.
53501         * modules/unictype/property-id-continue-tests: New file.
53502         * modules/unictype/property-id-start-tests: New file.
53503         * modules/unictype/property-ideographic-tests: New file.
53504         * modules/unictype/property-ids-binary-operator-tests: New file.
53505         * modules/unictype/property-ids-trinary-operator-tests: New file.
53506         * modules/unictype/property-ignorable-control-tests: New file.
53507         * modules/unictype/property-iso-control-tests: New file.
53508         * modules/unictype/property-join-control-tests: New file.
53509         * modules/unictype/property-left-of-pair-tests: New file.
53510         * modules/unictype/property-line-separator-tests: New file.
53511         * modules/unictype/property-logical-order-exception-tests: New file.
53512         * modules/unictype/property-lowercase-tests: New file.
53513         * modules/unictype/property-math-tests: New file.
53514         * modules/unictype/property-non-break-tests: New file.
53515         * modules/unictype/property-not-a-character-tests: New file.
53516         * modules/unictype/property-numeric-tests: New file.
53517         * modules/unictype/property-other-alphabetic-tests: New file.
53518         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53519         * modules/unictype/property-other-grapheme-extend-tests: New file.
53520         * modules/unictype/property-other-id-continue-tests: New file.
53521         * modules/unictype/property-other-id-start-tests: New file.
53522         * modules/unictype/property-other-lowercase-tests: New file.
53523         * modules/unictype/property-other-math-tests: New file.
53524         * modules/unictype/property-other-uppercase-tests: New file.
53525         * modules/unictype/property-paired-punctuation-tests: New file.
53526         * modules/unictype/property-paragraph-separator-tests: New file.
53527         * modules/unictype/property-pattern-syntax-tests: New file.
53528         * modules/unictype/property-pattern-white-space-tests: New file.
53529         * modules/unictype/property-private-use-tests: New file.
53530         * modules/unictype/property-punctuation-tests: New file.
53531         * modules/unictype/property-quotation-mark-tests: New file.
53532         * modules/unictype/property-radical-tests: New file.
53533         * modules/unictype/property-sentence-terminal-tests: New file.
53534         * modules/unictype/property-soft-dotted-tests: New file.
53535         * modules/unictype/property-space-tests: New file.
53536         * modules/unictype/property-terminal-punctuation-tests: New file.
53537         * modules/unictype/property-test-tests: New file.
53538         * modules/unictype/property-titlecase-tests: New file.
53539         * modules/unictype/property-unassigned-code-value-tests: New file.
53540         * modules/unictype/property-unified-ideograph-tests: New file.
53541         * modules/unictype/property-uppercase-tests: New file.
53542         * modules/unictype/property-variation-selector-tests: New file.
53543         * modules/unictype/property-white-space-tests: New file.
53544         * modules/unictype/property-xid-continue-tests: New file.
53545         * modules/unictype/property-xid-start-tests: New file.
53546         * modules/unictype/property-zero-width-tests: New file.
53547         * modules/unictype/scripts-tests: New file.
53548         * modules/unictype/syntax-c-ident-tests: New file.
53549         * modules/unictype/syntax-c-whitespace-tests: New file.
53550         * modules/unictype/syntax-java-ident-tests: New file.
53551         * modules/unictype/syntax-java-whitespace-tests: New file.
53552         * tests/unictype/test-bidi_byname.c: New file.
53553         * tests/unictype/test-bidi_name.c: New file.
53554         * tests/unictype/test-bidi_of.c: New file.
53555         * tests/unictype/test-bidi_test.c: New file.
53556         * tests/unictype/test-block_list.c: New file.
53557         * tests/unictype/test-block_of.c: New file.
53558         * tests/unictype/test-block_test.c: New file.
53559         * tests/unictype/test-categ_and.c: New file.
53560         * tests/unictype/test-categ_and_not.c: New file.
53561         * tests/unictype/test-categ_byname.c: New file.
53562         * tests/unictype/test-categ_name.c: New file.
53563         * tests/unictype/test-categ_none.c: New file.
53564         * tests/unictype/test-categ_of.c: New file.
53565         * tests/unictype/test-categ_or.c: New file.
53566         * tests/unictype/test-categ_test_withtable.c: New file.
53567         * tests/unictype/test-combining.c: New file.
53568         * tests/unictype/test-decdigit.c: New file.
53569         * tests/unictype/test-digit.c: New file.
53570         * tests/unictype/test-mirror.c: New file.
53571         * tests/unictype/test-numeric.c: New file.
53572         * tests/unictype/test-pr_byname.c: New file.
53573         * tests/unictype/test-pr_test.c: New file.
53574         * tests/unictype/test-predicate-part1.h: New file.
53575         * tests/unictype/test-predicate-part2.h: New file.
53576         * tests/unictype/test-scripts.c: New file.
53577         * tests/unictype/test-sy_c_ident.c: New file.
53578         * tests/unictype/test-sy_java_ident.c: New file.
53579
53580         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53581         for Unicode 5.0.0.
53582         * tests/unictype/test-categ_Cc.c: Likewise.
53583         * tests/unictype/test-categ_Cf.c: Likewise.
53584         * tests/unictype/test-categ_Cn.c: Likewise.
53585         * tests/unictype/test-categ_Co.c: Likewise.
53586         * tests/unictype/test-categ_Cs.c: Likewise.
53587         * tests/unictype/test-categ_L.c: Likewise.
53588         * tests/unictype/test-categ_Ll.c: Likewise.
53589         * tests/unictype/test-categ_Lm.c: Likewise.
53590         * tests/unictype/test-categ_Lo.c: Likewise.
53591         * tests/unictype/test-categ_Lt.c: Likewise.
53592         * tests/unictype/test-categ_Lu.c: Likewise.
53593         * tests/unictype/test-categ_M.c: Likewise.
53594         * tests/unictype/test-categ_Mc.c: Likewise.
53595         * tests/unictype/test-categ_Me.c: Likewise.
53596         * tests/unictype/test-categ_Mn.c: Likewise.
53597         * tests/unictype/test-categ_N.c: Likewise.
53598         * tests/unictype/test-categ_Nd.c: Likewise.
53599         * tests/unictype/test-categ_Nl.c: Likewise.
53600         * tests/unictype/test-categ_No.c: Likewise.
53601         * tests/unictype/test-categ_P.c: Likewise.
53602         * tests/unictype/test-categ_Pc.c: Likewise.
53603         * tests/unictype/test-categ_Pd.c: Likewise.
53604         * tests/unictype/test-categ_Pe.c: Likewise.
53605         * tests/unictype/test-categ_Pf.c: Likewise.
53606         * tests/unictype/test-categ_Pi.c: Likewise.
53607         * tests/unictype/test-categ_Po.c: Likewise.
53608         * tests/unictype/test-categ_Ps.c: Likewise.
53609         * tests/unictype/test-categ_S.c: Likewise.
53610         * tests/unictype/test-categ_Sc.c: Likewise.
53611         * tests/unictype/test-categ_Sk.c: Likewise.
53612         * tests/unictype/test-categ_Sm.c: Likewise.
53613         * tests/unictype/test-categ_So.c: Likewise.
53614         * tests/unictype/test-categ_Z.c: Likewise.
53615         * tests/unictype/test-categ_Zl.c: Likewise.
53616         * tests/unictype/test-categ_Zp.c: Likewise.
53617         * tests/unictype/test-categ_Zs.c: Likewise.
53618         * tests/unictype/test-ctype_alnum.c: Likewise.
53619         * tests/unictype/test-ctype_alpha.c: Likewise.
53620         * tests/unictype/test-ctype_blank.c: Likewise.
53621         * tests/unictype/test-ctype_cntrl.c: Likewise.
53622         * tests/unictype/test-ctype_digit.c: Likewise.
53623         * tests/unictype/test-ctype_graph.c: Likewise.
53624         * tests/unictype/test-ctype_lower.c: Likewise.
53625         * tests/unictype/test-ctype_print.c: Likewise.
53626         * tests/unictype/test-ctype_punct.c: Likewise.
53627         * tests/unictype/test-ctype_space.c: Likewise.
53628         * tests/unictype/test-ctype_upper.c: Likewise.
53629         * tests/unictype/test-ctype_xdigit.c: Likewise.
53630         * tests/unictype/test-decdigit.h: Likewise.
53631         * tests/unictype/test-digit.h: Likewise.
53632         * tests/unictype/test-numeric.h: Likewise.
53633         * tests/unictype/test-pr_alphabetic.c: Likewise.
53634         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53635         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53636         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53637         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53638         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53639         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53640         * tests/unictype/test-pr_bidi_control.c: Likewise.
53641         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53642         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53643         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53644         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53645         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53646         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53647         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53648         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53649         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53650         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53651         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53652         * tests/unictype/test-pr_combining.c: Likewise.
53653         * tests/unictype/test-pr_composite.c: Likewise.
53654         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53655         * tests/unictype/test-pr_dash.c: Likewise.
53656         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53657         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53658         * tests/unictype/test-pr_deprecated.c: Likewise.
53659         * tests/unictype/test-pr_diacritic.c: Likewise.
53660         * tests/unictype/test-pr_extender.c: Likewise.
53661         * tests/unictype/test-pr_format_control.c: Likewise.
53662         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53663         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53664         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53665         * tests/unictype/test-pr_hex_digit.c: Likewise.
53666         * tests/unictype/test-pr_hyphen.c: Likewise.
53667         * tests/unictype/test-pr_id_continue.c: Likewise.
53668         * tests/unictype/test-pr_id_start.c: Likewise.
53669         * tests/unictype/test-pr_ideographic.c: Likewise.
53670         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53671         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53672         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53673         * tests/unictype/test-pr_iso_control.c: Likewise.
53674         * tests/unictype/test-pr_join_control.c: Likewise.
53675         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53676         * tests/unictype/test-pr_line_separator.c: Likewise.
53677         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53678         * tests/unictype/test-pr_lowercase.c: Likewise.
53679         * tests/unictype/test-pr_math.c: Likewise.
53680         * tests/unictype/test-pr_non_break.c: Likewise.
53681         * tests/unictype/test-pr_not_a_character.c: Likewise.
53682         * tests/unictype/test-pr_numeric.c: Likewise.
53683         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53684         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53685         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53686         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53687         * tests/unictype/test-pr_other_id_start.c: Likewise.
53688         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53689         * tests/unictype/test-pr_other_math.c: Likewise.
53690         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53691         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53692         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53693         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53694         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53695         * tests/unictype/test-pr_private_use.c: Likewise.
53696         * tests/unictype/test-pr_punctuation.c: Likewise.
53697         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53698         * tests/unictype/test-pr_radical.c: Likewise.
53699         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53700         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53701         * tests/unictype/test-pr_space.c: Likewise.
53702         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53703         * tests/unictype/test-pr_titlecase.c: Likewise.
53704         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53705         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53706         * tests/unictype/test-pr_uppercase.c: Likewise.
53707         * tests/unictype/test-pr_variation_selector.c: Likewise.
53708         * tests/unictype/test-pr_white_space.c: Likewise.
53709         * tests/unictype/test-pr_xid_continue.c: Likewise.
53710         * tests/unictype/test-pr_xid_start.c: Likewise.
53711         * tests/unictype/test-pr_zero_width.c: Likewise.
53712         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53713         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53714
53715 2007-11-12  Bruno Haible  <bruno@clisp.org>
53716
53717         Unicode character classification functions.
53718         * lib/unictype.h: New file.
53719         * modules/unictype/base: New file.
53720         * modules/unictype/category-L: New file.
53721         * modules/unictype/category-Lu: New file.
53722         * modules/unictype/category-Ll: New file.
53723         * modules/unictype/category-Lt: New file.
53724         * modules/unictype/category-Lm: New file.
53725         * modules/unictype/category-Lo: New file.
53726         * modules/unictype/category-M: New file.
53727         * modules/unictype/category-Mn: New file.
53728         * modules/unictype/category-Mc: New file.
53729         * modules/unictype/category-Me: New file.
53730         * modules/unictype/category-N: New file.
53731         * modules/unictype/category-Nd: New file.
53732         * modules/unictype/category-Nl: New file.
53733         * modules/unictype/category-No: New file.
53734         * modules/unictype/category-P: New file.
53735         * modules/unictype/category-Pc: New file.
53736         * modules/unictype/category-Pd: New file.
53737         * modules/unictype/category-Ps: New file.
53738         * modules/unictype/category-Pe: New file.
53739         * modules/unictype/category-Pi: New file.
53740         * modules/unictype/category-Pf: New file.
53741         * modules/unictype/category-Po: New file.
53742         * modules/unictype/category-S: New file.
53743         * modules/unictype/category-Sm: New file.
53744         * modules/unictype/category-Sc: New file.
53745         * modules/unictype/category-Sk: New file.
53746         * modules/unictype/category-So: New file.
53747         * modules/unictype/category-Z: New file.
53748         * modules/unictype/category-Zs: New file.
53749         * modules/unictype/category-Zl: New file.
53750         * modules/unictype/category-Zp: New file.
53751         * modules/unictype/category-C: New file.
53752         * modules/unictype/category-Cc: New file.
53753         * modules/unictype/category-Cf: New file.
53754         * modules/unictype/category-Cs: New file.
53755         * modules/unictype/category-Co: New file.
53756         * modules/unictype/category-Cn: New file.
53757         * modules/unictype/category-or: New file.
53758         * modules/unictype/category-of: New file.
53759         * modules/unictype/category-test: New file.
53760         * modules/unictype/category-test-withtable: New file.
53761         * modules/unictype/category-byname: New file.
53762         * modules/unictype/category-none: New file.
53763         * modules/unictype/category-and: New file.
53764         * modules/unictype/category-and-not: New file.
53765         * modules/unictype/category-name: New file.
53766         * modules/unictype/combining-class: New file.
53767         * modules/unictype/category-all: New file.
53768         * modules/unictype/bidicategory-all: New file.
53769         * modules/unictype/bidicategory-byname: New file.
53770         * modules/unictype/bidicategory-name: New file.
53771         * modules/unictype/bidicategory-of: New file.
53772         * modules/unictype/bidicategory-test: New file.
53773         * modules/unictype/decimal-digit: New file.
53774         * modules/unictype/digit: New file.
53775         * modules/unictype/numeric: New file.
53776         * modules/unictype/mirror: New file.
53777         * modules/unictype/property-white-space: New file.
53778         * modules/unictype/property-alphabetic: New file.
53779         * modules/unictype/property-other-alphabetic: New file.
53780         * modules/unictype/property-not-a-character: New file.
53781         * modules/unictype/property-default-ignorable-code-point: New file.
53782         * modules/unictype/property-other-default-ignorable-code-point: New
53783         file.
53784         * modules/unictype/property-deprecated: New file.
53785         * modules/unictype/property-logical-order-exception: New file.
53786         * modules/unictype/property-variation-selector: New file.
53787         * modules/unictype/property-private-use: New file.
53788         * modules/unictype/property-unassigned-code-value: New file.
53789         * modules/unictype/property-uppercase: New file.
53790         * modules/unictype/property-other-uppercase: New file.
53791         * modules/unictype/property-lowercase: New file.
53792         * modules/unictype/property-other-lowercase: New file.
53793         * modules/unictype/property-titlecase: New file.
53794         * modules/unictype/property-soft-dotted: New file.
53795         * modules/unictype/property-id-start: New file.
53796         * modules/unictype/property-other-id-start: New file.
53797         * modules/unictype/property-id-continue: New file.
53798         * modules/unictype/property-other-id-continue: New file.
53799         * modules/unictype/property-xid-start: New file.
53800         * modules/unictype/property-xid-continue: New file.
53801         * modules/unictype/property-pattern-white-space: New file.
53802         * modules/unictype/property-pattern-syntax: New file.
53803         * modules/unictype/property-join-control: New file.
53804         * modules/unictype/property-grapheme-base: New file.
53805         * modules/unictype/property-grapheme-extend: New file.
53806         * modules/unictype/property-other-grapheme-extend: New file.
53807         * modules/unictype/property-grapheme-link: New file.
53808         * modules/unictype/property-bidi-control: New file.
53809         * modules/unictype/property-bidi-left-to-right: New file.
53810         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53811         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53812         * modules/unictype/property-bidi-european-digit: New file.
53813         * modules/unictype/property-bidi-eur-num-separator: New file.
53814         * modules/unictype/property-bidi-eur-num-terminator: New file.
53815         * modules/unictype/property-bidi-arabic-digit: New file.
53816         * modules/unictype/property-bidi-common-separator: New file.
53817         * modules/unictype/property-bidi-block-separator: New file.
53818         * modules/unictype/property-bidi-segment-separator: New file.
53819         * modules/unictype/property-bidi-whitespace: New file.
53820         * modules/unictype/property-bidi-non-spacing-mark: New file.
53821         * modules/unictype/property-bidi-boundary-neutral: New file.
53822         * modules/unictype/property-bidi-pdf: New file.
53823         * modules/unictype/property-bidi-embedding-or-override: New file.
53824         * modules/unictype/property-bidi-other-neutral: New file.
53825         * modules/unictype/property-hex-digit: New file.
53826         * modules/unictype/property-ascii-hex-digit: New file.
53827         * modules/unictype/property-ideographic: New file.
53828         * modules/unictype/property-unified-ideograph: New file.
53829         * modules/unictype/property-radical: New file.
53830         * modules/unictype/property-ids-binary-operator: New file.
53831         * modules/unictype/property-ids-trinary-operator: New file.
53832         * modules/unictype/property-zero-width: New file.
53833         * modules/unictype/property-space: New file.
53834         * modules/unictype/property-non-break: New file.
53835         * modules/unictype/property-iso-control: New file.
53836         * modules/unictype/property-format-control: New file.
53837         * modules/unictype/property-dash: New file.
53838         * modules/unictype/property-hyphen: New file.
53839         * modules/unictype/property-punctuation: New file.
53840         * modules/unictype/property-line-separator: New file.
53841         * modules/unictype/property-paragraph-separator: New file.
53842         * modules/unictype/property-quotation-mark: New file.
53843         * modules/unictype/property-sentence-terminal: New file.
53844         * modules/unictype/property-terminal-punctuation: New file.
53845         * modules/unictype/property-currency-symbol: New file.
53846         * modules/unictype/property-math: New file.
53847         * modules/unictype/property-other-math: New file.
53848         * modules/unictype/property-paired-punctuation: New file.
53849         * modules/unictype/property-left-of-pair: New file.
53850         * modules/unictype/property-combining: New file.
53851         * modules/unictype/property-composite: New file.
53852         * modules/unictype/property-decimal-digit: New file.
53853         * modules/unictype/property-numeric: New file.
53854         * modules/unictype/property-diacritic: New file.
53855         * modules/unictype/property-extender: New file.
53856         * modules/unictype/property-ignorable-control: New file.
53857         * modules/unictype/property-test: New file.
53858         * modules/unictype/property-byname: New file.
53859         * modules/unictype/property-all: New file.
53860         * modules/unictype/scripts: New file.
53861         * modules/unictype/scripts-all: New file.
53862         * modules/unictype/block-of: New file.
53863         * modules/unictype/block-test: New file.
53864         * modules/unictype/block-list: New file.
53865         * modules/unictype/block-all: New file.
53866         * modules/unictype/syntax-c-whitespace: New file.
53867         * modules/unictype/syntax-java-whitespace: New file.
53868         * modules/unictype/syntax-c-ident: New file.
53869         * modules/unictype/syntax-java-ident: New file.
53870         * modules/unictype/ctype-alnum: New file.
53871         * modules/unictype/ctype-alpha: New file.
53872         * modules/unictype/ctype-cntrl: New file.
53873         * modules/unictype/ctype-digit: New file.
53874         * modules/unictype/ctype-graph: New file.
53875         * modules/unictype/ctype-lower: New file.
53876         * modules/unictype/ctype-print: New file.
53877         * modules/unictype/ctype-punct: New file.
53878         * modules/unictype/ctype-space: New file.
53879         * modules/unictype/ctype-upper: New file.
53880         * modules/unictype/ctype-xdigit: New file.
53881         * modules/unictype/ctype-blank: New file.
53882         * lib/unictype/bidi_byname.c: New file.
53883         * lib/unictype/bidi_name.c: New file.
53884         * lib/unictype/bidi_of.c: New file.
53885         * lib/unictype/bidi_test.c: New file.
53886         * lib/unictype/bitmap.h: New file.
53887         * lib/unictype/block_test.c: New file.
53888         * lib/unictype/blocks.c: New file.
53889         * lib/unictype/categ_C.c: New file.
53890         * lib/unictype/categ_Cc.c: New file.
53891         * lib/unictype/categ_Cf.c: New file.
53892         * lib/unictype/categ_Cn.c: New file.
53893         * lib/unictype/categ_Co.c: New file.
53894         * lib/unictype/categ_Cs.c: New file.
53895         * lib/unictype/categ_L.c: New file.
53896         * lib/unictype/categ_Ll.c: New file.
53897         * lib/unictype/categ_Lm.c: New file.
53898         * lib/unictype/categ_Lo.c: New file.
53899         * lib/unictype/categ_Lt.c: New file.
53900         * lib/unictype/categ_Lu.c: New file.
53901         * lib/unictype/categ_M.c: New file.
53902         * lib/unictype/categ_Mc.c: New file.
53903         * lib/unictype/categ_Me.c: New file.
53904         * lib/unictype/categ_Mn.c: New file.
53905         * lib/unictype/categ_N.c: New file.
53906         * lib/unictype/categ_Nd.c: New file.
53907         * lib/unictype/categ_Nl.c: New file.
53908         * lib/unictype/categ_No.c: New file.
53909         * lib/unictype/categ_P.c: New file.
53910         * lib/unictype/categ_Pc.c: New file.
53911         * lib/unictype/categ_Pd.c: New file.
53912         * lib/unictype/categ_Pe.c: New file.
53913         * lib/unictype/categ_Pf.c: New file.
53914         * lib/unictype/categ_Pi.c: New file.
53915         * lib/unictype/categ_Po.c: New file.
53916         * lib/unictype/categ_Ps.c: New file.
53917         * lib/unictype/categ_S.c: New file.
53918         * lib/unictype/categ_Sc.c: New file.
53919         * lib/unictype/categ_Sk.c: New file.
53920         * lib/unictype/categ_Sm.c: New file.
53921         * lib/unictype/categ_So.c: New file.
53922         * lib/unictype/categ_Z.c: New file.
53923         * lib/unictype/categ_Zl.c: New file.
53924         * lib/unictype/categ_Zp.c: New file.
53925         * lib/unictype/categ_Zs.c: New file.
53926         * lib/unictype/categ_and.c: New file.
53927         * lib/unictype/categ_and_not.c: New file.
53928         * lib/unictype/categ_byname.c: New file.
53929         * lib/unictype/categ_name.c: New file.
53930         * lib/unictype/categ_none.c: New file.
53931         * lib/unictype/categ_of.c: New file.
53932         * lib/unictype/categ_or.c: New file.
53933         * lib/unictype/categ_test.c: New file.
53934         * lib/unictype/combining.c: New file.
53935         * lib/unictype/ctype_alnum.c: New file.
53936         * lib/unictype/ctype_alpha.c: New file.
53937         * lib/unictype/ctype_blank.c: New file.
53938         * lib/unictype/ctype_cntrl.c: New file.
53939         * lib/unictype/ctype_digit.c: New file.
53940         * lib/unictype/ctype_graph.c: New file.
53941         * lib/unictype/ctype_lower.c: New file.
53942         * lib/unictype/ctype_print.c: New file.
53943         * lib/unictype/ctype_punct.c: New file.
53944         * lib/unictype/ctype_space.c: New file.
53945         * lib/unictype/ctype_upper.c: New file.
53946         * lib/unictype/ctype_xdigit.c: New file.
53947         * lib/unictype/decdigit.c: New file.
53948         * lib/unictype/digit.c: New file.
53949         * lib/unictype/identsyntaxmap.h: New file.
53950         * lib/unictype/mirror.c: New file.
53951         * lib/unictype/numeric.c: New file.
53952         * lib/unictype/pr_alphabetic.c: New file.
53953         * lib/unictype/pr_ascii_hex_digit.c: New file.
53954         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53955         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53956         * lib/unictype/pr_bidi_block_separator.c: New file.
53957         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53958         * lib/unictype/pr_bidi_common_separator.c: New file.
53959         * lib/unictype/pr_bidi_control.c: New file.
53960         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53961         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53962         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53963         * lib/unictype/pr_bidi_european_digit.c: New file.
53964         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53965         * lib/unictype/pr_bidi_left_to_right.c: New file.
53966         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53967         * lib/unictype/pr_bidi_other_neutral.c: New file.
53968         * lib/unictype/pr_bidi_pdf.c: New file.
53969         * lib/unictype/pr_bidi_segment_separator.c: New file.
53970         * lib/unictype/pr_bidi_whitespace.c: New file.
53971         * lib/unictype/pr_byname.c: New file.
53972         * lib/unictype/pr_byname.gperf: New file.
53973         * lib/unictype/pr_combining.c: New file.
53974         * lib/unictype/pr_composite.c: New file.
53975         * lib/unictype/pr_currency_symbol.c: New file.
53976         * lib/unictype/pr_dash.c: New file.
53977         * lib/unictype/pr_decimal_digit.c: New file.
53978         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53979         * lib/unictype/pr_deprecated.c: New file.
53980         * lib/unictype/pr_diacritic.c: New file.
53981         * lib/unictype/pr_extender.c: New file.
53982         * lib/unictype/pr_format_control.c: New file.
53983         * lib/unictype/pr_grapheme_base.c: New file.
53984         * lib/unictype/pr_grapheme_extend.c: New file.
53985         * lib/unictype/pr_grapheme_link.c: New file.
53986         * lib/unictype/pr_hex_digit.c: New file.
53987         * lib/unictype/pr_hyphen.c: New file.
53988         * lib/unictype/pr_id_continue.c: New file.
53989         * lib/unictype/pr_id_start.c: New file.
53990         * lib/unictype/pr_ideographic.c: New file.
53991         * lib/unictype/pr_ids_binary_operator.c: New file.
53992         * lib/unictype/pr_ids_trinary_operator.c: New file.
53993         * lib/unictype/pr_ignorable_control.c: New file.
53994         * lib/unictype/pr_iso_control.c: New file.
53995         * lib/unictype/pr_join_control.c: New file.
53996         * lib/unictype/pr_left_of_pair.c: New file.
53997         * lib/unictype/pr_line_separator.c: New file.
53998         * lib/unictype/pr_logical_order_exception.c: New file.
53999         * lib/unictype/pr_lowercase.c: New file.
54000         * lib/unictype/pr_math.c: New file.
54001         * lib/unictype/pr_non_break.c: New file.
54002         * lib/unictype/pr_not_a_character.c: New file.
54003         * lib/unictype/pr_numeric.c: New file.
54004         * lib/unictype/pr_other_alphabetic.c: New file.
54005         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54006         * lib/unictype/pr_other_grapheme_extend.c: New file.
54007         * lib/unictype/pr_other_id_continue.c: New file.
54008         * lib/unictype/pr_other_id_start.c: New file.
54009         * lib/unictype/pr_other_lowercase.c: New file.
54010         * lib/unictype/pr_other_math.c: New file.
54011         * lib/unictype/pr_other_uppercase.c: New file.
54012         * lib/unictype/pr_paired_punctuation.c: New file.
54013         * lib/unictype/pr_paragraph_separator.c: New file.
54014         * lib/unictype/pr_pattern_syntax.c: New file.
54015         * lib/unictype/pr_pattern_white_space.c: New file.
54016         * lib/unictype/pr_private_use.c: New file.
54017         * lib/unictype/pr_punctuation.c: New file.
54018         * lib/unictype/pr_quotation_mark.c: New file.
54019         * lib/unictype/pr_radical.c: New file.
54020         * lib/unictype/pr_sentence_terminal.c: New file.
54021         * lib/unictype/pr_soft_dotted.c: New file.
54022         * lib/unictype/pr_space.c: New file.
54023         * lib/unictype/pr_terminal_punctuation.c: New file.
54024         * lib/unictype/pr_test.c: New file.
54025         * lib/unictype/pr_titlecase.c: New file.
54026         * lib/unictype/pr_unassigned_code_value.c: New file.
54027         * lib/unictype/pr_unified_ideograph.c: New file.
54028         * lib/unictype/pr_uppercase.c: New file.
54029         * lib/unictype/pr_variation_selector.c: New file.
54030         * lib/unictype/pr_white_space.c: New file.
54031         * lib/unictype/pr_xid_continue.c: New file.
54032         * lib/unictype/pr_xid_start.c: New file.
54033         * lib/unictype/pr_zero_width.c: New file.
54034         * lib/unictype/scripts.c: New file.
54035         * lib/unictype/sy_c_ident.c: New file.
54036         * lib/unictype/sy_c_whitespace.c: New file.
54037         * lib/unictype/sy_java_ident.c: New file.
54038         * lib/unictype/sy_java_whitespace.c: New file.
54039
54040         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54041         Unicode 5.0.0.
54042         * lib/unictype/blocks.h: Likewise.
54043         * lib/unictype/categ_C.h: Likewise.
54044         * lib/unictype/categ_Cc.h: Likewise.
54045         * lib/unictype/categ_Cf.h: Likewise.
54046         * lib/unictype/categ_Cn.h: Likewise.
54047         * lib/unictype/categ_Co.h: Likewise.
54048         * lib/unictype/categ_Cs.h: Likewise.
54049         * lib/unictype/categ_L.h: Likewise.
54050         * lib/unictype/categ_Ll.h: Likewise.
54051         * lib/unictype/categ_Lm.h: Likewise.
54052         * lib/unictype/categ_Lo.h: Likewise.
54053         * lib/unictype/categ_Lt.h: Likewise.
54054         * lib/unictype/categ_Lu.h: Likewise.
54055         * lib/unictype/categ_M.h: Likewise.
54056         * lib/unictype/categ_Mc.h: Likewise.
54057         * lib/unictype/categ_Me.h: Likewise.
54058         * lib/unictype/categ_Mn.h: Likewise.
54059         * lib/unictype/categ_N.h: Likewise.
54060         * lib/unictype/categ_Nd.h: Likewise.
54061         * lib/unictype/categ_Nl.h: Likewise.
54062         * lib/unictype/categ_No.h: Likewise.
54063         * lib/unictype/categ_P.h: Likewise.
54064         * lib/unictype/categ_Pc.h: Likewise.
54065         * lib/unictype/categ_Pd.h: Likewise.
54066         * lib/unictype/categ_Pe.h: Likewise.
54067         * lib/unictype/categ_Pf.h: Likewise.
54068         * lib/unictype/categ_Pi.h: Likewise.
54069         * lib/unictype/categ_Po.h: Likewise.
54070         * lib/unictype/categ_Ps.h: Likewise.
54071         * lib/unictype/categ_S.h: Likewise.
54072         * lib/unictype/categ_Sc.h: Likewise.
54073         * lib/unictype/categ_Sk.h: Likewise.
54074         * lib/unictype/categ_Sm.h: Likewise.
54075         * lib/unictype/categ_So.h: Likewise.
54076         * lib/unictype/categ_Z.h: Likewise.
54077         * lib/unictype/categ_Zl.h: Likewise.
54078         * lib/unictype/categ_Zp.h: Likewise.
54079         * lib/unictype/categ_Zs.h: Likewise.
54080         * lib/unictype/categ_of.h: Likewise.
54081         * lib/unictype/combining.h: Likewise.
54082         * lib/unictype/ctype_alnum.h: Likewise.
54083         * lib/unictype/ctype_alpha.h: Likewise.
54084         * lib/unictype/ctype_blank.h: Likewise.
54085         * lib/unictype/ctype_cntrl.h: Likewise.
54086         * lib/unictype/ctype_digit.h: Likewise.
54087         * lib/unictype/ctype_graph.h: Likewise.
54088         * lib/unictype/ctype_lower.h: Likewise.
54089         * lib/unictype/ctype_print.h: Likewise.
54090         * lib/unictype/ctype_punct.h: Likewise.
54091         * lib/unictype/ctype_space.h: Likewise.
54092         * lib/unictype/ctype_upper.h: Likewise.
54093         * lib/unictype/ctype_xdigit.h: Likewise.
54094         * lib/unictype/decdigit.h: Likewise.
54095         * lib/unictype/digit.h: Likewise.
54096         * lib/unictype/mirror.h: Likewise.
54097         * lib/unictype/numeric.h: Likewise.
54098         * lib/unictype/pr_alphabetic.h: Likewise.
54099         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54100         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54101         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54102         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54103         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54104         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54105         * lib/unictype/pr_bidi_control.h: Likewise.
54106         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54107         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54108         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54109         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54110         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54111         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54112         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54113         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54114         * lib/unictype/pr_bidi_pdf.h: Likewise.
54115         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54116         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54117         * lib/unictype/pr_combining.h: Likewise.
54118         * lib/unictype/pr_composite.h: Likewise.
54119         * lib/unictype/pr_currency_symbol.h: Likewise.
54120         * lib/unictype/pr_dash.h: Likewise.
54121         * lib/unictype/pr_decimal_digit.h: Likewise.
54122         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54123         * lib/unictype/pr_deprecated.h: Likewise.
54124         * lib/unictype/pr_diacritic.h: Likewise.
54125         * lib/unictype/pr_extender.h: Likewise.
54126         * lib/unictype/pr_format_control.h: Likewise.
54127         * lib/unictype/pr_grapheme_base.h: Likewise.
54128         * lib/unictype/pr_grapheme_extend.h: Likewise.
54129         * lib/unictype/pr_grapheme_link.h: Likewise.
54130         * lib/unictype/pr_hex_digit.h: Likewise.
54131         * lib/unictype/pr_hyphen.h: Likewise.
54132         * lib/unictype/pr_id_continue.h: Likewise.
54133         * lib/unictype/pr_id_start.h: Likewise.
54134         * lib/unictype/pr_ideographic.h: Likewise.
54135         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54136         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54137         * lib/unictype/pr_ignorable_control.h: Likewise.
54138         * lib/unictype/pr_iso_control.h: Likewise.
54139         * lib/unictype/pr_join_control.h: Likewise.
54140         * lib/unictype/pr_left_of_pair.h: Likewise.
54141         * lib/unictype/pr_line_separator.h: Likewise.
54142         * lib/unictype/pr_logical_order_exception.h: Likewise.
54143         * lib/unictype/pr_lowercase.h: Likewise.
54144         * lib/unictype/pr_math.h: Likewise.
54145         * lib/unictype/pr_non_break.h: Likewise.
54146         * lib/unictype/pr_not_a_character.h: Likewise.
54147         * lib/unictype/pr_numeric.h: Likewise.
54148         * lib/unictype/pr_other_alphabetic.h: Likewise.
54149         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54150         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54151         * lib/unictype/pr_other_id_continue.h: Likewise.
54152         * lib/unictype/pr_other_id_start.h: Likewise.
54153         * lib/unictype/pr_other_lowercase.h: Likewise.
54154         * lib/unictype/pr_other_math.h: Likewise.
54155         * lib/unictype/pr_other_uppercase.h: Likewise.
54156         * lib/unictype/pr_paired_punctuation.h: Likewise.
54157         * lib/unictype/pr_paragraph_separator.h: Likewise.
54158         * lib/unictype/pr_pattern_syntax.h: Likewise.
54159         * lib/unictype/pr_pattern_white_space.h: Likewise.
54160         * lib/unictype/pr_private_use.h: Likewise.
54161         * lib/unictype/pr_punctuation.h: Likewise.
54162         * lib/unictype/pr_quotation_mark.h: Likewise.
54163         * lib/unictype/pr_radical.h: Likewise.
54164         * lib/unictype/pr_sentence_terminal.h: Likewise.
54165         * lib/unictype/pr_soft_dotted.h: Likewise.
54166         * lib/unictype/pr_space.h: Likewise.
54167         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54168         * lib/unictype/pr_titlecase.h: Likewise.
54169         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54170         * lib/unictype/pr_unified_ideograph.h: Likewise.
54171         * lib/unictype/pr_uppercase.h: Likewise.
54172         * lib/unictype/pr_variation_selector.h: Likewise.
54173         * lib/unictype/pr_white_space.h: Likewise.
54174         * lib/unictype/pr_xid_continue.h: Likewise.
54175         * lib/unictype/pr_xid_start.h: Likewise.
54176         * lib/unictype/pr_zero_width.h: Likewise.
54177         * lib/unictype/scripts.h: Likewise.
54178         * lib/unictype/scripts_byname.gperf: Likewise.
54179         * lib/unictype/sy_c_ident.h: Likewise.
54180         * lib/unictype/sy_c_whitespace.h: Likewise.
54181         * lib/unictype/sy_java_ident.h: Likewise.
54182         * lib/unictype/sy_java_whitespace.h: Likewise.
54183
54184         * lib/unictype/Makefile: New file.
54185         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54186         glibc.
54187         * lib/unictype/3level.h: New file, copied from glibc.
54188         * lib/unictype/3levelbit.h: New file.
54189
54190 2007-11-11  Bruno Haible  <bruno@clisp.org>
54191
54192         * modules/gperf: New file.
54193         * modules/iconv_open (Depends-on): Add it.
54194         (Makefile.am): Remove the GPERF definition.
54195
54196 2007-11-11  Bruno Haible  <bruno@clisp.org>
54197
54198         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54199         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54200
54201 2007-11-11  Bruno Haible  <bruno@clisp.org>
54202
54203         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54204         (usage): Remove function.
54205
54206 2007-11-11  Bruno Haible  <bruno@clisp.org>
54207
54208         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54209         gl_FUNC_CEILF_LIBS.
54210         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54211         gl_FUNC_CEIL_LIBS.
54212         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54213         gl_FUNC_CEILL_LIBS.
54214         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54215         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54216         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54217
54218 2007-11-11  Bruno Haible  <bruno@clisp.org>
54219
54220         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54221         roundf were declared but do not exist on functions.
54222         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54223         roundl were declared but do not exist on functions.
54224         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54225         HAVE_FLOORL_AND_CEILL, respectively.
54226         Needed for Sun C on Solaris 10.
54227
54228 2007-11-11  Bruno Haible  <bruno@clisp.org>
54229
54230         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54231         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54232         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54233         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54234         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54235         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54236         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54237         HAVE_DECL_ROUNDF.
54238         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54239         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54241         of HAVE_DECL_ROUND*.
54242         * modules/math (Makefile.am): Update.
54243
54244 2007-11-10  Bruno Haible  <bruno@clisp.org>
54245
54246         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54247         ptrdiff_t as m4/intl.m4.
54248
54249 2007-11-10  Jim Meyering  <meyering@redhat.com>
54250
54251         Avoid link failure for the argmatch test.
54252         * tests/test-argmatch.c (usage): Define function to avoid a link
54253         failure: argmatch_die requires a usage function.
54254
54255 2007-11-09  Bruno Haible  <bruno@clisp.org>
54256
54257         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54258         * doc/functions/vsnprintf.texi: Likewise.
54259         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54260         with a size argument < 2.
54261
54262 2007-11-09  Bruno Haible  <bruno@clisp.org>
54263
54264         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54265         buffer. Fixes an inefficiency introduced on 2007-11-03.
54266
54267 2007-11-09  Bruno Haible  <bruno@clisp.org>
54268
54269         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54270         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54271
54272 2007-11-08  Jim Meyering  <meyering@redhat.com>
54273
54274         Change cache variable name prefix "jm_" to "gl_" everywhere.
54275         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54276         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54277         * m4/uptime.m4: s/gl_/jm_/
54278
54279 2007-11-07  Bruno Haible  <bruno@clisp.org>
54280
54281         Update to GNU gettext 0.17.
54282         * m4/intl.m4: Update to GNU gettext 0.17.
54283         * m4/po.m4: Likewise.
54284         * modules/gettext (Files): Remove m4/ulonglong.m4.
54285         (configure.ac): Require gettext infrastructure from version 0.17.
54286
54287 2007-11-06  Bruno Haible  <bruno@clisp.org>
54288
54289         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54290         symbolic values are not defined in a public header.
54291         * lib/freadable.c (freadable) [QNX]: Likewise.
54292         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54293         * lib/freading.c (freading) [QNX]: Likewise.
54294         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54295         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54296         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54297         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54298         Reported by Alain Magloire.
54299
54300         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54301
54302 2007-11-05  Bruno Haible  <bruno@clisp.org>
54303
54304         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54305         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54306         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54307         Reported by Eric Blake.
54308
54309 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54310             Bruno Haible  <bruno@clisp.org>
54311
54312         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54313         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54314         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54315         (malloc): Undefine also before including <stdlib.h>.
54316         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54317         Needed on OSF/1 4.0.
54318
54319 2007-11-05  Jim Meyering  <meyering@redhat.com>
54320
54321         git-version-gen: sync from coreutils.
54322         * build-aux/git-version-gen: Add comments.
54323         Change the first '-' to '.' in the snapshot version string,
54324         e.g., 6.9-377-08144 -> 6.9.377-08144
54325         Remove first parameter.
54326         Don't declare a version "-dirty" merely because a time
54327         stamp has changed.
54328
54329 2007-11-04  Bruno Haible  <bruno@clisp.org>
54330
54331         * lib/lock.h: Protect all macro definitions containing an 'if'
54332         statement through a "do { ... } while (0)".
54333         * lib/tls.h: Likewise.
54334
54335 2007-11-04  Bruno Haible  <bruno@clisp.org>
54336
54337         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54338
54339 2007-11-04  Bruno Haible  <bruno@clisp.org>
54340
54341         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54342         * modules/fprintf-posix (Depends-on): Add nocrash.
54343         * modules/snprintf-posix (Depends-on): Likewise.
54344         * modules/sprintf-posix (Depends-on): Likewise.
54345         * modules/vasnprintf-posix (Depends-on): Likewise.
54346         * modules/vasprintf-posix (Depends-on): Likewise.
54347         * modules/vfprintf-posix (Depends-on): Likewise.
54348         * modules/vsnprintf-posix (Depends-on): Likewise.
54349         * modules/vsprintf-posix (Depends-on): Likewise.
54350         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54351         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54352         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54353         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54354         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54355         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54356         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54357
54358 2007-11-04  Bruno Haible  <bruno@clisp.org>
54359
54360         * modules/nocrash: New file.
54361         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54362         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54363
54364 2007-11-04  Bruno Haible  <bruno@clisp.org>
54365
54366         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54367         precision handling.
54368         * tests/test-vasprintf-posix.c (test_function): Likewise.
54369         * tests/test-snprintf-posix.h (test_function): Likewise.
54370         * tests/test-sprintf-posix.h (test_function): Likewise.
54371
54372         Fix *printf behaviour for large precisions on mingw and BeOS.
54373         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54374         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54375         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54376         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54377         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54378         gl_PRINTF_PRECISION and test its result. Invoke
54379         gl_PREREQ_VASNPRINTF_PRECISION.
54380         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54381         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54384         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54385         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54386         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54387         * doc/functions/fprintf.texi: Update.
54388         * doc/functions/printf.texi: Update.
54389         * doc/functions/snprintf.texi: Update.
54390         * doc/functions/sprintf.texi: Update.
54391         * doc/functions/vfprintf.texi: Update.
54392         * doc/functions/vprintf.texi: Update.
54393         * doc/functions/vsnprintf.texi: Update.
54394         * doc/functions/vsprintf.texi: Update.
54395
54396 2007-11-04  Bruno Haible  <bruno@clisp.org>
54397
54398         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54399
54400 2007-11-04  Bruno Haible  <bruno@clisp.org>
54401
54402         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54403         Reported by Sylvain Beucler <beuc@gnu.org>.
54404
54405 2007-11-03  Bruno Haible  <bruno@clisp.org>
54406
54407         * tests/test-fprintf-posix2.sh: New file.
54408         * tests/test-fprintf-posix2.c: New file.
54409         * modules/fprintf-posix-tests (Files): Add them.
54410         (TESTS): Add test-fprintf-posix2.sh.
54411         (configure.ac): Check for getrlimit and setrlimit.
54412         (check_PROGRAMS): Add test-fprintf-posix2.
54413
54414         * tests/test-printf-posix2.sh: New file.
54415         * tests/test-printf-posix2.c: New file.
54416         * modules/printf-posix-tests (Files): Add them.
54417         (TESTS): Add test-printf-posix2.sh.
54418         (configure.ac): Check for getrlimit and setrlimit.
54419         (check_PROGRAMS): Add test-printf-posix2.
54420
54421         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54422         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54423         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54424         (decode_double): New function, copied from decode_long_double.
54425         (scale10_round_decimal_decoded): New function, extracted from
54426         scale10_round_decimal_long_double.
54427         (scale10_round_decimal_long_double): Use it.
54428         (scale10_round_decimal_double): New function.
54429         (floorlog10): New function.
54430         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54431         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54432         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54433         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54434         gl_PRINTF_ENOMEM and test its result. Invoke
54435         gl_PREREQ_VASNPRINTF_ENOMEM.
54436         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54437         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54438         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54439         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54440         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54441         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54442         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54443         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54444         * modules/snprintf-posix (Depends-on): Likewise.
54445         * modules/sprintf-posix (Depends-on): Likewise.
54446         * modules/vasnprintf-posix (Depends-on): Likewise.
54447         * modules/vasprintf-posix (Depends-on): Likewise.
54448         * modules/vfprintf-posix (Depends-on): Likewise.
54449         * modules/vsnprintf-posix (Depends-on): Likewise.
54450         * modules/vsprintf-posix (Depends-on): Likewise.
54451         * doc/functions/fprintf.texi: Update.
54452         * doc/functions/printf.texi: Update.
54453         * doc/functions/snprintf.texi: Update.
54454         * doc/functions/sprintf.texi: Update.
54455         * doc/functions/vfprintf.texi: Update.
54456         * doc/functions/vprintf.texi: Update.
54457         * doc/functions/vsnprintf.texi: Update.
54458         * doc/functions/vsprintf.texi: Update.
54459
54460 2007-11-03  Bruno Haible  <bruno@clisp.org>
54461
54462         * modules/frexp-nolibm-tests: New file.
54463
54464         * modules/frexp-nolibm: New file.
54465         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54466
54467 2007-11-03  Bruno Haible  <bruno@clisp.org>
54468
54469         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54470         value is C99 compliant.
54471         Needed for OSF/1 5.1.
54472
54473 2007-11-03  Bruno Haible  <bruno@clisp.org>
54474
54475         Fix out-of-memory handling of vasnprintf.
54476         * lib/printf-parse.c: Include <errno.h>.
54477         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54478         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54479         is already set.
54480
54481 2007-11-02  Eric Blake  <ebb9@byu.net>
54482
54483         Fix tests on cygwin.
54484         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54485
54486 2007-11-01  Bruno Haible  <bruno@clisp.org>
54487
54488         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54489         warning.
54490         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54491         needed for POSIX compatibility.
54492
54493 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54494
54495         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54496         for compatibility with GNU.
54497
54498 2007-11-01  Bruno Haible  <bruno@clisp.org>
54499
54500         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54501         (putenv): Renamed from rpl_putenv. Change argument type from
54502         'const char *' to 'char *'.
54503         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54504         of defining putenv in config.h, just set REPLACE_PUTENV.
54505         * modules/putenv (Depends-on): Add stdlib.
54506         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54507         (Include): Use <stdlib.h>.
54508         * lib/stdlib.in.h (putenv): New declaration.
54509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54510         REPLACE_PUTENV.
54511         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54512         REPLACE_PUTENV.
54513         Needed for MacOS X 10.5.0.
54514         Reported by Peter O'Gorman <peter@pogma.com>.
54515
54516 2007-11-01  Jim Meyering  <meyering@redhat.com>
54517
54518         Treat an empty date string exactly like "0".
54519         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54520         if the remaining date string (to be parsed) is empty, use "0".
54521         Reported by Mischa Molhoek and discussed in this thread:
54522         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54523
54524 2007-10-31  Bruno Haible  <bruno@clisp.org>
54525
54526         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54527         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54528         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54529         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54530         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54531         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54532
54533 2007-10-31  Bruno Haible  <bruno@clisp.org>
54534
54535         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54536         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54537         (AC_TYPE_LONG_LONG_INT): Use it.
54538         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54539         it as well.
54540         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54541         to m4/longlong.m4.
54542         * modules/stdint (Files): Remove m4/ulonglong.m4.
54543         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54544         m4/ulonglong.m4.
54545         * modules/strtoumax (Files): Likewise.
54546
54547 2007-10-30  Bruno Haible  <bruno@clisp.org>
54548
54549         * modules/xvasprintf-posix: New file.
54550         Suggested by Eric Blake.
54551
54552 2007-10-30  Bruno Haible  <bruno@clisp.org>
54553
54554         * modules/xprintf-posix-tests: New file.
54555         * tests/test-xprintf-posix.sh: New file.
54556         * tests/test-xprintf-posix.c: New file.
54557         * tests/test-xfprintf-posix.c: New file.
54558
54559         * modules/xprintf-posix: New file.
54560
54561 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54562
54563         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54564         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54565         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54566
54567 2007-10-29  Bruno Haible  <bruno@clisp.org>
54568
54569         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54570         contain the special marker '_cv_'.
54571         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54572         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54573         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54574         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54575         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54576         Reported by Ralf Wildenhues.
54577
54578 2007-10-29  Bruno Haible  <bruno@clisp.org>
54579
54580         * gnulib-tool (func_import): When --lgpl is not specified, set
54581         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54582         GPLv3.
54583         Reported by Simon Josefsson.
54584
54585 2007-10-28  Bruno Haible  <bruno@clisp.org>
54586
54587         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54588         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54589         HAVE_DECL_ISFINITE.
54590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54591         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54592         HAVE_DECL_ISFINITE.
54593
54594 2007-10-28  Bruno Haible  <bruno@clisp.org>
54595
54596         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54597         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54598
54599 2007-10-28  Bruno Haible  <bruno@clisp.org>
54600
54601         Fix link errors with Sun C 5.0 on Solaris 10.
54602         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54603         function is declared but not present in the compiler's libm.
54604         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54605         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54606         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54607         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54608         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54609         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54610         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54612         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54613         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54614         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54615         HAVE_DECL_FLOORL.
54616
54617 2007-10-28  Bruno Haible  <bruno@clisp.org>
54618
54619         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54620         gl_FUNC_FLOORL. Cache the result.
54621         (gl_FUNC_FLOORL): Use it.
54622         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54623         gl_FUNC_CEILL. Cache the result.
54624         (gl_FUNC_CEILL): Use it.
54625
54626         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54627         gl_FUNC_FLOOR. Cache the result.
54628         (gl_FUNC_FLOOR): Use it.
54629         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54630         gl_FUNC_CEIL. Cache the result.
54631         (gl_FUNC_CEIL): Use it.
54632
54633         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54634         gl_FUNC_FLOORF. Cache the result.
54635         (gl_FUNC_FLOORF): Use it.
54636         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54637         gl_FUNC_CEILF. Cache the result.
54638         (gl_FUNC_CEILF): Use it.
54639
54640 2007-10-28  Bruno Haible  <bruno@clisp.org>
54641
54642         * gnulib-tool: Allow specifying the LGPL version number through
54643         --lgpl=2 or --lgpl=3.
54644         (func_usage): Document --lgpl with argument.
54645         Handle --lgpl=... arguments.
54646         (func_import): Recognize also gl_LGPL calls with an argument. When
54647         --lgpl=2 is used and the module's license is just LGPL, report an
54648         error. Set sed_transform_lib_file according to the lgpl variable. In
54649         the generated files, use --lgpl or gl_LGPL invocations with argument,
54650         if necessary.
54651         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54652         an LGPv2+ license.
54653         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54654         gl_LGPL macro.
54655
54656 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54657             Bruno Haible  <bruno@clisp.org>
54658
54659         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54660         (u16_uctomb_aux): Likewise.
54661         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54662         !HAVE_INLINE.
54663         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54664
54665 2007-10-28  Bruno Haible  <bruno@clisp.org>
54666
54667         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54668         Invoke AM_GETTEXT_OPTION if it exists.
54669         * modules/vasprintf: Likewise.
54670         * modules/verror: Likewise.
54671         * modules/xprintf: Likewise.
54672         * modules/xvasprintf: Likewise.
54673
54674 2007-10-27  Ben Pfaff  <blp@gnu.org>
54675
54676         * lib/math.in.h: Define isfinite macro and prototypes for
54677         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54678         implementations.
54679         * m4/math_h.m4: New substitutions for isfinite module.
54680         * lib/isfinite.c: New file.
54681         * m4/isfinite.m4: New file.
54682         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54683         * modules/isfinite: New file.
54684         * modules/isfinite-tests: New file.
54685         * tests/tests-isfinite.c: New file.
54686         * doc/functions/isfinite.texi: Mention isfinite module.
54687         * MODULES.html.sh: Mention new module.
54688
54689 2007-10-27  Ben Pfaff  <blp@gnu.org>
54690
54691         Ralf Wildenhues reported that Tru64 4.0D declares the round
54692         functions but does not have definitions.
54693         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54694         cannot be found in any library, set the output variable to
54695         "missing" instead of "".
54696         * m4/round.m4: Also use our substitute if we cannot find round in
54697         any library, even if it is declared.
54698         * m4/roundf.m4: Likewise for roundf.
54699         * m4/roundl.m4: Likewise for roundl.
54700         * lib/math.in.h: Undefine roundf, round, roundl before defining
54701         their replacements, to allow for hypothetical systems where these
54702         may be defined as macros but not available in libraries.
54703
54704 2007-10-27  Bruno Haible  <bruno@clisp.org>
54705
54706         * doc/gnulib.texi: Invoke @firstparagraphindent.
54707         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54708         changes in gnulib.
54709         (Source changes): New section.
54710
54711 2007-10-26  Bruno Haible  <bruno@clisp.org>
54712
54713         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54714         borrowed from autoconf.
54715
54716 2007-10-26  Bruno Haible  <bruno@clisp.org>
54717
54718         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54719         strerror returned the empty string. Needed on HP-UX 11.00.
54720
54721 2007-10-24  Micah Cowan  <micah@cowan.name>
54722
54723         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54724         * build-aux/bootstrap: Remove support for now-unnecessary option,
54725         --cvs-user, and envvars CVS_USER, CVS_RSH.
54726
54727 2007-10-24  Jim Meyering  <meyering@redhat.com>
54728
54729         Avoid diagnostics from sha1sum when there is no cached checksum.
54730         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54731         if the po.s1 file hasn't been created yet.
54732
54733         * build-aux/bootstrap: Sync from coreutils:
54734         2007-10-24  Jim Meyering  <meyering@redhat.com>
54735         Get gnulib from the git repository, not from an obsolete cvs one.
54736         * build-aux/bootstrap: Suggestion from Micah Cowan.
54737         2007-10-04  Jim Meyering  <jim@meyering.net>
54738         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54739         (update_po_files): Work also when there are no .po files in po/.
54740
54741 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54742
54743         * README: Append ".git" to git and cg examples.
54744         Problem reported by Benoit Sigoure.
54745
54746 2007-10-23  Micah Cowan  <micah@cowan.name>
54747
54748         * users.txt: Add wget.
54749
54750 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54751
54752         Fix linking of some unistdio tests on FreeBSD.
54753         * modules/unistdio/u16-vsnprintf-tests
54754         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54755         * modules/unistdio/u16-vsprintf-tests
54756         (test_u16_vsnprintf1_LDADD): Likewise.
54757         * modules/unistdio/u32-vsnprintf-tests
54758         (test_u32_vsnprintf1_LDADD): Likewise.
54759         * modules/unistdio/u32-vsprintf-tests
54760         (test_u32_vsprintf1_LDADD): Likewise.
54761         * modules/unistdio/u8-vsnprintf-tests
54762         (test_u8_vsnprintf1_LDADD): Likewise.
54763         * modules/unistdio/u8-vsprintf-tests
54764         (test_u8_vsprintf1_LDADD): Likewise.
54765         * modules/unistdio/ulc-vsnprintf-tests
54766         (test_ulc_vsnprintf1_LDADD): Likewise.
54767         * modules/unistdio/ulc-vsprintf-tests
54768         (test_ulc_vsprintf1_LDADD): Likewise.
54769
54770         Fix linking of some uniconv tests on FreeBSD.
54771         * modules/uniconv/u16-conv-from-enc-tests
54772         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54773         * modules/uniconv/u16-conv-to-enc-tests
54774         (test_u16_conv_to_enc_LDADD): Likewise.
54775         * modules/uniconv/u16-strconv-from-enc-tests
54776         (test_u16_strconv_from_enc_LDADD): Likewise.
54777         * modules/uniconv/u16-strconv-to-enc-tests
54778         (test_u16_strconv_to_enc_LDADD): Likewise.
54779         * modules/uniconv/u32-conv-from-enc-tests
54780         (test_u32_conv_from_enc_LDADD): Likewise.
54781         * modules/uniconv/u32-conv-to-enc-tests
54782         (test_u32_conv_to_enc_LDADD): Likewise.
54783         * modules/uniconv/u32-strconv-from-enc-tests
54784         (test_u32_strconv_from_enc_LDADD): Likewise.
54785         * modules/uniconv/u32-strconv-to-enc-tests
54786         (test_u32_strconv_to_enc_LDADD): Likewise.
54787         * modules/uniconv/u8-conv-from-enc-tests
54788         (test_u8_conv_from_enc_LDADD): Likewise.
54789         * modules/uniconv/u8-conv-to-enc-tests
54790         (test_u8_conv_to_enc_LDADD): Likewise.
54791         * modules/uniconv/u8-strconv-from-enc-tests
54792         (test_u8_strconv_from_enc_LDADD): Likewise.
54793         * modules/uniconv/u8-strconv-to-enc-tests
54794         (test_u8_strconv_to_enc_LDADD): Likewise.
54795
54796 2007-10-22  Bruno Haible  <bruno@clisp.org>
54797
54798         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54799         size.
54800
54801 2007-10-22  Eric Blake  <ebb9@byu.net>
54802
54803         Tweak x*printf documentation.
54804         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54805         variable name and comments.
54806         Suggested by Bruno Haible.
54807
54808 2007-10-22  Bruno Haible  <bruno@clisp.org>
54809
54810         * lib/acl.c (copy_acl): Fix file name in comment.
54811
54812 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54813
54814         Fix Tru64 problem with stdbool.h.
54815         * lib/stdbool.in.h (false, true):
54816         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54817         Don't declare as an enum in this situation; it runs afoul of Tru64.
54818         Problem reported by Steven M. Schweda in
54819         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54820
54821 2007-10-22  Eric Blake  <ebb9@byu.net>
54822
54823         Also wrap vf?printf.
54824         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54825         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54826         (xvprintf, xvfprintf): New functions.
54827
54828 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54829
54830         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54831         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54832
54833         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54834         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54835
54836 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54837
54838         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54839         by Bruno Haible.
54840
54841 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54842
54843         * lib/getloadavg.c
54844         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54845         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54846
54847         * tests/test-i-ring.c: Work for C89.
54848
54849 2007-10-22  Bruno Haible  <bruno@clisp.org>
54850
54851         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54852         -1u, in preprocessor expression, so that we don't test for the bug
54853         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54855
54856 2007-10-22  Eric Blake  <ebb9@byu.net>
54857
54858         * tests/test-yesno.sh: Silence stderr during test.
54859
54860 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54861
54862         * modules/crypto/gc-camellia: New file.
54863
54864         * m4/gc-camellia.m4: New file.
54865
54866         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54867
54868         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54869
54870 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54871
54872         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54873         --help to stdout.  Reported by sms@antinode.org (Steven
54874         M. Schweda).
54875
54876 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54877
54878         * users.txt: Fix link to libksba.
54879
54880 2007-10-21  Ben Pfaff  <blp@gnu.org>
54881
54882         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54883         round.c roundf implementation that depends on floorf and ceilf to
54884         be tested unconditionally.
54885
54886 2007-10-21  Ben Pfaff  <blp@gnu.org>
54887
54888         * m4/check-libm-func.m4: Removed.
54889         * m4/check-math-lib.m4: New file.
54890         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54891         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54892         definition and lack of AC_LIBOBJ([roundf]).
54893         * m4/roundl.m4: Ditto, and similarly for roundl.
54894         * modules/round: Reference new m4 file.
54895         * modules/roundf: Ditto.
54896         * modules/roundl: Ditto.
54897         * tests/test-round2.c (main): Use ROUND instead of round.
54898         Bug report from Bruno Haible.
54899
54900 2007-10-21  Bruno Haible  <bruno@clisp.org>
54901
54902         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54903         context.
54904
54905 2007-10-21  Bruno Haible  <bruno@clisp.org>
54906
54907         * tests/test-wcwidth.c (main): Allow negative result for some control
54908         characters.
54909
54910         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54911         Needed on OSF/1 5.1.
54912
54913 2007-10-21  Bruno Haible  <bruno@clisp.org>
54914
54915         * tests/test-floorf1.c: Include isnanf.h.
54916         (main): Use isnanf() instead of isnan().
54917         * tests/test-ceilf1.c: Include isnanf.h.
54918         (main): Use isnanf() instead of isnan().
54919         * tests/test-truncf1.c: Include isnanf.h.
54920         (main): Use isnanf() instead of isnan().
54921         * tests/test-roundf1.c: Include isnanf.h.
54922         (main): Use isnanf() instead of isnan().
54923
54924 2007-10-21  Eric Blake  <ebb9@byu.net>
54925
54926         * users.txt: Update URL for m4.
54927
54928 2007-10-21  Bruno Haible  <bruno@clisp.org>
54929
54930         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54931
54932 2007-10-21  Bruno Haible  <bruno@clisp.org>
54933
54934         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54935         Git's management files if the CVS files are not present.
54936
54937 2007-10-20  Bruno Haible  <bruno@clisp.org>
54938
54939         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54940         gcc-3.4.x.
54941
54942 2007-10-20  Ben Pfaff  <blp@gnu.org>
54943
54944         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54945         implementations.
54946         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54947         * lib/round.c: New file.
54948         * lib/roundf.c: New file.
54949         * lib/roundl.c: New file.
54950         * m4/round.m4: New file.
54951         * m4/roundf.m4: New file.
54952         * m4/roundl.m4: New file.
54953         * m4/check-libm-func-m4: New file.
54954         * modules/math: Replace round, roundf, roundl related @VARS@ in
54955         math.in.h.
54956         * modules/round: New file.
54957         * modules/round-tests: New file.
54958         * modules/roundf: New file.
54959         * modules/roundf-tests: New file.
54960         * modules/roundl: New file.
54961         * modules/roundl-tests: New file.
54962         * tests/test-round1.c: New file.
54963         * tests/test-round2.c: New file.
54964         * tests/test-roundf1.c: New file.
54965         * tests/test-roundf2.c: New file.
54966         * tests/test-roundl.c: New file.
54967         * doc/functions/round.texi: Mention round module.
54968         * doc/functions/roundf.texi: Mention roundf module.
54969         * doc/functions/roundl.texi: Mention roundl module.
54970         * MODULES.html.sh: Mention new modules.
54971         Thanks to Bruno Haible for suggestions.
54972
54973 2007-10-20  Jim Meyering  <meyering@redhat.com>
54974
54975         * lib/xprintf.c: Include <config.h> unconditionally.
54976
54977         Change xprintf's license to GPL.
54978         * modules/xprintf (License): s/LGPL/GPL/, since this module
54979         depends on modules (exit and exitfail) which are GPL.
54980         Suggestion from Bruno Haible.
54981
54982         xprintf fixes.
54983         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54984         Use a clearer diagnostic.
54985         Patch from Bruno Haible.
54986
54987 2007-10-20  Bruno Haible  <bruno@clisp.org>
54988
54989         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54990         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54991         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54992
54993 2007-10-20  Bruno Haible  <bruno@clisp.org>
54994
54995         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54996         precision in the comparison result > x - 1 or similar.
54997         * tests/test-ceilf2.c (correct_result_p): Likewise.
54998         * tests/test-truncf2.c (correct_result_p): Likewise.
54999         * tests/test-trunc2.c (correct_result_p): Likewise.
55000         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55001
55002 2007-10-20  Bruno Haible  <bruno@clisp.org>
55003
55004         * modules/ceil: New file.
55005         * m4/ceil.m4: New file.
55006         * doc/functions/ceil.texi: Mention the 'ceil' module.
55007
55008 2007-10-20  Bruno Haible  <bruno@clisp.org>
55009
55010         * modules/floor: New file.
55011         * m4/floor.m4: New file.
55012         * doc/functions/floor.texi: Mention the 'floor' module.
55013
55014 2007-10-20  Bruno Haible  <bruno@clisp.org>
55015
55016         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55017         of %a.
55018         * modules/floorf-tests (Depends-on): Likewise.
55019         * modules/truncf-tests (Depends-on): Likewise.
55020         * modules/trunc-tests (Depends-on): Likewise.
55021         Reported by Ben Pfaff.
55022
55023 2007-10-19  Jim Meyering  <meyering@redhat.com>
55024
55025         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55026         Don't bother testing specific errno values.  Just test ferror.
55027
55028         New module: xprintf
55029         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55030
55031 2007-10-19  Bruno Haible  <bruno@clisp.org>
55032
55033         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55034         syntax.
55035         * modules/javaexec (Makefile.am): Likewise.
55036         * modules/relocatable-prog (Makefile.am): Likewise.
55037         Suggested by Jim Meyering.
55038
55039 2007-10-18  Bruno Haible  <bruno@clisp.org>
55040
55041         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55042         Reported by Jim Meyering.
55043
55044 2007-10-18  Eric Blake  <ebb9@byu.net>
55045
55046         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55047
55048 2007-10-18  Bruno Haible  <bruno@clisp.org>
55049
55050         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55051         the format string into writable memory. Needed in Fortify conditions.
55052
55053 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55054             Bruno Haible  <bruno@clisp.org>
55055
55056         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55057         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55058         * modules/trim (Depends-on): Add mbchar.
55059         (configure.ac): Add gl_FUNC_MBRTOWC.
55060         (Makefile.am): Augment lib_SOURCES.
55061
55062 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55063
55064         Modify glob.c to use fstatat and dirfd, to simplify it.
55065         Suggested by Eric Blake.
55066         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55067         Don't include <stdbool.h>; not used.
55068         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55069         (link_exists_p): Simplify implementation, since we can now assume
55070         dirfd and fstatat.
55071         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55072
55073 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55074
55075         * gnulib-tool (func_get_dependencies): Fix sed script to
55076         match only tests.
55077
55078 2007-10-17  Bruno Haible  <bruno@clisp.org>
55079
55080         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55081         allow locale names without encoding suffix.
55082         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55083         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55084
55085 2007-10-16  Bruno Haible  <bruno@clisp.org>
55086
55087         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55088         * lib/getgroups.c (getgroups): Likewise.
55089         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55090
55091 2007-10-16  Bruno Haible  <bruno@clisp.org>
55092
55093         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55094         * modules/malloc-posix (License): Likewise.
55095         * modules/realloc-posix (License): Likewise.
55096         * modules/calloc-posix (License): Likewise.
55097         * modules/intprops (License): Change from GPL to LGPL, with
55098         Paul Eggert's approval.
55099
55100 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55101
55102         Merge glibc changes into lib/glob.c.
55103
55104         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55105         2007-10-15 04:59:03 UTC.  Here are the changes:
55106
55107         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55108
55109         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55110
55111         * lib/glob.c: Add some branch prediction throughout.
55112
55113         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55114
55115         [BZ #5103]
55116         * lib/glob.c (glob): Recognize patterns starting \/.
55117
55118         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55119
55120         [BZ #3996]
55121         * lib/glob.c (attribute_hidden): Define if not defined.
55122         (glob): Unescape dirname, filename or username when needed and not
55123         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55124         is NULL.  Handle unescaped [ in pattern without closing ].
55125         Don't pass GLOB_CHECK down to recursive glob for directories.
55126         (__glob_pattern_type): New function.
55127         (__glob_pattern_p): Implement using __glob_pattern_type.
55128         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55129         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55130         Remove unreachable code.
55131
55132         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55133
55134         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55135         explain why there are no leaks.
55136
55137         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55138
55139         [BZ #3253]
55140         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55141         time, rather allocate increasingly bigger arrays of pointers, if
55142         possible with alloca, if too large with malloc.
55143
55144 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55145
55146         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55147         Problem reported by H.Merijn Brand in
55148         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55149         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55150         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55151
55152 2007-10-15  Bruno Haible  <bruno@clisp.org>
55153
55154         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55155         with explicit rpl_ prefix.
55156         * lib/fopen.c (fopen): Likewise.
55157         * lib/freopen.c (freopen): Likewise.
55158         * lib/iconv.c (iconv): Likewise.
55159         * lib/iconv_close.c (iconv_close): Likewise.
55160
55161 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55162
55163         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55164
55165 2007-10-15  Bruno Haible  <bruno@clisp.org>
55166
55167         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55168         <stddef.h> instead of <stdlib.h> since we only need NULL.
55169         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55170
55171 2007-10-15  Bruno Haible  <bruno@clisp.org>
55172
55173         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55174         Replace paragraph talking about LIBOBJS.
55175         Reported by Colin Watson <cjwatson@debian.org>.
55176
55177 2007-10-15  Bruno Haible  <bruno@clisp.org>
55178
55179         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55180         <stdlib.h> before using NULL.
55181
55182 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55183
55184         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55185         Reported by Albert Chin <china@thewrittenword.com>.
55186
55187 2007-10-14  Bruno Haible  <bruno@clisp.org>
55188
55189         * modules/iconv_open-utf-tests: New file.
55190         * tests/test-iconv-utf.c: New file.
55191
55192         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55193         * modules/iconv_open-utf: New file.
55194         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55195         (iconv, iconv_close): New declarations.
55196         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55197         be defined.
55198         (iconv_open): Add special handling of conversion between UTF-8 and
55199         UTF-{16,32}{BE,LE}.
55200         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55201         * lib/iconv_close.c: New file.
55202         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55203         gl_FUNC_ICONV_OPEN.
55204         (gl_FUNC_ICONV_OPEN): Use it.
55205         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55206         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55207         and REPLACE_ICONV_UTF.
55208         * modules/iconv_open (Depends-on): Add c-strcase.
55209         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55210         ICONV_CONST.
55211         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55212
55213 2007-10-13  Albert Chin  <china@thewrittenword.com>
55214             Bruno Haible  <bruno@clisp.org>
55215
55216         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55217         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55218
55219 2007-10-13  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55222         defined, use the ISO C99 inline semantics.
55223         * lib/argp.h (ARGP_EI): Likewise.
55224
55225 2007-10-13  Bruno Haible  <bruno@clisp.org>
55226
55227         Handle 'inline' change in gcc 4.3.0.
55228         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55229         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55230         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55231         argp_fmtstream_point): Disable 'extern' declaration if the function
55232         definition is going to be provided inline.
55233         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55234         semantics, not the ISO C99 inline semantics.
55235         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55236         'extern' declaration if the function definition is going to be provided
55237         inline.
55238         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55239         the GNU C inline semantics, not the ISO C99 inline semantics. With
55240         GCC 4.2, avoid a warning.
55241
55242 2007-10-13  Bruno Haible  <bruno@clisp.org>
55243
55244         * lib/freading.h (freading): Enable the use of __freading for
55245         glibc >= 2.7.
55246         * lib/freading.c (freading): Likewise.
55247
55248 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55249
55250         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55251         "warning: C99 inline functions are not supported; using GNU89".
55252
55253 2007-10-12  Bruno Haible  <bruno@clisp.org>
55254
55255         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55256         of 2.
55257         * tests/test-ceilf2.c: New file.
55258         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55259
55260         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55261         * modules/ceilf-tests: Update.
55262
55263 2007-10-12  Bruno Haible  <bruno@clisp.org>
55264
55265         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55266         of 2.
55267         * tests/test-floorf2.c: New file.
55268         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55269
55270         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55271         * modules/floorf-tests: Update.
55272
55273 2007-10-12  Bruno Haible  <bruno@clisp.org>
55274
55275         * tests/test-trunc2.c: New file.
55276         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55277
55278         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55279         * modules/trunc-tests: Update.
55280
55281 2007-10-12  Bruno Haible  <bruno@clisp.org>
55282
55283         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55284         of 2.
55285         * tests/test-truncf2.c: New file.
55286         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55287
55288         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55289         * modules/truncf-tests: Update.
55290
55291 2007-10-11  Eric Blake  <ebb9@byu.net>
55292
55293         Don't claim strerror is broken on Interix.
55294         * doc/functions/strerror.texi (strerror): Known broken systems are
55295         now Solaris 8, and not Interix.
55296         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55297         Interix on cross-compile.
55298         Reported by Martin Koeppe in
55299         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55300
55301 2007-10-11  Bruno Haible  <bruno@clisp.org>
55302
55303         * modules/i-ring-tests: New file.
55304         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55305         instead of assert.
55306
55307 2007-10-11  Bruno Haible  <bruno@clisp.org>
55308
55309         * modules/filenamecat-tests: New file.
55310         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55311         * lib/filenamecat.c: Remove test code.
55312
55313 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55314
55315         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55316
55317         * lib/strerror.c: Include <string.h> always, to test interface,
55318         and to remove the need for the dummy.
55319         Include intprops.h to compute width instead of doing it ourselves
55320         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55321         (strerror): Define it to return NULL if there's no system strerror.
55322         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55323         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55324         ancient pre-strerror Unix systems well any more.  Saying "unknown
55325         system error" is enough.
55326         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55327         simpler strerror.c implementation.
55328         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55329         Simplify the tests to reflect the simpler strerror implementation.
55330         * modules/strerror (Depends-on): Add intprops.
55331
55332 2007-10-09  Eric Blake  <ebb9@byu.net>
55333
55334         Silence test-fpending.
55335         * modules/fpending-tests (Files): Add wrapper script.
55336         * tests/test-fpending.sh: New file.
55337
55338 2007-10-09  Bruno Haible  <bruno@clisp.org>
55339
55340         * MODULES.html.sh (func_module): Don't create a hyperlink for
55341         function names like 'printf_frexp'.
55342         (Misc): Add crc, memxor.
55343         (Characteristics of floating types): New section.
55344         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55345         isnanf-nolibm, signbit, trunc, truncf, truncl.
55346         (Enhancements for ISO C 99 functions): New subsection Input/output.
55347         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55348         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55349         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55350         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55351         (Enhancements for POSIX:2001 functions): Add chdir-long.
55352         (File system functions): Add areadlink, chdir-safer, read-file.
55353         Remove cycle-check.
55354         (File system as inode set): New section.
55355         (Date and time): Add gethrxtime.
55356         (Multithreading): Add openmp.
55357         (Internationalization functions): Add localename.
55358         (Unicode string functions): Add unistr/u*-mbsnlen.
55359         (Support for maintaining and releasing projects): Add git-version-gen.
55360         (Lone files): Remove directories.
55361
55362 2007-10-08  Ben Pfaff  <blp@gnu.org>
55363
55364         * lib/xmalloca.h: Fix typo in comment.
55365
55366 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55367
55368         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55369         when avoiding problems with integer overflow.  Use a portable test
55370         instead.
55371
55372 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55373
55374         * modules/dummy (License): Change to LGPLv2+.
55375         * modules/float (License): Likewise
55376         * modules/realloc (License): Likewise
55377         * modules/stdlib (License): Likewise
55378
55379 2007-10-07  Bruno Haible  <bruno@clisp.org>
55380
55381         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55382         * floor.c (TWO_MANT_DIG): Likewise.
55383         * ceil.c (TWO_MANT_DIG): Likewise.
55384         Reported by Ben Pfaff.
55385
55386 2007-10-07  Bruno Haible  <bruno@clisp.org>
55387
55388         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55389         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55390         * lib/frexp.c (FUNC): Likewise.
55391         * lib/printf-frexp.h (printf_frexp): Likewise.
55392         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55393         * lib/printf-frexp.c (FUNC): Likewise.
55394         Suggested by Jim Meyering.
55395
55396 2007-10-07  Jim Meyering  <meyering@redhat.com>
55397
55398         Make xnanosleep's integer overflow test more robust.
55399         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55400         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55401
55402 2007-10-07  Bruno Haible  <bruno@clisp.org>
55403
55404         * NEWS: Mention the license change.
55405
55406         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55407         abbreviations in the modules files.
55408
55409         Change copyright notice from GPLv2+ to GPLv3+.
55410         * README: Change copyright notice.
55411         * MODULES.html.sh: Likewise.
55412         * build-aux/bootstrap.conf: Likewise.
55413         * build-aux/config.libpath: Likewise.
55414         * build-aux/csharpcomp.sh.in: Likewise.
55415         * build-aux/csharpexec.sh.in: Likewise.
55416         * build-aux/install-reloc: Likewise.
55417         * build-aux/javacomp.sh.in: Likewise.
55418         * build-aux/javaexec.sh.in: Likewise.
55419         * build-aux/ldd.sh.in: Likewise.
55420         * build-aux/reloc-ldflags: Likewise.
55421         * build-aux/relocatable.sh.in: Likewise.
55422         * build-aux/x-to-1.in: Likewise.
55423         * check-module: Likewise.
55424         * config/srclistvars.sh: Likewise.
55425         * gnulib-tool: Likewise.
55426         * lib/acl-internal.h: Likewise.
55427         * lib/acl.c: Likewise.
55428         * lib/acl.h: Likewise.
55429         * lib/acl_entries.c: Likewise.
55430         * lib/areadlink-with-size.c: Likewise.
55431         * lib/areadlink.c: Likewise.
55432         * lib/areadlink.h: Likewise.
55433         * lib/argmatch.c: Likewise.
55434         * lib/argmatch.h: Likewise.
55435         * lib/argp-ba.c: Likewise.
55436         * lib/argp-eexst.c: Likewise.
55437         * lib/argp-fmtstream.c: Likewise.
55438         * lib/argp-fmtstream.h: Likewise.
55439         * lib/argp-fs-xinl.c: Likewise.
55440         * lib/argp-help.c: Likewise.
55441         * lib/argp-namefrob.h: Likewise.
55442         * lib/argp-parse.c: Likewise.
55443         * lib/argp-pin.c: Likewise.
55444         * lib/argp-pv.c: Likewise.
55445         * lib/argp-pvh.c: Likewise.
55446         * lib/argp-xinl.c: Likewise.
55447         * lib/argp.h: Likewise.
55448         * lib/at-func.c: Likewise.
55449         * lib/atanl.c: Likewise.
55450         * lib/backupfile.c: Likewise.
55451         * lib/backupfile.h: Likewise.
55452         * lib/basename.c: Likewise.
55453         * lib/binary-io.h: Likewise.
55454         * lib/byteswap.in.h: Likewise.
55455         * lib/c-stack.c: Likewise.
55456         * lib/c-stack.h: Likewise.
55457         * lib/c-strcasestr.c: Likewise.
55458         * lib/c-strcasestr.h: Likewise.
55459         * lib/c-strstr.c: Likewise.
55460         * lib/c-strstr.h: Likewise.
55461         * lib/c-strtod.c: Likewise.
55462         * lib/calloc.c: Likewise.
55463         * lib/canon-host.c: Likewise.
55464         * lib/canon-host.h: Likewise.
55465         * lib/canonicalize-lgpl.c: Likewise.
55466         * lib/canonicalize.c: Likewise.
55467         * lib/canonicalize.h: Likewise.
55468         * lib/ceil.c: Likewise.
55469         * lib/ceilf.c: Likewise.
55470         * lib/ceill.c: Likewise.
55471         * lib/chdir-long.c: Likewise.
55472         * lib/chdir-long.h: Likewise.
55473         * lib/chdir-safer.c: Likewise.
55474         * lib/chdir-safer.h: Likewise.
55475         * lib/chown.c: Likewise.
55476         * lib/classpath.c: Likewise.
55477         * lib/classpath.h: Likewise.
55478         * lib/clean-temp.c: Likewise.
55479         * lib/clean-temp.h: Likewise.
55480         * lib/cloexec.c: Likewise.
55481         * lib/close-stream.c: Likewise.
55482         * lib/closein.c: Likewise.
55483         * lib/closein.h: Likewise.
55484         * lib/closeout.c: Likewise.
55485         * lib/closeout.h: Likewise.
55486         * lib/concat-filename.c: Likewise.
55487         * lib/copy-file.c: Likewise.
55488         * lib/copy-file.h: Likewise.
55489         * lib/count-one-bits.h: Likewise.
55490         * lib/crc.c: Likewise.
55491         * lib/crc.h: Likewise.
55492         * lib/creat-safer.c: Likewise.
55493         * lib/csharpcomp.c: Likewise.
55494         * lib/csharpcomp.h: Likewise.
55495         * lib/csharpexec.c: Likewise.
55496         * lib/csharpexec.h: Likewise.
55497         * lib/cycle-check.c: Likewise.
55498         * lib/cycle-check.h: Likewise.
55499         * lib/diacrit.c: Likewise.
55500         * lib/diacrit.h: Likewise.
55501         * lib/diffseq.h: Likewise.
55502         * lib/dirchownmod.c: Likewise.
55503         * lib/dirent.in.h: Likewise.
55504         * lib/dirfd.c: Likewise.
55505         * lib/dirfd.h: Likewise.
55506         * lib/dirname.c: Likewise.
55507         * lib/dirname.h: Likewise.
55508         * lib/dummy.c: Likewise.
55509         * lib/dup-safer.c: Likewise.
55510         * lib/dup2.c: Likewise.
55511         * lib/eealloc.h: Likewise.
55512         * lib/error.c: Likewise.
55513         * lib/error.h: Likewise.
55514         * lib/euidaccess.c: Likewise.
55515         * lib/exclude.c: Likewise.
55516         * lib/exclude.h: Likewise.
55517         * lib/execute.c: Likewise.
55518         * lib/execute.h: Likewise.
55519         * lib/exitfail.c: Likewise.
55520         * lib/exitfail.h: Likewise.
55521         * lib/expl.c: Likewise.
55522         * lib/fatal-signal.c: Likewise.
55523         * lib/fatal-signal.h: Likewise.
55524         * lib/fbufmode.c: Likewise.
55525         * lib/fbufmode.h: Likewise.
55526         * lib/fchdir.c: Likewise.
55527         * lib/fchmodat.c: Likewise.
55528         * lib/fchownat.c: Likewise.
55529         * lib/fcntl--.h: Likewise.
55530         * lib/fcntl-safer.h: Likewise.
55531         * lib/fcntl.in.h: Likewise.
55532         * lib/fd-safer.c: Likewise.
55533         * lib/fflush.c: Likewise.
55534         * lib/file-has-acl.c: Likewise.
55535         * lib/file-set.c: Likewise.
55536         * lib/file-type.c: Likewise.
55537         * lib/file-type.h: Likewise.
55538         * lib/fileblocks.c: Likewise.
55539         * lib/filemode.c: Likewise.
55540         * lib/filemode.h: Likewise.
55541         * lib/filename.h: Likewise.
55542         * lib/filenamecat.c: Likewise.
55543         * lib/filenamecat.h: Likewise.
55544         * lib/findprog.c: Likewise.
55545         * lib/findprog.h: Likewise.
55546         * lib/float.in.h: Likewise.
55547         * lib/floor.c: Likewise.
55548         * lib/floorf.c: Likewise.
55549         * lib/floorl.c: Likewise.
55550         * lib/fopen-safer.c: Likewise.
55551         * lib/fopen.c: Likewise.
55552         * lib/fpending.c: Likewise.
55553         * lib/fpending.h: Likewise.
55554         * lib/fprintf.c: Likewise.
55555         * lib/fprintftime.h: Likewise.
55556         * lib/fpucw.h: Likewise.
55557         * lib/fpurge.c: Likewise.
55558         * lib/fpurge.h: Likewise.
55559         * lib/freadable.c: Likewise.
55560         * lib/freadable.h: Likewise.
55561         * lib/freadahead.c: Likewise.
55562         * lib/freadahead.h: Likewise.
55563         * lib/freading.c: Likewise.
55564         * lib/freading.h: Likewise.
55565         * lib/free.c: Likewise.
55566         * lib/freopen.c: Likewise.
55567         * lib/frexp.c: Likewise.
55568         * lib/frexpl.c: Likewise.
55569         * lib/fseek.c: Likewise.
55570         * lib/fseterr.c: Likewise.
55571         * lib/fseterr.h: Likewise.
55572         * lib/fstatat.c: Likewise.
55573         * lib/fstrcmp.c: Likewise.
55574         * lib/fstrcmp.h: Likewise.
55575         * lib/fsusage.c: Likewise.
55576         * lib/fsusage.h: Likewise.
55577         * lib/ftell.c: Likewise.
55578         * lib/ftello.c: Likewise.
55579         * lib/fts-cycle.c: Likewise.
55580         * lib/fts.c: Likewise.
55581         * lib/fts_.h: Likewise.
55582         * lib/full-read.c: Likewise.
55583         * lib/full-read.h: Likewise.
55584         * lib/full-write.c: Likewise.
55585         * lib/full-write.h: Likewise.
55586         * lib/fwritable.c: Likewise.
55587         * lib/fwritable.h: Likewise.
55588         * lib/fwriteerror.c: Likewise.
55589         * lib/fwriteerror.h: Likewise.
55590         * lib/fwriting.c: Likewise.
55591         * lib/fwriting.h: Likewise.
55592         * lib/gcd.c: Likewise.
55593         * lib/gcd.h: Likewise.
55594         * lib/getcwd.c: Likewise.
55595         * lib/getdate.h: Likewise.
55596         * lib/getdate.y: Likewise.
55597         * lib/getdomainname.c: Likewise.
55598         * lib/getdomainname.h: Likewise.
55599         * lib/getgroups.c: Likewise.
55600         * lib/gethostname.c: Likewise.
55601         * lib/gethrxtime.c: Likewise.
55602         * lib/gethrxtime.h: Likewise.
55603         * lib/getloadavg.c: Likewise.
55604         * lib/getndelim2.c: Likewise.
55605         * lib/getndelim2.h: Likewise.
55606         * lib/getnline.c: Likewise.
55607         * lib/getnline.h: Likewise.
55608         * lib/getopt.c: Likewise.
55609         * lib/getopt.in.h: Likewise.
55610         * lib/getopt1.c: Likewise.
55611         * lib/getopt_int.h: Likewise.
55612         * lib/getpagesize.h: Likewise.
55613         * lib/getsubopt.c: Likewise.
55614         * lib/gettime.c: Likewise.
55615         * lib/getugroups.c: Likewise.
55616         * lib/getugroups.h: Likewise.
55617         * lib/getusershell.c: Likewise.
55618         * lib/gl_anyavltree_list1.h: Likewise.
55619         * lib/gl_anyavltree_list2.h: Likewise.
55620         * lib/gl_anyhash_list1.h: Likewise.
55621         * lib/gl_anyhash_list2.h: Likewise.
55622         * lib/gl_anylinked_list1.h: Likewise.
55623         * lib/gl_anylinked_list2.h: Likewise.
55624         * lib/gl_anyrbtree_list1.h: Likewise.
55625         * lib/gl_anyrbtree_list2.h: Likewise.
55626         * lib/gl_anytree_list1.h: Likewise.
55627         * lib/gl_anytree_list2.h: Likewise.
55628         * lib/gl_anytree_oset.h: Likewise.
55629         * lib/gl_anytreehash_list1.h: Likewise.
55630         * lib/gl_anytreehash_list2.h: Likewise.
55631         * lib/gl_array_list.c: Likewise.
55632         * lib/gl_array_list.h: Likewise.
55633         * lib/gl_array_oset.c: Likewise.
55634         * lib/gl_array_oset.h: Likewise.
55635         * lib/gl_avltree_list.c: Likewise.
55636         * lib/gl_avltree_list.h: Likewise.
55637         * lib/gl_avltree_oset.c: Likewise.
55638         * lib/gl_avltree_oset.h: Likewise.
55639         * lib/gl_avltreehash_list.c: Likewise.
55640         * lib/gl_avltreehash_list.h: Likewise.
55641         * lib/gl_carray_list.c: Likewise.
55642         * lib/gl_carray_list.h: Likewise.
55643         * lib/gl_linked_list.c: Likewise.
55644         * lib/gl_linked_list.h: Likewise.
55645         * lib/gl_linkedhash_list.c: Likewise.
55646         * lib/gl_linkedhash_list.h: Likewise.
55647         * lib/gl_list.c: Likewise.
55648         * lib/gl_list.h: Likewise.
55649         * lib/gl_oset.c: Likewise.
55650         * lib/gl_oset.h: Likewise.
55651         * lib/gl_rbtree_list.c: Likewise.
55652         * lib/gl_rbtree_list.h: Likewise.
55653         * lib/gl_rbtree_oset.c: Likewise.
55654         * lib/gl_rbtree_oset.h: Likewise.
55655         * lib/gl_rbtreehash_list.c: Likewise.
55656         * lib/gl_rbtreehash_list.h: Likewise.
55657         * lib/gl_sublist.c: Likewise.
55658         * lib/gl_sublist.h: Likewise.
55659         * lib/group-member.c: Likewise.
55660         * lib/group-member.h: Likewise.
55661         * lib/hard-locale.c: Likewise.
55662         * lib/hard-locale.h: Likewise.
55663         * lib/hash-pjw.c: Likewise.
55664         * lib/hash-pjw.h: Likewise.
55665         * lib/hash-triple.c: Likewise.
55666         * lib/hash.c: Likewise.
55667         * lib/hash.h: Likewise.
55668         * lib/human.c: Likewise.
55669         * lib/human.h: Likewise.
55670         * lib/i-ring.c: Likewise.
55671         * lib/i-ring.h: Likewise.
55672         * lib/idcache.c: Likewise.
55673         * lib/imaxabs.c: Likewise.
55674         * lib/imaxdiv.c: Likewise.
55675         * lib/inet_pton.c: Likewise.
55676         * lib/inet_pton.h: Likewise.
55677         * lib/intprops.h: Likewise.
55678         * lib/inttostr.c: Likewise.
55679         * lib/inttostr.h: Likewise.
55680         * lib/inttypes.in.h: Likewise.
55681         * lib/isapipe.c: Likewise.
55682         * lib/isdir.c: Likewise.
55683         * lib/isnan.c: Likewise.
55684         * lib/isnan.h: Likewise.
55685         * lib/isnanf.c: Likewise.
55686         * lib/isnanf.h: Likewise.
55687         * lib/isnanl-nolibm.h: Likewise.
55688         * lib/isnanl.c: Likewise.
55689         * lib/isnanl.h: Likewise.
55690         * lib/javacomp.c: Likewise.
55691         * lib/javacomp.h: Likewise.
55692         * lib/javaexec.c: Likewise.
55693         * lib/javaexec.h: Likewise.
55694         * lib/javaversion.c: Likewise.
55695         * lib/javaversion.h: Likewise.
55696         * lib/javaversion.java: Likewise.
55697         * lib/lbrkprop.h: Likewise.
55698         * lib/lchmod.h: Likewise.
55699         * lib/lchown.c: Likewise.
55700         * lib/ldexpl.c: Likewise.
55701         * lib/linebreak.c: Likewise.
55702         * lib/linebreak.h: Likewise.
55703         * lib/linebuffer.c: Likewise.
55704         * lib/linebuffer.h: Likewise.
55705         * lib/locale.in.h: Likewise.
55706         * lib/logl.c: Likewise.
55707         * lib/long-options.c: Likewise.
55708         * lib/long-options.h: Likewise.
55709         * lib/lstat.c: Likewise.
55710         * lib/lstat.h: Likewise.
55711         * lib/math.in.h: Likewise.
55712         * lib/mbchar.c: Likewise.
55713         * lib/mbchar.h: Likewise.
55714         * lib/mbfile.h: Likewise.
55715         * lib/mbiter.h: Likewise.
55716         * lib/mbscasecmp.c: Likewise.
55717         * lib/mbscasestr.c: Likewise.
55718         * lib/mbschr.c: Likewise.
55719         * lib/mbscspn.c: Likewise.
55720         * lib/mbslen.c: Likewise.
55721         * lib/mbsncasecmp.c: Likewise.
55722         * lib/mbsnlen.c: Likewise.
55723         * lib/mbspbrk.c: Likewise.
55724         * lib/mbspcasecmp.c: Likewise.
55725         * lib/mbsrchr.c: Likewise.
55726         * lib/mbssep.c: Likewise.
55727         * lib/mbsspn.c: Likewise.
55728         * lib/mbsstr.c: Likewise.
55729         * lib/mbstok_r.c: Likewise.
55730         * lib/mbswidth.c: Likewise.
55731         * lib/mbswidth.h: Likewise.
55732         * lib/mbuiter.h: Likewise.
55733         * lib/memcasecmp.c: Likewise.
55734         * lib/memcasecmp.h: Likewise.
55735         * lib/memchr.c: Likewise.
55736         * lib/memcmp.c: Likewise.
55737         * lib/memcoll.c: Likewise.
55738         * lib/memcoll.h: Likewise.
55739         * lib/memcpy.c: Likewise.
55740         * lib/memrchr.c: Likewise.
55741         * lib/mkancesdirs.c: Likewise.
55742         * lib/mkdir-p.c: Likewise.
55743         * lib/mkdir-p.h: Likewise.
55744         * lib/mkdir.c: Likewise.
55745         * lib/mkdirat.c: Likewise.
55746         * lib/mkdtemp.c: Likewise.
55747         * lib/mkstemp-safer.c: Likewise.
55748         * lib/mkstemp.c: Likewise.
55749         * lib/modechange.c: Likewise.
55750         * lib/modechange.h: Likewise.
55751         * lib/mountlist.c: Likewise.
55752         * lib/mountlist.h: Likewise.
55753         * lib/mpsort.c: Likewise.
55754         * lib/nanosleep.c: Likewise.
55755         * lib/obstack.c: Likewise.
55756         * lib/obstack.h: Likewise.
55757         * lib/open-safer.c: Likewise.
55758         * lib/open.c: Likewise.
55759         * lib/openat-die.c: Likewise.
55760         * lib/openat-priv.h: Likewise.
55761         * lib/openat-proc.c: Likewise.
55762         * lib/openat.c: Likewise.
55763         * lib/openat.h: Likewise.
55764         * lib/pagealign_alloc.c: Likewise.
55765         * lib/pagealign_alloc.h: Likewise.
55766         * lib/physmem.c: Likewise.
55767         * lib/physmem.h: Likewise.
55768         * lib/pipe-safer.c: Likewise.
55769         * lib/pipe.c: Likewise.
55770         * lib/pipe.h: Likewise.
55771         * lib/posixtm.c: Likewise.
55772         * lib/posixtm.h: Likewise.
55773         * lib/posixver.c: Likewise.
55774         * lib/printf-frexp.c: Likewise.
55775         * lib/printf-frexp.h: Likewise.
55776         * lib/printf-frexpl.c: Likewise.
55777         * lib/printf-frexpl.h: Likewise.
55778         * lib/printf.c: Likewise.
55779         * lib/progname.c: Likewise.
55780         * lib/progname.h: Likewise.
55781         * lib/progreloc.c: Likewise.
55782         * lib/putenv.c: Likewise.
55783         * lib/quote.c: Likewise.
55784         * lib/quote.h: Likewise.
55785         * lib/quotearg.c: Likewise.
55786         * lib/quotearg.h: Likewise.
55787         * lib/raise.c: Likewise.
55788         * lib/readline.c: Likewise.
55789         * lib/readline.h: Likewise.
55790         * lib/readlink.c: Likewise.
55791         * lib/readtokens.c: Likewise.
55792         * lib/readtokens.h: Likewise.
55793         * lib/readtokens0.c: Likewise.
55794         * lib/readtokens0.h: Likewise.
55795         * lib/readutmp.c: Likewise.
55796         * lib/readutmp.h: Likewise.
55797         * lib/realloc.c: Likewise.
55798         * lib/relocwrapper.c: Likewise.
55799         * lib/rename-dest-slash.c: Likewise.
55800         * lib/rename.c: Likewise.
55801         * lib/rmdir.c: Likewise.
55802         * lib/rpmatch.c: Likewise.
55803         * lib/safe-read.c: Likewise.
55804         * lib/safe-read.h: Likewise.
55805         * lib/safe-write.c: Likewise.
55806         * lib/safe-write.h: Likewise.
55807         * lib/same-inode.h: Likewise.
55808         * lib/same.c: Likewise.
55809         * lib/same.h: Likewise.
55810         * lib/save-cwd.c: Likewise.
55811         * lib/save-cwd.h: Likewise.
55812         * lib/savedir.c: Likewise.
55813         * lib/savedir.h: Likewise.
55814         * lib/savewd.c: Likewise.
55815         * lib/savewd.h: Likewise.
55816         * lib/search.in.h: Likewise.
55817         * lib/setenv.c: Likewise.
55818         * lib/setenv.h: Likewise.
55819         * lib/settime.c: Likewise.
55820         * lib/sh-quote.c: Likewise.
55821         * lib/sh-quote.h: Likewise.
55822         * lib/sig2str.c: Likewise.
55823         * lib/sig2str.h: Likewise.
55824         * lib/signal.in.h: Likewise.
55825         * lib/signbitd.c: Likewise.
55826         * lib/signbitf.c: Likewise.
55827         * lib/signbitl.c: Likewise.
55828         * lib/sigprocmask.c: Likewise.
55829         * lib/sincosl.c: Likewise.
55830         * lib/sleep.c: Likewise.
55831         * lib/sprintf.c: Likewise.
55832         * lib/sqrtl.c: Likewise.
55833         * lib/stat-time.h: Likewise.
55834         * lib/stdio--.h: Likewise.
55835         * lib/stdio-safer.h: Likewise.
55836         * lib/stdlib--.h: Likewise.
55837         * lib/stdlib-safer.h: Likewise.
55838         * lib/stdlib.in.h: Likewise.
55839         * lib/stpcpy.c: Likewise.
55840         * lib/stpncpy.c: Likewise.
55841         * lib/strchrnul.c: Likewise.
55842         * lib/strcspn.c: Likewise.
55843         * lib/strerror.c: Likewise.
55844         * lib/strftime.c: Likewise.
55845         * lib/strftime.h: Likewise.
55846         * lib/striconveh.c: Likewise.
55847         * lib/striconveh.h: Likewise.
55848         * lib/striconveha.c: Likewise.
55849         * lib/striconveha.h: Likewise.
55850         * lib/stripslash.c: Likewise.
55851         * lib/strnlen1.c: Likewise.
55852         * lib/strnlen1.h: Likewise.
55853         * lib/strtod.c: Likewise.
55854         * lib/strtoimax.c: Likewise.
55855         * lib/strtok_r.c: Likewise.
55856         * lib/strtol.c: Likewise.
55857         * lib/strtoll.c: Likewise.
55858         * lib/strtoul.c: Likewise.
55859         * lib/strtoull.c: Likewise.
55860         * lib/sysexits.in.h: Likewise.
55861         * lib/tempname.c: Likewise.
55862         * lib/tempname.h: Likewise.
55863         * lib/timespec.h: Likewise.
55864         * lib/tls.c: Likewise.
55865         * lib/tls.h: Likewise.
55866         * lib/tmpdir.c: Likewise.
55867         * lib/tmpdir.h: Likewise.
55868         * lib/tmpfile-safer.c: Likewise.
55869         * lib/tmpfile.c: Likewise.
55870         * lib/trigl.c: Likewise.
55871         * lib/trigl.h: Likewise.
55872         * lib/trim.c: Likewise.
55873         * lib/trim.h: Likewise.
55874         * lib/trunc.c: Likewise.
55875         * lib/truncf.c: Likewise.
55876         * lib/truncl.c: Likewise.
55877         * lib/tsearch.c: Likewise.
55878         * lib/unicodeio.c: Likewise.
55879         * lib/unicodeio.h: Likewise.
55880         * lib/unistd--.h: Likewise.
55881         * lib/unistd-safer.h: Likewise.
55882         * lib/unistdio/ulc-fprintf.c: Likewise.
55883         * lib/unistdio/ulc-vfprintf.c: Likewise.
55884         * lib/unlinkdir.c: Likewise.
55885         * lib/unlinkdir.h: Likewise.
55886         * lib/unlocked-io.h: Likewise.
55887         * lib/unsetenv.c: Likewise.
55888         * lib/userspec.c: Likewise.
55889         * lib/utime.c: Likewise.
55890         * lib/utimecmp.c: Likewise.
55891         * lib/utimecmp.h: Likewise.
55892         * lib/utimens.c: Likewise.
55893         * lib/verify.h: Likewise.
55894         * lib/verror.c: Likewise.
55895         * lib/verror.h: Likewise.
55896         * lib/version-etc-fsf.c: Likewise.
55897         * lib/version-etc.c: Likewise.
55898         * lib/version-etc.h: Likewise.
55899         * lib/vfprintf.c: Likewise.
55900         * lib/vprintf.c: Likewise.
55901         * lib/vsprintf.c: Likewise.
55902         * lib/w32spawn.h: Likewise.
55903         * lib/wait-process.c: Likewise.
55904         * lib/wait-process.h: Likewise.
55905         * lib/wcwidth.c: Likewise.
55906         * lib/write-any-file.c: Likewise.
55907         * lib/xalloc-die.c: Likewise.
55908         * lib/xalloc.h: Likewise.
55909         * lib/xasprintf.c: Likewise.
55910         * lib/xgetcwd.c: Likewise.
55911         * lib/xgetcwd.h: Likewise.
55912         * lib/xgetdomainname.c: Likewise.
55913         * lib/xgetdomainname.h: Likewise.
55914         * lib/xgethostname.c: Likewise.
55915         * lib/xmalloc.c: Likewise.
55916         * lib/xmalloca.c: Likewise.
55917         * lib/xmalloca.h: Likewise.
55918         * lib/xmemcoll.c: Likewise.
55919         * lib/xnanosleep.c: Likewise.
55920         * lib/xreadlink.c: Likewise.
55921         * lib/xreadlink.h: Likewise.
55922         * lib/xsetenv.c: Likewise.
55923         * lib/xsetenv.h: Likewise.
55924         * lib/xstriconv.c: Likewise.
55925         * lib/xstriconv.h: Likewise.
55926         * lib/xstrndup.c: Likewise.
55927         * lib/xstrndup.h: Likewise.
55928         * lib/xstrtod.c: Likewise.
55929         * lib/xstrtod.h: Likewise.
55930         * lib/xstrtol-error.c: Likewise.
55931         * lib/xstrtol.c: Likewise.
55932         * lib/xstrtol.h: Likewise.
55933         * lib/xtime.h: Likewise.
55934         * lib/xvasprintf.c: Likewise.
55935         * lib/xvasprintf.h: Likewise.
55936         * lib/yesno.c: Likewise.
55937         * lib/yesno.h: Likewise.
55938         * posix-modules: Likewise.
55939         * tests/test-alloca-opt.c: Likewise.
55940         * tests/test-arcfour.c: Likewise.
55941         * tests/test-arctwo.c: Likewise.
55942         * tests/test-argmatch.c: Likewise.
55943         * tests/test-argp-2.sh: Likewise.
55944         * tests/test-argp.c: Likewise.
55945         * tests/test-arpa_inet.c: Likewise.
55946         * tests/test-array_list.c: Likewise.
55947         * tests/test-array_oset.c: Likewise.
55948         * tests/test-atexit.c: Likewise.
55949         * tests/test-avltree_list.c: Likewise.
55950         * tests/test-avltree_oset.c: Likewise.
55951         * tests/test-avltreehash_list.c: Likewise.
55952         * tests/test-base64.c: Likewise.
55953         * tests/test-binary-io.c: Likewise.
55954         * tests/test-byteswap.c: Likewise.
55955         * tests/test-c-ctype.c: Likewise.
55956         * tests/test-c-strcasecmp.c: Likewise.
55957         * tests/test-c-strcasestr.c: Likewise.
55958         * tests/test-c-strncasecmp.c: Likewise.
55959         * tests/test-c-strstr.c: Likewise.
55960         * tests/test-canonicalize-lgpl.c: Likewise.
55961         * tests/test-canonicalize.c: Likewise.
55962         * tests/test-carray_list.c: Likewise.
55963         * tests/test-ceilf.c: Likewise.
55964         * tests/test-ceill.c: Likewise.
55965         * tests/test-count-one-bits.c: Likewise.
55966         * tests/test-crc.c: Likewise.
55967         * tests/test-dirname.c: Likewise.
55968         * tests/test-fbufmode.c: Likewise.
55969         * tests/test-fcntl.c: Likewise.
55970         * tests/test-fflush.c: Likewise.
55971         * tests/test-floorf.c: Likewise.
55972         * tests/test-floorl.c: Likewise.
55973         * tests/test-fopen.c: Likewise.
55974         * tests/test-fprintf-posix.c: Likewise.
55975         * tests/test-fprintf-posix.h: Likewise.
55976         * tests/test-fpurge.c: Likewise.
55977         * tests/test-freadable.c: Likewise.
55978         * tests/test-freadahead.c: Likewise.
55979         * tests/test-freading.c: Likewise.
55980         * tests/test-freopen.c: Likewise.
55981         * tests/test-frexp.c: Likewise.
55982         * tests/test-frexpl.c: Likewise.
55983         * tests/test-fseek.c: Likewise.
55984         * tests/test-fseeko.c: Likewise.
55985         * tests/test-fseterr.c: Likewise.
55986         * tests/test-fstrcmp.c: Likewise.
55987         * tests/test-ftell.c: Likewise.
55988         * tests/test-ftello.c: Likewise.
55989         * tests/test-fwritable.c: Likewise.
55990         * tests/test-fwriting.c: Likewise.
55991         * tests/test-getaddrinfo.c: Likewise.
55992         * tests/test-getpass.c: Likewise.
55993         * tests/test-gettimeofday.c: Likewise.
55994         * tests/test-hmac-md5.c: Likewise.
55995         * tests/test-hmac-sha1.c: Likewise.
55996         * tests/test-iconv.c: Likewise.
55997         * tests/test-iconvme.c: Likewise.
55998         * tests/test-inttypes.c: Likewise.
55999         * tests/test-isnan.c: Likewise.
56000         * tests/test-isnanf.c: Likewise.
56001         * tests/test-isnanl-nolibm.c: Likewise.
56002         * tests/test-isnanl.c: Likewise.
56003         * tests/test-isnanl.h: Likewise.
56004         * tests/test-ldexpl.c: Likewise.
56005         * tests/test-linked_list.c: Likewise.
56006         * tests/test-linkedhash_list.c: Likewise.
56007         * tests/test-locale.c: Likewise.
56008         * tests/test-localename.c: Likewise.
56009         * tests/test-lock.c: Likewise.
56010         * tests/test-lseek.c: Likewise.
56011         * tests/test-malloca.c: Likewise.
56012         * tests/test-math.c: Likewise.
56013         * tests/test-mbscasecmp.c: Likewise.
56014         * tests/test-mbscasestr1.c: Likewise.
56015         * tests/test-mbscasestr2.c: Likewise.
56016         * tests/test-mbscasestr3.c: Likewise.
56017         * tests/test-mbscasestr4.c: Likewise.
56018         * tests/test-mbschr.c: Likewise.
56019         * tests/test-mbscspn.c: Likewise.
56020         * tests/test-mbsncasecmp.c: Likewise.
56021         * tests/test-mbspbrk.c: Likewise.
56022         * tests/test-mbspcasecmp.c: Likewise.
56023         * tests/test-mbsrchr.c: Likewise.
56024         * tests/test-mbsspn.c: Likewise.
56025         * tests/test-mbsstr1.c: Likewise.
56026         * tests/test-mbsstr2.c: Likewise.
56027         * tests/test-mbsstr3.c: Likewise.
56028         * tests/test-md5.c: Likewise.
56029         * tests/test-memmem.c: Likewise.
56030         * tests/test-netinet_in.c: Likewise.
56031         * tests/test-open.c: Likewise.
56032         * tests/test-printf-frexp.c: Likewise.
56033         * tests/test-printf-frexpl.c: Likewise.
56034         * tests/test-printf-posix.c: Likewise.
56035         * tests/test-printf-posix.h: Likewise.
56036         * tests/test-rbtree_list.c: Likewise.
56037         * tests/test-rbtree_oset.c: Likewise.
56038         * tests/test-rbtreehash_list.c: Likewise.
56039         * tests/test-read-file.c: Likewise.
56040         * tests/test-rijndael.c: Likewise.
56041         * tests/test-search.c: Likewise.
56042         * tests/test-signbit.c: Likewise.
56043         * tests/test-sleep.c: Likewise.
56044         * tests/test-snprintf-posix.c: Likewise.
56045         * tests/test-snprintf-posix.h: Likewise.
56046         * tests/test-snprintf.c: Likewise.
56047         * tests/test-sprintf-posix.c: Likewise.
56048         * tests/test-sprintf-posix.h: Likewise.
56049         * tests/test-stat-time.c: Likewise.
56050         * tests/test-stdbool.c: Likewise.
56051         * tests/test-stdint.c: Likewise.
56052         * tests/test-stdio.c: Likewise.
56053         * tests/test-stdlib.c: Likewise.
56054         * tests/test-stpncpy.c: Likewise.
56055         * tests/test-strcasestr.c: Likewise.
56056         * tests/test-striconv.c: Likewise.
56057         * tests/test-striconveh.c: Likewise.
56058         * tests/test-striconveha.c: Likewise.
56059         * tests/test-string.c: Likewise.
56060         * tests/test-sys_select.c: Likewise.
56061         * tests/test-sys_socket.c: Likewise.
56062         * tests/test-sys_stat.c: Likewise.
56063         * tests/test-sys_time.c: Likewise.
56064         * tests/test-sysexits.c: Likewise.
56065         * tests/test-time.c: Likewise.
56066         * tests/test-tls.c: Likewise.
56067         * tests/test-trunc.c: Likewise.
56068         * tests/test-truncf.c: Likewise.
56069         * tests/test-truncl.c: Likewise.
56070         * tests/test-unistd.c: Likewise.
56071         * tests/test-vasnprintf-posix.c: Likewise.
56072         * tests/test-vasnprintf-posix2.c: Likewise.
56073         * tests/test-vasnprintf.c: Likewise.
56074         * tests/test-vasprintf-posix.c: Likewise.
56075         * tests/test-vasprintf.c: Likewise.
56076         * tests/test-verify.c: Likewise.
56077         * tests/test-vfprintf-posix.c: Likewise.
56078         * tests/test-vprintf-posix.c: Likewise.
56079         * tests/test-vsnprintf-posix.c: Likewise.
56080         * tests/test-vsnprintf.c: Likewise.
56081         * tests/test-vsprintf-posix.c: Likewise.
56082         * tests/test-wchar.c: Likewise.
56083         * tests/test-wctype.c: Likewise.
56084         * tests/test-wcwidth.c: Likewise.
56085         * tests/test-xstrtol.c: Likewise.
56086         * tests/test-xvasprintf.c: Likewise.
56087         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56088         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56089         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56090         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56091         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56092         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56093         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56094         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56095         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56096         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56097         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56098         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56099         * tests/uniname/test-uninames.c: Likewise.
56100         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56101         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56102         * tests/unistdio/test-u16-printf1.h: Likewise.
56103         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56104         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56105         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56106         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56107         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56108         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56109         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56110         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56111         * tests/unistdio/test-u32-printf1.h: Likewise.
56112         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56113         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56114         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56115         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56116         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56117         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56118         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56119         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56120         * tests/unistdio/test-u8-printf1.h: Likewise.
56121         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56122         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56123         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56124         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56125         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56126         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56127         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56128         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56129         * tests/unistdio/test-ulc-printf1.h: Likewise.
56130         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56131         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56132         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56133         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56134         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56135         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56136         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56137         * tests/uniwidth/test-u16-width.c: Likewise.
56138         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56139         * tests/uniwidth/test-u32-width.c: Likewise.
56140         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56141         * tests/uniwidth/test-u8-width.c: Likewise.
56142         * tests/uniwidth/test-uc_width.c: Likewise.
56143         * config/srclist-update: Likewise.
56144         (fixlicense): Update to GPLv3+.
56145
56146         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56147         * tests/test-tsearch.c: Change copyright notice.
56148
56149         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56150         * lib/c-strcaseeq.h: Change copyright notice.
56151         * lib/streq.h: Likewise.
56152         * lib/uniconv.h: Likewise.
56153         * lib/uniconv/u-conv-from-enc.h: Likewise.
56154         * lib/uniconv/u-conv-to-enc.h: Likewise.
56155         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56156         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56157         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56158         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56159         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56160         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56161         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56162         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56163         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56164         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56165         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56166         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56167         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56168         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56169         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56170         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56171         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56172         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56173         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56174         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56175         * lib/uniname.h: Likewise.
56176         * lib/uniname/uniname.c: Likewise.
56177         * lib/unistdio.h: Likewise.
56178         * lib/unistdio/u-asnprintf.h: Likewise.
56179         * lib/unistdio/u-asprintf.h: Likewise.
56180         * lib/unistdio/u-printf-args.c: Likewise.
56181         * lib/unistdio/u-printf-args.h: Likewise.
56182         * lib/unistdio/u-printf-parse.h: Likewise.
56183         * lib/unistdio/u-snprintf.h: Likewise.
56184         * lib/unistdio/u-sprintf.h: Likewise.
56185         * lib/unistdio/u-vasprintf.h: Likewise.
56186         * lib/unistdio/u-vsnprintf.h: Likewise.
56187         * lib/unistdio/u-vsprintf.h: Likewise.
56188         * lib/unistdio/u16-asnprintf.c: Likewise.
56189         * lib/unistdio/u16-asprintf.c: Likewise.
56190         * lib/unistdio/u16-printf-parse.c: Likewise.
56191         * lib/unistdio/u16-snprintf.c: Likewise.
56192         * lib/unistdio/u16-sprintf.c: Likewise.
56193         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56194         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56195         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56196         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56197         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56198         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56199         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56200         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56201         * lib/unistdio/u16-vasnprintf.c: Likewise.
56202         * lib/unistdio/u16-vasprintf.c: Likewise.
56203         * lib/unistdio/u16-vsnprintf.c: Likewise.
56204         * lib/unistdio/u16-vsprintf.c: Likewise.
56205         * lib/unistdio/u32-asnprintf.c: Likewise.
56206         * lib/unistdio/u32-asprintf.c: Likewise.
56207         * lib/unistdio/u32-printf-parse.c: Likewise.
56208         * lib/unistdio/u32-snprintf.c: Likewise.
56209         * lib/unistdio/u32-sprintf.c: Likewise.
56210         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56211         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56212         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56213         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56214         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56215         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56216         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56217         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56218         * lib/unistdio/u32-vasnprintf.c: Likewise.
56219         * lib/unistdio/u32-vasprintf.c: Likewise.
56220         * lib/unistdio/u32-vsnprintf.c: Likewise.
56221         * lib/unistdio/u32-vsprintf.c: Likewise.
56222         * lib/unistdio/u8-asnprintf.c: Likewise.
56223         * lib/unistdio/u8-asprintf.c: Likewise.
56224         * lib/unistdio/u8-printf-parse.c: Likewise.
56225         * lib/unistdio/u8-snprintf.c: Likewise.
56226         * lib/unistdio/u8-sprintf.c: Likewise.
56227         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56228         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56229         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56230         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56231         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56232         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56233         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56234         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56235         * lib/unistdio/u8-vasnprintf.c: Likewise.
56236         * lib/unistdio/u8-vasprintf.c: Likewise.
56237         * lib/unistdio/u8-vsnprintf.c: Likewise.
56238         * lib/unistdio/u8-vsprintf.c: Likewise.
56239         * lib/unistdio/ulc-asnprintf.c: Likewise.
56240         * lib/unistdio/ulc-asprintf.c: Likewise.
56241         * lib/unistdio/ulc-printf-parse.c: Likewise.
56242         * lib/unistdio/ulc-snprintf.c: Likewise.
56243         * lib/unistdio/ulc-sprintf.c: Likewise.
56244         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56245         * lib/unistdio/ulc-vasprintf.c: Likewise.
56246         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56247         * lib/unistdio/ulc-vsprintf.c: Likewise.
56248         * lib/unistr.h: Likewise.
56249         * lib/unistr/u-cpy-alloc.h: Likewise.
56250         * lib/unistr/u-cpy.h: Likewise.
56251         * lib/unistr/u-endswith.h: Likewise.
56252         * lib/unistr/u-move.h: Likewise.
56253         * lib/unistr/u-set.h: Likewise.
56254         * lib/unistr/u-startswith.h: Likewise.
56255         * lib/unistr/u-stpcpy.h: Likewise.
56256         * lib/unistr/u-stpncpy.h: Likewise.
56257         * lib/unistr/u-strcat.h: Likewise.
56258         * lib/unistr/u-strcpy.h: Likewise.
56259         * lib/unistr/u-strcspn.h: Likewise.
56260         * lib/unistr/u-strdup.h: Likewise.
56261         * lib/unistr/u-strlen.h: Likewise.
56262         * lib/unistr/u-strncat.h: Likewise.
56263         * lib/unistr/u-strncpy.h: Likewise.
56264         * lib/unistr/u-strnlen.h: Likewise.
56265         * lib/unistr/u-strpbrk.h: Likewise.
56266         * lib/unistr/u-strspn.h: Likewise.
56267         * lib/unistr/u-strstr.h: Likewise.
56268         * lib/unistr/u-strtok.h: Likewise.
56269         * lib/unistr/u16-check.c: Likewise.
56270         * lib/unistr/u16-chr.c: Likewise.
56271         * lib/unistr/u16-cmp.c: Likewise.
56272         * lib/unistr/u16-cpy-alloc.c: Likewise.
56273         * lib/unistr/u16-cpy.c: Likewise.
56274         * lib/unistr/u16-endswith.c: Likewise.
56275         * lib/unistr/u16-mblen.c: Likewise.
56276         * lib/unistr/u16-mbsnlen.c: Likewise.
56277         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56278         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56279         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56280         * lib/unistr/u16-mbtouc.c: Likewise.
56281         * lib/unistr/u16-mbtoucr.c: Likewise.
56282         * lib/unistr/u16-move.c: Likewise.
56283         * lib/unistr/u16-next.c: Likewise.
56284         * lib/unistr/u16-prev.c: Likewise.
56285         * lib/unistr/u16-set.c: Likewise.
56286         * lib/unistr/u16-startswith.c: Likewise.
56287         * lib/unistr/u16-stpcpy.c: Likewise.
56288         * lib/unistr/u16-stpncpy.c: Likewise.
56289         * lib/unistr/u16-strcat.c: Likewise.
56290         * lib/unistr/u16-strchr.c: Likewise.
56291         * lib/unistr/u16-strcmp.c: Likewise.
56292         * lib/unistr/u16-strcpy.c: Likewise.
56293         * lib/unistr/u16-strcspn.c: Likewise.
56294         * lib/unistr/u16-strdup.c: Likewise.
56295         * lib/unistr/u16-strlen.c: Likewise.
56296         * lib/unistr/u16-strmblen.c: Likewise.
56297         * lib/unistr/u16-strmbtouc.c: Likewise.
56298         * lib/unistr/u16-strncat.c: Likewise.
56299         * lib/unistr/u16-strncmp.c: Likewise.
56300         * lib/unistr/u16-strncpy.c: Likewise.
56301         * lib/unistr/u16-strnlen.c: Likewise.
56302         * lib/unistr/u16-strpbrk.c: Likewise.
56303         * lib/unistr/u16-strrchr.c: Likewise.
56304         * lib/unistr/u16-strspn.c: Likewise.
56305         * lib/unistr/u16-strstr.c: Likewise.
56306         * lib/unistr/u16-strtok.c: Likewise.
56307         * lib/unistr/u16-to-u32.c: Likewise.
56308         * lib/unistr/u16-to-u8.c: Likewise.
56309         * lib/unistr/u16-uctomb-aux.c: Likewise.
56310         * lib/unistr/u16-uctomb.c: Likewise.
56311         * lib/unistr/u32-check.c: Likewise.
56312         * lib/unistr/u32-chr.c: Likewise.
56313         * lib/unistr/u32-cmp.c: Likewise.
56314         * lib/unistr/u32-cpy-alloc.c: Likewise.
56315         * lib/unistr/u32-cpy.c: Likewise.
56316         * lib/unistr/u32-endswith.c: Likewise.
56317         * lib/unistr/u32-mblen.c: Likewise.
56318         * lib/unistr/u32-mbsnlen.c: Likewise.
56319         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56320         * lib/unistr/u32-mbtouc.c: Likewise.
56321         * lib/unistr/u32-mbtoucr.c: Likewise.
56322         * lib/unistr/u32-move.c: Likewise.
56323         * lib/unistr/u32-next.c: Likewise.
56324         * lib/unistr/u32-prev.c: Likewise.
56325         * lib/unistr/u32-set.c: Likewise.
56326         * lib/unistr/u32-startswith.c: Likewise.
56327         * lib/unistr/u32-stpcpy.c: Likewise.
56328         * lib/unistr/u32-stpncpy.c: Likewise.
56329         * lib/unistr/u32-strcat.c: Likewise.
56330         * lib/unistr/u32-strchr.c: Likewise.
56331         * lib/unistr/u32-strcmp.c: Likewise.
56332         * lib/unistr/u32-strcpy.c: Likewise.
56333         * lib/unistr/u32-strcspn.c: Likewise.
56334         * lib/unistr/u32-strdup.c: Likewise.
56335         * lib/unistr/u32-strlen.c: Likewise.
56336         * lib/unistr/u32-strmblen.c: Likewise.
56337         * lib/unistr/u32-strmbtouc.c: Likewise.
56338         * lib/unistr/u32-strncat.c: Likewise.
56339         * lib/unistr/u32-strncmp.c: Likewise.
56340         * lib/unistr/u32-strncpy.c: Likewise.
56341         * lib/unistr/u32-strnlen.c: Likewise.
56342         * lib/unistr/u32-strpbrk.c: Likewise.
56343         * lib/unistr/u32-strrchr.c: Likewise.
56344         * lib/unistr/u32-strspn.c: Likewise.
56345         * lib/unistr/u32-strstr.c: Likewise.
56346         * lib/unistr/u32-strtok.c: Likewise.
56347         * lib/unistr/u32-to-u16.c: Likewise.
56348         * lib/unistr/u32-to-u8.c: Likewise.
56349         * lib/unistr/u32-uctomb.c: Likewise.
56350         * lib/unistr/u8-check.c: Likewise.
56351         * lib/unistr/u8-chr.c: Likewise.
56352         * lib/unistr/u8-cmp.c: Likewise.
56353         * lib/unistr/u8-cpy-alloc.c: Likewise.
56354         * lib/unistr/u8-cpy.c: Likewise.
56355         * lib/unistr/u8-endswith.c: Likewise.
56356         * lib/unistr/u8-mblen.c: Likewise.
56357         * lib/unistr/u8-mbsnlen.c: Likewise.
56358         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56359         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56360         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56361         * lib/unistr/u8-mbtouc.c: Likewise.
56362         * lib/unistr/u8-mbtoucr.c: Likewise.
56363         * lib/unistr/u8-move.c: Likewise.
56364         * lib/unistr/u8-next.c: Likewise.
56365         * lib/unistr/u8-prev.c: Likewise.
56366         * lib/unistr/u8-set.c: Likewise.
56367         * lib/unistr/u8-startswith.c: Likewise.
56368         * lib/unistr/u8-stpcpy.c: Likewise.
56369         * lib/unistr/u8-stpncpy.c: Likewise.
56370         * lib/unistr/u8-strcat.c: Likewise.
56371         * lib/unistr/u8-strchr.c: Likewise.
56372         * lib/unistr/u8-strcmp.c: Likewise.
56373         * lib/unistr/u8-strcpy.c: Likewise.
56374         * lib/unistr/u8-strcspn.c: Likewise.
56375         * lib/unistr/u8-strdup.c: Likewise.
56376         * lib/unistr/u8-strlen.c: Likewise.
56377         * lib/unistr/u8-strmblen.c: Likewise.
56378         * lib/unistr/u8-strmbtouc.c: Likewise.
56379         * lib/unistr/u8-strncat.c: Likewise.
56380         * lib/unistr/u8-strncmp.c: Likewise.
56381         * lib/unistr/u8-strncpy.c: Likewise.
56382         * lib/unistr/u8-strnlen.c: Likewise.
56383         * lib/unistr/u8-strpbrk.c: Likewise.
56384         * lib/unistr/u8-strrchr.c: Likewise.
56385         * lib/unistr/u8-strspn.c: Likewise.
56386         * lib/unistr/u8-strstr.c: Likewise.
56387         * lib/unistr/u8-strtok.c: Likewise.
56388         * lib/unistr/u8-to-u16.c: Likewise.
56389         * lib/unistr/u8-to-u32.c: Likewise.
56390         * lib/unistr/u8-uctomb-aux.c: Likewise.
56391         * lib/unistr/u8-uctomb.c: Likewise.
56392         * lib/unitypes.h: Likewise.
56393         * lib/uniwidth.h: Likewise.
56394         * lib/uniwidth/cjk.h: Likewise.
56395         * lib/uniwidth/u16-strwidth.c: Likewise.
56396         * lib/uniwidth/u16-width.c: Likewise.
56397         * lib/uniwidth/u32-strwidth.c: Likewise.
56398         * lib/uniwidth/u32-width.c: Likewise.
56399         * lib/uniwidth/u8-strwidth.c: Likewise.
56400         * lib/uniwidth/u8-width.c: Likewise.
56401         * lib/uniwidth/width.c: Likewise.
56402
56403 2007-10-07  Bruno Haible  <bruno@clisp.org>
56404
56405         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56406         The file is still under LGPL (see modules/inttypes).
56407
56408 2007-10-06  Bruno Haible  <bruno@clisp.org>
56409
56410         * modules/trunc (Dependencies): Add 'extensions'.
56411         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56412         Reported by Ben Pfaff <blp@gnu.org>.
56413
56414 2007-10-06  Bruno Haible  <bruno@clisp.org>
56415
56416         * modules/freopen-tests: New file.
56417         * tests/test-freopen.c: New file.
56418
56419         * modules/fopen-tests: New file.
56420         * tests/test-fopen.c: New file.
56421
56422         * modules/fopen: New file.
56423         * lib/fopen.c: New file.
56424         * m4/fopen.m4: New file.
56425         * modules/freopen: New file.
56426         * lib/freopen.c: New file.
56427         * m4/freopen.m4: New file.
56428         * lib/stdio.in.h (fopen, freopen): New declarations.
56429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56430         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56431         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56432         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56433         * doc/functions/fopen.texi: Mention the 'fopen' module.
56434         * doc/functions/freopen.texi: Mention the 'freopen' module.
56435
56436 2007-10-06  Bruno Haible  <bruno@clisp.org>
56437
56438         * modules/open-tests: New file.
56439         * tests/test-open.c: New file.
56440
56441         * modules/open: New file.
56442         * lib/open.c: New file.
56443         * m4/open.m4: New file.
56444         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56445         lib/open.c does.
56446         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56447         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56448         macros.
56449         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56450         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56451         REPLACE_OPEN.
56452         * doc/functions/open.texi: Mention the 'open' module.
56453
56454 2007-10-04  Bruno Haible  <bruno@clisp.org>
56455
56456         * modules/ceill-tests: New file.
56457         * tests/test-ceill.c: New file.
56458
56459         * modules/ceill: New file.
56460         * lib/ceill.c: Replace entire file.
56461         * m4/ceill.m4: New file.
56462         * lib/math.in.h (ceill): Replace declaration.
56463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56464         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56465         * doc/functions/ceill.texi: Mention the 'ceill' module.
56466         * modules/mathl (Files): Remove lib/ceill.c.
56467         (Depends-on): Add ceill.
56468
56469 2007-10-04  Bruno Haible  <bruno@clisp.org>
56470
56471         * modules/ceilf-tests: New file.
56472         * tests/test-ceilf.c: New file.
56473
56474         * modules/ceilf: New file.
56475         * lib/ceil.c: New file.
56476         * lib/ceilf.c: New file.
56477         * m4/ceilf.m4: New file.
56478         * lib/math.in.h (ceilf): New declaration.
56479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56480         HAVE_DECL_CEILF.
56481         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56482         HAVE_DECL_CEILF.
56483         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56484
56485 2007-10-04  Bruno Haible  <bruno@clisp.org>
56486
56487         * modules/floorl-tests: New file.
56488         * tests/test-floorl.c: New file.
56489
56490         * modules/floorl: New file.
56491         * lib/floorl.c: Replace entire file.
56492         * m4/floorl.m4: New file.
56493         * lib/math.in.h (floorl): Replace declaration.
56494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56495         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56496         * doc/functions/floorl.texi: Mention the 'floorl' module.
56497         * modules/mathl (Files): Remove lib/floorl.c.
56498         (Depends-on): Add floorl.
56499
56500 2007-10-04  Bruno Haible  <bruno@clisp.org>
56501
56502         * modules/floorf-tests: New file.
56503         * tests/test-floorf.c: New file.
56504
56505         * modules/floorf: New file.
56506         * lib/floor.c: New file.
56507         * lib/floorf.c: New file.
56508         * m4/floorf.m4: New file.
56509         * lib/math.in.h (floorf): New declaration.
56510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56511         HAVE_DECL_FLOORF.
56512         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56513         HAVE_DECL_FLOORF.
56514         * doc/functions/floorf.texi: Mention the 'floorf' module.
56515
56516 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56517             Bruno Haible  <bruno@clisp.org>
56518
56519         Advertise for the Git server instead of the CVS server.
56520         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56521         repository instead of the CVS one.
56522         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56523         about all VCS systems generically.
56524         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56525
56526 2007-10-04  Bruno Haible  <bruno@clisp.org>
56527
56528         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56529         means.
56530         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56531
56532 2007-10-04  Bruno Haible  <bruno@clisp.org>
56533
56534         * modules/truncl-tests: New file.
56535         * tests/test-truncl.c: New file.
56536
56537         * modules/truncl: New file.
56538         * lib/truncl.c: New file.
56539         * m4/truncl.m4: New file.
56540         * lib/math.in.h (truncl): New declaration.
56541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56542         HAVE_DECL_TRUNCL.
56543         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56544         HAVE_DECL_TRUNCL.
56545         * doc/functions/truncl.texi: Mention the 'truncl' module.
56546
56547 2007-10-04  Bruno Haible  <bruno@clisp.org>
56548
56549         * modules/truncf-tests: New file.
56550         * tests/test-truncf.c: New file.
56551
56552         * modules/truncf: New file.
56553         * lib/trunc.c: Make paramerizable through USE_* macros.
56554         * lib/truncf.c: New file.
56555         * m4/truncf.m4: New file.
56556         * lib/math.in.h (truncf): New declaration.
56557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56558         HAVE_DECL_TRUNCF.
56559         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56560         HAVE_DECL_TRUNCF.
56561         * doc/functions/truncf.texi: Mention the 'truncf' module.
56562
56563 2007-10-03  Bruno Haible  <bruno@clisp.org>
56564
56565         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56566         augmentation also for tests modules.
56567         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56568         * modules/atexit-tests (Makefile.am): Likewise.
56569         * modules/binary-io-tests (Makefile.am): Likewise.
56570         * modules/c-strcase-tests (Makefile.am): Likewise.
56571         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56572         * modules/canonicalize-tests (Makefile.am): Likewise.
56573         * modules/closein-tests (Makefile.am): Likewise.
56574         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56575         * modules/freadahead-tests (Makefile.am): Likewise.
56576         * modules/fseek-tests (Makefile.am): Likewise.
56577         * modules/fseeko-tests (Makefile.am): Likewise.
56578         * modules/ftell-tests (Makefile.am): Likewise.
56579         * modules/ftello-tests (Makefile.am): Likewise.
56580         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56581         * modules/isnanl-tests (Makefile.am): Likewise.
56582         * modules/lseek-tests (Makefile.am): Likewise.
56583         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56584         * modules/mbscasestr-tests (Makefile.am): Likewise.
56585         * modules/mbschr-tests (Makefile.am): Likewise.
56586         * modules/mbscspn-tests (Makefile.am): Likewise.
56587         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56588         * modules/mbspbrk-tests (Makefile.am): Likewise.
56589         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56590         * modules/mbsrchr-tests (Makefile.am): Likewise.
56591         * modules/mbsspn-tests (Makefile.am): Likewise.
56592         * modules/mbsstr-tests (Makefile.am): Likewise.
56593         * modules/printf-posix-tests (Makefile.am): Likewise.
56594         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56595         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56596         * modules/tsearch-tests (Makefile.am): Likewise.
56597         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56598         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56599         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56600         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56601         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56602         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56603         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56604         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56605         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56606         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56607         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56608         * modules/xstrtol-tests (Makefile.am): Likewise.
56609         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56610         * modules/yesno-tests (Makefile.am): Likewise.
56611
56612 2007-10-03  Bruno Haible  <bruno@clisp.org>
56613
56614         * modules/trunc-tests: New file.
56615         * tests/test-trunc.c: New file.
56616
56617         * modules/trunc: New file.
56618         * lib/trunc.c: New file.
56619         * m4/trunc.m4: New file.
56620         * lib/math.in.h (trunc): New declaration.
56621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56622         HAVE_DECL_TRUNC.
56623         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56624         HAVE_DECL_TRUNC.
56625         * doc/functions/trunc.texi: Mention the 'trunc' module.
56626
56627 2007-10-03  Bruno Haible  <bruno@clisp.org>
56628
56629         * tests/test-fpending.c: New file, mostly copied
56630         from coreutils/lib/t-fpending.c.
56631         * modules/fpending-tests: New file.
56632
56633 2007-10-03  Bruno Haible  <bruno@clisp.org>
56634
56635         Port the stdio extensions to QNX (untested).
56636         * lib/fseterr.c (fseterr): Add support for QNX.
56637         * lib/fbufmode.c (fbufmode): Likewise.
56638         * lib/freadable.c (freadable): Likewise.
56639         * lib/fwritable.c (fwritable): Likewise.
56640         * lib/freading.c (freading): Likewise.
56641         * lib/fwriting.c (fwriting): Likewise.
56642         * lib/freadahead.c (freadahed): Likewise.
56643         * lib/fpurge.c (fpurge): Likewise.
56644         * lib/fseeko.c (rpl_fseeko): Likewise.
56645
56646 2007-10-03  Bruno Haible  <bruno@clisp.org>
56647             Jim Meyering  <jim@meyering.net>
56648             Eric Blake  <ebb9@byu.net>
56649
56650         * doc/relocatable.texi: Use @command instead of @program.
56651
56652 2007-10-02  Jim Meyering  <jim@meyering.net>
56653
56654         Perform one more "_.h" -> ".in.h" substitution.
56655         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56656         instead of unistd_.h here, too.
56657
56658 2007-10-01  Bruno Haible  <bruno@clisp.org>
56659
56660         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56661         Needed for the alloca-opt module.
56662
56663 2007-09-30  Bruno Haible  <bruno@clisp.org>
56664
56665         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56666         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56667         alloca_.h.
56668         * lib/argz.in.h: Renamed from lib/argz_.h.
56669         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56670         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56671         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56672         byteswap_.h.
56673         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56674         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56675         dirent_.h.
56676         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56677         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56678         fcntl_.h.
56679         * lib/float.in.h: Renamed from lib/float_.h.
56680         * modules/float (Files, Makefile.am): Use float.in.h instead of
56681         float_.h.
56682         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56683         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56684         fnmatch_.h.
56685         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56686         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56687         getopt_.h.
56688         * lib/glob.in.h: Renamed from lib/glob_.h.
56689         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56690         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56691         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56692         iconv_.h.
56693         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56694         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56695         inttypes_.h.
56696         * lib/locale.in.h: Renamed from lib/locale_.h.
56697         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56698         locale_.h.
56699         * lib/math.in.h: Renamed from lib/math_.h.
56700         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56701         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56702         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56703         of netinet_in_.h. Add dependency.
56704         * lib/poll.in.h: Renamed from lib/poll_.h.
56705         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56706         * lib/search.in.h: Renamed from lib/search_.h.
56707         * modules/search (Files, Makefile.am): Use search.in.h instead of
56708         search_.h.
56709         * lib/signal.in.h: Renamed from lib/signal_.h.
56710         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56711         _signal.h.
56712         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56713         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56714         stdbool_.h.
56715         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56716         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56717         stdint_.h.
56718         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56719         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56720         stdio_.h.
56721         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56722         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56723         stdlib_.h.
56724         * lib/string.in.h: Renamed from lib/string_.h.
56725         * modules/string (Files, Makefile.am): Use string.in.h instead of
56726         string_.h.
56727         * doc/gnulib-tool.texi (Initial import): Update.
56728         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56729         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56730         of sys_select_.h. Add dependency.
56731         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56732         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56733         of sys_socket_.h.
56734         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56735         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56736         sys_stat_.h.
56737         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56738         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56739         sys_time_.h.
56740         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56741         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56742         sysexits_.h.
56743         * lib/time.in.h: Renamed from lib/time_.h.
56744         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56745         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56746         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56747         unistd_.h.
56748         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56749         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56750         wchar_.h.
56751         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56752         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56753         wctype_.h.
56754         * build-aux/bootstrap (slurp): Update.
56755         * lib/.cppi-disable: Update.
56756
56757 2007-09-30  Bruno Haible  <bruno@clisp.org>
56758
56759         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56760         Needed on BeOS.
56761
56762 2007-09-30  Bruno Haible  <bruno@clisp.org>
56763
56764         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56765
56766 2007-09-29  Bruno Haible  <bruno@clisp.org>
56767
56768         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56769
56770 2007-09-29  Bruno Haible  <bruno@clisp.org>
56771
56772         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56773         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56774         * build-aux/install-reloc: Compile also areadlink.c.
56775         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56776
56777 2007-09-29  Bruno Haible  <bruno@clisp.org>
56778
56779         * gnulib-tool (func_emit_initmacro_done): Indentation.
56780
56781 2007-09-29  Bruno Haible  <bruno@clisp.org>
56782
56783         * README: Add CVS checkout update instructions.
56784         Info from Bob Proulx <bob@proulx.com>.
56785
56786 2007-09-28  Eric Blake  <ebb9@byu.net>
56787
56788         Provide move-if-change.
56789         * build-aux/move-if-change: New file, based on best practice
56790         rather than any canonical upstream location.
56791
56792 2007-09-28  Jim Meyering  <jim@meyering.net>
56793
56794         Fix canonicalize loop-detection corner case.
56795         Do not attempt to stat the symlink values stored via seen_triple.
56796         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56797         on linux-2.6.18, (but not 2.6.22).
56798         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56799         triple_compare.  The former compares dev,ino,filename, while the latter
56800         would actually stat dirname(filename) when dev and ino were equal.
56801         * lib/hash-triple.c: Install <string.h>.
56802         (STREQ): Define.
56803         (triple_compare_ino_str): New function.
56804         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56805
56806 2007-09-28  Eric Blake  <ebb9@byu.net>
56807
56808         Enforce that AC_REPLACE_FUNCS files exist.
56809         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56810         override check for typos.
56811
56812         Fix test-closein on Solaris 10.
56813         * tests/test-closein.c (main): Don't assume stdin can be inherited
56814         closed on all systems.
56815         * tests/test-closein.sh: Likewise.
56816         Reported by Piotr Tarnowski.
56817
56818 2007-09-28  Jim Meyering  <jim@meyering.net>
56819
56820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56821
56822 2007-09-27  Jim Meyering  <jim@meyering.net>
56823
56824         canonicalize: Avoid a false-positive cycle failure.
56825         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56826         Sort.  Remove cycle-check.
56827         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56828         not cycle-check.h.
56829         (seen_triple): New function.
56830         (canonicalize_filename_mode): Use it instead of cycle-check.
56831         * tests/test-canonicalize.c: Add a test for this bug.
56832         * tests/test-canonicalize.sh: Set up and run the test.
56833
56834         New module, file-set, from coreutils.
56835         * modules/file-set: Define it.
56836         * lib/file-set.c, lib/file-set.h: Implement.
56837
56838         New module, hash-triple, from coreutils.
56839         * modules/hash-triple: Define it.
56840         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56841
56842 2007-09-25  Eric Blake  <ebb9@byu.net>
56843
56844         Fix strerror on Interix.
56845         * lib/string_.h (strerror): Declare replacement.
56846         * doc/functions/strerror.texi (strerror): Document the Interix
56847         shortcoming.
56848         * modules/string (Makefile.am): Support new hooks.
56849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56850         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56851         gl_FUNC_STRERROR_SEPARATE.
56852         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56853         * lib/strerror.c (rpl_strerror): Provide replacement.
56854         * modules/strerror (Depends-on): Add string.
56855         (configure.ac): Detect use of module.
56856         * tests/test-strerror.c: New file.
56857         * modules/strerror-tests: New test module.
56858         * modules/argp (Depends-on): Add strerror.
56859         * modules/error (Depends-on): Likewise.
56860         Reported by Martin Koeppe.
56861
56862 2007-09-24  Bruno Haible  <bruno@clisp.org>
56863
56864         * README: Update git instructions.
56865
56866 2007-09-24  Eric Blake  <ebb9@byu.net>
56867
56868         Revert fpending breakage from 2007-09-08.
56869         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56870         __fpending.c.
56871
56872 2007-09-24  Jim Meyering  <jim@meyering.net>
56873
56874         filenamecat.c: Add a test.
56875         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56876         showing how the function works when DIR is the empty string.
56877
56878 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56879
56880         * tests/test-canonicalize.sh: Turn on executable bit.
56881
56882 2007-09-19  Eric Blake  <ebb9@byu.net>
56883
56884         * README: Update CVS instructions.
56885
56886 2007-09-18  Bruno Haible  <bruno@clisp.org>
56887
56888         * modules/areadlink: New file.
56889         * lib/areadlink.h (areadlink): New declaration.
56890         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56891
56892 2007-09-17  Jim Meyering  <jim@meyering.net>
56893
56894         * lib/savewd.c (ESTALE) [!defined]: Define.
56895         Reported to be required on Interix by Martin Koeppe.
56896
56897 2007-09-17  Bruno Haible  <bruno@clisp.org>
56898
56899         * gnulib-tool (func_version): Use $version.
56900
56901 2007-09-16  Bruno Haible  <bruno@clisp.org>
56902
56903         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56904         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56905         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56906         Reported by Greg Schafer <gschafer@zip.com.au>.
56907
56908 2007-09-15  Bruno Haible  <bruno@clisp.org>
56909
56910         * gnulib-tool (sed): Try a little harder to make bash understand the
56911         alias.
56912         Reported by Bruce Korb <bruce.korb@gmail.com>.
56913
56914 2007-09-13  Eric Blake  <ebb9@byu.net>
56915
56916         * ChangeLog: Remove conflict markers.
56917
56918 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56919
56920         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56921         Reported by Bruno Haible <bruno@clisp.org>.
56922
56923 2007-09-12  Bruno Haible  <bruno@clisp.org>
56924
56925         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56926         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56927         is not defined.
56928
56929 2007-09-12  Eric Blake  <ebb9@byu.net>
56930
56931         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56932         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56933         Autoconf definition.
56934         * modules/euidaccess (Depends-on): Add extensions, for
56935         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56936         * modules/fnmatch (Depends-on): Likewise.
56937         * modules/getaddrinfo (Depends-on): Likewise.
56938         * modules/getdelim (Depends-on): Likewise.
56939         * modules/getline (Depends-on): Likewise.
56940         * modules/getsubopt (Depends-on): Likewise.
56941         * modules/gettext (Depends-on): Likewise.
56942         * modules/group-member (Depends-on): Likewise.
56943         * modules/mbchar (Depends-on): Likewise.
56944         * modules/memmem (Depends-on): Likewise.
56945         * modules/mempcpy (Depends-on): Likewise.
56946         * modules/memrchr (Depends-on): Likewise.
56947         * modules/pagealign_alloc (Depends-on): Likewise.
56948         * modules/readutmp (Depends-on): Likewise.
56949         * modules/stpcpy (Depends-on): Likewise.
56950         * modules/stpncpy (Depends-on): Likewise.
56951         * modules/strchrnul (Depends-on): Likewise.
56952         * modules/strndup (Depends-on): Likewise.
56953         * modules/strsep (Depends-on): Likewise.
56954         * modules/strverscmp (Depends-on): Likewise.
56955         * modules/vasprintf (Depends-on): Likewise.
56956         * modules/wcwidth (Depends-on): Likewise.
56957         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56958         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56959         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56960         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56961         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56962         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56963         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56964         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56965         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56966         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56967         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56968         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56969         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56970         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56971         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56972         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56973         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56974         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56975         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56976         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56977         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56978         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56979         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56980         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56981         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56982         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56983         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56984         so that lock.m4 can be used in gettext without extensions module.
56985
56986 2007-09-11  Bruno Haible  <bruno@clisp.org>
56987
56988         * m4/isc-posix.m4: Remove file.
56989         Suggested by Eric Blake.
56990
56991 2007-09-11  Eric Blake  <ebb9@byu.net>
56992
56993         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56994
56995 2007-09-10  Bruno Haible  <bruno@clisp.org>
56996
56997         * posix-modules: Fix typo in error message.
56998         Reported by Matt <mkraai@beckman.com>.
56999
57000 2007-09-09  Bruno Haible  <bruno@clisp.org>
57001
57002         * doc/functions/getdelim.texi: Update list of platforms lacking the
57003         function.
57004         * doc/functions/getline.texi: Likewise.
57005
57006 2007-09-09  Jim Meyering  <jim@meyering.net>
57007
57008         * lib/hash.c (hash_initialize): Detect calloc failure.
57009         Reported by Bruno Haible.
57010
57011 2007-09-09  Bruno Haible  <bruno@clisp.org>
57012
57013         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57014         malloc or realloc fails.
57015
57016 2007-09-09  Bruno Haible  <bruno@clisp.org>
57017
57018         * modules/getcwd (Depends-on): Add malloc-posix.
57019         * modules/glob (Depends-on): Likewise.
57020         * modules/putenv (Depends-on): Likewise.
57021         * modules/strdup (Depends-on): Likewise.
57022         * modules/getdelim (Depends-on): Add realloc-posix.
57023         * modules/read-file (Depends-on): Likewise.
57024
57025 2007-09-09  Bruno Haible  <bruno@clisp.org>
57026
57027         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57028         (gl_FUNC_MALLOC_POSIX): Require it.
57029         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57030         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57031         * modules/realloc (Files): Add m4/malloc.m4.
57032         * modules/calloc (Files): Likewise.
57033
57034 2007-09-09  Bruno Haible  <bruno@clisp.org>
57035
57036         * modules/malloc-posix: New file.
57037         * modules/malloc (Depends-on): Add malloc-posix.
57038         * lib/malloc.c: Include errno.h.
57039         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57040         and a POSIX-compatible malloc into a single function. Set ENOMEM
57041         when returning NULL.
57042         * m4/malloc.m4: New file.
57043         * doc/functions/malloc.texi: Mention the malloc-posix module.
57044         * lib/stdlib_.h (malloc): New declaration.
57045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57046         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57047         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57048         and HAVE_MALLOC_POSIX.
57049
57050 2007-09-09  Bruno Haible  <bruno@clisp.org>
57051
57052         * modules/realloc-posix: New file.
57053         * modules/realloc (Depends-on): Add realloc-posix.
57054         * lib/realloc.c: Include errno.h.
57055         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57056         and a POSIX-compatible realloc into a single function. Set ENOMEM
57057         when returning NULL.
57058         * m4/realloc.m4: New file.
57059         * doc/functions/realloc.texi: Mention the realloc-posix module.
57060         * lib/stdlib_.h (realloc): New declaration.
57061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57062         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57063         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57064         and HAVE_REALLOC_POSIX.
57065
57066 2007-09-09  Bruno Haible  <bruno@clisp.org>
57067
57068         * modules/calloc-posix: New file.
57069         * modules/calloc (Depends-on): Add calloc-posix.
57070         * lib/calloc.c: Include errno.h.
57071         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57072         and a POSIX-compatible calloc into a single function. Set ENOMEM
57073         when returning NULL.
57074         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57075         * doc/functions/calloc.texi: Mention the calloc-posix module.
57076         * lib/stdlib_.h (calloc): New declaration.
57077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57078         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57079         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57080         and HAVE_CALLOC_POSIX.
57081
57082 2007-09-09  Bruno Haible  <bruno@clisp.org>
57083
57084         Allow for modules to show an arbitrary notice.
57085         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57086         * gnulib-tool: New option --extract-notice.
57087         (func_usage): Document it.
57088         (sed_extract_prog): Update.
57089         (func_get_notice): New function.
57090         (func_modules_notice): New function.
57091         (func_import, func_create_testdir): Invoke it.
57092         Suggested by Jim Meyering.
57093
57094 2007-09-09  Bruno Haible  <bruno@clisp.org>
57095
57096         * gnulib-tool: New options --verbose, --quiet.
57097         (func_usage): Document them.
57098         (verbose): New variable.
57099         (func_execute_command): New function.
57100         (func_import): Don't show the module list and the file list if
57101         $verbose < 0.
57102         (func_create_testdir): Likewise. Use func_execute_command.
57103         (func_create_megatestdir): Use func_execute_command.
57104
57105 2007-09-08  Bruno Haible  <bruno@clisp.org>
57106
57107         * gnulib-tool (func_import): Prefer rsync over wget when available,
57108         for fetching the PO files.
57109
57110 2007-09-08  Bruno Haible  <bruno@clisp.org>
57111
57112         * posix-modules: New file. Portions copied from gnulib-tool.
57113         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57114
57115 2007-09-08  Jim Meyering  <jim@meyering.net>
57116
57117         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57118         * lib/fpending.h: Rename from __fpending.h.
57119         * lib/fpending.c: Rename from __fpending.c.
57120         Include "fpending.h", not "__fpending.h".
57121         * lib/__fpending.h, lib/__fpending.c: Remove files.
57122         * modules/fpending (Files): Reflect new file names.
57123         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57124
57125 2007-09-08  Bruno Haible  <bruno@clisp.org>
57126
57127         * m4/inttypes-h.m4: Remove stub file.
57128
57129 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57130
57131         * doc/headers/stdint.texi: Discuss #include_next issue.
57132
57133 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57134
57135         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57136
57137 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57138
57139         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57140         in variable name.
57141
57142 2007-09-03  Jim Meyering  <jim@meyering.net>
57143
57144         New module: git-version-gen.
57145         * modules/git-version-gen: New file.
57146
57147         Import changes from coreutils for bootstrap script.
57148
57149         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57150
57151         bootstrap: uses rsync to download the .po files
57152         * build-aux/bootstrap (po_download_command_format): New global.
57153         (download_po_files): Use rsync.
57154         (update_po_files): Don't remove .po files after download,
57155         so future rsync runs can take advantage of the copies.
57156
57157         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57158
57159         Solve the unnecessary-.po-file-regeneration problem once and for all.
57160         * build-aux/bootstrap (download_po_files): New function, renamed from
57161         get_translations.  Now, downloads, but doesn't update LINGUAS.
57162         (update_po_files): New function.
57163
57164         bootstrap: Ignore more.
57165         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57166         uniwidth to e.g., lib/.gitignore.
57167         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57168
57169         * build-aux/bootstrap: New setting: vc_ignore.
57170         (insert_sorted_if_absent): Create $file if absent.
57171         Adapt to new, possibly empty, list: $vc_ignore.
57172
57173         bootstrap: generate more ignorable names
57174         * build-aux/bootstrap (slurp): When generating ignorable names,
57175         also map .sin to .sed, .gperf to .c, and .y to .c.
57176
57177 2007-09-03  Jim Meyering  <jim@meyering.net>
57178
57179         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57180         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57181
57182 2007-09-02  Bruno Haible  <bruno@clisp.org>
57183
57184         Fix mis-recognition of 'mcs' on QNX 6.
57185         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57186         output contains the string "Mono".
57187         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57188         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57189
57190 2007-09-01  Bruno Haible  <bruno@clisp.org>
57191
57192         Fix collision between uniwidth/* and linebreak modules.
57193         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57194         u32_width): Remove declarations.
57195         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57196         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57197         streq3, streq2, streq1, streq0): Remove functions.
57198         (STREQ): Remove macro.
57199         (is_cjk_encoding): Remove function.
57200         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57201         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57202         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57203         * NEWS: Document the change.
57204
57205 2007-09-01  Bruno Haible  <bruno@clisp.org>
57206
57207         * lib/streq.h: Add double-inclusion guard.
57208
57209 2007-09-01  Karl Berry  <karl@gnu.org>
57210
57211         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57212
57213 2007-08-28  Jim Meyering  <jim@meyering.net>
57214
57215         Rename mreadlink_with_size to areadlink_with_size.
57216         * NEWS: Document the change.
57217         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57218         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57219         * lib/mreadlink.h: Rename this to...
57220         * lib/areadlink.h: ...this.
57221         * modules/mreadlink-with-size: Rename this to...
57222         * modules/areadlink-with-size: ...this.
57223         * lib/canonicalize.c: Reflect the renaming.
57224         * modules/canonicalize: Likewise.
57225
57226 2007-08-26  Bruno Haible  <bruno@clisp.org>
57227
57228         * gnulib-tool (func_import): When deciding which files to remove,
57229         consider also dangling symbolic links.
57230         Reported by Eric Blake.
57231
57232 2007-08-26  Bruno Haible  <bruno@clisp.org>
57233
57234         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57235
57236 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57237
57238         * lib/readline.c: Don't include getline.h, the prototype is now
57239         found in stdio.h.
57240
57241 2007-08-23  Jim Meyering  <jim@meyering.net>
57242
57243         Getdelim touchup.
57244         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57245         around the funlockfile call, since funlockfile never sets errno.
57246         Don't set errno upon failed realloc.
57247
57248 2007-08-22  Eric Blake  <ebb9@byu.net>
57249
57250         Getline touchups.
57251         * lib/getdelim.c (getdelim): Revert regression that required *n to
57252         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57253         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57254         getdelim, rather than whether implementation is missing.
57255         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57256         * lib/stdio_.h (getline): Also declare if replacement is
57257         required.
57258         * doc/functions/getdelim.texi: New file.
57259         * doc/functions/getline.texi: Likewise.
57260         * doc/gnulib.texi (Function Substitutes): Add new files.
57261         Reported by Bruno Haible.
57262
57263 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57264
57265         * users.txt: Add Guile.
57266
57267 2007-08-22  Eric Blake  <ebb9@byu.net>
57268
57269         * tests/test-getdelim.c (main): Use remove, not unlink.
57270         * tests/test-getline.c (main): Likewise.
57271
57272         Move getline and getdelim into stdio.h, per POSIX 200x.
57273         * modules/getline (Files): Remove getline.h.
57274         (Depends-on): Add stdio.
57275         (configure.ac): Add module indicator.
57276         * modules/getdelim (Files): Remove getdelim.h.
57277         (Depends-on): Add stdio.
57278         (configure.ac): Add module indicator.
57279         * modules/stdio (Makefile.am): Work with new indicators.
57280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57281         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57282         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57283         * lib/getdelim.h: Delete.
57284         * lib/getline.h: Delete.
57285         * lib/stdio_.h (getdelim, getline): Declare.
57286         * modules/getdelim-tests: New module.
57287         * modules/getline-tests: Likewise.
57288         * tests/test-getdelim.c: New file.
57289         * tests/test-getline.c: Likewise.
57290         * NEWS: Document the change.
57291         * lib/getline.c: Update choice of header.
57292         * lib/csharpcomp.c: Likewise.
57293         * lib/getpass.c: Likewise.
57294         * lib/javacomp.c: Likewise.
57295         * lib/javaversion.c: Likewise.
57296         * lib/yesno.c: Likewise.
57297         * lib/getdelim.c: Likewise.
57298         (getdelim): Set errno on failure, and avoid memory leak.
57299
57300 2007-08-19  Bruno Haible  <bruno@clisp.org>
57301
57302         * modules/closein (Depends-on): Add freadahead.
57303         * lib/closein.c: Include freadahead.h.
57304         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57305         is zero.
57306
57307 2007-08-19  Bruno Haible  <bruno@clisp.org>
57308
57309         * modules/freadahead-tests: New file.
57310         * tests/test-freadahead.sh: New file.
57311         * tests/test-freadahead.c: New file.
57312
57313         * modules/freadahead: New file.
57314         * lib/freadahead.h: New file.
57315         * lib/freadahead.c: New file.
57316         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57317         fbufmode, fpurge, freadable, fwritable.
57318
57319 2007-08-19  Eric Blake  <ebb9@byu.net>
57320
57321         Test yesno in combination with closein.
57322         * lib/yesno.c (yesno): Document use of stdin.
57323         * modules/yesno-tests (Files): New module.
57324         * tests/test-yesno.c (main): New file.
57325         * tests/test-yesno.sh: Likewise.
57326
57327 2007-08-19  Bruno Haible  <bruno@clisp.org>
57328
57329         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57330         * lib/fseeko.c (rpl_fseeko): Likewise.
57331         * lib/fseterr.c (fseterr): Likewise.
57332
57333 2007-08-19  Bruno Haible  <bruno@clisp.org>
57334
57335         * tests/test-lseek.c (main): Disable a test for BeOS.
57336         * doc/functions/lseek.texi: Document the BeOS bug.
57337
57338 2007-08-19  Bruno Haible  <bruno@clisp.org>
57339             Eric Blake  <ebb9@byu.net>
57340
57341         * lib/lseek.c: Include <sys/stat.h>.
57342         (rpl_lseek): Add workaround code also for Unix platforms.
57343         Needed for BeOS.
57344         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57345         * doc/functions/lseek.texi: Document BeOS definiency.
57346
57347 2007-08-18  Bruno Haible  <bruno@clisp.org>
57348
57349         * modules/fstrcmp-tests: New file.
57350         * tests/test-fstrcmp.c: New file.
57351
57352 2007-08-18  Bruno Haible  <bruno@clisp.org>
57353
57354         * modules/fstrcmp: New file, from GNU gettext with modifications.
57355         * lib/fstrcmp.h: New file, from GNU gettext.
57356         * lib/fstrcmp.c: New file, from GNU gettext.
57357         * MODULES.html.sh (String handling): Add fstrcmp.
57358
57359 2007-08-18  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57362         'bool'.
57363         (diag, compareseq): Remove const from the ctxt argument.
57364         (USE_HEURISTIC): Undefine at the end.
57365
57366 2007-08-18  Jim Meyering  <jim@meyering.net>
57367
57368         New file: lib/idcache.h
57369         * NEWS: Mention the addition.
57370         * modules/idcache (Files): Add lib/idcache.h
57371         * lib/idcache.c: Include "idcache.h".
57372         Don't include <sys/types.h>.
57373         Add a FIXME comment.
57374         Move file-scoped "static" declarations to the top.
57375         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57376
57377 2007-08-17  Bruno Haible  <bruno@clisp.org>
57378         and Paul Eggert  <eggert@cs.ucla.edu>
57379
57380         * MODULES.html.sh: Add diffseq.
57381         * modules/diffseq: New file.
57382         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57383         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57384
57385 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57386
57387         Import changes from coreutils for bootstrap script.
57388
57389         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57390
57391         * build-aux/bootstrap (slurp): Work even in environments where
57392         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57393         current code does not slurp files whose names start with ".", and
57394         this looks like it might be a troublesome area.
57395
57396         2007-07-11  Jim Meyering  <jim@meyering.net>
57397
57398         If there's a GPL vN copyright comment, require that N == 3.
57399
57400         2007-07-08  Jim Meyering  <jim@meyering.net>
57401
57402         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57403         * build-aux/bootstrap (mam_template): Move definition out of loop.
57404
57405         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57406
57407         * build-aux/bootstrap (symlink_to_dir): Rename function from
57408         symlink_to_gnulib.  Add a directory parameter.  Update all
57409         callers.
57410         (cp_mark_as_generated): Also check for -- and link to -- files in
57411         gl/.
57412
57413         2007-07-08  Jim Meyering  <jim@meyering.net>
57414
57415         Adapt to deeper hierarchy in gnulib.
57416         * build-aux/bootstrap (symlink_to_dir): If the destination
57417         directory doesn't exist, create it. This is required at least for
57418         "lib/uniwidth/cjk.h".
57419
57420         2007-05-15  Jim Meyering  <jim@meyering.net>
57421
57422         * build-aux/bootstrap: Now that generated Makefile.am files
57423         are no longer under version control, they must be created at
57424         bootstrap time.
57425
57426 2007-08-14  Ben Pfaff  <blp@gnu.org>
57427
57428         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57429
57430 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57431
57432         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57433         given the changes below.
57434         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57435         even on hosts that have padding bits beyond the supported 64.
57436
57437 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57438
57439         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57440         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57441         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57442         depends on it.
57443         (xstrtol_error): Remove.
57444         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57445         but with a different signature.
57446         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57447         * lib/xstrtol-error.c: Include exitfail.h.
57448         (xstrtol_fatal): New function, with a different signature from the
57449         old xstrtol_error, so that the caller need not worry about passing
57450         in an exit status, or about storage management of the option argument.
57451         (xstrtol_error): Now a static function.  Redo signature to
57452         implement xstrtol_fatal.  Output the correct number of hyphens in
57453         front of the option so that the caller need not worry about
57454         storage management.
57455         (N_): New macro.
57456         (_): Remove; not used now.
57457         * modules/xstrtol: Depend on getopt.
57458         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57459         of old STRTOL_FATAL_ERROR macro.
57460         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57461         of test program.
57462         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57463         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57464
57465 2007-08-08  Eric Blake  <ebb9@byu.net>
57466
57467         * lib/xstrtol-error.c: Add missing include.
57468
57469         Move xstrtol messages into gnulib domain, when --pobase is used.
57470         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57471         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57472         * modules/xstrtol (Files): Distribute new file.
57473         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57474         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57475         * tests/test-xstrtol.c: ...into new file.
57476         * tests/test-xstrtoul.c: Also test xstrtoul.
57477         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57478         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57479         * tests/test-xstrtol.sh: Drive the tests.
57480         * tests/test-xstrtoimax.sh: Likewise.
57481         * tests/test-xstrtoumax.sh: Likewise.
57482         * modules/xstrtol-tests: New module.
57483         * modules/xstrtoimax-tests: Likewise.
57484         * modules/xstrtoumax-tests: Likewise.
57485
57486 2007-08-08  Jim Meyering  <jim@meyering.net>
57487
57488         New function: mfile_name_concat.
57489         * lib/filenamecat.c (mfile_name_concat): New function, just like
57490         file_name_concat, but return NULL upon failure rather than exiting
57491         with a diagnostic.
57492         * lib/filenamecat.h: Declare it.
57493
57494 2007-08-07  Bruno Haible  <bruno@clisp.org>
57495
57496         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57497         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57498         warning from gcc.
57499         Reported by Eric Blake.
57500
57501 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57502
57503         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57504         * modules/crypto/arcfour (License): Likewise.
57505         * modules/crypto/des-tests (License): Likewise.
57506         * modules/crypto/gc-arctwo-tests (License): Likewise.
57507         * modules/crypto/gc-des-tests (License): Likewise.
57508         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57509         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57510         * modules/crypto/gc-md2-tests (License): Likewise.
57511         * modules/crypto/gc-md4-tests (License): Likewise.
57512         * modules/crypto/gc-md5-tests (License): Likewise.
57513         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57514         * modules/crypto/gc-rijndael-tests (License): Likewise.
57515         * modules/crypto/gc-sha1-tests (License): Likewise.
57516         * modules/crypto/gc-tests (License): Likewise.
57517         * modules/crypto/hmac-md5 (License): Likewise.
57518         * modules/crypto/hmac-sha1 (License): Likewise.
57519         * modules/crypto/md2-tests (License): Likewise.
57520         * modules/crypto/md4-tests (License): Likewise.
57521         * modules/crypto/md5 (License): Likewise.
57522         * modules/crypto/rijndael (License): Likewise.
57523         * modules/crypto/sha1 (License): Likewise.
57524         * modules/memxor (License): Likewise.
57525
57526 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57527         and Bruno Haible  <bruno@clisp.org>
57528
57529         * NEWS: Describe interface changes to human, xstrtol.
57530         * lib/human.h: Include <xstrtol.h>.
57531         (human_options): Return enum strtol_error, not int.  Remove
57532         bool arg; take int * instead.
57533         * lib/human.c: Don't include "gettext.h".
57534         (_): Remove; no longer used.
57535         Don't include <xstrtol.h>, since human.h does it.
57536         (human_options): Adjust to abovementioned interface changes.
57537         Do not report error to stderr; that's now the caller's
57538         responsibility.
57539         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57540         interface change.
57541         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57542         Str, Argument_type_string.  All uses changed.  Put " argument"
57543         in diagnostics to make them clearer.  Change wording of suffix
57544         message for clarity.
57545         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57546         Argument_type_string.
57547         (STRTOL_FATAL_WARN): Remove; no longer used.
57548         * modules/human (Depends-on): Remove gettext-h.
57549
57550 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57551
57552         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57553
57554 2007-07-31  Bruno Haible  <bruno@clisp.org>
57555
57556         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57557         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57558         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57559
57560 2007-07-31  Bruno Haible  <bruno@clisp.org>
57561
57562         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57563         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57564
57565 2007-07-30  Bruno Haible  <bruno@clisp.org>
57566
57567         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57568         * modules/c-ctype (License): Likewise.
57569         * modules/c-strcase (License): Likewise.
57570         * modules/check-version (License): Likewise.
57571         * modules/iconv (License): Likewise.
57572         * modules/iconv_open (License): Likewise.
57573         * modules/read-file (License): Likewise.
57574         * modules/striconv (License): Likewise.
57575         * modules/strverscmp (License): Likewise.
57576         * modules/vasprintf (License): Likewise.
57577         * modules/crypto/des (License): Likewise.
57578         * modules/crypto/gc (License): Likewise.
57579         * modules/crypto/gc-arcfour (License): Likewise.
57580         * modules/crypto/gc-arctwo (License): Likewise.
57581         * modules/crypto/gc-des (License): Likewise.
57582         * modules/crypto/gc-hmac-md5 (License): Likewise.
57583         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57584         * modules/crypto/gc-md2 (License): Likewise.
57585         * modules/crypto/gc-md4 (License): Likewise.
57586         * modules/crypto/gc-md5 (License): Likewise.
57587         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57588         * modules/crypto/gc-random (License): Likewise.
57589         * modules/crypto/gc-rijndael (License): Likewise.
57590         * modules/crypto/gc-sha1 (License): Likewise.
57591         * modules/crypto/md2 (License): Likewise.
57592         * modules/crypto/md4 (License): Likewise.
57593
57594 2007-07-30  Jim Meyering  <jim@meyering.net>
57595
57596         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57597         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57598         it has valid stat data.  This bug would cause du not to count the
57599         sizes of inaccessible directories.
57600         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57601         in <http://bugzilla.redhat.com/250077>.
57602
57603 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57604             Bruno Haible  <bruno@clisp.org>
57605
57606         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57607         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57608         #include_next, gives a diagnostic about it, but reports no error in
57609         the exit code.
57610         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57611
57612 2007-07-24  Ben Pfaff  <blp@gnu.org>
57613
57614         Improve name: "count-one-bits" is better than "popcount".
57615         * MODULES.html.sh: Update name.
57616         * lib/popcount.h: Renamed lib/count-one-bits.h.
57617         (popcount): Renamed count_one_bits.
57618         (popcountl): Renamed count_one_bits_l.
57619         (popcountll): Renamed count_one_bits_ll.
57620         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57621         * modules/popcount: Renamed module/count-one-bits.
57622         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57623         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57624
57625 2007-07-23  Ben Pfaff  <blp@gnu.org>
57626
57627         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57628         better code generation, and add U to large constants to avoid
57629         warnings, in non-GCC case.
57630         Suggested by Bruno Haible.
57631
57632 2007-07-23  Ben Pfaff  <blp@gnu.org>
57633
57634         * lib/popcount.h: Use verify_true instead of if...abort.
57635         * modules/popcount: Depend on verify module.
57636         Suggested by Jim Meyering.
57637
57638 2007-07-23  Bruno Haible  <bruno@clisp.org>
57639
57640         * gnulib-tool (func_import): Create a .cvsignore file also when the
57641         directory is not yet in CVS but the toplevel directory is. When
57642         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57643         Reported by Karl Berry.
57644
57645 2007-07-22  Ben Pfaff  <blp@gnu.org>
57646
57647         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57648         case.
57649         Suggested by Eric Blake.
57650
57651 2007-07-22  Ben Pfaff  <blp@gnu.org>
57652
57653         New module: popcount.
57654         * MODULES.html.sh: Add popcount.
57655         * modules/popcount: New file.
57656         * modules/popcount-tests: New file.
57657         * tests/test-popcount.c: New file.
57658         * lib/popcount.h: New file.
57659         * m4/popcount.m4: New file.
57660
57661 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57662
57663         * build-aux/announce-gen: Update to GPLv3.
57664
57665         * build-aux/config.guess: Update from config.
57666
57667 2007-07-21  Bruno Haible  <bruno@clisp.org>
57668
57669         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57670         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57671
57672 2007-07-20  Jim Meyering  <jim@meyering.net>
57673
57674         * check-module: Diagnose a self-dependency.
57675
57676 2007-07-19  Bruno Haible  <bruno@clisp.org>
57677
57678         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57679         empty.
57680         Reported by Eric Blake.
57681
57682 2007-07-18  Bruno Haible  <bruno@clisp.org>
57683
57684         * gnulib-tool: New options --po-base, --po-domain.
57685         (func_usage): Document them.
57686         (pobase, po_domain): New variables.
57687         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57688         DEFAULT_TEXT_DOMAIN.
57689         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57690         (func_import): Consider pobase and po_domain. Create a po/ directory.
57691         (func_create_testdir): Set pobase and po_domain to empty.
57692         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57693         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57694
57695 2007-07-18  Bruno Haible  <bruno@clisp.org>
57696
57697         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57698         EXTRA_DIST augmentation for files in build-aux/.
57699
57700 2007-07-16  Bruno Haible  <bruno@clisp.org>
57701
57702         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57703         * modules/getdelim (License): Likewise.
57704
57705 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57706
57707         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57708         * modules/d-type (License): Likewise.
57709         * modules/extensions (License): Likewise.
57710         * modules/fnmatch (License): Likewise.
57711         * modules/fseeko (License): Likewise.
57712         * modules/getaddrinfo (License): Likewise.
57713         * modules/getline (License): Likewise.
57714         * modules/getlogin_r (License): Likewise.
57715         * modules/getpass (License): Likewise.
57716         * modules/gettimeofday (License): Likewise.
57717         * modules/glob (License): Likewise.
57718         * modules/inet_ntop (License): Likewise.
57719         * modules/malloc (License): Likewise.
57720         * modules/malloca (License): Likewise.
57721         * modules/memmem (License): Likewise.
57722         * modules/mempcpy (License): Likewise.
57723         * modules/memset (License): Likewise.
57724         * modules/minmax (License): Likewise.
57725         * modules/mktime (License): Likewise.
57726         * modules/netinet_in (License): Likewise.
57727         * modules/pathmax (License): Likewise.
57728         * modules/poll (License): Likewise.
57729         * modules/regex (License): Likewise.
57730         * modules/snprintf (License): Likewise.
57731         * modules/stdbool (License): Likewise.
57732         * modules/stdint (License): Likewise.
57733         * modules/stdio (License): Likewise.
57734         * modules/strcase (License): Likewise.
57735         * modules/strcasestr (License): Likewise.
57736         * modules/strdup (License): Likewise.
57737         * modules/string (License): Likewise.
57738         * modules/strndup (License): Likewise.
57739         * modules/strnlen (License): Likewise.
57740         * modules/strpbrk (License): Likewise.
57741         * modules/strptime (License): Likewise.
57742         * modules/strsep (License): Likewise.
57743         * modules/sys_select (License): Likewise.
57744         * modules/sys_socket (License): Likewise.
57745         * modules/sys_stat (License): Likewise.
57746         * modules/sys_time (License): Likewise.
57747         * modules/time (License): Likewise.
57748         * modules/time_r (License): Likewise.
57749         * modules/timegm (License): Likewise.
57750         * modules/unistd (License): Likewise.
57751         * modules/vsnprintf (License): Likewise.
57752         * modules/wctype (License): Likewise.
57753
57754 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57755
57756         * modules/argz (License): LGPLv2+.
57757
57758 2007-07-15  Karl Berry  <karl@gnu.org>
57759
57760         * doc/gnulib.texi: revise node structure per new fdl.texi.
57761
57762 2007-07-14  Bruno Haible  <bruno@clisp.org>
57763
57764         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57765         the output file.
57766         * lib/uniname/uninames.h: Regenerated.
57767
57768 2007-07-14  Karl Berry  <karl@gnu.org>
57769
57770         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57771         omitting sectioning and index commands.
57772
57773 2007-07-13  Bruno Haible  <bruno@clisp.org>
57774
57775         New gnulib-tool option --more-symlinks.
57776         * gnulib-tool (func_usage): Document --more-symlinks.
57777         (do_copyrights): New variable.
57778         Recognize option --more-symlinks.
57779         (func_import): Don't add a copyright notice transform to
57780         sed_transform_lib_file if do_copyrights is empty.
57781
57782 2007-07-13  Bruno Haible  <bruno@clisp.org>
57783
57784         * lib/vasnprintf.c (decimal_point_char): Define also if
57785         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57786         && !NEED_PRINTF_DIRECTIVE_A.
57787         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57788         Gary V. Vaughan <gary@gnu.org>.
57789
57790 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57791
57792         * lib/inttypes_.h: Undo previous change, since it was fixed
57793         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57794
57795 2007-07-13  Bruno Haible  <bruno@clisp.org>
57796
57797         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57798         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57799
57800 2007-07-13  Jim Meyering  <jim@meyering.net>
57801
57802         df: Don't fail for Tru64's "file-on-file mount".
57803         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57804         so we fall through and use statfs instead.  Details here:
57805         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57806         Reported by Albert Chin.
57807
57808 2007-07-13  Bruno Haible  <bruno@clisp.org>
57809
57810         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57811         * modules/configmake (License): Likewise.
57812         * modules/gettext (License): Likewise.
57813         * modules/gettext-h (License): Likewise.
57814         * modules/include_next (License): Likewise.
57815         * modules/link-warning (License): Likewise.
57816         * modules/localcharset (License): Likewise.
57817         * modules/localename (License): Likewise.
57818         * modules/lock (License): Likewise.
57819         * modules/relocatable-lib-lgpl (License): Likewise.
57820         * modules/size_max (License): Likewise.
57821         * modules/vasnprintf (License): Likewise.
57822         * modules/wchar (License): Likewise.
57823         * modules/xsize (License): Likewise.
57824
57825 2007-07-13  Bruno Haible  <bruno@clisp.org>
57826
57827         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57828         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57829
57830 2007-07-12  Bruno Haible  <bruno@clisp.org>
57831
57832         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57833         in the modules files.
57834
57835 2007-07-11  Karl Berry  <karl@gnu.org>
57836
57837         * MODULES.html.sh (func_module): use
57838          sed -e '\|^'"${includefile}"'$|d'
57839          instead of /.../d, to avoid errors on $includefile's containing /.
57840
57841 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57842
57843         * gnulib-tool (func_import): Avoid duplication of --avoid
57844         statements
57845         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57846         names to `_' in variable names.
57847
57848 2007-07-10  Eric Blake  <ebb9@byu.net>
57849
57850         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57851         * NEWS: Document this change.
57852
57853 2007-07-08  Bruno Haible  <bruno@clisp.org>
57854
57855         Update to Unicode 5.0.
57856         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57857         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57858         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57859         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57860         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57861         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57862         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57863         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57864         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57865         U+10A3F, U+1D242..U+1D244.
57866         (nonspacing_table_ind): Update.
57867         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57868         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57869
57870 2007-07-08  Bruno Haible  <bruno@clisp.org>
57871
57872         Update to Unicode 5.0.
57873         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57874         code transform. Extend the name index field of unicode_name_to_code and
57875         unicode_code_to_name from 16 to 24 bits.
57876         * lib/uniname/uniname.c (unicode_character_name,
57877         unicode_name_character): Add the range 0x12xxx to the code transform.
57878         * lib/uniname/uninames.h: Regenerated.
57879         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57880
57881 2007-07-07  Bruno Haible  <bruno@clisp.org>
57882
57883         * modules/wcwidth-tests: New file.
57884         * tests/test-wcwidth.c: New file.
57885
57886         Work around MacOS X wcwidth() bug.
57887         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57888         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57889         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57890         original wcwidth in non-UTF-8 locales.
57891         * modules/wcwidth (Depends-on): Add localcharset, streq,
57892         uniwidth/width.
57893         * doc/functions/wcwidth.texi: Update.
57894
57895 2007-07-07  Bruno Haible  <bruno@clisp.org>
57896
57897         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57898         (wcwidth): New declaration.
57899         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57900         macros.
57901         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57902         here. Prepare for creating <wchar.h> unconditionally.
57903         * modules/wchar (Depends-on): Add link-warning.
57904         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57905         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57906         * lib/wcwidth.h: Remove file.
57907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57908         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57909         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57910         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57911         (Include): Replace wcwidth.h with <wchar.h>.
57912         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57913         * lib/mbchar.h: Don't include wcwidth.h.
57914         * lib/mbswidth.c: Likewise.
57915         * NEWS: Mention the change.
57916
57917 2007-07-07  Bruno Haible  <bruno@clisp.org>
57918
57919         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57920         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57921         definition with an external declaration.
57922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57923         defined as a function. Remove AC_C_INLINE requirement.
57924         * modules/wcwidth (Files): Add lib/wcwidth.c.
57925         (Makefile.am): Remove redundant statement.
57926
57927 2007-07-07  Bruno Haible  <bruno@clisp.org>
57928
57929         * MODULES.html.sh (Unicode string functions): Add the new modules.
57930
57931         * tests/uniwidth/test-u32-strwidth.c: New file.
57932         * modules/uniwidth/u32-strwidth-tests: New file.
57933
57934         * lib/uniwidth/u32-strwidth.c: New file.
57935         * modules/uniwidth/u32-strwidth: New file.
57936
57937         * tests/uniwidth/test-u16-strwidth.c: New file.
57938         * modules/uniwidth/u16-strwidth-tests: New file.
57939
57940         * lib/uniwidth/u16-strwidth.c: New file.
57941         * modules/uniwidth/u16-strwidth: New file.
57942
57943         * tests/uniwidth/test-u8-strwidth.c: New file.
57944         * modules/uniwidth/u8-strwidth-tests: New file.
57945
57946         * lib/uniwidth/u8-strwidth.c: New file.
57947         * modules/uniwidth/u8-strwidth: New file.
57948
57949         * tests/uniwidth/test-u32-width.c: New file.
57950         * modules/uniwidth/u32-width-tests: New file.
57951
57952         * lib/uniwidth/u32-width.c: New file.
57953         * modules/uniwidth/u32-width: New file.
57954
57955         * tests/uniwidth/test-u16-width.c: New file.
57956         * modules/uniwidth/u16-width-tests: New file.
57957
57958         * lib/uniwidth/u16-width.c: New file.
57959         * modules/uniwidth/u16-width: New file.
57960
57961         * tests/uniwidth/test-u8-width.c: New file.
57962         * modules/uniwidth/u8-width-tests: New file.
57963
57964         * lib/uniwidth/u8-width.c: New file.
57965         * modules/uniwidth/u8-width: New file.
57966
57967         * tests/uniwidth/test-uc_width.c: New file.
57968         * modules/uniwidth/width-tests: New file.
57969
57970         * lib/uniwidth/width.c: New file, from GNU libiconv.
57971         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57972         * modules/uniwidth/width: New file.
57973
57974         * lib/uniwidth.h: New file, from GNU libiconv.
57975         * modules/uniwidth/base: New file.
57976
57977 2007-07-07  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/uniname.h: New file, from GNU gettext.
57980         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57981         * lib/uniname/uninames.h: New file, from GNU gettext.
57982         * lib/uniname/uniname.c: New file, from GNU gettext.
57983         * tests/uniname/test-uninames.sh: New file.
57984         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57985         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57986         * modules/uniname/base: New file.
57987         * modules/uniname/uniname: New file.
57988         * modules/uniname/uniname-tests: New file.
57989         * MODULES.html.sh (Unicode string functions): Add the new modules.
57990
57991 2007-07-06  Bruno Haible  <bruno@clisp.org>
57992
57993         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57994
57995 2007-07-06  Bruno Haible  <bruno@clisp.org>
57996
57997         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57998         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57999         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58000         include <sys/time.h>.
58001         Reported by Eric Blake.
58002
58003 2007-07-06  Eric Blake  <ebb9@byu.net>
58004
58005         Fix testing canonicalize on cygwin.
58006         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58007         Revert patch from 2007-06-19.
58008         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58009         canonicalize module is also in use.
58010         * tests/test-canonicalize.c: New file.
58011         * tests/test-canonicalize.sh: Likewise.
58012         * modules/canonicalize-tests: Likewise.
58013
58014 2007-07-06  Jim Meyering  <jim@meyering.net>
58015
58016         * lib/getugroups.c (getugroups): Detect getgrent failure.
58017         Adjust comment to reflect reality: this function may return -1.
58018
58019 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58020
58021         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58022         the new TP address.
58023         (usage): Fix typo
58024         (gnulib_mk): New variable.
58025
58026 2007-07-05  Jim Meyering  <jim@meyering.net>
58027
58028         Don't let endgrent clobber errno, no matter how improbable.
58029         * lib/getugroups.c (getugroups): Save and restore errno around
58030         endgrent call.
58031
58032         Close the group DB even when failing with 2^31 or more members.
58033         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58034
58035 2007-07-04  Jim Meyering  <jim@meyering.net>
58036
58037         * lib/getugroups.h: New file.
58038         * lib/getugroups.c: Include "getugroups.h".
58039         Remove uses of "register" keyword.
58040         Move local variable, "cp", down into scope where used.
58041         Give "username" parameter the "const" attribute.
58042         * modules/getugroups (Files): Add lib/getugroups.h
58043
58044 2007-07-04  Karl Berry  <karl@gnu.org>
58045
58046         * MODULES.html.sh (func_all_modules): Complete rename of
58047         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58048
58049 2007-07-02  Bruno Haible  <bruno@clisp.org>
58050
58051         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58052         mode, when inttypes.h comes from gnulib.
58053         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58054
58055 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58056
58057         * NEWS: Mention lgpl module name change.
58058
58059         * modules/lgpl-2.1: Renamed from lgpl.
58060
58061         * NEWS: Mention gpl module name change.
58062
58063         * modules/gpl-3.0: New file, based on gpl-2.0.
58064
58065         * modules/gpl-2.0: Renamed from gpl.
58066
58067         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58068         doc/gpl-2.0.texi.
58069
58070 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58071
58072         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58073         #define __STDC_LIMIT_MACROS temporarily while including
58074         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58075         Problem reported by Joel E. Denny in
58076         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58077
58078 2007-07-01  Bruno Haible  <bruno@clisp.org>
58079
58080         * lib/unistdio.h: New file.
58081         * lib/unistdio/u-asnprintf.h: New file.
58082         * lib/unistdio/u-asprintf.h: New file.
58083         * lib/unistdio/u-printf-args.c: New file.
58084         * lib/unistdio/u-printf-args.h: New file.
58085         * lib/unistdio/u-printf-parse.h: New file.
58086         * lib/unistdio/u-snprintf.h: New file.
58087         * lib/unistdio/u-sprintf.h: New file.
58088         * lib/unistdio/u-vasprintf.h: New file.
58089         * lib/unistdio/u-vsnprintf.h: New file.
58090         * lib/unistdio/u-vsprintf.h: New file.
58091         * lib/unistdio/ulc-asnprintf.c: New file.
58092         * lib/unistdio/ulc-asprintf.c: New file.
58093         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58094         * lib/unistdio/ulc-printf-parse.c: New file.
58095         * lib/unistdio/ulc-snprintf.c: New file.
58096         * lib/unistdio/ulc-sprintf.c: New file.
58097         * lib/unistdio/ulc-vasnprintf.c: New file.
58098         * lib/unistdio/ulc-vasprintf.c: New file.
58099         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58100         * lib/unistdio/ulc-vsnprintf.c: New file.
58101         * lib/unistdio/ulc-vsprintf.c: New file.
58102         * lib/unistdio/u8-asnprintf.c: New file.
58103         * lib/unistdio/u8-asprintf.c: New file.
58104         * lib/unistdio/u8-printf-parse.c: New file.
58105         * lib/unistdio/u8-snprintf.c: New file.
58106         * lib/unistdio/u8-sprintf.c: New file.
58107         * lib/unistdio/u8-vasnprintf.c: New file.
58108         * lib/unistdio/u8-vasprintf.c: New file.
58109         * lib/unistdio/u8-vsnprintf.c: New file.
58110         * lib/unistdio/u8-vsprintf.c: New file.
58111         * lib/unistdio/u8-u8-asnprintf.c: New file.
58112         * lib/unistdio/u8-u8-asprintf.c: New file.
58113         * lib/unistdio/u8-u8-snprintf.c: New file.
58114         * lib/unistdio/u8-u8-sprintf.c: New file.
58115         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58116         * lib/unistdio/u8-u8-vasprintf.c: New file.
58117         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58118         * lib/unistdio/u8-u8-vsprintf.c: New file.
58119         * lib/unistdio/u16-asnprintf.c: New file.
58120         * lib/unistdio/u16-asprintf.c: New file.
58121         * lib/unistdio/u16-printf-parse.c: New file.
58122         * lib/unistdio/u16-snprintf.c: New file.
58123         * lib/unistdio/u16-sprintf.c: New file.
58124         * lib/unistdio/u16-vasnprintf.c: New file.
58125         * lib/unistdio/u16-vasprintf.c: New file.
58126         * lib/unistdio/u16-vsnprintf.c: New file.
58127         * lib/unistdio/u16-vsprintf.c: New file.
58128         * lib/unistdio/u16-u16-asnprintf.c: New file.
58129         * lib/unistdio/u16-u16-asprintf.c: New file.
58130         * lib/unistdio/u16-u16-snprintf.c: New file.
58131         * lib/unistdio/u16-u16-sprintf.c: New file.
58132         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58133         * lib/unistdio/u16-u16-vasprintf.c: New file.
58134         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58135         * lib/unistdio/u16-u16-vsprintf.c: New file.
58136         * lib/unistdio/u32-asnprintf.c: New file.
58137         * lib/unistdio/u32-asprintf.c: New file.
58138         * lib/unistdio/u32-printf-parse.c: New file.
58139         * lib/unistdio/u32-snprintf.c: New file.
58140         * lib/unistdio/u32-sprintf.c: New file.
58141         * lib/unistdio/u32-vasnprintf.c: New file.
58142         * lib/unistdio/u32-vasprintf.c: New file.
58143         * lib/unistdio/u32-vsnprintf.c: New file.
58144         * lib/unistdio/u32-vsprintf.c: New file.
58145         * lib/unistdio/u32-u32-asnprintf.c: New file.
58146         * lib/unistdio/u32-u32-asprintf.c: New file.
58147         * lib/unistdio/u32-u32-snprintf.c: New file.
58148         * lib/unistdio/u32-u32-sprintf.c: New file.
58149         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58150         * lib/unistdio/u32-u32-vasprintf.c: New file.
58151         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58152         * lib/unistdio/u32-u32-vsprintf.c: New file.
58153         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58154         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58155         * tests/unistdio/test-ulc-printf1.h: New file.
58156         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58157         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58158         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58159         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58160         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58161         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58162         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58163         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58164         * tests/unistdio/test-u8-asnprintf1.c: New file.
58165         * tests/unistdio/test-u8-asnprintf1.h: New file.
58166         * tests/unistdio/test-u8-printf1.h: New file.
58167         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58168         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58169         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58170         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58171         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58172         * tests/unistdio/test-u8-vasprintf1.c: New file.
58173         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58174         * tests/unistdio/test-u8-vsprintf1.c: New file.
58175         * tests/unistdio/test-u16-asnprintf1.c: New file.
58176         * tests/unistdio/test-u16-asnprintf1.h: New file.
58177         * tests/unistdio/test-u16-printf1.h: New file.
58178         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58179         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58180         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58181         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58182         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58183         * tests/unistdio/test-u16-vasprintf1.c: New file.
58184         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58185         * tests/unistdio/test-u16-vsprintf1.c: New file.
58186         * tests/unistdio/test-u32-asnprintf1.c: New file.
58187         * tests/unistdio/test-u32-asnprintf1.h: New file.
58188         * tests/unistdio/test-u32-printf1.h: New file.
58189         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58190         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58191         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58192         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58193         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58194         * tests/unistdio/test-u32-vasprintf1.c: New file.
58195         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58196         * tests/unistdio/test-u32-vsprintf1.c: New file.
58197         * modules/unistdio/base: New file.
58198         * modules/unistdio/u-printf-args: New file.
58199         * modules/unistdio/ulc-asnprintf: New file.
58200         * modules/unistdio/ulc-asprintf: New file.
58201         * modules/unistdio/ulc-fprintf: New file.
58202         * modules/unistdio/ulc-printf-parse: New file.
58203         * modules/unistdio/ulc-snprintf: New file.
58204         * modules/unistdio/ulc-sprintf: New file.
58205         * modules/unistdio/ulc-vasnprintf: New file.
58206         * modules/unistdio/ulc-vasprintf: New file.
58207         * modules/unistdio/ulc-vfprintf: New file.
58208         * modules/unistdio/ulc-vsnprintf: New file.
58209         * modules/unistdio/ulc-vsprintf: New file.
58210         * modules/unistdio/u8-asnprintf: New file.
58211         * modules/unistdio/u8-asprintf: New file.
58212         * modules/unistdio/u8-printf-parse: New file.
58213         * modules/unistdio/u8-snprintf: New file.
58214         * modules/unistdio/u8-sprintf: New file.
58215         * modules/unistdio/u8-vasnprintf: New file.
58216         * modules/unistdio/u8-vasprintf: New file.
58217         * modules/unistdio/u8-vsnprintf: New file.
58218         * modules/unistdio/u8-vsprintf: New file.
58219         * modules/unistdio/u8-u8-asnprintf: New file.
58220         * modules/unistdio/u8-u8-asprintf: New file.
58221         * modules/unistdio/u8-u8-snprintf: New file.
58222         * modules/unistdio/u8-u8-sprintf: New file.
58223         * modules/unistdio/u8-u8-vasnprintf: New file.
58224         * modules/unistdio/u8-u8-vasprintf: New file.
58225         * modules/unistdio/u8-u8-vsnprintf: New file.
58226         * modules/unistdio/u8-u8-vsprintf: New file.
58227         * modules/unistdio/u16-asnprintf: New file.
58228         * modules/unistdio/u16-asprintf: New file.
58229         * modules/unistdio/u16-printf-parse: New file.
58230         * modules/unistdio/u16-snprintf: New file.
58231         * modules/unistdio/u16-sprintf: New file.
58232         * modules/unistdio/u16-vasnprintf: New file.
58233         * modules/unistdio/u16-vasprintf: New file.
58234         * modules/unistdio/u16-vsnprintf: New file.
58235         * modules/unistdio/u16-vsprintf: New file.
58236         * modules/unistdio/u16-u16-asnprintf: New file.
58237         * modules/unistdio/u16-u16-asprintf: New file.
58238         * modules/unistdio/u16-u16-snprintf: New file.
58239         * modules/unistdio/u16-u16-sprintf: New file.
58240         * modules/unistdio/u16-u16-vasnprintf: New file.
58241         * modules/unistdio/u16-u16-vasprintf: New file.
58242         * modules/unistdio/u16-u16-vsnprintf: New file.
58243         * modules/unistdio/u16-u16-vsprintf: New file.
58244         * modules/unistdio/u32-asnprintf: New file.
58245         * modules/unistdio/u32-asprintf: New file.
58246         * modules/unistdio/u32-printf-parse: New file.
58247         * modules/unistdio/u32-snprintf: New file.
58248         * modules/unistdio/u32-sprintf: New file.
58249         * modules/unistdio/u32-vasnprintf: New file.
58250         * modules/unistdio/u32-vasprintf: New file.
58251         * modules/unistdio/u32-vsnprintf: New file.
58252         * modules/unistdio/u32-vsprintf: New file.
58253         * modules/unistdio/u32-u32-asnprintf: New file.
58254         * modules/unistdio/u32-u32-asprintf: New file.
58255         * modules/unistdio/u32-u32-snprintf: New file.
58256         * modules/unistdio/u32-u32-sprintf: New file.
58257         * modules/unistdio/u32-u32-vasnprintf: New file.
58258         * modules/unistdio/u32-u32-vasprintf: New file.
58259         * modules/unistdio/u32-u32-vsnprintf: New file.
58260         * modules/unistdio/u32-u32-vsprintf: New file.
58261         * modules/unistdio/ulc-asnprintf-tests: New file.
58262         * modules/unistdio/ulc-vasnprintf-tests: New file.
58263         * modules/unistdio/ulc-vasprintf-tests: New file.
58264         * modules/unistdio/ulc-vsnprintf-tests: New file.
58265         * modules/unistdio/ulc-vsprintf-tests: New file.
58266         * modules/unistdio/u8-asnprintf-tests: New file.
58267         * modules/unistdio/u8-vasnprintf-tests: New file.
58268         * modules/unistdio/u8-vasprintf-tests: New file.
58269         * modules/unistdio/u8-vsnprintf-tests: New file.
58270         * modules/unistdio/u8-vsprintf-tests: New file.
58271         * modules/unistdio/u16-asnprintf-tests: New file.
58272         * modules/unistdio/u16-vasnprintf-tests: New file.
58273         * modules/unistdio/u16-vasprintf-tests: New file.
58274         * modules/unistdio/u16-vsnprintf-tests: New file.
58275         * modules/unistdio/u16-vsprintf-tests: New file.
58276         * modules/unistdio/u32-asnprintf-tests: New file.
58277         * modules/unistdio/u32-vasnprintf-tests: New file.
58278         * modules/unistdio/u32-vasprintf-tests: New file.
58279         * modules/unistdio/u32-vsnprintf-tests: New file.
58280         * modules/unistdio/u32-vsprintf-tests: New file.
58281         * MODULES.html.sh (Unicode string functions): Add the new modules.
58282
58283 2007-07-01  Bruno Haible  <bruno@clisp.org>
58284
58285         * lib/sprintf.c (sprintf): Limit the available length estimation,
58286         to avoid address wraparound.
58287         * lib/vsprintf.c (vsprintf): Likewise.
58288         * modules/sprintf-posix (Dependencies): Add stdint.
58289         * modules/vsprintf-posix (Dependencies): Likewise.
58290
58291 2007-07-01  Bruno Haible  <bruno@clisp.org>
58292
58293         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58294         Windows PATH as well. Conservative double-quoting. Comments.
58295
58296 2007-07-01  Bruno Haible  <bruno@clisp.org>
58297             Eric Blake  <ebb9@byu.net>
58298             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58299
58300         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58301         empty components in $PATH, denoting '.'.
58302
58303 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58304
58305         * gnulib-tool: Fix indentation.
58306         (func_create_megatestdir): Likewise.
58307         Report by Bruno Haible.
58308
58309 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58310
58311         Sync from Automake.
58312         * build-aux/gnupload: Fix shell portability issues with for loops.
58313         Report by Karl Berry.
58314
58315 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58316
58317         * build-aux/maint.mk (POURL): Use translationproject.org.
58318
58319 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58320             Bruno Haible  <bruno@clisp.org>
58321
58322         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58323         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58324         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58325         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58326         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58327
58328 2007-06-27  Bruno Haible  <bruno@clisp.org>
58329
58330         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58331         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58332
58333 2007-06-26  Karl Berry  <karl@gnu.org>
58334
58335         * MODULES.html.sh: remove xreadlink-with-size.
58336
58337 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58338
58339         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58340         method that I hope also handles the double-include problem noted
58341         by Bruno Haible in
58342         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58343
58344 2007-06-23  Bruno Haible  <bruno@clisp.org>
58345
58346         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58347         Don't let the 'mostlyclean' target fail if the last subdirectory could
58348         not be removed.
58349         Reported by Karl Berry.
58350
58351 2007-06-23  Bruno Haible  <bruno@clisp.org>
58352
58353         * gnulib-tool (echo): Add a speedier workaround for ksh.
58354         * tests/test-echo.sh: Likewise.
58355
58356 2007-06-23  Bruno Haible  <bruno@clisp.org>
58357
58358         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58359         * tests/test-echo.sh: Likewise.
58360
58361 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58362
58363         * gnulib-tool (IFS): Initialize early, so we don't set it to
58364         empty later.
58365         (self_abspathname): Rewrite algorithm to set it, reindent.
58366         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58367         (func_create_megatestdir): Merge some sed scripts.
58368
58369 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58370
58371         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58372         exposed by Sun Studio 11 cc on Solaris 8.
58373
58374 2007-06-22  Bruno Haible  <bruno@clisp.org>
58375
58376         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58377         backslashes.
58378         * tests/test-echo.sh: New file.
58379
58380 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58381
58382         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58383         simplify `sed_replace_build_aux' scripts, they are portable but
58384         echoing them with `echo' is not.
58385         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58386
58387 2007-06-21  Karl Berry  <karl@gnu.org>
58388
58389         * config/srclist.txt: guess we can't handle the licenses via
58390         srclist at the moment.
58391
58392 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58393
58394         * MODULES.html.sh: Add include_next.
58395         * modules/include_next: New file.
58396
58397 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58398
58399         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58400         INCLUDE_NEXT.
58401         (gl_CHECK_NEXT_HEADERS): New macro.
58402         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58403         the obsolescent gl_ABSOLUTE_HEADER.
58404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58405         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58406         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58407         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58408         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58409         * m4/math_h.m4 (gl_MATH_H): Likewise.
58410         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58411         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58412         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58413         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58414         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58415         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58416         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58417         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58418         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58419         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58420         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58421         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58422         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58423         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58424         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58425         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58426         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58427         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58428         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58429         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58430         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58431         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58432         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58433         * lib/float_.h: Likewise.
58434         * lib/inttypes_.h: Likewise.
58435         * lib/math_.h: Likewise.
58436         * lib/search_.h: Likewise.
58437         * lib/signal_.h: Likewise.
58438         * lib/stdint_.h: Likewise.
58439         * lib/stdio_.h: Likewise.
58440         * lib/stdlib_.h: Likewise.
58441         * lib/string_.h: Likewise.
58442         * lib/sys_stat_.h: Likewise.
58443         * lib/sys_time_.h: Likewise.
58444         * lib/time_.h: Likewise.
58445         * lib/unistd_.h: Likewise.
58446         * lib/wchar_.h: Likewise.
58447         * lib/wctype_.h: Likewise.
58448         * lib/dirent_.h: Likewise.
58449         * lib/iconv_.h: Likewise.
58450         * lib/locale_.h: Likewise.
58451         * lib/netinet_in_.h: Likewise.
58452         * lib/sys_select_.h: Likewise.
58453         * lib/sys_socket_.h: Likewise.
58454         * lib/sysexits_.h: Likewise.
58455         * modules/fcntl (Depends-on): Depend on include_next, not
58456         absolute_header.
58457         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58458         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58459         * modules/fchdir: Likewise.
58460         * modules/float: Likewise.
58461         * modules/iconv_open: Likewise.
58462         * modules/inttypes: Likewise.
58463         * modules/locale: Likewise.
58464         * modules/math: Likewise.
58465         * modules/netinet_in: Likewise.
58466         * modules/search: Likewise.
58467         * modules/signal: Likewise.
58468         * modules/stdint: Likewise.
58469         * modules/stdio: Likewise.
58470         * modules/stdlib: Likewise.
58471         * modules/string: Likewise.
58472         * modules/sys_select: Likewise.
58473         * modules/sys_socket: Likewise.
58474         * modules/sys_stat: Likewise.
58475         * modules/sys_time: Likewise.
58476         * modules/sysexits: Likewise.
58477         * modules/time: Likewise.
58478         * modules/unistd: Likewise.
58479         * modules/wchar: Likewise.
58480         * modules/wctype: Likewise.
58481         * modules/sys_stat: Change maintainer to "all".
58482         * modules/unistd: Likewise.
58483
58484 2007-06-20  Karl Berry  <karl@gnu.org>
58485
58486         * config/srclist.txt: track www changes in license files.
58487
58488 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58489
58490         * build-aux/bootstrap: Remove stray dot.
58491         Make sure build_aux settings are honored when linking
58492         gnulib_extra_files.
58493
58494 2007-06-19  Eric Blake  <ebb9@byu.net>
58495
58496         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58497         Allow compilation on cygwin.
58498
58499 2007-06-19  Jim Meyering  <jim@meyering.net>
58500
58501         xreadlink-with-size: Remove module.  No longer used.
58502         Ex-callers now use xreadlink or mreadlink-with-size.
58503         * modules/xreadlink-with-size: Remove module.
58504         * lib/xreadlink-with-size.c: Remove file.
58505         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58506         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58507         just before the function definition *is* accurate.
58508
58509         Eliminate one way canonicalize_filename_mode could exit.
58510         * lib/canonicalize.c (canonicalize_filename_mode):
58511         Use mreadlink_with_size, not xreadlink_with_size.
58512
58513 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58514
58515         Detect porting problems to FreeBSD/arm, which has time_t wider than
58516         long int.  Original problem reported for GNU diff by Xin Li in
58517         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58518         * modules/getdate (Depends-on): Add intprops, verify.
58519         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58520         is an integer type no wider than long int.
58521
58522 2007-06-18  Jim Meyering  <jim@meyering.net>
58523
58524         New module: mreadlink-with-size.
58525         * MODULES.html.sh: Add mreadlink-with-size.
58526         * modules/mreadlink-with-size: New module
58527         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58528         not xreadlink-with-size.
58529         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58530
58531 2007-06-16  Bruno Haible  <bruno@clisp.org>
58532
58533         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58534         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58535         Reported by Gary V. Vaughan <gary@gnu.org>.
58536
58537 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58538
58539         Revamp lchown so that it lives in unistd.h where it belongs.
58540         * lib/lchown.h: Remove.
58541         * lib/dirchownmod.c: Don't include lib/lchown.h.
58542         * lib/fchownat.c: Likewise.
58543         * lib/openat.c: Likewise.
58544         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58545         does not follow symlinks.
58546         (EOPNOTSUPP): Define if not defined.
58547         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58548         is defined to 0.
58549         (lchown): New decl.
58550         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58551         Do not check for lchown decl.
58552         Set REPLACE_LCHOWN.
58553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58554         REPLACE_LCHOWN.
58555         * modules/chown: Make it clear it follows symlinks.
58556         * modules/lchown: Make it clear it doesn't follow symlinks.
58557         (Files): Remove lib/lchown.h
58558         (Depends-on): Add unistd.
58559         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58560         (Include): Include <unistd.h>, not "lchown.h".
58561         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58562         REPLACE_LCHOWN.
58563
58564 2007-06-15  Jim Meyering  <jim@meyering.net>
58565
58566         Change license (GPL to LGPL) of fsusage and dependents.
58567         * modules/fsusage (License): Change to LGPL.
58568         * modules/full-read (License): Likewise.
58569         * modules/full-write (License): Likewise.
58570         * modules/safe-read (License): Likewise.
58571         * modules/safe-write (License): Likewise.
58572
58573 2007-06-14  Ben Pfaff  <blp@gnu.org>
58574
58575         Missing part of allocsa -> malloca transition.
58576         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58577         gl_MALLOCA.
58578
58579 2007-06-12  Bruno Haible  <bruno@clisp.org>
58580
58581         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58582         to ia64, x86_64, i386.
58583         Reported by Eric Blake.
58584
58585 2007-06-12  Bruno Haible  <bruno@clisp.org>
58586
58587         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58588         cross-compiling to x86_64.
58589
58590 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58591
58592         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58593         glitch reported by Ralf Wildenhues in
58594         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58595
58596         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58597         Vin Shelton.
58598
58599 2007-06-11  Bruno Haible  <bruno@clisp.org>
58600
58601         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58602         replacement string.
58603         Reported by Eric Blake.
58604
58605 2007-06-10  Bruno Haible  <bruno@clisp.org>
58606
58607         Prepare vasnprintf code for use with Unicode strings.
58608         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58609         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58610         TYPE_U32_STRING.
58611         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58612         a_u32_string variants.
58613         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58614         * lib/printf-args.c: Don't include config.h and the specification
58615         header if PRINTF_FETCHARGS is already defined.
58616         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58617         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58618         TYPE_U16_STRING, TYPE_U32_STRING.
58619         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58620         u16_directive, u16_directives, u32_directive, u32_directives): New
58621         types.
58622         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58623         New declarations.
58624         * lib/printf-parse.c: Don't include config.h and the specification
58625         header if PRINTF_PARSE is already defined. Eliminate the set of
58626         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58627         them now. Include c-ctype.h.
58628         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58629         directive and CHAR_T_ONLY_ASCII.
58630         * lib/vasnprintf.c: Don't include config.h and the specification header
58631         if VASNPRINTF is already defined.
58632         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58633         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58634         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58635         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58636         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58637         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58638         code accordingly.
58639         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58640         pad_ourselves also in this case, with the 'c' and 's' directives, and
58641         with a different notion of "width".
58642         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58643
58644 2007-06-10  Bruno Haible  <bruno@clisp.org>
58645
58646         * modules/unistr/u32-mbsnlen: New file.
58647         * lib/unistr/u32-mbsnlen.c: New file.
58648
58649         * modules/unistr/u16-mbsnlen: New file.
58650         * lib/unistr/u16-mbsnlen.c: New file.
58651
58652         * modules/unistr/u8-mbsnlen: New file.
58653         * lib/unistr/u8-mbsnlen.c: New file.
58654
58655         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58656         declarations.
58657
58658 2007-06-10  Bruno Haible  <bruno@clisp.org>
58659
58660         * lib/string_.h (mbsnlen): New declaration.
58661         * lib/mbsnlen.c: New file.
58662         * m4/mbsnlen.m4: New file.
58663         * modules/mbsnlen: New file.
58664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58665         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58666         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58667
58668 2007-06-10  Bruno Haible  <bruno@clisp.org>
58669
58670         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58671
58672 2007-06-10  Bruno Haible  <bruno@clisp.org>
58673
58674         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58675         * lib/mbuiter.h: Likewise.
58676
58677 2007-06-10  Bruno Haible  <bruno@clisp.org>
58678
58679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58680         declaration.
58681
58682 2007-06-10  Karl Berry  <karl@gnu.org>
58683
58684         * config/srclist.txt: remove gettext entries, Bruno prefers
58685         to update individually.
58686
58687 2007-06-10  Bruno Haible  <bruno@clisp.org>
58688
58689         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58690         'maxlen'. Ensure only length + width bytes are allocated, not
58691         length + 1 + width.
58692
58693 2007-06-09  Bruno Haible  <bruno@clisp.org>
58694
58695         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58696         (CHAR_T): Remove macro.
58697         (VASNPRINTF): Update.
58698
58699 2007-06-09  Bruno Haible  <bruno@clisp.org>
58700
58701         * MODULES.html.sh (Unicode string functions): Add the new modules.
58702
58703         * modules/uniconv/u32-conv-to-enc: New file.
58704         * lib/uniconv/u32-conv-to-enc.c: New file.
58705         * modules/uniconv/u32-conv-to-enc-tests: New file.
58706         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58707
58708         * modules/uniconv/u16-conv-to-enc: New file.
58709         * lib/uniconv/u16-conv-to-enc.c: New file.
58710         * lib/uniconv/u-conv-to-enc.h: New file.
58711         * modules/uniconv/u16-conv-to-enc-tests: New file.
58712         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58713
58714         * modules/uniconv/u8-conv-to-enc: New file.
58715         * lib/uniconv/u8-conv-to-enc.c: New file.
58716         * modules/uniconv/u8-conv-to-enc-tests: New file.
58717         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58718
58719         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58720         u32_conv_to_encoding): New declarations.
58721
58722 2007-06-09  Bruno Haible  <bruno@clisp.org>
58723
58724         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58725
58726 2007-06-09  Bruno Haible  <bruno@clisp.org>
58727
58728         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58729         * modules/malloca: Renamed from modules/allocsa, updated.
58730         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58731         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58732         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58733         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58734         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58735         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58736         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58737         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58738         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58739         * modules/c-strcasestr (Depends-on): Update.
58740         * lib/c-strcasestr.c: Update.
58741         * modules/c-strstr (Depends-on): Update.
58742         * lib/c-strstr.c: Update.
58743         * modules/canonicalize-lgpl (Depends-on): Update.
58744         * lib/canonicalize-lgpl.c: Update.
58745         * modules/clean-temp (Depends-on): Update.
58746         * lib/clean-temp.c: Update.
58747         * modules/csharpcomp (Depends-on): Update.
58748         * lib/csharpcomp.c: Update.
58749         * modules/csharpexec (Depends-on): Update.
58750         * lib/csharpexec.c: Update.
58751         * modules/javacomp (Depends-on): Update.
58752         * lib/javacomp.c: Update.
58753         * modules/javaexec (Depends-on): Update.
58754         * lib/javaexec.c: Update.
58755         * modules/mbscasestr (Depends-on): Update.
58756         * lib/mbscasestr.c: Update.
58757         * modules/mbsstr (Depends-on): Update.
58758         * lib/mbsstr.c: Update.
58759         * modules/setenv (Depends-on): Update.
58760         * lib/setenv.c: Update.
58761         * modules/strcasestr (Depends-on): Update.
58762         * lib/strcasestr.c: Update.
58763         * modules/striconveha (Depends-on): Update.
58764         * lib/striconveha.c: Update.
58765         * modules/relocatable-prog-wrapper (Files): Update.
58766         * lib/relocwrapper.c: Update.
58767         * build-aux/install-reloc: Update.
58768         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58769
58770 2007-06-08  Bruno Haible  <bruno@clisp.org>
58771
58772         Port to uClibc.
58773         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58774         * lib/fpurge.c (fpurge): Likewise.
58775         * lib/freading.c (freading): Likewise.
58776         * lib/fseeko.c (rpl_fseeko): Likewise.
58777         * lib/fseterr.c (fseterr): Likewise.
58778         * lib/fwriting.c (fwriting): Likewise.
58779         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58780
58781 2007-06-08  Bruno Haible  <bruno@clisp.org>
58782
58783         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58784         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58785         * modules/gettext (Files): Add m4/intlmacosx.m4.
58786
58787 2007-06-07  Bruno Haible  <bruno@clisp.org>
58788
58789         * modules/localename-tests: New file.
58790         * tests/test-localename.c: New file.
58791
58792         New module 'localename'.
58793         * lib/localename.h: New file.
58794         * lib/localename.c: New file, from GNU gettext.
58795         * m4/localename.m4: New file.
58796         * modules/localename: New file.
58797
58798 2007-06-07  Bruno Haible  <bruno@clisp.org>
58799
58800         Work around the lack of <wchar.h> on some builds of uClibc.
58801         * doc/headers/wchar.texi: Update.
58802         * lib/wchar_.h: Include <wchar.h> only if it exists.
58803         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58804         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58805         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58806         doesn't exist.
58807         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58808         * modules/mbfile (Depends-on): Add wchar.
58809         * modules/mbiter (Depends-on): Likewise.
58810         * modules/mbuiter (Depends-on): Likewise.
58811         Reported by Simon Josefsson.
58812
58813 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58814
58815         Work around problem reported by Steven M. Schweda in
58816         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58817         Tru64 5.1B with the Compaq compiler environment installed declares
58818         an 'isblank' function but does not define it in the C library.
58819         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58820         * lib/regex_internal.h (isblank): Likewise.
58821         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58822         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58823
58824 2007-06-05  Bruno Haible  <bruno@clisp.org>
58825
58826         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58827         ia64.
58828         * modules/printf-safe: New file.
58829         * modules/fprintf-posix (Depends-on): Add printf-safe.
58830         * modules/printf-posix (Depends-on): Likewise.
58831         * modules/snprintf-posix (Depends-on): Likewise.
58832         * modules/sprintf-posix (Depends-on): Likewise.
58833         * modules/vasnprintf-posix (Depends-on): Likewise.
58834         * modules/vasprintf-posix (Depends-on): Likewise.
58835         * modules/vfprintf-posix (Depends-on): Likewise.
58836         * modules/vprintf-posix (Depends-on): Likewise.
58837         * modules/vsnprintf-posix (Depends-on): Likewise.
58838         * modules/vsprintf-posix (Depends-on): Likewise.
58839         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58840         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58841         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58842         "no" on i386, x86_64, ia64.
58843         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58844         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58845         on i386, x86_64, ia64.
58846         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58847         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58848         on i386, x86_64, ia64.
58849         * tests/test-vasnprintf-posix.c: Include float.h.
58850         (LDBL80_WORDS): New macro.
58851         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58852         on i386, x86_64, ia64.
58853         * tests/test-vasprintf-posix.c: Include float.h.
58854         (LDBL80_WORDS): New macro.
58855         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58856         on i386, x86_64, ia64.
58857         * tests/test-snprintf-posix.c: Include float.h.
58858         * tests/test-sprintf-posix.c: Likewise.
58859         * tests/test-vsnprintf-posix.c: Likewise.
58860         * tests/test-vsprintf-posix.c: Likewise.
58861
58862 2007-06-05  Bruno Haible  <bruno@clisp.org>
58863
58864         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58865         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58866         non-IEEE numbers on i386, x86_64, ia64.
58867         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58868         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58869         * tests/test-isnanl.h: Include float.h.
58870         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58871
58872 2007-06-05  Bruno Haible  <bruno@clisp.org>
58873
58874         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58875         also the %a / %A. Handle the %a / %A code before this extra handling.
58876
58877 2007-06-05  Bruno Haible  <bruno@clisp.org>
58878
58879         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58880         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58881
58882 2007-06-05  Bruno Haible  <bruno@clisp.org>
58883
58884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58885         typo in variable name.
58886
58887 2007-06-05  Eric Blake  <ebb9@byu.net>
58888
58889         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58890         Reported by Simon Josefsson.
58891
58892 2007-06-04  Bruno Haible  <bruno@clisp.org>
58893
58894         Avoid test failures on some PowerPC platforms.
58895         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58896         Define differently for PowerPC.
58897         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58898         Reported by Gary V. Vaughan <gary@gnu.org>.
58899
58900 2007-06-02  Bruno Haible  <bruno@clisp.org>
58901
58902         Fix test-stdint failure on FreeBSD/ia64.
58903         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58904         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58905         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58906         * doc/headers/stdint.texi: Update.
58907
58908 2007-06-01  Bruno Haible  <bruno@clisp.org>
58909
58910         * tests/test-binary-io.c (main): Pass a third argument to open().
58911         Reported by Gary V. Vaughan <gary@gnu.org>.
58912
58913 2007-06-01  Bruno Haible  <bruno@clisp.org>
58914
58915         * doc/functions/frexpl.texi: Update for mingw.
58916
58917 2007-06-01  Bruno Haible  <bruno@clisp.org>
58918
58919         * tests/test-lseek.c (main): Disable test of errno for invalid third
58920         argument.
58921         * doc/functions/lseek.texi: Update.
58922         Reported by Gary V. Vaughan <gary@gnu.org>.
58923
58924 2007-05-28  Bruno Haible  <bruno@clisp.org>
58925
58926         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58927
58928 2007-05-31  Eric Blake  <ebb9@byu.net>
58929
58930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58931         cross compiling.
58932
58933 2007-05-30  Eric Blake  <ebb9@byu.net>
58934         and Bruno Haible  <bruno@clisp.org>
58935
58936         Work around mingw test failures exposed by m4-1.4.9b.
58937         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58938         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58939         moment.
58940
58941 2007-05-30  Bruno Haible  <bruno@clisp.org>
58942
58943         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58944         assuming that they are closed. Needed on HP-UX 11.
58945
58946 2007-05-29  Bruno Haible  <bruno@clisp.org>
58947
58948         Fix a problem with #include_next.
58949         * lib/dirent_.h: Split the double-inclusion guard.
58950         * lib/fcntl_.h: Likewise.
58951         * lib/float_.h: Likewise.
58952         * lib/iconv_.h: Likewise.
58953         * lib/inttypes_.h: Likewise.
58954         * lib/locale_.h: Likewise.
58955         * lib/math_.h: Likewise.
58956         * lib/netinet_in_.h: Likewise.
58957         * lib/search_.h: Likewise.
58958         * lib/signal_.h: Likewise.
58959         * lib/stdint_.h: Likewise.
58960         * lib/stdio_.h: Likewise.
58961         * lib/stdlib_.h: Likewise.
58962         * lib/string_.h: Likewise.
58963         * lib/sys_select_.h: Likewise.
58964         * lib/sys_socket_.h: Likewise.
58965         * lib/sys_stat_.h: Likewise.
58966         * lib/sys_time_.h: Likewise.
58967         * lib/sysexits_.h: Likewise.
58968         * lib/time_.h: Likewise.
58969         * lib/unistd_.h: Likewise.
58970         * lib/wchar_.h: Likewise.
58971         * lib/wctype_.h: Likewise.
58972
58973 2007-05-29  Bruno Haible  <bruno@clisp.org>
58974
58975         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58976         for the moment.
58977
58978 2007-05-29  Bruno Haible  <bruno@clisp.org>
58979
58980         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58981         invocation.
58982         Reported by Eric Blake.
58983
58984 2007-05-29  Bruno Haible  <bruno@clisp.org>
58985
58986         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58987         compiling case.
58988
58989 2007-05-29  Eric Blake  <ebb9@byu.net>
58990             Bruno Haible  <bruno@clisp.org>
58991
58992         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58993         cross compiles.
58994
58995 2007-05-28  Eric Blake  <ebb9@byu.net>
58996
58997         * modules/closein-tests (test_closein_LDADD): Support test on
58998         cygwin with libtool.
58999
59000 2007-05-28  Bruno Haible  <bruno@clisp.org>
59001
59002         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59003         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59004         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59005         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59006         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59007         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59008         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59009         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59010         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59011
59012 2007-05-28  Eric Blake  <ebb9@byu.net>
59013
59014         Unconditionally include <config.h> in unit tests.
59015         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59016         * tests/test-allocsa.c, tests/test-arcfour.c,
59017         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59018         tests/test-array_list.c, tests/test-array_oset.c,
59019         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59020         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59021         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59022         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59023         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59024         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59025         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59026         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59027         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59028         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59029         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59030         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59031         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59032         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59033         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59034         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59035         test-md5.c, test-memmem.c, test-printf-posix.c,
59036         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59037         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59038         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59039         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59040         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59041         test-vasnprintf-posix2.c, test-vasnprintf.c,
59042         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59043         test-vfprintf-posix.c, test-vprintf-posix.c,
59044         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59045         test-xvasprintf.c: Likewise.
59046
59047 2007-05-28  Bruno Haible  <bruno@clisp.org>
59048
59049         * gnulib-tool (func_import): Remember the --with-tests command-line
59050         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59051         Reported by Eric Blake.
59052
59053 2007-05-28  Bruno Haible  <bruno@clisp.org>
59054
59055         * modules/ftell-tests: New file.
59056         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59057         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59058
59059         * lib/ftell.c: New file.
59060         * modules/ftell: New file.
59061         * m4/ftell.m4: New file.
59062         * doc/functions/ftell.texi: Update.
59063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59064         REPLACE_FTELL.
59065         * lib/stdio_.h (rpl_ftell): New declaration.
59066         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59067         REPLACE_FTELL.
59068
59069 2007-05-28  Eric Blake  <ebb9@byu.net>
59070
59071         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59072
59073 2007-05-28  Bruno Haible  <bruno@clisp.org>
59074
59075         * modules/fseek-tests: New file.
59076         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59077         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59078
59079         * lib/fseek.c: New file.
59080         * modules/fseek: New file.
59081         * m4/fseek.m4: New file.
59082         * doc/functions/fseek.texi: Update.
59083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59084         REPLACE_FSEEK.
59085         * lib/stdio_.h (rpl_fseek): New declaration.
59086         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59087         REPLACE_FSEEK.
59088
59089 2007-05-28  Bruno Haible  <bruno@clisp.org>
59090
59091         * lib/stdio_.h (fflush): More comments.
59092
59093 2007-05-28  Bruno Haible  <bruno@clisp.org>
59094
59095         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59096         runtime test.
59097
59098 2007-05-28  Eric Blake  <ebb9@byu.net>
59099
59100         Improve lseek module.
59101         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59102         * lib/unistd_.h (lseek): Scale back link warning message.
59103         * tests/test-lseek.c: Beef up test.
59104         * tests/test-lseek.sh: Exercise more facets of lseek.
59105         Reported by Bruno Haible.
59106
59107 2007-05-28  Bruno Haible  <bruno@clisp.org>
59108
59109         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59110         to define.
59111
59112 2007-05-27  Bruno Haible  <bruno@clisp.org>
59113
59114         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59115
59116 2007-05-27  Bruno Haible  <bruno@clisp.org>
59117
59118         * modules/openmp: New file.
59119         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59120         Noah Misch.
59121
59122 2007-05-26  Bruno Haible  <bruno@clisp.org>
59123
59124         * modules/chdir-long (Depends-on): Add fchdir.
59125         * modules/chdir-safer (Depends-on): Likewise.
59126         * modules/fts (Depends-on): Likewise.
59127         * modules/fts-lgpl (Depends-on): Likewise.
59128         * modules/openat (Depends-on): Likewise.
59129         * modules/savewd (Depends-on): Likewise.
59130
59131 2007-05-24  Eric Blake  <ebb9@byu.net>
59132
59133         Fix lseek on mingw.
59134         * modules/lseek: New module.
59135         * m4/lseek.m4: New file.
59136         * lib/lseek.c: New file.
59137         * modules/lseek-tests: New file.
59138         * tests/test-lseek.c: New file.
59139         * tests/test-lseek.sh: New file.
59140         * MODULES.html.sh: Document lseek module.
59141         * modules/fflush (Depends-on): Add lseek, fseeko.
59142         * modules/fseeko (Depends-on): Likewise.
59143         * modules/ftello (Depends-on): Likewise.
59144         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59145         broken.
59146         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59147         broken.
59148         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59149         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59150         * lib/ftello.c (rpl_ftello): Likewise.
59151         * tests/test-fseeko.c (main): Test this.
59152         * tests/test-fseeko.sh: Likewise.
59153         * tests/test-ftello.c (main): Likewise.
59154         * tests/test-ftello.sh: Likewise.
59155         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59156         implies replacing fseek.
59157         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59158         HAVE_FTELLO.
59159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59160         * modules/unistd (Makefile.am): Likewise.
59161         * lib/unistd_.h (lseek): Declare a replacement.
59162         * doc/functions/lseek.texi (lseek): Document this fix.
59163         * doc/functions/fseek.texi (fseek): Likewise.
59164         * doc/functions/ftell.texi (ftell): Likewise.
59165
59166 2007-05-24  Bruno Haible  <bruno@clisp.org>
59167
59168         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59169         in the printed representation of a NaN.
59170         * tests/test-vasprintf-posix.c (test_function): Likewise.
59171         * tests/test-snprintf-posix.h (test_function): Likewise.
59172         * tests/test-sprintf-posix.h (test_function): Likewise.
59173         Reported by Eric Blake.
59174
59175 2007-05-23  Eric Blake  <ebb9@byu.net>
59176
59177         Fix fseeko/ftello on cygwin 1.5.24.
59178         * doc/functions/fseeko.texi (fseeko): Document the fix.
59179         * doc/functions/ftello.texi (ftello): Document the fix.
59180         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59181         * doc/functions/stdout.text (stdout): New file.
59182         * doc/functions/stderr.text (stderr): New file.
59183         * doc/gnulib.texi (Function Substitutes): Use new files.
59184         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59185         prior to 1.7.0.
59186         * tests/test-ftello.c (main): Likewise for ftello.
59187         * tests/test-fseeko.sh: New file.
59188         * tests/test-ftello.sh: New file.
59189         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59190         with seekable stdin.
59191         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59192         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59193         (gl_REPLACE_FSEEKO): New macro.
59194         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59195         * modules/fseeko (Files): Distribute fseeko.c.
59196         * modules/ftello (Files): Distribute ftello.c.
59197         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59198         mode.
59199         * lib/ftello.c (rpl_ftello): New file.
59200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59201         fseeko, ftello.
59202         (gl_STDIN_LARGE_OFFSET): New macro.
59203         * modules/stdio (Makefile.am): Perform the replacement.
59204         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59205
59206 2007-05-23  Bruno Haible  <bruno@clisp.org>
59207
59208         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59209         GNULIB_POSIXCHECK is defined.
59210
59211 2007-05-21  Bruno Haible  <bruno@clisp.org>
59212
59213         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59214         Check also the output for NaN arguments. When cross-compiling, guess
59215         no on IRIX.
59216         * lib/vasnprintf.c: Update comments.
59217         * tests/test-vasnprintf-posix.c (strisnan): New function.
59218         (test_function): Use it.
59219         * tests/test-vasprintf-posix.c (strisnan): New function.
59220         (test_function): Use it.
59221         * tests/test-snprintf-posix.h (strisnan): New function.
59222         (test_function): Use it.
59223         * tests/test-sprintf-posix.h (strisnan): New function.
59224         (test_function): Use it.
59225         Reported by Eric Blake.
59226
59227 2007-05-20  Bruno Haible  <bruno@clisp.org>
59228
59229         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59230         numbers that fails on BeOS.
59231         * doc/functions/frexpl.texi: Update.
59232
59233 2007-05-20  Jim Meyering  <jim@meyering.net>
59234
59235         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59236         forced upon us by glibc-2.6.
59237
59238 2007-05-20  Bruno Haible  <bruno@clisp.org>
59239
59240         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59241         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59242         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59243         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59244         NEED_PRINTF_INFINITE.
59245         (is_infinitel): New function.
59246         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59248         gl_PREREQ_VASNPRINTF_INFINITE.
59249         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59250         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59251         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59252         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59253         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59254         gl_PREREQ_VASNPRINTF_INFINITE.
59255         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59256         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59257         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59258         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59259         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59260         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59261         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59262         * doc/functions/fprintf.texi: Update.
59263         * doc/functions/printf.texi: Update.
59264         * doc/functions/snprintf.texi: Update.
59265         * doc/functions/sprintf.texi: Update.
59266         * doc/functions/vfprintf.texi: Update.
59267         * doc/functions/vprintf.texi: Update.
59268         * doc/functions/vsnprintf.texi: Update.
59269         * doc/functions/vsprintf.texi: Update.
59270
59271 2007-05-20  Bruno Haible  <bruno@clisp.org>
59272
59273         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59274         was not found in libc.
59275         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59276
59277 2007-05-20  Bruno Haible  <bruno@clisp.org>
59278
59279         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59280         printed as "-nan" instead of "nan".
59281         * tests/test-vasprintf-posix.c (test_function): Likewise.
59282         * tests/test-snprintf-posix.h (test_function): Likewise.
59283         * tests/test-sprintf-posix.h (test_function): Likewise.
59284         Needed for HP-UX 11.
59285
59286 2007-05-20  Jim Meyering  <jim@meyering.net>
59287
59288         Fix buggy test for the fchownat-deref bug.
59289         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59290         symlink required for the run-test.  Without it, this test would
59291         always declare that fchownat doesn't work, and client code would
59292         unnecessarily use the replacement function with fixed libc.
59293         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59294         Reported by Greg Schafer.
59295
59296 2007-05-19  Bruno Haible  <bruno@clisp.org>
59297
59298         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59299         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59300         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59301         Needed for IRIX 6.5 and Solaris 2.5.1.
59302
59303 2007-05-19  Bruno Haible  <bruno@clisp.org>
59304
59305         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59306         (test_function): Skip tests involving -0.0 on platforms where
59307         -0.0 = 0.0.
59308         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59309         (test_function): Skip tests involving -0.0 on platforms where
59310         -0.0 = 0.0.
59311         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59312         (test_function): Skip tests involving -0.0 on platforms where
59313         -0.0 = 0.0.
59314         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59315         (test_function): Skip tests involving -0.0 on platforms where
59316         -0.0 = 0.0.
59317         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59318         tests.
59319         * tests/test-printf-posix.h (test_function): Likewise.
59320         * tests/test-printf-posix.output: Remove all -0.0 related results.
59321         Needed for IRIX 6.5.
59322
59323 2007-05-19  Bruno Haible  <bruno@clisp.org>
59324
59325         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59326         printed as "nan0x7fffffff" instead of "nan".
59327         * tests/test-vasprintf-posix.c (test_function): Likewise.
59328         * tests/test-snprintf-posix.h (test_function): Likewise.
59329         * tests/test-sprintf-posix.h (test_function): Likewise.
59330         * tests/test-fprintf-posix.h (NaN): Remove macro.
59331         (test_function): Remove all NaN related tests.
59332         * tests/test-printf-posix.h (NaN): Remove macro.
59333         (test_function): Remove all NaN related tests.
59334         * tests/test-printf-posix.output: Remove all NaN related results.
59335         Needed for IRIX 6.5.
59336
59337 2007-05-19  Bruno Haible  <bruno@clisp.org>
59338
59339         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59341
59342 2007-05-19  Bruno Haible  <bruno@clisp.org>
59343
59344         * lib/float_.h: New file.
59345         * m4/float_h.m4: New file.
59346         * modules/float: New file.
59347         * modules/isnanl (Dependencies): Add float.
59348         * modules/isnanl-nolibm (Dependencies): Likewise.
59349         * modules/mathl (Dependencies): Likewise.
59350         * modules/printf-frexpl (Dependencies): Likewise.
59351         * modules/signbit (Dependencies): Likewise.
59352         * modules/vasnprintf (Dependencies): Likewise.
59353         * doc/headers/float.texi: Update.
59354
59355 2007-05-19  Jim Meyering  <jim@meyering.net>
59356
59357         * lib/utimens.c (gl_futimens): Rename from futimens,
59358         now that glibc-2.6 declares futimens.
59359         * lib/utimens.h: Likewise.
59360
59361 2007-05-19  Bruno Haible  <bruno@clisp.org>
59362
59363         Avoid test failures on mingw.
59364         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59365         * tests/test-printf-posix.sh: Likewise.
59366         * tests/test-vfprintf-posix.sh: Likewise.
59367         * tests/test-vprintf-posix.sh: Likewise.
59368
59369 2007-05-19  Bruno Haible  <bruno@clisp.org>
59370
59371         Fix *printf result for NaN, Inf, -0.0 on mingw.
59372         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59373         * lib/vasnprintf.c: Include math.h and isnan.h.
59374         (is_infinite_or_zero): New function.
59375         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59376         values in the %f, %F, %e, %E, %g, %G directives.
59377         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59378         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59379         gl_PRINTF_INFINITE and test its result. Invoke
59380         gl_PREREQ_VASNPRINTF_INFINITE.
59381         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59382         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59383         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59385         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59386         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59387         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59388         * doc/functions/fprintf.texi: Update.
59389         * doc/functions/printf.texi: Update.
59390         * doc/functions/snprintf.texi: Update.
59391         * doc/functions/sprintf.texi: Update.
59392         * doc/functions/vfprintf.texi: Update.
59393         * doc/functions/vprintf.texi: Update.
59394         * doc/functions/vsnprintf.texi: Update.
59395         * doc/functions/vsprintf.texi: Update.
59396
59397 2007-05-19  Bruno Haible  <bruno@clisp.org>
59398
59399         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59400         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59401         Instead of multiplying with 10^k, set extra_zeroes to k.
59402         (scale10_round_long_double): Remove function.
59403
59404 2007-05-18  Bruno Haible  <bruno@clisp.org>
59405
59406         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59407         introduced on 2007-05-06.
59408
59409 2007-05-18  Bruno Haible  <bruno@clisp.org>
59410
59411         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59412         %g directives.
59413         * tests/test-vasprintf-posix.c (test_function): Likewise.
59414         * tests/test-snprintf-posix.h (test_function): Likewise.
59415         * tests/test-sprintf-posix.h (test_function): Likewise.
59416
59417 2007-05-18  Bruno Haible  <bruno@clisp.org>
59418
59419         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59420         (strmatch): New function.
59421         (test_function): Test the %f directive on numbers of various exponents.
59422         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59423         (strmatch): New function.
59424         (test_function): Test the %f directive on numbers of various exponents.
59425         * tests/test-snprintf-posix.h (strmatch): New function.
59426         (test_function): Test the %f directive on numbers of various exponents.
59427         * tests/test-sprintf-posix.h (strmatch): New function.
59428         (test_function): Test the %f directive on numbers of various exponents.
59429         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59430         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59431         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59432         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59433
59434 2007-05-18  Bruno Haible  <bruno@clisp.org>
59435
59436         Add support for 'long double' number output.
59437         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59438         * lib/vasnprintf.c: Include math.h and float+.h.
59439         (mp_limb_t): New type.
59440         (GMP_LIMB_BITS): New macro.
59441         (mp_twolimb_t): New type.
59442         (GMP_TWOLIMB_BITS): New macro.
59443         (mpn_t): New type.
59444         (multiply, divide, convert_to_decimal, decode_long_double,
59445         scale10_round_long_double, scale10_round_decimal_long_double,
59446         floorlog10l): New functions.
59447         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59448         for the %f, %F, %e, %E, %g, %G directives.
59449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59450         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59451         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59452         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59453         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59454         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59455         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59456         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59457         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59458         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59459         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59460         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59461         * modules/snprintf-posix (Depends-on): Likewise.
59462         * modules/sprintf-posix (Depends-on): Likewise.
59463         * modules/vasnprintf-posix (Depends-on): Likewise.
59464         * modules/vasprintf-posix (Depends-on): Likewise.
59465         * modules/vfprintf-posix (Depends-on): Likewise.
59466         * modules/vsnprintf-posix (Depends-on): Likewise.
59467         * modules/vsprintf-posix (Depends-on): Likewise.
59468         * modules/vasnprintf (Files): Add lib/float+.h.
59469         * doc/functions/fprintf.texi: Update.
59470         * doc/functions/printf.texi: Update.
59471         * doc/functions/snprintf.texi: Update.
59472         * doc/functions/sprintf.texi: Update.
59473         * doc/functions/vfprintf.texi: Update.
59474         * doc/functions/vprintf.texi: Update.
59475         * doc/functions/vsnprintf.texi: Update.
59476         * doc/functions/vsprintf.texi: Update.
59477
59478 2007-05-18  Bruno Haible  <bruno@clisp.org>
59479
59480         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59481
59482 2007-05-18  Bruno Haible  <bruno@clisp.org>
59483
59484         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59485         for printing 64-bit integers. Needed for mingw.
59486
59487 2007-05-18  Bruno Haible  <bruno@clisp.org>
59488
59489         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59490         gl_FUNC_FREXPL_WORKS.
59491         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59492
59493 2007-05-18  Bruno Haible  <bruno@clisp.org>
59494
59495         * modules/frexpl-nolibm-tests: New file.
59496
59497         * modules/frexpl-nolibm: New file.
59498         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59499
59500 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59501
59502         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59503         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59504         GCC 4.2, which otherwise issues a lot of warnings.
59505         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59506         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59507         Likewise.
59508         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59509         * modules/iconv_open (iconv.h): Likewise.
59510         * modules/locale (locale.h): Likewise.
59511         * modules/netinet_in (netinet/in.h): Likewise.
59512         * modules/sys_select (sys_select.h): Likewise.
59513         * modules/sys_socket (sys/socket.h): Likewise.
59514         * modules/sys_stat (sys/stat.h): Likewise.
59515         * modules/sysexits (sysexits.h): Likewise.
59516         * modules/unistd (unistd.h): Likewise.
59517
59518 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59519
59520         * modules/closein-tests (Makefile.am): Distribute
59521         `test-closein.sh'.
59522
59523 2007-05-17  Bruno Haible  <bruno@clisp.org>
59524
59525         * tests/test-printf-posix.output: Renamed from
59526         tests/test-fprintf-posix.out.
59527         * modules/fprintf-posix-tests: Update.
59528         * modules/printf-posix-tests: Update.
59529         * modules/vfprintf-posix-tests: Update.
59530         * modules/vprintf-posix-tests: Update.
59531         * tests/test-fprintf-posix.sh: Update.
59532         * tests/test-printf-posix.sh: Update.
59533         * tests/test-vfprintf-posix.sh: Update.
59534         * tests/test-vprintf-posix.sh: Update.
59535         Reported by Ralf Wildenhues.
59536
59537 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59538
59539         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59540         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59541         GCC 4.2, which otherwise issues a lot of warnings.
59542         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59543         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59544         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59545         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59546         it should no longer be needed.
59547         * lib/string_.h: Likewise.
59548         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59549         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59550         * modules/inttypes (inttypes.h): Likewise.
59551         * modules/math (math.h): Likewise.
59552         * modules/search (search.h): Likewise.
59553         * modules/signal (signal.h): Likewise.
59554         * modules/stdint (stdint.h): Likewise.
59555         * modules/stdio (stdio.h): Likewise.
59556         * modules/stdlib (stdlib.h): Likewise.
59557         * modules/string (string.h): Likewise.
59558         * modules/sys_time (sys/time.h): Likewise.
59559         * modules/time (time.h): Likewise.
59560         * modules/wchar (wchar.h): Likewise.
59561         * modules/wctype (wtype.h): Likewise.
59562
59563 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59564
59565         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59566
59567 2007-05-13  Bruno Haible  <bruno@clisp.org>
59568
59569         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59570         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59571         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59572         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59573         (gl_PREREQ_STRTOK_R): Don't require it here.
59574
59575 2007-05-13  Bruno Haible  <bruno@clisp.org>
59576
59577         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59578         when used in C++ mode.
59579
59580 2007-05-12  Bruno Haible  <bruno@clisp.org>
59581
59582         * lib/linebuffer.h: Tweak doc.
59583         * lib/linebuffer.c: Likewise.
59584
59585 2007-05-12  James Youngman  <jay@gnu.org>
59586
59587         * lib/linebuffer.c (readlinebuffer_delim): New function,
59588         like readlinebuffer, but use a caller-specified delimiter.
59589         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59590         as the delimiter.
59591         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59592
59593 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59594
59595         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59596         * modules/openat (Files): Remove openat-die.c.
59597         (Depends-on): Add openat-die.
59598         * modules/openat-die: New module.
59599
59600 2007-05-06  Bruno Haible  <bruno@clisp.org>
59601
59602         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59603         Update with info about Cygwin.
59604         * doc/functions/fprintf.texi: Update.
59605         * doc/functions/printf.texi: Update.
59606         * doc/functions/snprintf.texi: Update.
59607         * doc/functions/sprintf.texi: Update.
59608         * doc/functions/vfprintf.texi: Update.
59609         * doc/functions/vprintf.texi: Update.
59610         * doc/functions/vsnprintf.texi: Update.
59611         * doc/functions/vsprintf.texi: Update.
59612         Reported by Eric Blake.
59613
59614 2007-05-06  Bruno Haible  <bruno@clisp.org>
59615
59616         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59617         padding ourselves for the floating-point directives.
59618         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59620         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59621         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59622         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59623         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59624         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59625         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59626         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59627         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59628         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59629         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59630         * tests/test-snprintf-posix.h (test_function): Also check the width
59631         and some flags in the %f directive.
59632         * tests/test-sprintf-posix.h (test_function): Likewise.
59633         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59634         * tests/test-vasprintf-posix.c (test_function): Likewise.
59635         * doc/functions/fprintf.texi: Update.
59636         * doc/functions/printf.texi: Update.
59637         * doc/functions/snprintf.texi: Update.
59638         * doc/functions/sprintf.texi: Update.
59639         * doc/functions/vfprintf.texi: Update.
59640         * doc/functions/vprintf.texi: Update.
59641         * doc/functions/vsnprintf.texi: Update.
59642         * doc/functions/vsprintf.texi: Update.
59643
59644 2007-05-06  Bruno Haible  <bruno@clisp.org>
59645
59646         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59647         pass the ' flag character to sprintf or snprintf.
59648         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59651         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59652         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
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 grouping
59661         flag.
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-01  Bruno Haible  <bruno@clisp.org>
59675
59676         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59677
59678 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59679
59680         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59681         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59682
59683 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59684
59685         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59686         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59687         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59688
59689 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59690
59691         * lib/argp-help.c (struct hol_entry): New member `ord'.
59692         (HOL_ENTRY_PTRCMP): Use ord for comparison
59693         (hol_sort): Initialize ord.
59694
59695 2007-05-01  Bruno Haible  <bruno@clisp.org>
59696
59697         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59698         Reported by Eric Blake.
59699         * doc/gnulib.texi (Function Substitutes): Update.
59700
59701 2007-05-01  Bruno Haible  <bruno@clisp.org>
59702
59703         * doc/functions.texi: Remove file, now redundant through
59704         doc/functions/*.texi.
59705
59706 2007-05-01  Bruno Haible  <bruno@clisp.org>
59707
59708         * modules/argp (Depends-on): Add sleep.
59709
59710 2007-05-01  Bruno Haible  <bruno@clisp.org>
59711
59712         * modules/sleep-tests: New file.
59713         * tests/test-sleep.c: New file.
59714
59715         * modules/sleep: New file.
59716         * lib/sleep.c: New file.
59717         * m4/sleep.m4: New file.
59718         * lib/unistd_.h (sleep): New declaration.
59719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59720         HAVE_SLEEP.
59721         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59722         * doc/functions/sleep.texi: Document the sleep module.
59723
59724 2007-05-01  Bruno Haible  <bruno@clisp.org>
59725
59726         * lib/sigprocmask.h: Remove file.
59727         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59728         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59729         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59730         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59731         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59732         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59733         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59734         HAVE_SIGSET_T as a shell variable.
59735         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59736         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59737         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59738         (Depends-on): Add signal. Remove verify.
59739         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59740         (Include): Mention <signal.h> instead of sigprocmask.h.
59741         * NEWS: Mention the change.
59742         * lib/fatal-signal.c: Don't include sigprocmask.h.
59743
59744 2007-05-01  Bruno Haible  <bruno@clisp.org>
59745
59746         * modules/signal: New file.
59747         * lib/signal_.h: New file.
59748         * m4/signal_h.m4: New file.
59749
59750 2007-05-01  Bruno Haible  <bruno@clisp.org>
59751
59752         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59753         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59754         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59755         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59756
59757 2007-05-01  Bruno Haible  <bruno@clisp.org>
59758
59759         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59760         configure time.
59761         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59762         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59763         * modules/sys_stat (Makefile.am): Substitute their values into
59764         sys/stat.h.
59765
59766 2007-05-01  Bruno Haible  <bruno@clisp.org>
59767
59768         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59769         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59770         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59771
59772 2007-05-01  Bruno Haible  <bruno@clisp.org>
59773
59774         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59775         'assert' module here.
59776
59777 2007-05-01  Bruno Haible  <bruno@clisp.org>
59778
59779         * doc/functions/*.texi: New files.
59780         * doc/functions/google-ranking.txt: New file.
59781         * doc/gnulib.texi (Function Substitutes): New chapter.
59782         (ctime, inet_ntoa): Remove sections.
59783         * doc/ctime.texi: Remove file.
59784         * doc/inet_ntoa.texi: Remove file.
59785         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59786         dependencies.
59787         (%.info): New rule, specifying a --reference-limit.
59788
59789 2007-05-01  Bruno Haible  <bruno@clisp.org>
59790
59791         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59792
59793 2007-05-01  Bruno Haible  <bruno@clisp.org>
59794
59795         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59796         the portability of 'mkdir' to mingw systems.
59797
59798 2007-05-01  Bruno Haible  <bruno@clisp.org>
59799
59800         * doc/headers/google-ranking.txt: New file.
59801
59802 2007-04-30  Eric Blake  <ebb9@byu.net>
59803
59804         Prefer fseeko to fseek.
59805         * modules/getpass (Depends-on): Add fseeko.
59806         * lib/getpass.c (getpass): Use fseeko, not fseek.
59807
59808 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59809
59810         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59811         assumes the sorting is stable, while most qsort implementations
59812         are not.  Use argument addresses to ensure they never compare as
59813         equal.
59814
59815         * tests/test-argp-2.sh (usage-indent test): Fix output
59816         (func_compare): Restore diff options
59817         * tests/test-argp.c: Restore #include "progname.h"
59818
59819 2007-04-29  Bruno Haible  <bruno@clisp.org>
59820
59821         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59822         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59823         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59825         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59826         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59827         (TESTS, check_PROGRAMS): Add test-snprintf.
59828         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59829         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59830         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59831         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59832         assertions that fail on HP-UX, OSF/1, or IRIX.
59833         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59834
59835 2007-04-29  Bruno Haible  <bruno@clisp.org>
59836
59837         * MODULES.html.sh (posix_functions): Remove 'contents'.
59838
59839 2007-04-29  Karl Berry  <karl@gnu.org>
59840
59841         * config/srclist.txt (gendocs_template_min): new entry.
59842
59843 2007-04-29  Bruno Haible  <bruno@clisp.org>
59844
59845         Work around fpurge bug on BSD systems.
59846         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59847         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59848         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59849         fpurge to rpl_fpurge if the system already has this function.
59850         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59851         the case where the system already has this function. Correct invariants
59852         on BSD systems.
59853         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59854         BSD systems.
59855
59856 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59857
59858         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59859         proposed by Sven Verdoolaege.
59860
59861         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59862         options.
59863         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59864         (usage and help tests): Update
59865
59866 2007-04-29  Bruno Haible  <bruno@clisp.org>
59867
59868         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59869         Print more information in case of failure. Disable a test on BeOS.
59870
59871 2007-04-29  Bruno Haible  <bruno@clisp.org>
59872
59873         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59874         This helps debugging on systems on which no gdb is available.
59875
59876 2007-04-29  Bruno Haible  <bruno@clisp.org>
59877
59878         * lib/freading.h: Improve comments.
59879         * lib/fwriting.h: Likewise.
59880         * tests/test-freading.c (main): Don't check freading immediately after
59881         repositioning. Needed for glibc.
59882
59883 2007-04-29  Bruno Haible  <bruno@clisp.org>
59884
59885         * lib/freading.c (freading): Trivial simplification.
59886
59887 2007-04-28  Bruno Haible  <bruno@clisp.org>
59888
59889         * tests/test-fwriting.c (main): Also test the interaction between
59890         fflush and fwriting.
59891         * modules/fwriting-tests (Depends-on): Add fflush.
59892
59893         * tests/test-freading.c (main): Also test the interaction between
59894         fflush and freading.
59895         * modules/freading-tests (Depends-on): Add fflush.
59896
59897 2007-04-28  Bruno Haible  <bruno@clisp.org>
59898
59899         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59900         fseeko and ftello.
59901         Suggested by Eric Blake.
59902
59903 2007-04-28  Jim Meyering  <jim@meyering.net>
59904
59905         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59906         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59907         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59908
59909 2007-04-27  Eric Blake  <ebb9@byu.net>
59910
59911         * doc/headers/assert.texi (assert.h): Document assert module use.
59912
59913 2007-04-27  Bruno Haible  <bruno@clisp.org>
59914
59915         * doc/headers/*.texi: New files.
59916         * doc/gnulib.texi (Header File Substitutes): New chapter.
59917         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59918         dependencies.
59919         (standards.info ,standards.html, standards.dvi): Update dependencies.
59920         (mostlyclean, clean): New targets.
59921
59922 2007-04-27  Bruno Haible  <bruno@clisp.org>
59923
59924         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59925         * modules/sysexits (Files, Makefile.am): Update.
59926
59927         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59928         * modules/sys_socket (Files, Makefile.am): Update.
59929
59930         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59931         * modules/sys_stat (Files, Makefile.am): Update.
59932
59933 2007-04-27  Eric Blake  <ebb9@byu.net>
59934
59935         * lib/freading.h: Improve comments.
59936         * lib/fwriting.h: Likewise.
59937         * lib/fflush.c: Likewise.
59938
59939         Fix closein for mingw.
59940         * modules/closein-tests: Add tests for closein.
59941         * tests/test-closein.c: New file.
59942         * tests/test-closein.sh: Likewise.
59943         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59944         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59945
59946 2007-04-27  Bruno Haible  <bruno@clisp.org>
59947
59948         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59949         version is < 6.
59950         * lib/math_.h [__DECC]: Likewise.
59951         * lib/stdio_.h [__DECC]: Likewise.
59952         * lib/stdlib_.h [__DECC]: Likewise.
59953         * lib/string_.h [__DECC]: Likewise.
59954         * lib/time_.h [__DECC]: Likewise.
59955         * lib/wchar_.h [__DECC]: Likewise.
59956         * lib/wctype_.h [__DECC]: Likewise.
59957
59958 2007-04-27  Bruno Haible  <bruno@clisp.org>
59959
59960         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59961
59962 2007-04-27  Bruno Haible  <bruno@clisp.org>
59963
59964         * lib/fflush.c: Add comments.
59965         * modules/fpurge-tests (Depends-on): Add fflush.
59966         * modules/freadable-tests (Depends-on): Likewise.
59967         * modules/fwritable-tests (Depends-on): Likewise.
59968
59969 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59970
59971         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59972         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59973         Report by Bruno Haible <bruno@clisp.org>.
59974
59975 2007-04-26  Eric Blake  <ebb9@byu.net>
59976
59977         Fix fflush on mingw.
59978         * modules/fflush (Depends-on): Add freading.
59979         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59980         but unread data.
59981
59982 2007-04-26  Eric Blake  <ebb9@byu.net>
59983         and Bruno Haible  <bruno@clisp.org>
59984
59985         Implement freading and fwriting.
59986         * lib/freading.c: New file.
59987         * lib/freading.h: Likewise.
59988         * m4/freading.m4: Likewise.
59989         * modules/freading: Likewise.
59990         * modules/freading-tests: Likewise.
59991         * tests/test-freading.c: Likewise.
59992         * lib/fwriting.c: New file.
59993         * lib/fwriting.h: Likewise.
59994         * m4/fwriting.m4: Likewise.
59995         * modules/fwriting: Likewise.
59996         * modules/fwriting-tests: Likewise.
59997         * tests/test-fwriting.c: Likewise.
59998         * MODULES.html.sh (File stream based Input/Output): Mention them.
59999
60000 2007-04-26  Bruno Haible  <bruno@clisp.org>
60001
60002         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60003         'long' when we assume it.
60004         Suggested by Eric Blake.
60005
60006 2007-04-26  Bruno Haible  <bruno@clisp.org>
60007
60008         Ensure fseeko, ftello are declared on glibc systems.
60009         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60010         * modules/fseeko (configure.ac-early): Likewise.
60011         * modules/ftello (configure.ac-early): Likewise.
60012         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60013         AC_FUNC_FSEEKO for this.
60014         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60015         (gl_CHECK_FSEEKO): Remove macro.
60016
60017 2007-04-26  Bruno Haible  <bruno@clisp.org>
60018
60019         * tests/test-fflush.c (main): Also check the ftell result after
60020         fflush and fseek/fseeko.
60021         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60022         file descriptor position cache in the stream.
60023         * lib/fseeko.c (rpl_fseeko): Likewise.
60024
60025 2007-04-26  Bruno Haible  <bruno@clisp.org>
60026
60027         * modules/fflush-tests (Depends-on): Add fseeko.
60028
60029 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60030             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60031
60032         * lib/argz_.h: ensure error_t definition is obtained in same
60033         mechanism system argz.h would have.
60034         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60035         argz facilities are known bad.  Err on the side of caution if
60036         cross-compiling.
60037
60038 2007-04-25  Eric Blake  <ebb9@byu.net>
60039
60040         * lib/fpurge.c (includes): Use stdlib.h for free.
60041         * tests/test-fflush.c (main): Also test fflush-fseeko.
60042
60043 2007-04-25  Bruno Haible  <bruno@clisp.org>
60044
60045         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60046         * lib/fseeko.c: New file.
60047         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60048         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60049         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60050         gl_FUNC_FSEEKO.
60051         (gl_FUNC_FSEEKO): Invoke it.
60052         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60053         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60054         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60055
60056 2007-04-25  Bruno Haible  <bruno@clisp.org>
60057
60058         * modules/fflush (Depends-on): Add ftello.
60059
60060 2007-04-25  Bruno Haible  <bruno@clisp.org>
60061
60062         * modules/ftello-tests: New file.
60063         * tests/test-ftello.c: New file.
60064
60065         * modules/ftello: New file.
60066         * m4/ftello.m4: New file.
60067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60068         HAVE_FTELLO.
60069         * lib/stdio_.h (ftello): New declaration.
60070         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60071         HAVE_FTELLO.
60072
60073 2007-04-25  Bruno Haible  <bruno@clisp.org>
60074
60075         * modules/fseeko-tests: New file.
60076         * tests/test-fseeko.c: New file.
60077
60078         * modules/fseeko: New file.
60079         * m4/fseeko.m4: New file.
60080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60081         HAVE_FSEEKO.
60082         * lib/stdio_.h (fseeko): New declaration.
60083         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60084         HAVE_FSEEKO.
60085
60086 2007-04-25  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60089
60090 2007-04-25  Bruno Haible  <bruno@clisp.org>
60091
60092         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60093         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60094         * tests/test-unistd.c: Likewise.
60095         * tests/test-fcntl.c: Likewise.
60096
60097 2007-04-23  Eric Blake  <ebb9@byu.net>
60098
60099         * lib/fflush.c: Fix missing include.
60100         Reported by Bruno Haible.
60101
60102 2007-04-23  Bruno Haible  <bruno@clisp.org>
60103
60104         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60105         Reported by Eric Blake.
60106
60107 2007-04-23  Bruno Haible  <bruno@clisp.org>
60108
60109         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60110
60111 2007-04-23  Bruno Haible  <bruno@clisp.org>
60112
60113         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60114
60115 2007-04-23  Bruno Haible  <bruno@clisp.org>
60116
60117         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60118         Needed on HP-UX 11.
60119
60120 2007-04-16  Eric Blake  <ebb9@byu.net>
60121
60122         Make fflush rely on fpurge.
60123         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60124         open coding all variants.
60125         * modules/fflush (Depends-on): Add fpurge and unistd.
60126         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60127         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60128
60129         Fix --with-tests compilation on cygwin.
60130         * modules/argmatch-tests (Makefile.am): List gnulib library first
60131         in LDADD.
60132         * modules/argp-tests (Makefile.am): Likewise.
60133         * modules/array-list-tests (Makefile.am): Likewise.
60134         * modules/array-oset-tests (Makefile.am): Likewise.
60135         * modules/avltree-list-tests (Makefile.am): Likewise.
60136         * modules/avltree-oset-tests (Makefile.am): Likewise.
60137         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60138         * modules/carray-list-tests (Makefile.am): Likewise.
60139         * modules/dirname-tests (Makefile.am): Likewise.
60140         * modules/frexp-tests (Makefile.am): Likewise.
60141         * modules/isnanl-tests (Makefile.am): Likewise.
60142         * modules/linked-list-tests (Makefile.am): Likewise.
60143         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60144         * modules/lock-tests (Makefile.am): Likewise.
60145         * modules/rbtree-list-tests (Makefile.am): Likewise.
60146         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60147         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60148         * modules/tls-tests (Makefile.am): Likewise.
60149         * modules/tsearch-tests (Makefile.am): Likewise.
60150         * modules/xvasprintf-tests (Makefile.am): Likewise.
60151
60152         Fix fpurge for cygwin.
60153         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60154         value.
60155         * modules/fpurge-tests (Depends-on): Clean up trash.
60156
60157 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60158
60159         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60160
60161         * m4/autobuild.m4: Re-indent.
60162
60163 2007-04-13  Bruno Haible  <bruno@clisp.org>
60164
60165         * modules/fpurge-tests: New file.
60166         * tests/test-fpurge.c: New file.
60167
60168         * modules/fpurge: New file.
60169         * lib/fpurge.h: New file.
60170         * lib/fpurge.c: New file.
60171         * m4/fpurge.m4: New file.
60172
60173 2007-04-13  Bruno Haible  <bruno@clisp.org>
60174
60175         * modules/fbufmode-tests: New file.
60176         * tests/test-fbufmode.c: New file.
60177
60178         * modules/fbufmode: New file.
60179         * lib/fbufmode.h: New file.
60180         * lib/fbufmode.c: New file.
60181         * m4/fbufmode.m4: New file.
60182
60183 2007-04-13  Bruno Haible  <bruno@clisp.org>
60184
60185         * modules/fwritable-tests: New file.
60186         * tests/test-fwritable.c: New file.
60187
60188         * modules/fwritable: New file.
60189         * lib/fwritable.h: New file.
60190         * lib/fwritable.c: New file.
60191         * m4/fwritable.m4: New file.
60192
60193 2007-04-13  Bruno Haible  <bruno@clisp.org>
60194
60195         * modules/freadable-tests: New file.
60196         * tests/test-freadable.c: New file.
60197
60198         * modules/freadable: New file.
60199         * lib/freadable.h: New file.
60200         * lib/freadable.c: New file.
60201         * m4/freadable.m4: New file.
60202
60203 2007-04-13  Bruno Haible  <bruno@clisp.org>
60204
60205         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60206         MOSTLYCLEANFILES.
60207
60208 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60209
60210         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60211         gzip bootstrap.conf to avoid dragging in i18n machinery.
60212         (gnulib_tool_option): Use it.
60213
60214 2007-04-13  Bruno Haible  <bruno@clisp.org>
60215
60216         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60217         %F directives.
60218         * tests/test-vasprintf-posix.c (test_function): Likewise.
60219         * tests/test-snprintf-posix.h (test_function): Likewise.
60220         * tests/test-sprintf-posix.h (test_function): Likewise.
60221         * tests/test-fprintf-posix.h (test_function): Likewise.
60222         * tests/test-printf-posix.h (test_function): Likewise.
60223         * tests/test-fprintf-posix.out: Likewise.
60224
60225 2007-04-13  Bruno Haible  <bruno@clisp.org>
60226
60227         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60228         * modules/tls-tests (configure.ac): Likewise.
60229         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60230
60231 2007-04-13  Bruno Haible  <bruno@clisp.org>
60232
60233         * lib/tls.c (glthread_tls_get): Fix return type.
60234         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60235
60236 2007-04-12  Eric Blake  <ebb9@byu.net>
60237
60238         * modules/gettime (Depends-on): Remove gettime.
60239         Reported by Dmitry V. Levin.
60240
60241 2007-04-12  Bruno Haible  <bruno@clisp.org>
60242
60243         * modules/fflush (Include): Mention <stdio.h>.
60244         * modules/strtoimax (Include): Mention <inttypes.h>.
60245         * modules/strtoumax (Include): Likewise.
60246
60247 2007-04-12  Eric Blake  <ebb9@byu.net>
60248
60249         * .cvsignore: New file.
60250         * .gitignore: Likewise.
60251
60252 2007-04-12  Bruno Haible  <bruno@clisp.org>
60253
60254         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60255         not before, since $(LDADD) often contains libgnu.a.
60256         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60257         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60258         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60259         Needed on Cygwin.
60260
60261 2007-04-12  Eric Blake  <ebb9@byu.net>
60262
60263         Work around glibc's failure to flush stdin on fclose.
60264         * lib/closein.c (close_stdin): Flush stdin before closing.
60265
60266         Work around glibc's failure to reset seekable stdin on exit.
60267         * modules/closein: New module.
60268         * lib/closein.c: New file.
60269         * lib/closein.h: Likewise.
60270         * m4/closein.m4: Likewise.
60271         * MODULES.html.sh (File stream based Input/Output): Document it.
60272
60273 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60274
60275         * gnulib-tool: Rename generated 'autobuild' script to
60276         'do-autobuild' in --create-megatestdir output.
60277
60278         * doc/gnulib.texi (Build robot for gnulib): Fix.
60279
60280 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60281
60282         * modules/sysexits (Depends-on): Add absolute-header.
60283
60284 2007-04-12  Eric Blake  <ebb9@byu.net>
60285
60286         No need to preserve errno on success.
60287         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60288         Reported by Bruno Haible.
60289
60290 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60291
60292         * MODULES.html.sh (Support for maintaining and releasing
60293         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60294
60295 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60296
60297         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60298
60299 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60300
60301         * modules/autobuild: New module.
60302
60303         * m4/autobuild.m4: New file.
60304
60305 2007-04-11  Bruno Haible  <bruno@clisp.org>
60306
60307         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60308         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60309         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60311         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60312         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60313         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60314         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60315         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60316         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60317         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60318         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60319         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60320         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60321         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60322         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60323         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60324         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60325         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60326         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60327         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60328         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60329         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60330         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60331         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60332         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60333         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60334         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60335         Reported by Eric Blake.
60336
60337 2007-04-11  Bruno Haible  <bruno@clisp.org>
60338
60339         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60340
60341 2007-04-10  Bruno Haible  <bruno@clisp.org>
60342
60343         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60344         for NaN and Infinity. Needed on FreeBSD 6.1.
60345         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60346         regarding results for "%010a" of Infinity and NaN.
60347         * tests/test-vasprintf-posix.c (test_function): Likewise.
60348         * tests/test-snprintf-posix.h (test_function): Likewise.
60349         * tests/test-sprintf-posix.h (test_function): Likewise.
60350         * tests/test-fprintf-posix.h (test_function): Likewise.
60351         * tests/test-printf-posix.h (test_function): Likewise.
60352         * tests/test-fprintf-posix.out: Likewise.
60353
60354 2007-04-10  Bruno Haible  <bruno@clisp.org>
60355
60356         * modules/locale-tests: New file.
60357         * tests/test-locale.c: New file.
60358
60359         * modules/locale: New file.
60360         * lib/locale_.h: New file.
60361         * m4/locale_h.m4: New file.
60362
60363 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60364             Bruno Haible  <bruno@clisp.org>
60365
60366         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60367         be determined, test for availability of the copysignf, copysign,
60368         copysignl functions.
60369         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60370         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60371         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60372
60373 2007-04-09  Eric Blake  <ebb9@byu.net>
60374
60375         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60376         * modules/stdio (Makefile.am): Support fflush.
60377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60378         * modules/fflush: New file.
60379         * lib/fflush.c: Likewise.
60380         * m4/fflush.m4: Likewise.
60381         * modules/fflush-tests: New test.
60382         * tests/test-fflush.c: Likewise.
60383         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60384
60385 2007-04-06  Bruno Haible  <bruno@clisp.org>
60386
60387         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60388         (VASNPRINTF): Use signbit for faster determination whether to print a
60389         minus sign.
60390         * modules/vasnprintf (Files): Remove lib/float+.h.
60391         * modules/fprintf-posix (Depends-on): Add signbit.
60392         * modules/snprintf-posix (Depends-on): Likewise.
60393         * modules/sprintf-posix (Depends-on): Likewise.
60394         * modules/vasnprintf-posix (Depends-on): Likewise.
60395         * modules/vasprintf-posix (Depends-on): Likewise.
60396         * modules/vfprintf-posix (Depends-on): Likewise.
60397         * modules/vsnprintf-posix (Depends-on): Likewise.
60398         * modules/vsprintf-posix (Depends-on): Likewise.
60399
60400 2007-04-06  Bruno Haible  <bruno@clisp.org>
60401
60402         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60403         * tests/test-frexpl.c (main): Likewise.
60404         * tests/test-ldexpl.c (main): Likewise.
60405         * modules/frexp-tests (Depends-on): Add signbit.
60406         * modules/frexpl-tests (Depdends-on): Likewise.
60407         * modules/ldexpl-tests (Depdends-on): Likewise.
60408
60409 2007-04-06  Bruno Haible  <bruno@clisp.org>
60410
60411         * modules/signbit-tests: New file.
60412         * tests/test-signbit.c: New file.
60413
60414         * modules/signbit: New file.
60415         * lib/signbitf.c: New file.
60416         * lib/signbitd.c: New file.
60417         * lib/signbitl.c: New file.
60418         * m4/signbit.m4: New file.
60419         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60420         (signbit): New macro.
60421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60422         REPLACE_SIGNBIT.
60423         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60424         REPLACE_FREXPL into math.h.
60425
60426 2007-04-06  Bruno Haible  <bruno@clisp.org>
60427
60428         * modules/isnanf-nolibm-tests: New file.
60429         * tests/test-isnanf.c: New file.
60430
60431         * modules/isnanf-nolibm: New file.
60432         * lib/isnanf.h: New file.
60433         * lib/isnanf.c: New file.
60434         * lib/isnan.c: Consider the USE_FLOAT macro.
60435         * m4/isnanf.m4: New file.
60436
60437 2007-04-06  Bruno Haible  <bruno@clisp.org>
60438
60439         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60440         (Link): New section.
60441
60442         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60443
60444 2007-04-06  Bruno Haible  <bruno@clisp.org>
60445
60446         Assume the 'long double' type.
60447         * m4/longdouble.m4: Remove file.
60448         * config/srclist.txt: Don't mention longdouble.m4.
60449         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60450         * lib/float+.h: Likewise.
60451         * lib/frexp.c: Likewise.
60452         * lib/printf-args.h: Likewise.
60453         * lib/printf-args.c: Likewise.
60454         * lib/printf-frexp.c: Likewise.
60455         * lib/printf-parse.c: Likewise.
60456         * lib/vasnprintf.c: Likewise.
60457         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60458         * m4/intl.m4: Likewise.
60459         * m4/isnanl.m4: Likewise.
60460         * m4/printf.m4: Likewise.
60461         * m4/printf-frexpl.m4: Likewise.
60462         * m4/vasnprintf.m4: Likewise.
60463         * modules/allocsa (Files): Remove m4/longdouble.m4.
60464         * modules/gettext (Files): Likewise.
60465         * modules/relocatable-prog-wrapper (Files): Likewise.
60466         * modules/vasnprintf (Files): Likewise.
60467         * modules/isnanl (Files): Likewise.
60468         (Include): Simplify.
60469         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60470         (Include): Simplify.
60471         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60472         (Include): Simplify.
60473         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60474         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60475         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60476         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60477         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60478         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60479         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60480         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60481         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60482         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60483         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60484         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60485         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60486         * tests/test-isnanl.c: Likewise.
60487         * tests/test-snprintf-posix.h: Likewise.
60488         * tests/test-sprintf-posix.h: Likewise.
60489         * tests/test-vasnprintf-posix.c: Likewise.
60490         * tests/test-vasnprintf-posix2.c: Likewise.
60491         * tests/test-vasprintf-posix.c: Likewise.
60492
60493 2007-04-06  Bruno Haible  <bruno@clisp.org>
60494
60495         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60496         * lib/math_.h [__DECC]: Include the overridden include file through
60497         #include_next, outside the double-inclusion guard.
60498         * lib/stdio_.h [__DECC]: Likewise.
60499         * lib/stdlib_.h [__DECC]: Likewise.
60500         * lib/string_.h [__DECC]: Likewise.
60501         * lib/time_.h [__DECC]: Likewise.
60502         * lib/wchar_.h [__DECC]: Likewise.
60503         * lib/wctype_.h [__DECC]: Likewise.
60504         * lib/inttypes_.h [__DECC]: Likewise.
60505         Reported by Albert Chin <china@thewrittenword.com> in
60506         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60507
60508 2007-04-04  Eric Blake  <ebb9@byu.net>
60509
60510         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60511         1.5.x.
60512
60513 2007-04-04  Bruno Haible  <bruno@clisp.org>
60514
60515         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60516         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60517
60518 2007-04-04  Bruno Haible  <bruno@clisp.org>
60519
60520         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60521         results for "%010a" of Infinity and NaN.
60522         * tests/test-vasprintf-posix.c (test_function): Likewise.
60523         * tests/test-snprintf-posix.h (test_function): Likewise.
60524         * tests/test-sprintf-posix.h (test_function): Likewise.
60525         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60526         * tests/test-printf-posix.h (test_function): Likewise.
60527         * tests/test-fprintf-posix.out: Update.
60528         Needed for FreeBSD 6.1.
60529
60530 2007-04-04  Bruno Haible  <bruno@clisp.org>
60531
60532         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60533         directly used by the gnulib modules nor by gnulib-tool.
60534
60535 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60536
60537         * DEPENDENCIES: Give overall description of version dependency
60538         desirability.  Use more-typical names for apps.
60539         Add shell, coreutils, diffutils, grep, tar, gzip.
60540
60541 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60542
60543         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60544
60545 2007-04-04  Karl Berry  <karl@gnu.org>
60546
60547         * MODULES.html.sh (func_module): missing '.
60548
60549 2007-04-03  Bruno Haible  <bruno@clisp.org>
60550
60551         * modules/argmatch-tests (Makefile.am): New variable
60552         test_argmatch_LDADD.
60553         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60554         * modules/array-list-tests (Makefile.am): New variable
60555         test_array_list_LDADD.
60556         * modules/array-oset-tests (Makefile.am): New variable
60557         test_array_oset_LDADD.
60558         * modules/avltree-list-tests (Makefile.am): New variable
60559         test_avltree_list_LDADD.
60560         * modules/avltree-oset-tests (Makefile.am): New variable
60561         test_avltree_oset_LDADD.
60562         * modules/avltreehash-list-tests (Makefile.am): New variable
60563         test_avltreehash_list_LDADD.
60564         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60565         test_canonicalize_lgpl_LDADD.
60566         * modules/carray-list-tests (Makefile.am): New variable
60567         test_carray_list_LDADD.
60568         * modules/dirname-tests (Makefile.am): New variable
60569         test_dirname_LDADD.
60570         * modules/linked-list-tests (Makefile.am): New variable
60571         test_linked_list_LDADD.
60572         * modules/linkedhash-list-tests (Makefile.am): New variable
60573         test_linkedhash_list_LDADD.
60574         * modules/rbtree-list-tests (Makefile.am): New variable
60575         test_rbtree_list_LDADD.
60576         * modules/rbtree-oset-tests (Makefile.am): New variable
60577         test_rbtree_oset_LDADD.
60578         * modules/rbtreehash-list-tests (Makefile.am): New variable
60579         test_rbtreehash_list_LDADD.
60580         * modules/xvasprintf-tests (Makefile.am): New variable
60581         test_xvasprintf_LDADD.
60582         Reported by Eric Blake.
60583
60584 2007-04-03  Eric Blake  <ebb9@byu.net>
60585
60586         * DEPENDENCIES: Weaken m4 requirements.
60587
60588 2007-04-03  Bruno Haible  <bruno@clisp.org>
60589
60590         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60591         * modules/isnanl-tests (configure.ac): Likewise.
60592
60593 2007-04-03  Ben Pfaff  <blp@gnu.org>
60594
60595         * modules/iconv_open: Add $(srcdir)/ to source directory
60596         references in Makefile fragments that call gperf, to fix VPATH
60597         builds.
60598
60599 2007-04-03  Bruno Haible  <bruno@clisp.org>
60600
60601         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60602         * lib/ldexpl.c: Undo last change.
60603
60604 2007-04-03  Bruno Haible  <bruno@clisp.org>
60605
60606         * modules/printf-frexpl (Depends-on): Undo last change.
60607         (Files): Add m4/ldexpl.m4.
60608
60609 2007-04-03  Bruno Haible  <bruno@clisp.org>
60610
60611         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60612         * modules/isnanl (Link): New section.
60613
60614         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60615         * modules/frexp (Link): New section.
60616
60617         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60618         * modules/frexpl (Link): New section.
60619
60620         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60621         * modules/ldexpl (Link): New section.
60622
60623 2007-04-03  Bruno Haible  <bruno@clisp.org>
60624
60625         * modules/TEMPLATE-EXTENDED: New file.
60626         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60627
60628 2007-04-03  Bruno Haible  <bruno@clisp.org>
60629
60630         * DEPENDENCIES: New file.
60631         Suggested by Simon Josefsson.
60632
60633 2007-04-03  Bruno Haible  <bruno@clisp.org>
60634
60635         * doc/gnulib.texi: Escape @.
60636
60637 2007-04-03  James Youngman  <jay@gnu.org>
60638         and Paul Eggert  <eggert@cs.ucla.edu>
60639
60640         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60641         birthtime on all systems that have birthtime, not just those which
60642         use st_birthtimensec rather than st_birthtim.  Putting zero in
60643         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60644         that the birth time is not available for files on an NFS mount.
60645
60646 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60647
60648         * modules/memxor: Move back from crypto/, suggested by Bruno.
60649         * modules/crypto/hmac-sha1: Fix memxor dependency.
60650
60651         * modules/crypto/gc: Moved from ../.
60652
60653 2007-04-02  Eric Blake  <ebb9@byu.net>
60654
60655         * lib/ldexpl.c (includes): Avoid libm.
60656
60657         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60658
60659 2007-04-02  Bruno Haible  <bruno@clisp.org>
60660
60661         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60662         on IRIX.
60663
60664 2007-04-02  Bruno Haible  <bruno@clisp.org>
60665
60666         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60667         x86 or x86_64 platforms running MacOS X.
60668         Reported by Ryan Schmidt <@ryandesign.com>.
60669
60670 2007-04-02  Bruno Haible  <bruno@clisp.org>
60671
60672         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60673         i386.
60674
60675 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60676
60677         * modules/crypto/arcfour: Moved from ../.
60678         * modules/crypto/arcfour-tests: Moved from ../.
60679         * modules/crypto/arctwo: Moved from ../.
60680         * modules/crypto/arctwo-tests: Moved from ../.
60681         * modules/crypto/des: Moved from ../.
60682         * modules/crypto/des-tests: Moved from ../.
60683         * modules/crypto/gc-arcfour: Moved from ../.
60684         * modules/crypto/gc-arcfour-tests: Moved from ../.
60685         * modules/crypto/gc-arctwo: Moved from ../.
60686         * modules/crypto/gc-arctwo-tests: Moved from ../.
60687         * modules/crypto/gc-des: Moved from ../.
60688         * modules/crypto/gc-des-tests: Moved from ../.
60689         * modules/crypto/gc-hmac-md5: Moved from ../.
60690         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60691         * modules/crypto/gc-hmac-sha1: Moved from ../.
60692         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60693         * modules/crypto/gc-md2: Moved from ../.
60694         * modules/crypto/gc-md2-tests: Moved from ../.
60695         * modules/crypto/gc-md4: Moved from ../.
60696         * modules/crypto/gc-md4-tests: Moved from ../.
60697         * modules/crypto/gc-md5: Moved from ../.
60698         * modules/crypto/gc-md5-tests: Moved from ../.
60699         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60700         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60701         * modules/crypto/gc-random: Moved from ../.
60702         * modules/crypto/gc-rijndael: Moved from ../.
60703         * modules/crypto/gc-rijndael-tests: Moved from ../.
60704         * modules/crypto/gc-sha1: Moved from ../.
60705         * modules/crypto/gc-sha1-tests: Moved from ../.
60706         * modules/crypto/gc-tests: Moved from ../.
60707         * modules/crypto/hmac-md5: Moved from ../.
60708         * modules/crypto/hmac-md5-tests: Moved from ../.
60709         * modules/crypto/hmac-sha1: Moved from ../.
60710         * modules/crypto/hmac-sha1-tests: Moved from ../.
60711         * modules/crypto/md2: Moved from ../.
60712         * modules/crypto/md2-tests: Moved from ../.
60713         * modules/crypto/md4: Moved from ../.
60714         * modules/crypto/md4-tests: Moved from ../.
60715         * modules/crypto/md5: Moved from ../.
60716         * modules/crypto/md5-tests: Moved from ../.
60717         * modules/crypto/memxor: Moved from ../.
60718         * modules/crypto/rijndael: Moved from ../.
60719         * modules/crypto/rijndael-tests: Moved from ../.
60720         * modules/crypto/sha1: Moved from ../.
60721
60722 2007-03-30  James Youngman  <jay@gnu.org>
60723
60724         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60725         rename() to change the ctime of a file (because ctime is unaffected
60726         by rename on jfs2 on AIX 5.1).
60727         (main): Start by doing cleanup, in case a previous run failed leaving
60728         test files behind.
60729
60730 2007-03-31  Bruno Haible  <bruno@clisp.org>
60731
60732         Support old proprietary implementations of iconv.
60733         * modules/iconv_open: New file.
60734         * lib/iconv_.h: New file.
60735         * m4/iconv_h.m4: New file.
60736         * lib/iconv_open.c: New file.
60737         * lib/iconv_open-aix.gperf: New file.
60738         * lib/iconv_open-hpux.gperf: New file.
60739         * lib/iconv_open-irix.gperf: New file.
60740         * lib/iconv_open-osf.gperf: New file.
60741         * m4/iconv_open.m4: New file.
60742         * modules/linebreak (Depends-on): Add iconv_open.
60743         * modules/striconv (Depends-on): Likewise.
60744         * modules/striconveh (Depends-on): Likewise.
60745         * modules/unicodeio (Depends-on): Likewise.
60746         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60747         (iconv_t)(-1).
60748         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60749         conversion if cd is (iconv_t)(-1).
60750         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60751         is not possible.
60752
60753 2007-03-31  Bruno Haible  <bruno@clisp.org>
60754
60755         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60756         work on Solaris either. Protect also second use of "autodetect_jp".
60757
60758 2007-03-31  Bruno Haible  <bruno@clisp.org>
60759
60760         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60761         the function is not present.
60762
60763 2007-03-31  Bruno Haible  <bruno@clisp.org>
60764
60765         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60766         the function is not present.
60767
60768 2007-03-31  Bruno Haible  <bruno@clisp.org>
60769
60770         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60771         a bug in HP-UX iconv_open().
60772
60773 2007-03-31  Bruno Haible  <bruno@clisp.org>
60774
60775         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60776         (Mathematics <math.h>): New section, add fpieee.
60777         (Input/output <stdio.h>): Add fseterr.
60778         (Mathematics <math.h>): New section, add printf-frexp.
60779         (Container data structures): Add sublist.
60780         (Core language properties): Add fpucw, inline.
60781         (Functions for greatest-width integer types <inttypes.h>): Add
60782         imaxabs, imaxdiv, inttypes.
60783         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60784         isnanl-nolibm, ldexp.
60785         (Mathematics <math.h>): New section, add printf-frexpl.
60786         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60787         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60788         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60789         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60790         (Unicode string functions): Add unistr/u*-mbtoucr.
60791         (Java): Add javacomp-script, javaexec-script.
60792         (C#): Add csharpcomp-script, csharpexec-script.
60793         (Support for building libraries and executables): Add havelib,
60794         relocatable-*.
60795         (Support for maintaining and releasing projects): Renamed from
60796         'Support for maintaining and release projects'. Add announce-gen.
60797
60798 2007-03-31  Bruno Haible  <bruno@clisp.org>
60799
60800         * README: Talk primarily about git.
60801         (git and CVS): Renamed from CVS.
60802         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60803         gnulib is available through git.
60804         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60805
60806 2007-03-30  Bruno Haible  <bruno@clisp.org>
60807
60808         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60809         * lib/poll_.h: Likewise.
60810         * lib/stat_.h: Likewise.
60811         * lib/sys_time_.h: Likewise.
60812         * lib/sysexit_.h: Likewise.
60813         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60814         * lib/stdbool_.h: Likewise.
60815         * lib/byteswap_.h: Add double-inclusion guard.
60816
60817 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60818
60819         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60820
60821 2007-03-30  Karl Berry  <karl@gnu.org>
60822
60823         * config/srclist-update: double space after USA in the license
60824         substitution, since that's how it's usually (?) written.
60825
60826 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60827
60828         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60829         reported by Bruno Haible.
60830
60831 2007-03-29  Bruno Haible  <bruno@clisp.org>
60832
60833         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60834         a bug in AIX iconv().
60835
60836 2007-03-29  Bruno Haible  <bruno@clisp.org>
60837
60838         * modules/ldexpl-tests: New file.
60839         * tests/test-ldexpl.c: New file.
60840
60841 2007-03-29  Bruno Haible  <bruno@clisp.org>
60842
60843         * lib/ldexpl.c: Include fpucw.h.
60844         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60845         multiplication.
60846         * modules/ldexpl (Depends-on): Add fpucw.
60847
60848 2007-03-29  Bruno Haible  <bruno@clisp.org>
60849
60850         * modules/ldexpl: New file.
60851         * m4/ldexpl.m4: New file.
60852         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60853         set.
60854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60855         REPLACE_LDEXPL.
60856         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60857         REPLACE_LDEXPL.
60858         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60859         gl_FUNC_LDEXPL_WORKS.
60860         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60861         * modules/mathl (Files): Remove lib/ldexpl.c.
60862         (Depends-on): Add ldexpl.
60863
60864 2007-03-29  Bruno Haible  <bruno@clisp.org>
60865
60866         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60867
60868 2007-03-29  Bruno Haible  <bruno@clisp.org>
60869
60870         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60871         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60872         and possibly also HP-UX.
60873         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60874         work on AIX, IRIX, HP-UX, OSF/1.
60875         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60876         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60877         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60878         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60879         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60880         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60881
60882 2007-03-29  Bruno Haible  <bruno@clisp.org>
60883
60884         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60885
60886 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60887
60888         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60889         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60890
60891 2007-03-29  Eric Blake  <ebb9@byu.net>
60892
60893         * lib/acl-internal.h: Remove redundant include.
60894         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60895         Cygwin when a file is locked.
60896
60897 2007-03-29  Bruno Haible  <bruno@clisp.org>
60898
60899         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60900         file.
60901         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60902
60903 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60904
60905         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60906         try to remove a parent directory if the child couldn't be removed
60907         (except for the first rmdir, which could fail because the child
60908         doesn't exist).  Problem reported by Jeff Blaine in
60909         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60910
60911 2007-03-28  Bruno Haible  <bruno@clisp.org>
60912
60913         * lib/striconveh.c (utf8conv_carefully): New function.
60914         (mem_cd_iconveh_internal): Invoke it.
60915
60916 2007-03-28  Bruno Haible  <bruno@clisp.org>
60917
60918         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60919         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60920         input.
60921         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60922         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60923         unistr/u8-uctomb.
60924
60925 2007-03-28  Bruno Haible  <bruno@clisp.org>
60926
60927         * modules/unistr/u8-mbtoucr: New file.
60928         * lib/unistr/u8-mbtoucr.c: New file.
60929         * modules/unistr/u16-mbtoucr: New file.
60930         * lib/unistr/u16-mbtoucr.c: New file.
60931         * modules/unistr/u16-mbtoucr: New file.
60932         * lib/unistr/u16-mbtoucr.c: New file.
60933         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60934
60935 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60936             Bruno Haible  <bruno@clisp.org>
60937
60938         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60939         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60940         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60941
60942         * m4/stdio_h.m4: Add stubs for vasprintf too.
60943
60944         * modules/stdio: Support vasprintf in sed command.
60945
60946         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60947         vasprintf.h.  Add stdio module indicator.
60948
60949         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60950         vasprintf.h.
60951
60952         * lib/vasprintf.h: File removed.
60953
60954         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60955         * lib/vasprintf.c: Ditto.
60956         * lib/xvasprintf.c: Ditto.
60957         * tests/test-vasprintf-posix.c: Ditto.
60958         * tests/test-vasprintf.c: Ditto.
60959
60960 2007-03-27  Bruno Haible  <bruno@clisp.org>
60961
60962         Make vasnprintf multithread-safe.
60963         * lib/vasnprintf.c (decimal_point_char): New function.
60964         (VASNPRINTF): Use it.
60965         Suggested by Simon Josefsson.
60966
60967 2007-03-27  Eric Blake  <ebb9@byu.net>
60968
60969         Support sub-second birthtime on cygwin.
60970         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60971         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60972         (get_stat_birthtime): Also work with st_birthtim.
60973
60974 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60975
60976         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60977         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60978         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60979         (get_stat_birthtime_ns): Simplify compile-time tests.
60980         (get_stat_birthtime): Change the API to look like
60981         get_stat_mtime etc., except return a negative tv_nsec on error.
60982         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60983         Don't check for "spare" fields.
60984         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60985         or for struct stat.st_birthtime, as these tests aren't used.
60986         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60987
60988 2007-03-27  Bruno Haible  <bruno@clisp.org>
60989
60990         * lib/stat-time.h: Include <sys/stat.h>.
60991
60992 2007-03-27  James Youngman  <jay@gnu.org>
60993
60994         * lib/stat-time.h (get_stat_birthtime): New function for
60995           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60996         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60997           and its variants.
60998         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60999         * modules/stat-time-test: New file.
61000         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61001
61002 2007-03-26  Bruno Haible  <bruno@clisp.org>
61003
61004         Better support of signalling NaNs.
61005         * lib/atanl.c: Include isnanl.h.
61006         (atanl): Perform test for NaN at the beginning of the function and
61007         through a call to isnanl.
61008         * lib/cosl.c: Include isnanl.h.
61009         (cosl): Perform test for NaN at the beginning of the function and
61010         through a call to isnanl.
61011         * lib/ldexpl.c: Include isnanl.h.
61012         (ldexpl): Perform test for NaN through a call to isnanl.
61013         * lib/logl.c: Include isnanl.h.
61014         (logl): Perform test for NaN at the beginning of the function and
61015         through a call to isnanl.
61016         * lib/sinl.c: Include isnanl.h.
61017         (sinl): Perform test for NaN at the beginning of the function and
61018         through a call to isnanl.
61019         * lib/sqrtl.c: Include isnanl.h.
61020         (sqrtl): Perform test for NaN at the beginning of the function and
61021         through a call to isnanl.
61022         * lib/tanl.c: Include isnanl.h.
61023         (tanl): Perform test for NaN at the beginning of the function and
61024         through a call to isnanl.
61025         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61026         * modules/mathl (Depends-on): Add isnanl.
61027
61028 2007-03-26  Eric Blake  <ebb9@byu.net>
61029
61030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61031         regression in logic sense of previous patch.
61032
61033 2007-03-26  Bruno Haible  <bruno@clisp.org>
61034
61035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61036         unportable shell command "if ! ...".
61037         Reported by Ralf Wildenhues.
61038
61039 2007-03-25  Bruno Haible  <bruno@clisp.org>
61040
61041         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61042         <sysexits.h> file, and only add EX_CONFIG.
61043         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61044         absolute file name and whether it is sufficient. Substitute also
61045         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61046         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61047         ABSOLUTE_SYSEXITS_H into sysexits.h.
61048
61049 2007-03-25  Bruno Haible  <bruno@clisp.org>
61050
61051         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61052         hints is NULL.
61053
61054 2007-03-25  Bruno Haible  <bruno@clisp.org>
61055
61056         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61057         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61058
61059 2007-03-25  Bruno Haible  <bruno@clisp.org>
61060
61061         * lib/vasnprintf.c: Include langinfo.h.
61062         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61063         multithread-safe.
61064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61065         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61067         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61068         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61073         Reported by Simon Josefsson.
61074
61075 2007-03-25  Bruno Haible  <bruno@clisp.org>
61076
61077         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61078         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61079         * modules/vasnprintf (Depends-on): Add stdint.
61080
61081 2007-03-25  Bruno Haible  <bruno@clisp.org>
61082
61083         * modules/fpieee: New file.
61084         * m4/fpieee.m4: New file.
61085         * modules/isnan-nolibm (Depends-on): Add fpieee.
61086         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61087         * modules/isnanl (Depends-on): Add fpieee.
61088
61089 2007-03-25  Bruno Haible  <bruno@clisp.org>
61090
61091         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61092
61093 2007-03-25  Bruno Haible  <bruno@clisp.org>
61094
61095         Avoid test failures on IRIX 6.5.
61096         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61097         (main): Use it.
61098         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61099         macros.
61100         (main): Use them.
61101
61102 2007-03-25  Bruno Haible  <bruno@clisp.org>
61103
61104         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61105         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61106         exists but doesn't work.
61107         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61108         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61110         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61111         math.h.
61112
61113 2007-03-25  Bruno Haible  <bruno@clisp.org>
61114
61115         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61116         returns inf. Needed on IRIX 6.5.
61117
61118 2007-03-25  Bruno Haible  <bruno@clisp.org>
61119
61120         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61121         (main): Use isnanl instead of x != x idiom.
61122         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61123
61124         * tests/test-frexp.c: Include isnan.h.
61125         (main): Use isnan instead of x != x idiom.
61126         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61127
61128 2007-03-25  Bruno Haible  <bruno@clisp.org>
61129
61130         * tests/test-frexp.c (NaN): New function/macro.
61131         (main): Use it instead of 0.0 / 0.0.
61132         * tests/test-isnan.c (NaN): New function/macro.
61133         (main): Use it instead of 0.0 / 0.0.
61134         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61135         (test_function): Use it instead of 0.0 / 0.0.
61136         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61137         (test_function): Use it instead of 0.0 / 0.0.
61138         * tests/test-snprintf-posix.h (NaN): New function/macro.
61139         (test_function): Use it instead of 0.0 / 0.0.
61140         * tests/test-sprintf-posix.h (NaN): New function/macro.
61141         (test_function): Use it instead of 0.0 / 0.0.
61142         * tests/test-fprintf-posix.h (NaN): New function/macro.
61143         (test_function): Use it instead of 0.0 / 0.0.
61144         * tests/test-printf-posix.h (NaN): New function/macro.
61145         (test_function): Use it instead of 0.0 / 0.0.
61146
61147         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61148
61149 2007-03-25  Bruno Haible  <bruno@clisp.org>
61150
61151         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61152
61153 2007-03-25  Bruno Haible  <bruno@clisp.org>
61154
61155         * lib/regexec.c (merge_state_with_log): Make static.
61156
61157 2007-03-25  Bruno Haible  <bruno@clisp.org>
61158
61159         * lib/trigl.c (kernel_rem_pio2): Make static.
61160
61161 2007-03-25  Bruno Haible  <bruno@clisp.org>
61162
61163         * lib/sincosl.c (sincosl_table): Make static.
61164
61165 2007-03-25  Bruno Haible  <bruno@clisp.org>
61166
61167         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61168         if the compiler does not support C99.
61169
61170 2007-03-25  Bruno Haible  <bruno@clisp.org>
61171
61172         * modules/time (Makefile.am): Ensure all rule action lines start with a
61173         tab.
61174
61175 2007-03-24  Bruno Haible  <bruno@clisp.org>
61176
61177         * modules/tsearch-tests: New file.
61178         * tests/test-tsearch.sh: New file.
61179         * tests/test-tsearch.c: New file, mostly copied from glibc.
61180
61181         * modules/search-tests: New file.
61182         * tests/test-search.c: New file.
61183
61184         * modules/search: New file.
61185         * lib/search_.h: New file, incorporating lib/tsearch.h.
61186         * m4/search_h.m4: New file.
61187         * lib/tsearch.h: Remove file.
61188         * lib/tsearch.c: Include search.h instead of tsearch.h.
61189         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61190         HAVE_TSEARCH.
61191         * modules/tsearch (Files): Remove lib/tsearch.h.
61192         (Depends-on): Add search.
61193         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61194         (Include): Change tsearch.h into search.h.
61195
61196 2007-03-24  Bruno Haible  <bruno@clisp.org>
61197
61198         * modules/fpucw: New file.
61199         * lib/fpucw.h: New file.
61200         * lib/frexp.c: Include fpucw.h.
61201         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61202         (FUNC): Use them.
61203         * lib/printf-frexp.c: Include fpucw.h.
61204         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61205         (FUNC): Use them.
61206         * lib/vasnprintf.c: Include fpucw.h.
61207         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61208         'long double' calculations.
61209         * tests/test-frexpl.c: Include fpucw.h.
61210         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61211         * tests/test-printf-frexpl.c: Include fpucw.h.
61212         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61213         * modules/frexpl (Depends-on): Add fpucw.
61214         * modules/printf-frexpl (Depends-on): Likewise.
61215         * modules/fprintf-posix (Depends-on): Likewise.
61216         * modules/snprintf-posix (Depends-on): Likewise.
61217         * modules/sprintf-posix (Depends-on): Likewise.
61218         * modules/vasnprintf-posix (Depends-on): Likewise.
61219         * modules/vasprintf-posix (Depends-on): Likewise.
61220         * modules/vfprintf-posix (Depends-on): Likewise.
61221         * modules/vsnprintf-posix (Depends-on): Likewise.
61222         * modules/vsprintf-posix (Depends-on): Likewise.
61223         * modules/frexpl-tests (Depends-on): Likewise.
61224         * modules/printf-frexpl-tests (Depends-on): Likewise.
61225
61226 2007-03-24  Bruno Haible  <bruno@clisp.org>
61227
61228         * lib/float+.h: New file.
61229         * lib/isnan.c: Include float+.h.
61230         (SIZE): New macro.
61231         (FUNC): Compare only SIZE bytes of the value.
61232         * lib/vasnprintf.c: Include float+.h.
61233         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61234         SIZEOF_LDBL or SIZEOF_DBL bytes.
61235         * modules/isnan-nolibm (Files): Add lib/float+.h.
61236         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61237         * modules/isnanl (Files): Add lib/float+.h.
61238         * modules/vasnprintf (Files): Add lib/float+.h.
61239
61240 2007-03-24  Bruno Haible  <bruno@clisp.org>
61241
61242         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61243         include isnanl-nolibm.h.
61244
61245 2007-03-24  Bruno Haible  <bruno@clisp.org>
61246
61247         * tests/test-read-file.c (main): Don't produce spurious output for
61248         expected situations. Make the test fail if it encountered unexpected
61249         results.
61250
61251 2007-03-24  Bruno Haible  <bruno@clisp.org>
61252
61253         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61254         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61255
61256 2007-03-24  Bruno Haible  <bruno@clisp.org>
61257
61258         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61259
61260 2007-03-24  Bruno Haible  <bruno@clisp.org>
61261
61262         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61263         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61264
61265         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61266         * modules/utf8-ucs4: Turn into a symbolic link to module
61267         unistr/u8-mbtouc.
61268
61269         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61270         utf8-ucs4-unsafe.
61271         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61272         unistr/u8-mbtouc-unsafe.
61273
61274         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61275         * modules/utf16-ucs4: Turn into a symbolic link to module
61276         unistr/u16-mbtouc.
61277
61278         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61279         utf16-ucs4-unsafe.
61280         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61281         unistr/u16-mbtouc-unsafe.
61282
61283         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61284         * modules/ucs4-utf8: Turn into a symbolic link to module
61285         unistr/u8-ubtomb.
61286
61287         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61288         * modules/ucs4-utf16: Turn into a symbolic link to module
61289         unistr/u16-ubtomb.
61290
61291 2007-03-24  Bruno Haible  <bruno@clisp.org>
61292
61293         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61294         Enable the function only if HAVE_INLINE.
61295         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61296         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61297         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61298         Enable the function only if HAVE_INLINE.
61299         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61300         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61301         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61302         Enable the function only if HAVE_INLINE.
61303         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61304         Enable the function only if HAVE_INLINE.
61305         * modules/utf8-ucs4: Update.
61306         * modules/utf8-ucs4-unsafe: Update.
61307         * modules/utf16-ucs4: Update.
61308         * modules/utf16-ucs4-unsafe: Update.
61309         * modules/ucs4-utf8: Update.
61310         * modules/ucs4-utf16: Update.
61311
61312 2007-03-24  Bruno Haible  <bruno@clisp.org>
61313
61314         * lib/utf8-ucs4.h: Remove file.
61315         * lib/utf8-ucs4-unsafe.h: Remove file.
61316         * lib/utf16-ucs4.h: Remove file.
61317         * lib/utf16-ucs4-unsafe.h: Remove file.
61318         * lib/ucs4-utf8.h: Remove file.
61319         * lib/ucs4-utf16.h: Remove file.
61320         * lib/unistr.h: Include their previous contents.
61321         * m4/utf-ucs4.m4: Remove file.
61322         * m4/ucs4-utf.m4: Remove file.
61323         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61324         (Depends-on): Add unistr/base.
61325         (configure.ac): Remove gl_UTF_UCS4.
61326         (Makefile.am): Update.
61327         (Include): Change to unistr.h.
61328         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61329         (Depends-on): Add unistr/base.
61330         (configure.ac): Remove gl_UTF_UCS4.
61331         (Makefile.am): Update.
61332         (Include): Change to unistr.h.
61333         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61334         (Depends-on): Add unistr/base.
61335         (configure.ac): Remove gl_UTF_UCS4.
61336         (Makefile.am): Update.
61337         (Include): Change to unistr.h.
61338         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61339         (Depends-on): Add unistr/base.
61340         (configure.ac): Remove gl_UTF_UCS4.
61341         (Makefile.am): Update.
61342         (Include): Change to unistr.h.
61343         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61344         (Depends-on): Add unistr/base.
61345         (configure.ac): Remove gl_UCS4_UTF.
61346         (Makefile.am): Update.
61347         (Include): Change to unistr.h.
61348         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61349         (Depends-on): Add unistr/base.
61350         (configure.ac): Remove gl_UCS4_UTF.
61351         (Makefile.am): Update.
61352         (Include): Change to unistr.h.
61353         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61354         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61355         utf8-ucs4-unsafe.h.
61356         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61357         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61358         utf16-ucs4-unsafe.h.
61359         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61360         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61361         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61362         * lib/unistr/u8-strchr.c: Likewise.
61363         * lib/unistr/u8-strrchr.c: Likewise.
61364         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61365         * lib/unistr/u16-strchr.c: Likewise.
61366         * lib/unistr/u16-strrchr.c: Likewise.
61367         * lib/striconveh.c: Update.
61368         * lib/linebreak.c: Update.
61369
61370 2007-03-24  Bruno Haible  <bruno@clisp.org>
61371
61372         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61373         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61374
61375 2007-03-22  Bruno Haible  <bruno@clisp.org>
61376
61377         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61378
61379 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         * MODULES.html.sh (File system functions): New module write-any-file.
61382         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61383         * m4/write-any-file.m4: New files.
61384
61385 2007-03-23  Eric Blake  <ebb9@byu.net>
61386
61387         * gnulib-tool: Rearrange space-tab sequences, since some editors
61388         like to eat them.
61389
61390 2007-03-23  Eric Blake  <ebb9@byu.net>
61391
61392         * lib/version-etc.c (version_etc_va): Update license wording to
61393         be more concise.  Recommended by Richard Stallman.
61394
61395 2007-03-22  Bruno Haible  <bruno@clisp.org>
61396
61397         * lib/poll.c (MSG_PEEK): New fallback definition.
61398
61399 2007-03-22  Bruno Haible  <bruno@clisp.org>
61400
61401         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61402         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61403         (main): Update.
61404         Fixes a compilation error on BeOS.
61405
61406 2007-03-22  Bruno Haible  <bruno@clisp.org>
61407
61408         * modules/frexpl-tests: New file.
61409         * tests/test-frexpl.c: New file.
61410
61411         * modules/frexpl: New file.
61412         * m4/frexpl.m4: New file.
61413         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61414         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61416         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61417         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61418         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61419
61420 2007-03-22  Bruno Haible  <bruno@clisp.org>
61421
61422         * lib/frexpl.c: Share code with lib/frexp.c.
61423         * modules/mathl (Files): Add lib/frexp.c.
61424         (Depends-on): Add isnanl-nolibm.
61425
61426 2007-03-22  Bruno Haible  <bruno@clisp.org>
61427
61428         * modules/printf-frexp (Files): Add m4/frexp.m4.
61429         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61430         only if the found frexp function actually works.
61431
61432 2007-03-22  Bruno Haible  <bruno@clisp.org>
61433
61434         * lib/frexp.c: Remove older implementation that uses divisions.
61435
61436 2007-03-21  Bruno Haible  <bruno@clisp.org>
61437
61438         * modules/frexp-tests: New file.
61439         * tests/test-frexp.c: New file.
61440
61441         * modules/frexp: New file.
61442         * lib/frexp.c: New file.
61443         * m4/frexp.m4: New file.
61444         * lib/math_.h (frexp): New declaration.
61445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61446         REPLACE_FREXP.
61447         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61448
61449 2007-03-21  Bruno Haible  <bruno@clisp.org>
61450
61451         * modules/isnanl-tests: New file.
61452         * tests/test-isnanl.c: New file.
61453
61454         * modules/isnanl: New file.
61455         * lib/isnanl.h: New file.
61456         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61457         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61458         gl_FUNC_ISNANL_WORKS.
61459         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61460         New macros.
61461
61462 2007-03-21  Bruno Haible  <bruno@clisp.org>
61463
61464         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61465         lib/isnanl.h.
61466         (Include): Update.
61467         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61468         * lib/vasnprintf.c: Update.
61469         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61470         tests/test-isnanl.h, remove tests/test-isnanl.c.
61471         (Makefile.am): Update.
61472         * tests/test-isnanl-nolibm.c: New file.
61473         * tests/test-isnanl.h: New file.
61474         * tests/test-isnanl.c: Remove file.
61475
61476 2007-03-21  Jim Meyering  <jim@meyering.net>
61477
61478         When trying to open ".", treat ESTALE like EACCES.
61479         * lib/savewd.c (savewd_save): Resort to forking not just upon
61480         failure with EACCES, but also when errno is ESTALE.
61481
61482 2007-03-20  Bruno Haible  <bruno@clisp.org>
61483
61484         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61485         Needed on AIX 5.1. Reported by Matthew Woehlke.
61486
61487 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61488
61489         Suggestions by Bruno Haible:
61490         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61491         our own.
61492         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61493         * modules/acl (Depends-on): Add gettext.
61494
61495 2007-03-19  Bruno Haible  <bruno@clisp.org>
61496
61497         * modules/iconvme: Remove file.
61498         * lib/iconvme.h: Remove file.
61499         * lib/iconvme.c: Remove file.
61500         * m4/iconvme.m4: Remove file.
61501
61502 2007-03-19  Bruno Haible  <bruno@clisp.org>
61503
61504         * doc/relocatable-maint.texi: Break long shell script line.
61505         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61506
61507 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61508
61509         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61510         handle file_has_acl.
61511         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61512         * lib/acl.c: Move header inclusions and related macro defns into
61513         lib/acl-internal.h.
61514         (S_ISLNK): Remove defn, since that's now done for us.
61515         (file_has_acl): Move to lib/file-has-acl.c.
61516         Call acl_trivial if available.  This is the crucial part of the fix.
61517         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61518         shared within the library.  Rewrite a bit, partly to make it compatible
61519         with the GNU coding style.
61520         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61521         Remove unnecessary double-quotes.
61522         Don't test for acl_to_text; the build will catch that.
61523         Replace acl_entries if it doesn't exist and it is needed.
61524         Check for -lsec and acl_trivial (as used on Solaris 10).
61525         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61526         lib/file-has-acl.c.
61527         (Depends-on): Add sys_stat, for S_ISLNK.
61528
61529 2007-03-19  Ben Pfaff  <blp@gnu.org>
61530
61531         * doc/gnulib.texi: Fix typos.
61532         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61533
61534 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61535
61536         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61537         If size is zero here, buf must be zero.
61538
61539 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61540
61541         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61542         <bruno@clisp.org>.
61543
61544 2007-03-18  Bruno Haible  <bruno@clisp.org>
61545
61546         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61547         Suggested by Eric Blake.
61548
61549 2007-03-18  Ben Pfaff  <blp@gnu.org>
61550
61551         * doc/relocatable.texi: Recommend using as prefix a directory
61552         that does not exist and will never be created.  Based on
61553         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61554         and others.
61555
61556 2007-03-17  Bruno Haible  <bruno@clisp.org>
61557
61558         * lib/fchownat.c: Include lchown.h.
61559
61560 2007-03-17  Bruno Haible  <bruno@clisp.org>
61561
61562         Fix endless loop when the given allocated size was > INT_MAX.
61563         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61564         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61565         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61566         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61567         * lib/sprintf.c (sprintf): Likewise.
61568
61569 2007-03-17  Bruno Haible  <bruno@clisp.org>
61570
61571         * tests/test-argp-2.sh (func_compare): Output a context diff.
61572
61573 2007-03-17  Bruno Haible  <bruno@clisp.org>
61574
61575         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61576         locale's decimal-point character.
61577
61578 2007-03-17  Bruno Haible  <bruno@clisp.org>
61579
61580         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61581         before comparing it. Needed because on some platforms (e.g. x86) a
61582         'long double' occupies less bytes than sizeof (long double).
61583
61584 2007-03-17  Bruno Haible  <bruno@clisp.org>
61585
61586         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61587         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61588         * tests/test-getaddrinfo.c (simple): Likewise.
61589         * tests/test-read-file.c (main): Likewise.
61590
61591 2007-03-17  Bruno Haible  <bruno@clisp.org>
61592
61593         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61594
61595 2007-03-17  Bruno Haible  <bruno@clisp.org>
61596
61597         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61598         unused variable.
61599
61600 2007-03-17  Bruno Haible  <bruno@clisp.org>
61601
61602         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61603         * tests/test-c-strncasecmp.c: Likewise.
61604
61605 2007-03-17  Bruno Haible  <bruno@clisp.org>
61606
61607         * modules/stdlib (Depends-on): Add unistd.
61608         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61609         Needed for MacOS X 10.3.
61610
61611 2007-03-17  Bruno Haible  <bruno@clisp.org>
61612
61613         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61614
61615 2007-03-17  Bruno Haible  <bruno@clisp.org>
61616
61617         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61618
61619 2007-03-17  Bruno Haible  <bruno@clisp.org>
61620
61621         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61622         to reflect files copied from gnulib (with or without modifications).
61623         Suggested by Jim Meyering.
61624
61625 2007-03-17  Eric Blake  <ebb9@byu.net>
61626
61627         * NEWS: Document stdlib change from 2007-02-18.
61628
61629 2007-03-17  Jim Meyering  <jim@meyering.net>
61630
61631         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61632         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61633         someone uses a name containing shell meta-characters.
61634         Reported by Alfred M. Szmidt.
61635
61636         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61637
61638 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61639
61640         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61641         and copy gettext configuration files only if configure.ac contains
61642         a use of AM_GNU_GETTEXT_VERSION.
61643
61644 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61645
61646         * build-aux/bootstrap (gnulib_name): New variable.
61647         (gnulib_tool_options): Use it.
61648
61649 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61650
61651         * tests/test-des.c: Use new namespace.
61652
61653 2007-03-15  Bruno Haible  <bruno@clisp.org>
61654
61655         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61656         Reported by James Youngman <jay@gnu.org>.
61657
61658 2007-03-15  Bruno Haible  <bruno@clisp.org>
61659
61660         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61661         declared prototype. Needed with cc on OSF/1 5.1.
61662
61663 2007-03-15  Bruno Haible  <bruno@clisp.org>
61664
61665         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61666         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61667         (struct gl_list_implementation): Add dispose_fn argument to the
61668         'create_empty', 'create' methods.
61669         (struct gl_list_impl_base): Add field 'dispose_fn'.
61670         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61671         argument.
61672         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61673         dispose_fn argument.
61674         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61675         dispose_fn on the dropped values.
61676         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61677         dispose_fn argument.
61678         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61679         dropped values.
61680         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61681         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61682         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61683         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61684         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61685         argument.
61686         (gl_tree_list_free): Call dispose_fn on the dropped values.
61687         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61688         the dropped values.
61689         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61690         Add dispose_fn argument.
61691         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61692         Call dispose_fn on the dropped values.
61693         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61694         Add dispose_fn argument.
61695         (gl_sublist_create): Initialize the 'dispose_fn' field.
61696         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61697         * tests/test-array_list.c (main): Update.
61698         * tests/test-carray_list.c (main): Update.
61699         * tests/test-avltree_list.c (main): Update.
61700         * tests/test-rbtree_list.c (main): Update.
61701         * tests/test-avltreehash_list.c (main): Update.
61702         * tests/test-rbtreehash_list.c (main): Update.
61703         * tests/test-linked_list.c (main): Update.
61704         * tests/test-linkedhash_list.c (main): Update.
61705         * tests/test-array_oset.c (main): Update.
61706
61707 2007-03-15  Bruno Haible  <bruno@clisp.org>
61708
61709         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61710         (gl_oset_create_empty): Add dispose_fn argument.
61711         (struct gl_oset_implementation): Add dispose_fn argument to
61712         'create_empty' method.
61713         (struct gl_oset_impl_base): Add dispose_fn field.
61714         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61715         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61716         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61717         values.
61718         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61719         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61720         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61721         dropped value.
61722         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61723         dropped value.
61724         * tests/test-array_oset.c (main): Update.
61725         * tests/test-avltree_oset.c (main): Update.
61726         * tests/test-rbtree_oset.c (main): Update.
61727         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61728
61729 2007-03-13  Bruno Haible  <bruno@clisp.org>
61730
61731         * tests/test-stdbool.c (i): Update after last patch.
61732
61733 2007-03-12  Bruno Haible  <bruno@clisp.org>
61734
61735         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61736         the iswprint macro. Needed on Solaris 2.5.1.
61737
61738 2007-03-12  Bruno Haible  <bruno@clisp.org>
61739
61740         * tests/test-printf-frexp.c (main): Declare x as volatile.
61741
61742 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61743
61744         * doc/gnulib.texi (Build robot for gnulib): New section.
61745
61746 2007-03-12  Jim Meyering  <jim@meyering.net>
61747
61748         * build-aux/bootstrap: New file.
61749         * build-aux/bootstrap.conf: New file, from coreutils.
61750
61751 2007-03-11  Bruno Haible  <bruno@clisp.org>
61752
61753         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61754
61755 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61756
61757         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61758         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61759         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61760
61761 2007-03-11  Bruno Haible  <bruno@clisp.org>
61762
61763         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61764         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61765
61766 2007-03-11  Bruno Haible  <bruno@clisp.org>
61767
61768         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61769         formula. Needed for SunPRO C 5.0.
61770
61771 2007-03-11  Bruno Haible  <bruno@clisp.org>
61772
61773         * modules/long-options (Depends-on): Add getopt.
61774
61775 2007-03-11  Bruno Haible  <bruno@clisp.org>
61776
61777         * modules/modechange (Depends-on): Add stdbool.
61778
61779 2007-03-11  Bruno Haible  <bruno@clisp.org>
61780
61781         * modules/i-ring (Depends-on): Add stdbool.
61782
61783 2007-03-11  Bruno Haible  <bruno@clisp.org>
61784
61785         * modules/gc-des (Depends-on): Add stdbool.
61786
61787 2007-03-11  Bruno Haible  <bruno@clisp.org>
61788
61789         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61790
61791 2007-03-11  Bruno Haible  <bruno@clisp.org>
61792
61793         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61794
61795 2007-03-11  Bruno Haible  <bruno@clisp.org>
61796
61797         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61798
61799 2007-03-11  Bruno Haible  <bruno@clisp.org>
61800
61801         * lib/vasnprintf.c (sprintf): Undefine.
61802
61803 2007-03-11  Bruno Haible  <bruno@clisp.org>
61804
61805         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61806         initializers in SunPRO C and Compaq C compilers.
61807
61808 2007-03-11  Bruno Haible  <bruno@clisp.org>
61809
61810         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61811         decrementing code ANSI C compliant.
61812
61813 2007-03-11  Bruno Haible  <bruno@clisp.org>
61814
61815         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61816         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61817
61818 2007-03-11  Bruno Haible  <bruno@clisp.org>
61819
61820         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61821         <stdbool.h> substitute doesn't pass.
61822
61823 2007-03-11  Bruno Haible  <bruno@clisp.org>
61824
61825         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61826
61827 2007-03-11  Bruno Haible  <bruno@clisp.org>
61828
61829         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61830         script, for submission to autobuild.josefsson.org.
61831
61832 2007-03-10  Bruno Haible  <bruno@clisp.org>
61833
61834         * modules/canonicalize-lgpl-tests: New file.
61835         * tests/test-canonicalize-lgpl.sh: New file.
61836         * tests/test-canonicalize-lgpl.c: New file.
61837
61838         * modules/c-strcase-tests: New file.
61839         * tests/test-c-strcase.sh: New file.
61840         * tests/test-c-strcasecmp.c: New file.
61841         * tests/test-c-strncasecmp.c: New file.
61842
61843         * modules/atexit-tests: New file.
61844         * tests/test-atexit.sh: New file.
61845         * tests/test-atexit.c: New file.
61846
61847 2007-03-10  Bruno Haible  <bruno@clisp.org>
61848
61849         * tests/test-binary-io.sh: Use temporary filenames that are not so
61850         likely to clash with those of other tests (in a parallel make).
61851         * tests/test-binary-io.c: Likewise.
61852
61853 2007-03-10  Bruno Haible  <bruno@clisp.org>
61854
61855         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61856         fallback; use #error instead.
61857         Suggested by Simon Josefsson.
61858
61859 2007-03-10  Bruno Haible  <bruno@clisp.org>
61860
61861         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61862         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61863         first and the last.
61864
61865 2007-03-10  Bruno Haible  <bruno@clisp.org>
61866
61867         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61868
61869 2007-03-10  Bruno Haible  <bruno@clisp.org>
61870
61871         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61872         "make distcheck".
61873         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61874         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61875         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61876
61877 2007-03-10  Bruno Haible  <bruno@clisp.org>
61878
61879         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61880         variable.
61881         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61882         variable.
61883
61884 2007-03-09  Eric Blake  <ebb9@byu.net>
61885         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61886
61887         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61888         types are not being provided by gnulib.
61889         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61890         types are supported.
61891
61892 2007-03-10  Bruno Haible  <bruno@clisp.org>
61893
61894         * lib/stdio_.h (__attribute__): New macro.
61895         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61896         vsprintf): Specify __attribute__ __format__ for GCC.
61897         Suggested by Eric Blake.
61898
61899 2007-03-09  Bruno Haible  <bruno@clisp.org>
61900
61901         * modules/printf-posix-tests: New file.
61902         * tests/test-printf-posix.sh: New file.
61903         * tests/test-printf-posix.c: New file.
61904
61905         * modules/printf-posix: New file.
61906         * lib/printf.c: New file.
61907         * m4/printf-posix-rpl.m4: New file.
61908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61909         REPLACE_PRINTF.
61910         * lib/stdio_.h (printf): New declaration.
61911         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61912         ____strfmon____): New macros.
61913         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61914         REPLACE_PRINTF.
61915
61916 2007-03-09  Bruno Haible  <bruno@clisp.org>
61917
61918         * tests/test-vasnprintf-posix2.sh: New file.
61919         * tests/test-vasnprintf-posix2.c: New file.
61920         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61921         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61922         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61923
61924         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61925         a locale dependent decimal point, rather than always '.'.
61926
61927 2007-03-09  Eric Blake  <ebb9@byu.net>
61928
61929         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61930         spite of platforms like Tandem/NSK that define it to -1.
61931
61932 2007-03-08  Bruno Haible  <bruno@clisp.org>
61933
61934         * modules/vprintf-posix-tests: New file.
61935         * tests/test-vprintf-posix.sh: New file.
61936         * tests/test-vprintf-posix.c: New file.
61937         * tests/test-printf-posix.h: New file.
61938
61939         * modules/vprintf-posix: New file.
61940         * lib/vprintf.c: New file.
61941         * m4/vprintf-posix.m4: New file.
61942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61943         REPLACE_VPRINTF.
61944         * lib/stdio_.h (vprintf): New declaration.
61945         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61946         REPLACE_VPRINTF.
61947
61948 2007-03-08  Bruno Haible  <bruno@clisp.org>
61949
61950         * modules/fprintf-posix-tests: New file.
61951         * tests/test-fprintf-posix.sh: New file.
61952         * tests/test-fprintf-posix.c: New file.
61953
61954         * modules/fprintf-posix: New file.
61955         * lib/fprintf.c: New file.
61956         * m4/fprintf-posix.m4: New file.
61957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61958         REPLACE_FPRINTF.
61959         * lib/stdio_.h (fprintf): New declaration.
61960         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61961         REPLACE_FPRINTF.
61962
61963 2007-03-08  Bruno Haible  <bruno@clisp.org>
61964
61965         * modules/vfprintf-posix-tests: New file.
61966         * tests/test-vfprintf-posix.sh: New file.
61967         * tests/test-vfprintf-posix.c: New file.
61968         * tests/test-fprintf-posix.h: New file.
61969         * tests/test-fprintf-posix.out: New file.
61970
61971         * modules/vfprintf-posix: New file.
61972         * lib/vfprintf.c: New file.
61973         * m4/vfprintf-posix.m4: New file.
61974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61975         REPLACE_VFPRINTF.
61976         * lib/stdio_.h (vfprintf): New declaration.
61977         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61978         REPLACE_VFPRINTF.
61979
61980 2007-03-08  Bruno Haible  <bruno@clisp.org>
61981
61982         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61983
61984 2007-03-08  Bruno Haible  <bruno@clisp.org>
61985
61986         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61987         instead of 'expr' invocations.
61988         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61989         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61990         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61991         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61992         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61993         Suggested by Paul Eggert.
61994
61995 2007-03-08  Bruno Haible  <bruno@clisp.org>
61996
61997         * modules/fseterr-tests: New file.
61998         * tests/test-fseterr.c: New file.
61999
62000         * modules/fseterr: New file.
62001         * lib/fseterr.h: New file.
62002         * lib/fseterr.c: New file.
62003
62004 2007-03-08  Bruno Haible  <bruno@clisp.org>
62005
62006         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62007         * lib/getopt_.h: Likewise.
62008         * lib/mbswidth.h: Likewise.
62009         * lib/setenv.h: Likewise.
62010         * lib/vasnprintf.h: Likewise.
62011         * lib/vasprintf.h: Likewise.
62012         * lib/verror.h: Likewise.
62013         * lib/xsetenv.h: Likewise.
62014         * lib/xvasprintf.h: Likewise.
62015
62016 2007-03-08  Jim Meyering  <jim@meyering.net>
62017
62018         * users.txt: Add parted.
62019
62020         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62021
62022 2007-03-07  Bruno Haible  <bruno@clisp.org>
62023
62024         * m4/printf.m4: Make the shell script snippets copy&pastable.
62025
62026 2007-03-02  Bruno Haible  <bruno@clisp.org>
62027
62028         * lib/netinet_in_.h: New file.
62029         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62030         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62031         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62032         (Depends-on): Add absolute-header.
62033         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62034         into netinet/in.h.
62035
62036 2007-03-03  Bruno Haible  <bruno@clisp.org>
62037
62038         * lib/sys_select_.h: New file.
62039         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62040         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62041         * modules/sys_select (Files): Add lib/sys_select_.h.
62042         (Depends-on): Add absolute-header.
62043         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62044         into sys/select.h.
62045
62046 2007-03-02  Bruno Haible  <bruno@clisp.org>
62047
62048         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62049         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62050         values.
62051         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62052         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62053         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62054         * modules/sys_socket (Depends-on): Add absolute-header.
62055         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62056         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62057         (Include): Remove requirement of inclusion of <sys/types.h>.
62058
62059 2007-03-02  Bruno Haible  <bruno@clisp.org>
62060
62061         * lib/byteswap_.h (bswap_32): Fix formula.
62062
62063 2007-03-06  Bruno Haible  <bruno@clisp.org>
62064
62065         * modules/sprintf-posix-tests: New file.
62066         * tests/test-sprintf-posix.c: New file.
62067
62068         * modules/sprintf-posix: New file.
62069         * lib/sprintf.c: New file.
62070         * m4/sprintf-posix.m4: New file.
62071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62072         REPLACE_SPRINTF.
62073         * lib/stdio_.h (sprintf): New declaration.
62074         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62075         REPLACE_SPRINTF.
62076
62077 2007-03-06  Bruno Haible  <bruno@clisp.org>
62078
62079         * modules/vsprintf-posix-tests: New file.
62080         * tests/test-vsprintf-posix.c: New file.
62081         * tests/test-sprintf-posix.h: New file.
62082
62083         * modules/vsprintf-posix: New file.
62084         * lib/vsprintf.c: New file.
62085         * m4/vsprintf-posix.m4: New file.
62086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62087         REPLACE_VSPRINTF.
62088         * lib/stdio_.h (vsprintf): New declaration.
62089         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62090         REPLACE_VSPRINTF.
62091
62092 2007-03-06  Bruno Haible  <bruno@clisp.org>
62093
62094         * modules/vsnprintf (Depend-on): Remove minmax.
62095
62096 2007-03-06  Bruno Haible  <bruno@clisp.org>
62097
62098         * modules/snprintf-posix-tests: New file.
62099         * tests/test-snprintf-posix.c: New file.
62100
62101         * modules/snprintf-posix: New file.
62102         * m4/snprintf-posix.m4: New file.
62103         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62104         gl_FUNC_SNPRINTF.
62105         (gl_FUNC_SNPRINTF): Invoke it.
62106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62107         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62108         is set.
62109         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62110
62111 2007-03-06  Bruno Haible  <bruno@clisp.org>
62112
62113         * modules/vsnprintf-posix-tests: New file.
62114         * tests/test-vsnprintf-posix.c: New file.
62115         * tests/test-snprintf-posix.h: New file.
62116
62117         * modules/vsnprintf-posix: New file.
62118         * m4/vsnprintf-posix.m4: New file.
62119         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62120         gl_FUNC_VSNPRINTF.
62121         (gl_FUNC_VSNPRINTF): Invoke it.
62122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62123         * lib/stdio_.h (vsnprintf): Define as a replacement if
62124         REPLACE_VSNPRINTF is set.
62125         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62126
62127 2007-03-06  Bruno Haible  <bruno@clisp.org>
62128
62129         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62130         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62131
62132 2007-03-06  Bruno Haible  <bruno@clisp.org>
62133
62134         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62135         (asinl): Declare also if HAVE_DECL_ASINL is set.
62136         (atanl): Declare also if HAVE_DECL_ATANL is set.
62137         (ceill): Declare also if HAVE_DECL_CEILL is set.
62138         (cosl): Declare also if HAVE_DECL_COSL is set.
62139         (expl): Declare also if HAVE_DECL_EXPL is set.
62140         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62141         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62142         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62143         (logl): Declare also if HAVE_DECL_LOGL is set.
62144         (sinl): Declare also if HAVE_DECL_SINL is set.
62145         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62146         (tanl): Declare also if HAVE_DECL_TANL is set.
62147         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62149         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62150         declaration of frexpl, ldexpl.
62151         * modules/printf-frexpl (Depends-on): Add math.
62152         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62153
62154 2007-03-05  Bruno Haible  <bruno@clisp.org>
62155
62156         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62157         frexpl and ldexpl are declared.
62158         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62159
62160 2007-03-05  Bruno Haible  <bruno@clisp.org>
62161
62162         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62163         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62164
62165 2007-03-05  Bruno Haible  <bruno@clisp.org>
62166
62167         * lib/stdio_.h: Include <stddef.h>.
62168
62169 2007-03-05  Bruno Haible  <bruno@clisp.org>
62170
62171         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62172
62173 2007-03-05  Bruno Haible  <bruno@clisp.org>
62174
62175         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62176         NetBSD 4, from Ralf Wildenhues.
62177
62178 2007-03-04  Bruno Haible  <bruno@clisp.org>
62179
62180         * lib/vasprintf.h: Update #if logic for the case when the functions
62181         exist but are overridden.
62182
62183 2007-03-04  Bruno Haible  <bruno@clisp.org>
62184
62185         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62186         implementations: glibc-2.4 and MacOS X 10.3.
62187         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62188         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62189         * tests/test-vasprintf-posix.c (test_function): Likewise.
62190
62191 2007-03-04  Bruno Haible  <bruno@clisp.org>
62192
62193         * modules/vasprintf-posix-tests: New file.
62194         * tests/test-vasprintf-posix.c: New file.
62195
62196         * modules/vasprintf-posix: New file.
62197         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62198         defined.
62199         * m4/vasprintf-posix.m4: New file.
62200         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62201         gl_FUNC_VASPRINTF.
62202         (gl_FUNC_VASPRINTF): Invoke it.
62203         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62204         here.
62205         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62206
62207 2007-03-04  Bruno Haible  <bruno@clisp.org>
62208
62209         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62210         REPLACE_GETTIMEOFDAY.
62211         * modules/sys_time (Makefile.am): Likewise.
62212         * m4/sys_time_h.m4: Likewise.
62213         * m4/gettimeofday.m4: Likewise.
62214
62215 2007-03-04  Bruno Haible  <bruno@clisp.org>
62216
62217         * modules/vasnprintf-posix-tests: New file.
62218         * tests/test-vasnprintf-posix.c: New file.
62219
62220         * modules/vasnprintf-posix: New file.
62221         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62222         printf-frexpl.h.
62223         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62224         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62225         REPLACE_VASNPRINTF is defined.
62226         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62227         gl_FUNC_VASNPRINTF.
62228         (gl_FUNC_VASNPRINTF): Invoke it.
62229         * m4/vasnprintf-posix.m4: New file.
62230         * m4/printf.m4: New file.
62231
62232 2007-03-04  Bruno Haible  <bruno@clisp.org>
62233
62234         Compile progreloc.c only if --enable-relocatable is specified.
62235         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62236         if --enable-relocatable was specified.
62237         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62238         lib_SOURCES.
62239
62240 2007-03-04  Jim Meyering  <jim@meyering.net>
62241
62242         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62243         Use it consistently, rather than enumerating errno constants.
62244
62245 2007-03-04  Bruno Haible  <bruno@clisp.org>
62246
62247         * modules/xvasprintf-tests: New file.
62248         * tests/test-xvasprintf.c: New file.
62249
62250         * modules/vasprintf-tests: New file.
62251         * tests/test-vasprintf.c: New file.
62252
62253         * modules/vasnprintf-tests: New file.
62254         * tests/test-vasnprintf.c: New file.
62255
62256         * modules/vsnprintf-tests: New file.
62257         * tests/test-vsnprintf.c: New file.
62258
62259         * modules/snprintf-tests: New file.
62260         * tests/test-snprintf.c: New file.
62261
62262 2007-03-04  Bruno Haible  <bruno@clisp.org>
62263
62264         Compile relocatable.c only if --enable-relocatable is specified.
62265         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62266         gl_RELOCATABLE_LIBRARY.
62267         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62268         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62269         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62270         gl_RELOCATABLE_LIBRARY.
62271         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62272         (Makefile.am): Remove lib_SOURCES.
62273         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62274         gl_RELOCATABLE_LIBRARY.
62275         (Makefile.am): Remove lib_SOURCES.
62276         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62277         always.
62278         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62279         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62280
62281 2007-03-04  Bruno Haible  <bruno@clisp.org>
62282
62283         * modules/argmatch-tests: New file.
62284         * tests/test-argmatch.c: New file.
62285
62286         * tests/test-allocsa.c (main): Halve the number of loop runs.
62287
62288         * modules/alloca-opt-tests: New file.
62289         * tests/test-alloca-opt.c: New file.
62290
62291 2007-03-04  Jim Meyering  <jim@meyering.net>
62292
62293         Work around difference between Linux ACLs and Solaris 10 ZFS.
62294         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62295         for EINVAL.
62296
62297 2007-03-03  Bruno Haible  <bruno@clisp.org>
62298
62299         * modules/relocatable-prog (Depends-on): Add back progreloc's
62300         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62301
62302 2007-03-03  Bruno Haible  <bruno@clisp.org>
62303
62304         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62305         * modules/relocatable-lib: New file.
62306
62307 2007-03-03  Bruno Haible  <bruno@clisp.org>
62308
62309         * modules/relocatable-prog: Renamed from modules/relocatable.
62310         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62311
62312 2007-03-03  Bruno Haible  <bruno@clisp.org>
62313
62314         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62315         m4/relocatable-lib.m4.
62316         (Depends-on): Remove 'relocatable'.
62317         (configure.ac): Add gl_RELOCATABLE_NOP.
62318
62319 2007-03-03  Bruno Haible  <bruno@clisp.org>
62320
62321         * modules/relocatable-prog-wrapper: New file.
62322         * modules/relocatable (Depends-on): Add it. Remove all other
62323         dependencies except progname.
62324         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62325
62326         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62327         (gl_FUNC_STRERROR): Nop.
62328         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62329
62330         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62331         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62332
62333         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62334         (gl_FUNC_READLINK): Update.
62335
62336         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62337
62338 2007-03-03  Bruno Haible  <bruno@clisp.org>
62339
62340         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62341         * modules/xreadlink (Depends-on): Add unistd.
62342         * modules/xreadlink-with-size (Depends-on): Likewise.
62343
62344 2007-03-03  Bruno Haible  <bruno@clisp.org>
62345
62346         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62347         extracted from gt_FUNC_SETENV.
62348         (gt_FUNC_SETENV): Remove macro.
62349         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62350         remove gt_FUNC_SETENV.
62351
62352 2007-03-03  Bruno Haible  <bruno@clisp.org>
62353
62354         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62355         ENABLE_RELOCATABLE here.
62356         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62357
62358 2007-03-03  Bruno Haible  <bruno@clisp.org>
62359
62360         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62361         * tests/test-rbtreehash_list.c: Include progname.h.
62362         (main): Call set_program_name.
62363
62364         * modules/rbtree-oset-tests (Depends-on): Add progname.
62365         * tests/test-rbtree_oset.c: Include progname.h.
62366         (main): Call set_program_name.
62367
62368         * modules/rbtree-list-tests (Depends-on): Add progname.
62369         * tests/test-rbtree_list.c: Include progname.h.
62370         (main): Call set_program_name.
62371
62372         * modules/linked-list-tests (Depends-on): Add progname.
62373         * tests/test-linked_list.c: Include progname.h.
62374         (main): Call set_program_name.
62375
62376 2007-03-03  Bruno Haible  <bruno@clisp.org>
62377
62378         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62379         All uses of __restrict changed to _Restrict_.
62380         * lib/glob_.h (__restrict): Remove macro.
62381
62382 2007-03-02  Bruno Haible  <bruno@clisp.org>
62383
62384         * modules/gettext (configure.ac): Require gettext infrastructure
62385         from version 0.16.1.
62386
62387 2007-03-02  Bruno Haible  <bruno@clisp.org>
62388
62389         * modules/linkedhash-list-tests (Depends-on): Add progname.
62390         * tests/test-linkedhash_list.c: Include progname.h.
62391         (main): Call set_program_name.
62392
62393         * modules/carray-list-tests (Depends-on): Add progname.
62394         * tests/test-carray_list.c: Include progname.h.
62395         (main): Call set_program_name.
62396
62397         * modules/avltreehash-list-tests (Depends-on): Add progname.
62398         * tests/test-avltreehash_list.c: Include progname.h.
62399         (main): Call set_program_name.
62400
62401         * modules/avltree-oset-tests (Depends-on): Add progname.
62402         * tests/test-avltree_oset.c: Include progname.h.
62403         (main): Call set_program_name.
62404
62405         * modules/avltree-list-tests (Depends-on): Add progname.
62406         * tests/test-avltree_list.c: Include progname.h.
62407         (main): Call set_program_name.
62408
62409         * modules/array-oset-tests (Depends-on): Add progname.
62410         * tests/test-array_oset.c: Include progname.h.
62411         (main): Call set_program_name.
62412
62413         * modules/array-list-tests (Depends-on): Add progname.
62414         * tests/test-array_list.c: Include progname.h.
62415         (main): Call set_program_name.
62416
62417         * modules/argp-tests (Depends-on): Add progname.
62418         * tests/test-argp.c: Include argp.h first. Include progname.h.
62419         (main): Call set_program_name.
62420
62421 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62422
62423         * doc/gnulib-tool.texi (Initial import): Reword description of
62424         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62425         limited effect even if defined after the first system include.
62426
62427 2007-03-01  Bruno Haible  <bruno@clisp.org>
62428
62429         * build-aux/config.libpath: Update to libtool-1.5.22.
62430         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62431
62432 2007-03-01  Bruno Haible  <bruno@clisp.org>
62433
62434         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62435         foo_CFLAGS.
62436         Reported by Ralf Wildenhues.
62437
62438 2007-03-01  Bruno Haible  <bruno@clisp.org>
62439
62440         * build-aux/install-reloc: Remove object files left over by some
62441         compilers.
62442         Reported by Ralf Wildenhues.
62443
62444 2007-03-01  Bruno Haible  <bruno@clisp.org>
62445
62446         * build-aux/install-reloc: Break long lines.
62447
62448 2007-03-01  Bruno Haible  <bruno@clisp.org>
62449
62450         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62451         Reported by Ralf Wildenhues.
62452
62453 2007-03-01  Bruno Haible  <bruno@clisp.org>
62454
62455         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62456         include ordering constraints.
62457
62458 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62459
62460         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62461         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62462         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62463         as another example.
62464         * lib/time_.h: Fix misspelling.
62465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62466         Require gl_HEADER_TIME_H_DEFAULTS.
62467         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62468         * m4/time_r.m4 (gl_TIME_R): Likewise.
62469         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62470
62471 2007-03-01  Bruno Haible  <bruno@clisp.org>
62472
62473         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62474         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62475
62476 2007-03-01  Jim Meyering  <jim@meyering.net>
62477
62478         * modules/xreadlink (Maintainer): Add my name.
62479         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62480
62481 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62482             Bruno Haible  <bruno@clisp.org>
62483
62484         * build-aux/install-reloc: Compile also c-ctype.c.
62485         * build-aux/relocatable.sh.in: New file.
62486         * doc/relocatable.texi: New file.
62487         * doc/relocatable-maint.texi: New file.
62488         * doc/gnulib.texi: Include relocatable-maint.texi.
62489         * lib/progreloc.c: Include unistd.h unconditionally.
62490         * lib/relocwrapper.c: Include unistd.h unconditionally.
62491         Include c-ctype.h.
62492         (add_dotbin): Use c_tolower.
62493         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62494         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62495         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62496         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62497         to m4/relocatable-lib.m4.
62498         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62499         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62500         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62501         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62502         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62503         * modules/relocatable: New file.
62504         * modules/relocatable-lib: New file.
62505         * modules/relocatable-script: New file.
62506
62507 2007-02-28  Bruno Haible  <bruno@clisp.org>
62508
62509         Import --enable-relocatable infrastructure.
62510         * build-aux/config.libpath: New file, from GNU gettext.
62511         * build-aux/install-reloc: New file, from GNU gettext.
62512         * build-aux/reloc-ldflags: New file, from GNU gettext.
62513         * lib/relocatable.h: New file, from GNU gettext.
62514         * lib/relocatable.c: New file, from GNU gettext.
62515         * lib/relocwrapper.c: New file, from GNU gettext.
62516         * m4/relocatable.m4: New file, from GNU gettext.
62517
62518 2007-02-28  Bruno Haible  <bruno@clisp.org>
62519
62520         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62521
62522         * modules/xreadlink: New file, from GNU gettext with modifications.
62523         * lib/xreadlink.c: New file, from GNU gettext.
62524         * lib/xreadlink.h: Add comments.
62525         (xreadlink): New declaration.
62526
62527         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62528         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62529         lib/xreadlink-with-size.c.
62530         (configure.ac): Remove gl_XREADLINK invocation.
62531         (Makefile.am): Augment lib_SOURCES.
62532         * m4/xreadlink.m4: Remove file.
62533         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62534         (xreadlink_with_size): Renamed from xreadink.
62535         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62536         * modules/canonicalize (Depends-on): Replace xreadlink with
62537         xreadlink-with-size.
62538         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62539
62540 2007-02-25  Jim Meyering  <jim@meyering.net>
62541
62542         * build-aux/announce-gen: When complaining about excess arguments,
62543         list them.
62544
62545 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62546
62547         * README: Document signed integer overflow situation more
62548         accurately.
62549
62550 2007-02-25  Bruno Haible  <bruno@clisp.org>
62551
62552         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62553         'a' or 'A' conversion.
62554
62555 2007-02-25  Bruno Haible  <bruno@clisp.org>
62556
62557         * modules/filename: Renamed from modules/pathname.
62558         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62559         lib/concatpath.c with lib/concat-filename.c.
62560         (Makefile.am): Update.
62561         (Include): Replace pathname.h with filename.h.
62562         * lib/filename.h: Renamed from lib/pathname.h.
62563         (concatenated_filename): Renamed from concatenated_pathname.
62564         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62565         (concatenated_filename): Renamed from concatenated_pathname.
62566         * lib/findprog.c: Include filename.h instead of pathname.h.
62567         (find_in_path): Update.
62568         * lib/javacomp.c: Include filename.h instead of pathname.h.
62569         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62570         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62571         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62572         is_oldgcj_14_13_usable, is_javac_usable): Update.
62573         * lib/javaexec.c: Include filename.h instead of pathname.h.
62574         (execute_java_class): Update.
62575         * modules/findprog: Update.
62576         * modules/javacomp: Update.
62577         * modules/javaexec: Update.
62578         * MODULES.html.sh (File system functions): Add 'filename', remove
62579         'pathname'.
62580
62581 2007-02-25  Bruno Haible  <bruno@clisp.org>
62582
62583         * modules/printf-frexpl-tests: New file.
62584         * tests/test-printf-frexpl.c: New file.
62585
62586         * modules/printf-frexpl: New file.
62587         * lib/printf-frexpl.h: New file.
62588         * lib/printf-frexpl.c: New file.
62589         * m4/printf-frexpl.m4: New file.
62590
62591 2007-02-25  Bruno Haible  <bruno@clisp.org>
62592
62593         * modules/printf-frexp-tests: New file.
62594         * tests/test-printf-frexp.c: New file.
62595
62596         * modules/printf-frexp: New file.
62597         * lib/printf-frexp.h: New file.
62598         * lib/printf-frexp.c: New file.
62599         * m4/printf-frexp.m4: New file.
62600
62601 2007-02-25  Bruno Haible  <bruno@clisp.org>
62602
62603         Assume automake >= 1.10 for the tests.
62604         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62605         * modules/arctwo-tests: Likewise.
62606         * modules/argp-tests: Likewise.
62607         * modules/avltree-list-tests: Likewise.
62608         * modules/avltree-oset-tests: Likewise.
62609         * modules/avltreehash-list-tests: Likewise.
62610         * modules/carray-list-tests: Likewise.
62611         * modules/crc-tests: Likewise.
62612         * modules/des-tests: Likewise.
62613         * modules/gc-arcfour-tests: Likewise.
62614         * modules/gc-arctwo-tests: Likewise.
62615         * modules/gc-des-tests: Likewise.
62616         * modules/gc-hmac-md5-tests: Likewise.
62617         * modules/gc-hmac-sha1-tests: Likewise.
62618         * modules/gc-md2-tests: Likewise.
62619         * modules/gc-md4-tests: Likewise.
62620         * modules/gc-md5-tests: Likewise.
62621         * modules/gc-pbkdf2-sha1-tests: Likewise.
62622         * modules/gc-rijndael-tests: Likewise.
62623         * modules/gc-sha1-tests: Likewise.
62624         * modules/gc-tests: Likewise.
62625         * modules/getaddrinfo-tests: Likewise.
62626         * modules/hmac-md5-tests: Likewise.
62627         * modules/hmac-sha1-tests: Likewise.
62628         * modules/linked-list-tests: Likewise.
62629         * modules/linkedhash-list-tests: Likewise.
62630         * modules/lock-tests: Likewise.
62631         * modules/md2-tests: Likewise.
62632         * modules/md4-tests: Likewise.
62633         * modules/md5-tests: Likewise.
62634         * modules/rbtree-list-tests: Likewise.
62635         * modules/rbtree-oset-tests: Likewise.
62636         * modules/rbtreehash-list-tests: Likewise.
62637         * modules/read-file-tests: Likewise.
62638         * modules/rijndael-tests: Likewise.
62639         * modules/stdint-tests: Likewise.
62640         * modules/tls-tests: Likewise.
62641
62642 2007-02-24  Bruno Haible  <bruno@clisp.org>
62643
62644         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62645         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62646         function; instead check whether isnan with a double argument links.
62647         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62648         function; instead check whether isnan with a 'long double' argument
62649         links.
62650         Reported by Eric Blake <ebb9@byu.net>.
62651
62652 2007-02-24  Bruno Haible  <bruno@clisp.org>
62653
62654         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62655         defined.
62656         * lib/isnanl.c: Remove all code. Just include isnan.c.
62657         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62658
62659 2007-02-25  Jim Meyering  <jim@meyering.net>
62660
62661         Avoid conflicting types for 'unsetenv' on FreeBSD.
62662         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62663         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62664         in stdlib.h.
62665
62666 2007-02-24  Bruno Haible  <bruno@clisp.org>
62667
62668         * modules/isnanl-nolibm-tests: New file.
62669         * tests/test-isnanl.c: New file.
62670
62671         * modules/isnanl-nolibm: New file.
62672         * lib/isnanl.h: New file.
62673         * lib/isnanl.c: New file.
62674         * m4/isnanl.m4: New file.
62675
62676 2007-02-24  Bruno Haible  <bruno@clisp.org>
62677
62678         * modules/isnan-nolibm-tests: New file.
62679         * tests/test-isnan.c: New file.
62680
62681         * modules/isnan-nolibm: New file.
62682         * lib/isnan.h: New file.
62683         * lib/isnan.c: New file.
62684         * m4/isnan.m4: New file.
62685
62686 2007-02-24  Bruno Haible  <bruno@clisp.org>
62687
62688         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62689         assume that an exponent fits in 20 bits.
62690
62691 2007-02-24  Jim Meyering  <jim@meyering.net>
62692
62693         * m4/regex.m4: Update the description of the configure-time option,
62694         --without-included-regex, to state accurately what the defaults are,
62695         and perhaps to give people an idea why using this option is risky.
62696
62697 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62698
62699         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62700         loops on small arguments.  This attempts to avoid the problem
62701         Bruno Haible reported for AIX 4.3.2 in
62702         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62703
62704 2007-02-23  Bruno Haible  <bruno@clisp.org>
62705
62706         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62707         Needed for help2man.
62708
62709 2007-02-23  Karl Berry  <karl@gnu.org>
62710
62711         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62712         exists, foo.h should be cvs-ignored, not committed.
62713
62714 2007-02-23  Eric Blake  <ebb9@byu.net>
62715
62716         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62717         * lib/stat-time.h (includes): Likewise.
62718         * lib/utimecmp.c (includes): Likewise.
62719         * lib/utimens.h (includes): Likewise.
62720         * lib/getdate.y (includes): Also include "timespec.h" for use
62721         internal to the module.
62722         * modules/utimens (Depends-on): Revert yesterday's patch.
62723         * modules/nanosleep (Depends-on): Add missing dependency.
62724
62725 2007-02-22  Bruno Haible  <bruno@clisp.org>
62726
62727         * lib/glob.c: Don't include getlogin_r.h.
62728
62729 2007-02-22  Jim Meyering  <jim@meyering.net>
62730
62731         * modules/utimens (Depends-on): Add timespec, required for
62732         utimens.h's inclusion of timespec.h.
62733
62734 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62735
62736         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62737         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62738         Schwab in
62739         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62740         I'll try to think of a better way to fix the Solaris problem.
62741
62742         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62743         like glibc; on Solaris 10, it fails with errno == EINVAL.
62744         POSIX says the behavior is unspecified if the first argument is NULL,
62745         so play it safe and never pass NULL to the system getcwd.
62746
62747 2007-02-21  Jim Meyering  <jim@meyering.net>
62748
62749         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62750         of gettimeofday.  It would conflict with the one now always
62751         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62752         an IRIX 6.5 build failure.
62753
62754 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62755
62756         Minor fixups to port to Solaris 10 with Sun C 5.8.
62757         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62758         * modules/getcwd (Depends-on): Add dirfd.
62759         * lib/putenv.c (putenv): #undef it.
62760         (rpl_putenv): New decl.
62761         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62762
62763 2007-02-20  Bruno Haible  <bruno@clisp.org>
62764
62765         * modules/stdio-tests: New file.
62766         * tests/test-stdio.c: New file.
62767
62768         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62769         (Depends-on): Add stdio.
62770         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62771         (Include): Use <stdio.h> instead of vsnprintf.h.
62772         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62773         HAVE_DECL_VSNPRINTF.
62774         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62775
62776         * modules/snprintf (Files): Remove lib/snprintf.h.
62777         (Depends-on): Add stdio.
62778         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62779         (Include): Use <stdio.h> instead of snprintf.h.
62780         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62781         HAVE_DECL_SNPRINTF.
62782         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62783         * lib/getaddrinfo.c: Likewise.
62784
62785         * modules/stdio: New file.
62786         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62787         * lib/snprintf.h: Remove file.
62788         * lib/vsnprintf.h: Remove file.
62789         * lib/.cppi-disable: Remove snprintf.h.
62790         * m4/stdio_h.m4: New file.
62791         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62792
62793 2007-02-20  Jim Meyering  <jim@meyering.net>
62794
62795         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62796         used by e.g., mingw.  From Bruno Haible.
62797
62798 2007-02-19  Bruno Haible  <bruno@clisp.org>
62799
62800         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62801         warnings.
62802         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62803
62804 2007-02-19  Bruno Haible  <bruno@clisp.org>
62805
62806         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62807         from mingw users.
62808
62809 2007-02-19  Bruno Haible  <bruno@clisp.org>
62810
62811         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62812         warnings.
62813         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62814
62815 2007-02-19  Jim Meyering  <jim@meyering.net>
62816
62817         Don't use FD after a successful "fdopendir (fd)".
62818         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62819         Reset it by calling dirfd on the just-obtained DIR*.
62820
62821         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62822         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62823
62824 2007-02-18  Bruno Haible  <bruno@clisp.org>
62825
62826         * lib/readlink.c: Include <unistd.h>.
62827         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62828         HAVE_READLINK.
62829         * modules/readlink (Depends-on): Add unistd.
62830         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62831         (Include): Add <unistd.h>.
62832
62833         * lib/getlogin_r.h: Remove file.
62834         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62835         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62836         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62837         HAVE_DECL_GETLOGIN_R.
62838         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62839         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62840         (Include): Use <unistd.h> instead of getlogin_r.h.
62841
62842         * lib/getcwd.h: Remove file.
62843         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62844         * lib/xgetcwd.c: Likewise.
62845         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62846         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62847         * modules/getcwd (Files): Remove lib/getcwd.h.
62848         (Depends-on): Add unistd.
62849         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62850         (Include): Use <unistd.h> instad of getcwd.h.
62851
62852         * lib/ftruncate.c: Include <unistd.h> first.
62853         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62854         Set HAVE_FTRUNCATE.
62855         * modules/ftruncate (Depends-on): Add unistd.
62856         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62857
62858         * lib/fchdir.c: Include <unistd.h> first.
62859         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62861         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62862         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62863         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62864
62865         * lib/dup2.c: Include <unistd.h> first.
62866         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62867         HAVE_DUP2.
62868         * modules/dup2 (Depends-on): Add unistd.
62869         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62870
62871         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62872         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62873         REPLACE_CHOWN. Don't define chown as a macro here.
62874         * modules/chown (Depends-on): Add unistd.
62875         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62876
62877         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62878         Add definition for GL_LINK_WARNING.
62879         (chown, dup2): New declarations.
62880         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62881         link warning.
62882         (ftruncate): New declaration.
62883         (getcwd): New declaration, taken from old getcwd.h.
62884         (getlogin_r): New declaration, taken from old getlogin_r.h.
62885         (readlink): New declaration.
62886         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62887         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62888         (gl_PREREQ_UNISTD): Remove macro.
62889         (gl_UNISTD_MODULE_INDICATOR): New macro.
62890         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62891         many new variables. Don't set UNISTD_H.
62892         * modules/unistd (Description): Change.
62893         (Depends-on): Add link-warning.
62894         (configure.ac): Update.
62895         (Makefile.am): Create unistd.h always. Substitute many new variables
62896         into it.
62897
62898 2007-02-18  Bruno Haible  <bruno@clisp.org>
62899
62900         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62901         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62902         HAVE_GETSUBOPT.
62903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62904         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62905         * lib/getsubopt.h: Remove file.
62906         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62907         (Depends-on): Add stdlib.
62908         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62909         (Includes): Use <stdlib.h> instead of getsubopt.h.
62910         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62911         Set HAVE_GETSUBOPT.
62912         * lib/getsubopt.c: Don't include getsubopt.h.
62913
62914 2007-02-18  Bruno Haible  <bruno@clisp.org>
62915
62916         * modules/fchdir (Depends-on): Add dup2.
62917
62918 2007-02-18  Bruno Haible  <bruno@clisp.org>
62919
62920         * lib/stdlib_.h: Handle glibc's special invocation convention
62921         specially.
62922
62923 2007-02-18  Bruno Haible  <bruno@clisp.org>
62924
62925         * modules/stdlib-tests: New file.
62926         * tests/test-stdlib.c: New file.
62927
62928         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62929         (Depends-on): Add stdlib.
62930         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62931         (Includes): Use <stdlib.h> instead of mkstemp.h.
62932         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62933         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62934         * lib/mkstemp.c: Don't include mkstemp.h.
62935         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62936         * lib/stdlib--.h: Don't include mkstemp.h.
62937
62938         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62939         (Depends-on): Add stdlib.
62940         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62941         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62942         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62943         HAVE_MKDTEMP.
62944         * lib/mkdtemp.c: Don't include mkdtemp.h.
62945         * lib/clean-temp.c: Don't include mkdtemp.h.
62946
62947         * modules/exit (Files): Remove lib/exit.h.
62948         (Depends-on): Add stdlib.
62949         (Makefile.am): Remove lib_SOURCES.
62950         (Include): Use <stdlib.h> instead of exit.h.
62951         * lib/argmatch.c: Don't include exit.h.
62952         * lib/execute.c: Likewise.
62953         * lib/pagealign_alloc.c: Likewise.
62954         * lib/pipe.c: Likewise.
62955         * lib/wait-process.c: Likewise.
62956         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62957         * lib/exitfail.c: Likewise.
62958         * lib/savewd.c: Likewise.
62959         * lib/xsetenv.c: Likewise.
62960
62961         * modules/stdlib: New file.
62962         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62963         and extra comments about mkstemp().
62964         * lib/exit.h: Remove file.
62965         * lib/mkdtemp.h: Remove file.
62966         * lib/mkstemp.h: Remove file.
62967         * m4/stdlib_h.m4: New file.
62968         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62969
62970 2007-02-18  Bruno Haible  <bruno@clisp.org>
62971
62972         * modules/math-tests: New file.
62973         * tests/test-math.c: New file.
62974
62975         * modules/math: New file.
62976         * modules/mathl (Files): Remove lib/mathl.h.
62977         (Depends-on): Add math.
62978         (Makefile.am): Don't mention mathl.h.
62979         (Include): Use <math.h> instead of mathl.h.
62980         * lib/math_.h: New file.
62981         * lib/mathl.h: Remove file.
62982         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62983         mathl.h.
62984         * lib/asinl.c: Likewise.
62985         * lib/atanl.c: Likewise.
62986         * lib/ceill.c: Likewise.
62987         * lib/cosl.c: Likewise.
62988         * lib/expl.c: Likewise.
62989         * lib/floorl.c: Likewise.
62990         * lib/frexpl.c: Likewise.
62991         * lib/ldexpl.c: Likewise.
62992         * lib/logl.c: Likewise.
62993         * lib/sincosl.c: Likewise.
62994         * lib/sinl.c: Likewise.
62995         * lib/sqrtl.c: Likewise.
62996         * lib/tanl.c: Likewise.
62997         * lib/trigl.c: Likewise.
62998         * m4/math_h.m4: New file.
62999         * MODULES.html.sh (Mathematics): Add math.
63000
63001 2007-02-17  Bruno Haible  <bruno@clisp.org>
63002
63003         * modules/wctype-tests: New file.
63004         * tests/test-wctype.c: New file.
63005
63006         * modules/wchar-tests: New file.
63007         * tests/test-wchar.c: New file.
63008
63009         * modules/unistd-tests: New file.
63010         * tests/test-unistd.c: New file.
63011
63012         * modules/time-tests: New file.
63013         * tests/test-time.c: New file.
63014
63015         * modules/sysexits-tests: New file.
63016         * tests/test-sysexits.c: New file.
63017
63018         * modules/sys_time-tests: New file.
63019         * tests/test-sys_time.c: New file.
63020
63021         * modules/sys_stat-tests: New file.
63022         * tests/test-sys_stat.c: New file.
63023
63024         * modules/sys_socket-tests: New file.
63025         * tests/test-sys_socket.c: New file.
63026
63027         * modules/sys_select-tests: New file.
63028         * tests/test-sys_select.c: New file.
63029
63030         * modules/string-tests: New file.
63031         * tests/test-string.c: New file.
63032
63033         * modules/stdbool-tests: New file.
63034         * tests/test-stdbool.c: New file.
63035
63036         * modules/netinet_in-tests: New file.
63037         * tests/test-netinet_in.c: New file.
63038
63039         * modules/inttypes-tests: New file.
63040         * tests/test-inttypes.c: New file.
63041
63042         * modules/fcntl-tests: New file.
63043         * tests/test-fcntl.c: New file.
63044
63045         * modules/byteswap-tests: New file.
63046         * tests/test-byteswap.c: New file.
63047
63048         * modules/arpa_inet-tests: New file.
63049         * tests/test-arpa_inet.c: New file.
63050
63051 2007-02-17  Bruno Haible  <bruno@clisp.org>
63052
63053         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63054         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63055         if the corresponding module is not enabled. Emit link warnings if
63056         the function is used nevertheless.
63057         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63058         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63059         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63060         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63061         * modules/inttypes (Depends-on): Add link-warning.
63062         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63063         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63064         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63065         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63066         * modules/imaxdiv (configure.ac): Likewise.
63067         * modules/strtoimax (configure.ac): Likewise.
63068         * modules/strtoumax (configure.ac): Likewise.
63069
63070 2007-02-17  Bruno Haible  <bruno@clisp.org>
63071
63072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63073         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63074         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63075         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63076
63077 2007-02-17  Bruno Haible  <bruno@clisp.org>
63078
63079         * modules/link-warning: New file.
63080         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63081         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63082         * modules/string (Depends-on): Add link-warning.
63083         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63084         string.h.
63085         * MODULES.html.sh (Support for building libraries and executables): Add
63086         link-warning.
63087
63088 2007-02-17  Bruno Haible  <bruno@clisp.org>
63089
63090         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63091         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63092         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63093         long lines.
63094
63095 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63096             Bruno Haible  <bruno@clisp.org>
63097
63098         * modules/tmpfile: New file.
63099         * lib/tmpfile.c: New file.
63100         * m4/tmpfile.m4: New file.
63101         * MODULES.html.sh (func_all_modules): New section "Input/output".
63102
63103 2007-02-15  Bruno Haible  <bruno@clisp.org>
63104
63105         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63106         (supports_delete_on_close): New function.
63107         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63108
63109 2007-02-14  Bruno Haible  <bruno@clisp.org>
63110
63111         * modules/mbspcasecmp-tests: New file.
63112         * tests/test-mbspcasecmp.sh: New file.
63113         * tests/test-mbspcasecmp.c: New file.
63114
63115         New module mbspcasecmp.
63116         * modules/mbspcasecmp: New file.
63117         * lib/mbspcasecmp.c: New file.
63118         * lib/string_.h (strncasecmp): Change warning message.
63119         (mbspcasecmp): New declaration.
63120         * m4/mbspcasecmp.m4: New file.
63121         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63122         GNULIB_MBSPCASECMP.
63123         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63124         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63125
63126 2007-02-14  Bruno Haible  <bruno@clisp.org>
63127
63128         * modules/mbsncasecmp-tests: New file.
63129         * tests/test-mbsncasecmp.sh: New file.
63130         * tests/test-mbsncasecmp.c: New file.
63131
63132         New module mbsncasecmp.
63133         * modules/mbsncasecmp: New file.
63134         * lib/mbsncasecmp.c: New file.
63135         * lib/string_.h (mbsncasecmp): New declaration.
63136         * m4/mbsncasecmp.m4: New file.
63137         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63138         GNULIB_MBSNCASECMP.
63139         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63140         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63141
63142 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63143
63144         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63145         Verify that it doesn't overlap with our flags.
63146         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63147         do not have the desired effect in multibyte locales; instead, use
63148         mbscasecmp.
63149         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63150         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63151         we don't require GNU fnmatch ourselves (if our users require it, they
63152         should do so explicitly).
63153
63154         Fix regex code so it doesn't rely on strcasecmp.
63155         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63156         Otherwise, include gnulib's langinfo.h.
63157         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63158         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63159         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63160         * modules/regex (FILES): Remove m4/codeset.m4.
63161         (Depends-on): Add localcharset.  Remove strcase.
63162
63163 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63164
63165         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63166         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63167
63168 2007-02-13  Bruno Haible  <bruno@clisp.org>
63169
63170         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63171         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63172
63173 2007-02-12  Bruno Haible  <bruno@clisp.org>
63174
63175         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63176         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63177         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63178         time warning rather than a link error.
63179
63180 2007-02-12  Bruno Haible  <bruno@clisp.org>
63181
63182         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63183         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63184         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63185
63186 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63187
63188         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63189         args, not 2.
63190
63191 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63192
63193         New module 'time', so that apps can include <time.h> as per
63194         POSIX and GNU instead of separate include files like time_r.h
63195         and timegm.h.  This implementation tries out a simpler approach
63196         for replacing decls in standard include files (as compared to
63197         the string module), somewhat as an experiment.
63198
63199         * config/srclist.txt: Comment out mktime.c for now.
63200         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63201         since it doesn't apply any more.  Use generic wording instead.
63202         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63203         'time'.
63204         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63205         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63206         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63207         Don't include <sys/types.h>; no longer needed since we assume C89.
63208         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63209         * lib/strftime.c: Likewise.
63210         * lib/time_r.c: Likewise.
63211         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63212         * lib/nanosleep.c: Include <time.h> first, to check interface.
63213         * lib/strptime.c: Likewise.
63214         * lib/time_r.c: Likewise.
63215         * lib/timegm.c: Likewise.
63216         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63217         needed.
63218         * lib/timegm.c: Don't include timegm.h; no longer needed.
63219         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63220         time.h now handles any problems in that area.
63221         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63222         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63223         that time.h defines struct timespec.
63224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63225         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63226         handles that.
63227         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63228         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63229         needed.  Set REPLACE_LOCALTIME.
63230         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63231         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63232         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63233         nanosleep; time_h.m4 now does that.  Don't require
63234         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63235         module handles this now.
63236         * modules/getdate (Depends-on): Remove timespec.  Add time.
63237         * modules/nanosleep (Depends-on): Likewise.
63238         * modules/stat-time (Depends-on): Likewise.
63239         * modules/nanosleep (Include): Include time.h, not timespec.h.
63240         * modules/strptime (Files): Remove lib/strptime.h.
63241         (Depends-on): Add extensions, time.
63242         (Include): Include time.h, not strptime.h.
63243         * modules/time_r (Files): Remove lib/time_r.h.
63244         (Depends-on): Add time.
63245         (Include): Include time.h, not time_r.h.
63246         * modules/timegm: Likewise.
63247         * modules/timespec (Description): Now does timespec-related decls
63248         of our own, instead of struct timespec itself.
63249         (Depends-on): Add time; remove extensions.
63250         (Maintainer): Add self.
63251         * modules/utimecmp (Depends-on): Add time; remove timespec.
63252         * modules/utimens (Depends-on): Likewise.
63253         * modules/xnanosleep (Depends-on): Likewise.
63254
63255 2007-02-11  Bruno Haible  <bruno@clisp.org>
63256
63257         * lib/c-strstr.c: Include allocsa.h.
63258         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63259         * lib/c-strcasestr.c: Include allocsa.h.
63260         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63261         * lib/strcasestr.c: Include allocsa.h.
63262         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63263         * lib/mbsstr.c: Include allocsa.h.
63264         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63265         allocsa/freesa instead of malloc/free.
63266         * lib/mbscasestr.c: Include allocsa.h.
63267         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63268         allocsa/freesa instead of malloc/free.
63269         * modules/c-strstr (Depends-on): Add allocsa.
63270         * modules/c-strcasestr (Depends-on): Likewise.
63271         * modules/strcasestr (Depends-on): Likewise.
63272         * modules/mbsstr (Depends-on): Likewise.
63273         * modules/mbscasestr (Depends-on): Likewise.
63274
63275 2007-02-11  Bruno Haible  <bruno@clisp.org>
63276
63277         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63278
63279         * modules/mbsspn-tests: New file.
63280         * tests/test-mbsspn.sh: New file.
63281         * tests/test-mbsspn.c: New file.
63282
63283 2007-02-11  Bruno Haible  <bruno@clisp.org>
63284
63285         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63286
63287         * modules/mbspbrk-tests: New file.
63288         * tests/test-mbspbrk.sh: New file.
63289         * tests/test-mbspbrk.c: New file.
63290
63291 2007-02-11  Bruno Haible  <bruno@clisp.org>
63292
63293         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63294         unneeded cast.
63295
63296         * modules/mbscspn-tests: New file.
63297         * tests/test-mbscspn.sh: New file.
63298         * tests/test-mbscspn.c: New file.
63299
63300 2007-02-11  Bruno Haible  <bruno@clisp.org>
63301
63302         * modules/mbscasecmp-tests: New file.
63303         * tests/test-mbscasecmp.sh: New file.
63304         * tests/test-mbscasecmp.c: New file.
63305
63306 2007-02-11  Bruno Haible  <bruno@clisp.org>
63307
63308         Ensure O(n) worst-case complexity of mbscasestr.
63309         * lib/mbscasestr.c: Include stdbool.h.
63310         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63311         functions.
63312         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63313         the bookkeeping indicates that it's worth it.
63314         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63315
63316         * modules/mbscasestr-tests: New file.
63317         * tests/test-mbscasestr1.c: New file.
63318         * tests/test-mbscasestr2.sh: New file.
63319         * tests/test-mbscasestr2.c: New file.
63320         * tests/test-mbscasestr3.sh: New file.
63321         * tests/test-mbscasestr3.c: New file.
63322         * tests/test-mbscasestr4.sh: New file.
63323         * tests/test-mbscasestr4.c: New file.
63324         * m4/locale-tr.m4: New file.
63325
63326 2007-02-11  Bruno Haible  <bruno@clisp.org>
63327
63328         Ensure O(n) worst-case complexity of mbsstr.
63329         * lib/mbsstr.c: Include stdbool.h.
63330         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63331         functions.
63332         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63333         bookkeeping indicates that it's worth it.
63334         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63335
63336         * modules/mbsstr-tests: New file.
63337         * tests/test-mbsstr1.c: New file.
63338         * tests/test-mbsstr2.sh: New file.
63339         * tests/test-mbsstr2.c: New file.
63340         * tests/test-mbsstr3.sh: New file.
63341         * tests/test-mbsstr3.c: New file.
63342         * m4/locale-fr.m4: New file.
63343
63344 2007-02-11  Bruno Haible  <bruno@clisp.org>
63345
63346         * lib/mbsrchr.c (mbsrchr): Fix bug.
63347
63348         * modules/mbsrchr-tests: New file.
63349         * tests/test-mbsrchr.sh: New file.
63350         * tests/test-mbsrchr.c: New file.
63351
63352 2007-02-11  Bruno Haible  <bruno@clisp.org>
63353
63354         * lib/mbschr.c (mbschr): Fix bug.
63355
63356         * modules/mbschr-tests: New file.
63357         * tests/test-mbschr.sh: New file.
63358         * tests/test-mbschr.c: New file.
63359         * m4/locale-zh.m4: New file.
63360
63361 2007-02-11  Bruno Haible  <bruno@clisp.org>
63362
63363         Support for copying multibyte string iterators.
63364         * lib/mbiter.h: Include <string.h>.
63365         (mbiter_multi_copy): New function.
63366         (mbi_copy): New macro.
63367         * lib/mbuiter.h: Include <string.h>.
63368         (mbuiter_multi_copy): New function.
63369         (mbui_copy): New macro.
63370
63371 2007-02-11  Bruno Haible  <bruno@clisp.org>
63372
63373         New module mbslen.
63374         * modules/mbslen: New file.
63375         * lib/mbslen.c: New file.
63376         * lib/string_.h (mbslen): New declaration.
63377         * m4/mbslen.m4: New file.
63378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63379         GNULIB_MBSLEN.
63380         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63381         * MODULES.html.sh (Internationalization functions): Add mbslen.
63382
63383 2007-02-11  Bruno Haible  <bruno@clisp.org>
63384
63385         Ensure O(n) worst-case complexity of strcasestr substitute.
63386         * lib/strcasestr.c: Include stdbool.h.
63387         (knuth_morris_pratt): New function.
63388         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63389         bookkeeping indicates that it's worth it.
63390         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63391
63392         * modules/strcasestr-tests: New file.
63393         * tests/test-strcasestr.c: New file.
63394
63395 2007-02-11  Bruno Haible  <bruno@clisp.org>
63396
63397         Ensure O(n) worst-case complexity of c_strcasestr.
63398         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63399         (knuth_morris_pratt): New function.
63400         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63401         the bookkeeping indicates that it's worth it.
63402         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63403
63404         * modules/c-strcasestr-tests: New file.
63405         * tests/test-c-strcasestr.c: New file.
63406
63407 2007-02-11  Bruno Haible  <bruno@clisp.org>
63408
63409         Ensure O(n) worst-case complexity of c_strstr.
63410         * lib/c-strstr.c: Include stdbool.h, string.h.
63411         (knuth_morris_pratt): New function.
63412         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63413         bookkeeping indicates that it's worth it.
63414         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63415
63416         * lib/c-strstr.c: Complete rewrite for maintainability.
63417
63418         * modules/c-strstr-tests: New file.
63419         * tests/test-c-strstr.c: New file.
63420
63421 2007-02-11  Bruno Haible  <bruno@clisp.org>
63422
63423         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63424         5.2.1 and earlier, whereby \055 was treated just like the range
63425         delimiter '-'.
63426         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63427
63428 2007-02-08  Bruno Haible  <bruno@clisp.org>
63429
63430         * modules/regex (Depends-on): Add stdbool.
63431         Reported by Dalibor Topic <robilad@kaffe.org>.
63432
63433 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63434
63435         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63436         Prefer returning from main to exiting from it.
63437         Remove unnecessary parens after sizeof.
63438
63439 2007-02-05  Bruno Haible  <bruno@clisp.org>
63440
63441         New module mbssep.
63442         * modules/mbssep: New file.
63443         * lib/mbssep.c: New file.
63444         * lib/string_.h (strsep): Add a conditional link warning.
63445         (mbssep): New declaration.
63446         * m4/mbssep.m4: New file.
63447         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63448         GNULIB_MBSSEP.
63449         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63450         * MODULES.html.sh (Internationalization functions): Add mbssep.
63451
63452 2007-02-05  Bruno Haible  <bruno@clisp.org>
63453
63454         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63455         Optimize search in case of 1 delimiter.
63456
63457 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63458
63459         * lib/acl.h: Include sys/types.h before sys/acl.h.
63460
63461 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63462
63463         Merge upstream fix for glibc bugzilla #3957:
63464
63465         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63466
63467         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63468         bit for RE_HAT_LISTS_NOT_NEWLINE.
63469         (build_charclass_op): Remove bogus comment.
63470
63471 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63472
63473         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63474
63475 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63476
63477         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63478         * lib/memmem.c [!defined _LIBC]: Include config.h.
63479
63480 2007-02-04  Bruno Haible  <bruno@clisp.org>
63481
63482         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63483         warning message.
63484
63485 2007-02-04  Bruno Haible  <bruno@clisp.org>
63486
63487         New module mbstok_r.
63488         * modules/mbstok_r: New file.
63489         * lib/mbstok_r.c: New file.
63490         * lib/string_.h (strtok_r): Change argument names to match the
63491         comments. Add a conditional link warning.
63492         (mbstok_r): New declaration.
63493         * m4/mbstok_r.m4: New file.
63494         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63495         GNULIB_MBSTOK_R.
63496         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63497         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63498
63499 2007-02-04  Bruno Haible  <bruno@clisp.org>
63500
63501         New module mbsspn.
63502         * modules/mbsspn: New file.
63503         * lib/mbsspn.c: New file.
63504         * lib/string_.h (strspn): Add a conditional link warning.
63505         (mbsspn): New declaration.
63506         * m4/mbsspn.m4: New file.
63507         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63508         GNULIB_MBSSPN.
63509         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63510         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63511
63512 2007-02-04  Bruno Haible  <bruno@clisp.org>
63513
63514         New module mbspbrk.
63515         * modules/mbspbrk: New file.
63516         * lib/mbspbrk.c: New file.
63517         * lib/string_.h (strpbrk): Add a conditional link warning.
63518         (mbspbrk): New declaration.
63519         * m4/mbspbrk.m4: New file.
63520         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63521         GNULIB_MBSPBRK.
63522         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63523         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63524
63525 2007-02-04  Bruno Haible  <bruno@clisp.org>
63526
63527         New module mbscspn.
63528         * modules/mbscspn: New file.
63529         * lib/mbscspn.c: New file.
63530         * lib/string_.h (strcspn): Add a conditional link warning.
63531         (mbscspn): New declaration.
63532         * m4/mbscspn.m4: New file.
63533         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63534         GNULIB_MBSCSPN.
63535         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63536         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63537
63538 2007-02-04  Bruno Haible  <bruno@clisp.org>
63539
63540         New module mbscasestr, reduced goal of strcasestr.
63541         * modules/mbscasestr: New file.
63542         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63543         (mbscasestr): Renamed from strcasestr.
63544         * lib/strcasestr.c: Don't include mbuiter.h.
63545         (strcasestr): Remove support for multibyte locales.
63546         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63547         Change the conditional link warning.
63548         (mbscasestr): New declaration.
63549         * m4/mbscasestr.m4: New file.
63550         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63551         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63552         REPLACE_STRCASESTR.
63553         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63555         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63556         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63557         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63558         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63559         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63560         (Depends-on): Remove mbuiter.
63561         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63562
63563 2007-02-04  Bruno Haible  <bruno@clisp.org>
63564
63565         Simplify handling of strncasecmp.
63566         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63567         the conditional link warning.
63568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63569         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63570         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63571         * modules/strcase (configure.ac): Don't invoke
63572         gl_STRING_MODULE_INDICATOR.
63573         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63574
63575 2007-02-04  Bruno Haible  <bruno@clisp.org>
63576
63577         New module mbscasecmp, reduced goal of strcasecmp.
63578         * modules/mbscasecmp: New file.
63579         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63580         (mbscasecmp): Renamed from strcasecmp.
63581         * lib/strcasecmp.c: Don't include mbuiter.h.
63582         (strcasecmp): Remove support for multibyte locales.
63583         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63584         Change the conditional link warning.
63585         (mbscasecmp): New declaration.
63586         * m4/mbscasecmp.m4: New file.
63587         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63588         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63589         REPLACE_STRCASECMP.
63590         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63591         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63592         GNULIB_MBSCASECMP.
63593         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63594         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63595         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63596         (Depends-on): Remove mbuiter.
63597         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63598
63599 2007-02-04  Bruno Haible  <bruno@clisp.org>
63600
63601         New module mbsstr. Remove module strstr.
63602         * modules/mbsstr: New file.
63603         * modules/strstr: Remove file.
63604         * lib/mbsstr.c: Renamed from lib/strstr.c.
63605         (mbsstr): Renamed from strstr.
63606         * lib/string_.h (strstr): Remove declaration. Change the conditional
63607         link warning.
63608         (mbsstr): New declaration.
63609         * m4/mbsstr.m4: New file.
63610         * m4/strstr.m4: Remove file.
63611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63612         REPLACE_STRSTR.
63613         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63614         Don't initialize GNULIB_STRSTR.
63615         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63616         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63617         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63618         (Support for systems lacking ANSI C 89): Remove strstr.
63619
63620 2007-02-04  Bruno Haible  <bruno@clisp.org>
63621
63622         New module mbsrchr.
63623         * modules/mbsrchr: New file.
63624         * lib/mbsrchr.c: New file.
63625         * lib/string_.h (strrchr): Add a conditional link warning.
63626         (mbsrchr): New declaration.
63627         * m4/mbsrchr.m4: New file.
63628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63629         GNULIB_MBSRCHR.
63630         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63631         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63632
63633 2007-02-04  Bruno Haible  <bruno@clisp.org>
63634
63635         New module mbschr.
63636         * modules/mbschr: New file.
63637         * lib/mbschr.c: New file.
63638         * lib/string_.h (strchr): Add a conditional link warning.
63639         (mbschr): New declaration.
63640         * m4/mbschr.m4: New file.
63641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63642         GNULIB_MBSCHR.
63643         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63644         * MODULES.html.sh (Internationalization functions): Add mbschr.
63645
63646 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63647
63648         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63649
63650         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63651
63652 2007-02-04  Bruno Haible  <bruno@clisp.org>
63653
63654         New module description section 'configure.ac-early'.
63655         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63656         (func_get_autoconf_early_snippet): New function.
63657         (func_import, func_create_testdir): Use it. Remove special cases for
63658         modules 'extensions' and 'lock'.
63659         * modules/extensions (configure.ac-early): Require
63660         gl_USE_SYSTEM_EXTENSIONS.
63661         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63662
63663 2007-02-04  Bruno Haible  <bruno@clisp.org>
63664
63665         Make use of gcj-4.3's -fsource and -ftarget option.
63666         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63667         and if so try the options -fsource and -ftarget.
63668         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63669         source_version, ftarget_option, target_version arguments.
63670         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63671         (is_envjavac_oldgcj_14_14_usable): Renamed from
63672         is_envjavac_gcj_14_14_usable.
63673         (is_envjavac_oldgcj_14_13_usable): Renamed from
63674         is_envjavac_gcj_14_13_usable.
63675         (is_gcj_present): Update.
63676         (is_gcj_43, is_gcj43_usable): New functions.
63677         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63678         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63679         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63680         try the options -fsource and -ftarget.
63681
63682 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63683
63684         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63685         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63686         larger value.
63687
63688 2007-02-03  Jim Meyering  <jim@meyering.net>
63689
63690         Give tools a better chance to allocate space for very large buffers.
63691         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63692
63693         Make pwd and readlink work also when run with an unreadable parent dir
63694         on systems with openat support.
63695         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63696         provided getcwd function, even when we have openat support.
63697         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63698
63699 2007-02-02  Bruno Haible  <bruno@clisp.org>
63700
63701         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63702         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63703         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63704         portability problems if one of these functions is only used on specific
63705         platforms.
63706         Reported by Paul Eggert.
63707
63708 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63709
63710         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63711         is causing more trouble than it's curing.
63712         * lib/regex_internal.h (__mempcpy): Remove.
63713         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63714         (and make the code a tad smaller to boot).
63715         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63716
63717 2007-02-02  Jim Meyering  <jim@meyering.net>
63718
63719         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63720         section, not in the Makefile.am: one.
63721
63722 2007-02-02  Eric Blake  <ebb9@byu.net>
63723
63724         * lib/strchrnul.c: Always include config.h first.
63725
63726         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63727         gnulib strstr is not necessary here.
63728
63729 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63730
63731         * m4/socklen.m4: Fix typo.
63732
63733 2007-02-02  Eric Blake  <ebb9@byu.net>
63734
63735         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63736         * modules/netinet_in (Makefile.am): Likewise.
63737
63738 2007-02-01  Bruno Haible  <bruno@clisp.org>
63739
63740         * lib/string_.h (GL_LINK_WARNING): New macro.
63741         (strcasecmp, strstr, strcasestr): If provided by the system,
63742         conditionally define as a macro that leads to a warning instead of to
63743         an error.
63744         (strncasecmp): Conditionally define as a macro that leads to a warning.
63745
63746 2007-02-01  Karl Berry  <karl@gnu.org>
63747
63748         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63749
63750 2007-02-01  Bruno Haible  <bruno@clisp.org>
63751
63752         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63753         renamings.
63754
63755 2007-02-01  Eric Blake  <ebb9@byu.net>
63756
63757         * modules/regex (Depends-on): Revert dependence on mempcpy.
63758         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63759         module's definition of mempcpy.
63760         Reported by Paul Eggert.
63761
63762 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63763
63764         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63765         the symbol XYZ before redefining it.  This fixes a problem with
63766         programs that don't use XYZ, when compiled on systems that define
63767         XYZ to something else.
63768
63769 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63770
63771         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63772         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63773         writeable to group or other and (2) is intended to have a special
63774         mode bit that is set or cleared.  In such a case, the directory
63775         should be neither group- nor other-writeable until the special
63776         mode bits are right.
63777
63778 2007-01-31  Eric Blake  <ebb9@byu.net>
63779
63780         * modules/mountlist (Depends-on): Add strstr.
63781
63782         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63783         bug.
63784         * modules/string (Makefile.am): Remove redundant replacement.
63785         * modules/regex (Depends-on): Add mempcpy.
63786
63787 2007-01-31  Bruno Haible  <bruno@clisp.org>
63788
63789         New module description field 'Link'.
63790         * gnulib-tool (func_usage): Document --extract-link-directive.
63791         (sed_extract_prog): Recognize 'Link' directive.
63792         (func_get_link_directive): New function.
63793         (func_import): Show summary of link directives.
63794         Handle --extract-link-directive option.
63795         * modules/acl (Link): New section.
63796         * modules/clock-time (Link): New section.
63797         * modules/euidaccess (Link): New section.
63798         * modules/gettext (Link): New section.
63799         * modules/iconv (Link): New section.
63800         * modules/lock (Link): New section.
63801         * modules/nanosleep (Link): New section.
63802         * modules/readline (Link): New section.
63803
63804 2007-01-27  Bruno Haible  <bruno@clisp.org>
63805
63806         Enforce the use of gnulib modules for unportable <string.h> functions.
63807         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63808         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63809         (gl_HEADER_STRING_H_BODY): Require it.
63810         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63811         the symbol XYZ to one that gives a link error.
63812         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63813         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63814         * modules/mempcpy (configure.ac): Likewise.
63815         * modules/memrchr (configure.ac): Likewise.
63816         * modules/stpcpy (configure.ac): Likewise.
63817         * modules/stpncpy (configure.ac): Likewise.
63818         * modules/strcase (configure.ac): Likewise.
63819         * modules/strcasestr (configure.ac): Likewise.
63820         * modules/strchrnul (configure.ac): Likewise.
63821         * modules/strdup (configure.ac): Likewise.
63822         * modules/strndup (configure.ac): Likewise.
63823         * modules/strnlen (configure.ac): Likewise.
63824         * modules/strpbrk (configure.ac): Likewise.
63825         * modules/strsep (configure.ac): Likewise.
63826         * modules/strstr (configure.ac): Likewise.
63827         * modules/strtok_r (configure.ac): Likewise.
63828
63829 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63830
63831         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63832
63833 2007-01-30  Jim Meyering  <jim@meyering.net>
63834
63835         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63836
63837 2007-01-29  Bruno Haible  <bruno@clisp.org>
63838
63839         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63840         * lib/execute.c: Likewise.
63841         * lib/pipe.c: Likewise.
63842         * lib/printf-args.h: Likewise.
63843         * lib/printf-args.c: Likewise.
63844         * lib/printf-parse.c: Likewise.
63845         * lib/vasnprintf.c: Likewise.
63846
63847 2007-01-29  Eric Blake  <ebb9@byu.net>
63848
63849         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63850         declaration.
63851
63852 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63853
63854         * lib/strptime.h (strptime): Use 'restrict' for args where
63855         POSIX requires this.
63856         * lib/strptime.c (strptime): Likewise.
63857         Change license notice from LGPL to GPL, since gnulib-tool will
63858         change this as needed.
63859         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63860         defined.
63861         Include "strptime.h" first, to check interface.
63862         Do not #undef _LIBC and _NL_CURRENT.
63863         Do not include <stdlib.h>; no longer needed.
63864         Include "time_r.h" and declare ptime_locale_status
63865         only if _LIBC is not defined.
63866         (__P): Remove unused macro.
63867         (match_string): Bring back glibc version, but use it only if _LIBC
63868         is defined.
63869         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63870         Remove unnecessary assertion and abort() call.
63871         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63872         * m4/strptime.m4: Fix serial number comment.
63873         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63874         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63875         (Depends-on): Add time_r.
63876
63877 2007-01-29  Bruno Haible  <bruno@clisp.org>
63878
63879         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63880         strptime.
63881         * modules/strptime (Depends-on): Add stdbool.
63882         * lib/strptime.h: Include <time.h> always. Add comments.
63883
63884 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63885
63886         * modules/strptime: New file.
63887         * lib/strptime.h: New file.
63888         * lib/strptime.c: New file.
63889         * m4/strptime.m4: New file.
63890
63891 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63892
63893         * MODULES.html.sh: New module mpsort.
63894         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63895
63896         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63897         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63899         All uses changed.
63900         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63901         All uses changed.
63902         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63903         to _Restrict_.
63904         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63905         the parameter matches the prototype.
63906
63907 2007-01-28  Jim Meyering  <jim@meyering.net>
63908
63909         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63910         sys/time.h here, reverting that part of the previous patch:
63911         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63912
63913 2007-01-28  Bruno Haible  <bruno@clisp.org>
63914
63915         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63916         value of $(SYS_TIME_H).
63917         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63918         remove it conditionally, too. [added by Jim Meyering]
63919         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63920         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63921         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63922         GETTIMEOFDAY_REPLACEMENT to 1.
63923
63924 2007-01-28  Bruno Haible  <bruno@clisp.org>
63925
63926         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63927         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63929         Set UNISTD_H instead of UNISTD_H2.
63930         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63931
63932 2007-01-28  Bruno Haible  <bruno@clisp.org>
63933
63934         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63935         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63936
63937 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63938
63939         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63940         (func_create_testdir): Ensure C locale for `grep' and `tr'
63941         character ranges.
63942         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63943         ACLOCAL_AMFLAGS parsing state machine.
63944
63945 2007-01-27  Bruno Haible  <bruno@clisp.org>
63946
63947         * modules/unistr/base: Update.
63948
63949 2007-01-27  Bruno Haible  <bruno@clisp.org>
63950
63951         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63952         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63953         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63954         modules/unistr/u32-mbtouc.
63955         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63956         * lib/unistr.h: Update.
63957         * lib/linebreak.c: Update.
63958         * modules/unistr/u32-mbtouc: Renamed from
63959         modules/unistr/u32-mbtouc-safe.
63960         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63961         * lib/unistr.h: Update.
63962         * lib/unistr/u32-to-u8.c: Update.
63963         * lib/unistr/u32-to-u16.c: Update.
63964
63965 2007-01-27  Bruno Haible  <bruno@clisp.org>
63966
63967         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63968         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63969         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63970         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63971         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63972         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63973         modules/unistr/u16-mbtouc.
63974         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63975         * lib/unistr.h: Update.
63976         * lib/linebreak.c: Update.
63977         * modules/linebreak: Update.
63978         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63979         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63980         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63981         * modules/unistr/u16-mbtouc: Renamed from
63982         modules/unistr/u16-mbtouc-safe.
63983         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63984         * lib/unistr.h: Update.
63985         * lib/unistr/u16-to-u8.c: Update.
63986         * modules/unistr/u16-to-u8: Update.
63987         * lib/unistr/u16-to-u32.c: Update.
63988         * modules/unistr/u16-to-u32: Update.
63989
63990 2007-01-27  Bruno Haible  <bruno@clisp.org>
63991
63992         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63993         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63994         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63995         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63996         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63997         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63998         modules/unistr/u8-mbtouc.
63999         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64000         * lib/unistr.h: Update.
64001         * lib/striconveh.c: Update.
64002         * modules/striconveh: Update.
64003         * lib/linebreak.c: Update.
64004         * modules/linebreak: Update.
64005         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64006         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64007         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64008         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64009         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64010         * lib/unistr.h: Update.
64011         * lib/striconveh.c: Update.
64012         * modules/striconveh: Update.
64013         * lib/unistr/u8-to-u16.c: Update.
64014         * modules/unistr/u8-to-u16: Update.
64015         * lib/unistr/u8-to-u32.c: Update.
64016         * modules/unistr/u8-to-u32: Update.
64017
64018 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64019
64020         Sync from Libtool.
64021         * lib/argz.c: Do not include strings.h nor memory.h, include
64022         string.h unconditionally.  Patch by Simon Josefsson.
64023
64024 2007-01-27  Bruno Haible  <bruno@clisp.org>
64025
64026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64027         from gl_HEADER_STRING_H_BODY.
64028         (gl_HEADER_STRING_H_BODY): Require it.
64029         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64030         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64031         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64032         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64033         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64034         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64035         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64036         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64037         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64038         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64039         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64040         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64041         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64042         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64043         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64044
64045 2007-01-27  Bruno Haible  <bruno@clisp.org>
64046
64047         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64048         check_PROGRAMS into noinst_PROGRAMS.
64049         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64050         check_PROGRAMS in this case.
64051         (func_import): Set for_test to false.
64052         (func_create_testdir): Set for_test to true.
64053
64054 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64055             Bruno Haible  <bruno@clisp.org>
64056
64057         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64058         (Depends-on): Add string.
64059         (Includes): Use <string.h> instead of strcasestr.h.
64060         * modules/string (Makefile.am): Also substitute the value of
64061         REPLACE_STRCASESTR.
64062         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64063         assume strcasestr is declared in <string.h> not <strings.h>. Also
64064         set REPLACE_STRCASESTR.
64065         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64066         REPLACE_STRCASESTR.
64067         * lib/strcasestr.h: Remove file.
64068         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64069         * lib/string_.h (strcasestr): New declaration.
64070
64071 2007-01-27  Bruno Haible  <bruno@clisp.org>
64072
64073         * lib/string_.h: Use 'extern'.
64074
64075 2007-01-27  Jim Meyering  <jim@meyering.net>
64076
64077         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64078         of set-but-not-used local, "q".
64079
64080         * lib/mempcpy.c: Include <config.h> before <string.h>.
64081         This fixes a compilation error on HP-UX, due to the system's
64082         "restrict"-using mempcpy prototype.
64083
64084 2007-01-26  Bruno Haible  <bruno@clisp.org>
64085
64086         Small optimization.
64087         * lib/javacomp.c: Include c-strstr.h.
64088          (is_envjavac_gcj): Use c_strstr instead of strstr.
64089         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64090
64091 2007-01-26  Bruno Haible  <bruno@clisp.org>
64092
64093         * MODULES.html.sh (Unicode string functions): Add the new modules.
64094
64095         * modules/uniconv/u32-strconv-to-locale: New file.
64096         * lib/uniconv/u32-strconv-to-locale.c: New file.
64097
64098         * modules/uniconv/u16-strconv-to-locale: New file.
64099         * lib/uniconv/u16-strconv-to-locale.c: New file.
64100
64101         * modules/uniconv/u8-strconv-to-locale: New file.
64102         * lib/uniconv/u8-strconv-to-locale.c: New file.
64103
64104         * modules/uniconv/u32-strconv-from-locale: New file.
64105         * lib/uniconv/u32-strconv-from-locale.c: New file.
64106
64107         * modules/uniconv/u16-strconv-from-locale: New file.
64108         * lib/uniconv/u16-strconv-from-locale.c: New file.
64109
64110         * modules/uniconv/u8-strconv-from-locale: New file.
64111         * lib/uniconv/u8-strconv-from-locale.c: New file.
64112
64113         * modules/uniconv/u32-strconv-to-enc: New file.
64114         * lib/uniconv/u32-strconv-to-enc.c: New file.
64115         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64116         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64117
64118         * modules/uniconv/u16-strconv-to-enc: New file.
64119         * lib/uniconv/u16-strconv-to-enc.c: New file.
64120         * lib/uniconv/u-strconv-to-enc.h: New file.
64121         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64122         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64123
64124         * modules/uniconv/u8-strconv-to-enc: New file.
64125         * lib/uniconv/u8-strconv-to-enc.c: New file.
64126         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64127         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64128
64129         * modules/uniconv/u32-strconv-from-enc: New file.
64130         * lib/uniconv/u32-strconv-from-enc.c: New file.
64131         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64132         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64133
64134         * modules/uniconv/u16-strconv-from-enc: New file.
64135         * lib/uniconv/u16-strconv-from-enc.c: New file.
64136         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64137         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64138
64139         * modules/uniconv/u8-strconv-from-enc: New file.
64140         * lib/uniconv/u8-strconv-from-enc.c: New file.
64141         * lib/uniconv/u-strconv-from-enc.h: New file.
64142         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64143         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64144
64145         * modules/uniconv/u32-conv-from-enc: New file.
64146         * lib/uniconv/u32-conv-from-enc.c: New file.
64147         * modules/uniconv/u32-conv-from-enc-tests: New file.
64148         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64149
64150         * modules/uniconv/u16-conv-from-enc: New file.
64151         * lib/uniconv/u16-conv-from-enc.c: New file.
64152         * lib/uniconv/u-conv-from-enc.h: New file.
64153         * modules/uniconv/u16-conv-from-enc-tests: New file.
64154         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64155
64156         * modules/uniconv/u8-conv-from-enc: New file.
64157         * lib/uniconv/u8-conv-from-enc.c: New file.
64158         * modules/uniconv/u8-conv-from-enc-tests: New file.
64159         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64160
64161         * modules/uniconv/base: New file.
64162         * lib/uniconv.h: New file.
64163
64164 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64165
64166         * doc/gnulib-tool.texi (Initial import): Update to match current
64167         behavior with strdup module.
64168         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64169         * lib/memmem.h: Remove; all uses removed.  This is now done
64170         by <string.h>.
64171         * lib/mempcpy.h: Likewise.
64172         * lib/memrchr.h: Likewise.
64173         * lib/stpcpy.h: Likewise.
64174         * lib/stpncpy.h: Likewise.
64175         * lib/strcase.h: Likewise.
64176         * lib/strchrnul.h: Likewise.
64177         * lib/strdup.h: Likewise.
64178         * lib/strndup.h: Likewise.
64179         * lib/strnlen.h: Likewise.
64180         * lib/strpbrk.h: Likewise.
64181         * lib/strsep.h: Likewise.
64182         * lib/strstr.h: Likewise.
64183         * lib/strtok_r.h: Likewise.
64184         * lib/string_.h: New file.
64185         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64186         Rely on <string.h> instead.
64187         * lib/canon-host.c: Likewise.
64188         * lib/chdir-long.c: Likewise.
64189         * lib/concatpath.c: Likewise.
64190         * lib/exclude.c: Likewise.
64191         * lib/fchdir.c: Likewise.
64192         * lib/getaddrinfo.c: Likewise.
64193         * lib/getcwd.c: Likewise.
64194         * lib/getsubopt.c: Likewise.
64195         * lib/glob.c: Likewise.
64196         * lib/hard-locale.c: Likewise.
64197         * lib/iconvme.c: Likewise.
64198         * lib/javacomp.c: Likewise.
64199         * lib/mempcpy.c: Likewise.
64200         * lib/memrchr.c: Likewise.
64201         * lib/regex_internal.h: Likewise.
64202         * lib/stpncpy.c: Likewise.
64203         * lib/strcasecmp.c: Likewise.
64204         * lib/strchrnul.c: Likewise.
64205         * lib/strdup.c: Likewise.
64206         * lib/striconv.c: Likewise.
64207         * lib/striconveh.c: Likewise.
64208         * lib/striconveha.c: Likewise.
64209         * lib/strncasecmp.c: Likewise.
64210         * lib/strndup.c: Likewise.
64211         * lib/strnlen.c: Likewise.
64212         * lib/strsep.c: Likewise.
64213         * lib/strstr.c: Likewise.
64214         * lib/strtok_r.c: Likewise.
64215         * lib/userspec.c: Likewise.
64216         * lib/w32spawn.h: Likewise.
64217         * lib/xstrndup.c: Likewise.
64218         * lib/mountlist.c (strstr): Remove decl.
64219         * m4/string_h.m4: New file.
64220         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64221         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64222         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64223         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64224         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64225         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64226         Set REPLACE_STRCASECMP if necessary.
64227         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64228         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64229         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64230         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64231         HAVE_DECL_STRDUP if necessary.
64232         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64233         since gl_FUNC_STRNDUP does that now.
64234         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64235         Check for decl here...
64236         (gl_PREREQ_STRNLEN): ... not here.
64237         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64238         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64239         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64240         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64241         necessary.
64242         * modules/string: New file.
64243         * modules/memmem (Files): Remove special-purpose include file.
64244         (Depends-on): Add string.
64245         (Include): Include <string.h>, not the removed file.
64246         * modules/mempcpy: Likewise.
64247         * modules/memrchr: Likewise.
64248         * modules/stpcpy: Likewise.
64249         * modules/stpncpy: Likewise.
64250         * modules/strcase: Likewise.
64251         * modules/strchrnul: Likewise.
64252         * modules/strdup: Likewise.
64253         * modules/strndup: Likewise.
64254         * modules/strnlen: Likewise.
64255         * modules/strpbrk: Likewise.
64256         * modules/strsep: Likewise.
64257         * modules/strstr: Likewise.
64258         * modules/strtok_r: Likewise.
64259         * tests/test-dirname.c: Don't include "strdup.h", since
64260         <string.h> now suffices.
64261         * tests/test-memmem.c: Don't include "memmem.h", since
64262         <string.h> now suffices.
64263
64264 2007-01-25  Bruno Haible  <bruno@clisp.org>
64265
64266         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64267         *resultp is 0.
64268
64269         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64270         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64271         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64272         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64273
64274         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64275         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64276         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64277         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64278         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64279         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64280
64281 2007-01-24  Bruno Haible  <bruno@clisp.org>
64282
64283         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64284         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64285         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64286         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64287         gl_FUNC_FTS_CORE.
64288         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64289         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64290         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64291         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64292         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64293         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64294         gl_FUNC_FCHOWNAT.
64295         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64296         gl_FUNC_STRFTIME.
64297         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64298         Reported by Ralf Wildenhues.
64299
64300 2007-01-24  Bruno Haible  <bruno@clisp.org>
64301
64302         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64303         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64304         gl_GETADDRINFO.
64305         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64306         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64307         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64308
64309 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64310
64311         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64312         Don't use 'exit'; just return from 'main'.
64313         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64314
64315         * lib/fnmatch_.h: Readjust white space and comments to match
64316         glibc, to avoid spurious diffs.
64317
64318 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64319
64320         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64321         2004-12-01 change by Jakub Jelinek, since this code won't compile
64322         if !LIBC.  Problem reported by Bob Proulx.
64323
64324 2007-01-23  Bruno Haible  <bruno@clisp.org>
64325
64326         * lib/striconveh.c: Include c-strcaseeq.h.
64327         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64328         * modules/striconveh (Depends-on): Add c-strcaseeq.
64329
64330 2007-01-23  Bruno Haible  <bruno@clisp.org>
64331
64332         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64333
64334         * modules/c-strcaseeq: New file.
64335         * lib/c-strcaseeq.h: New file.
64336
64337         * modules/streq: New file.
64338         * lib/streq.h: New file.
64339
64340 2007-01-23  Bruno Haible  <bruno@clisp.org>
64341
64342         * modules/striconveha-tests: New file.
64343         * tests/test-striconveha.c: New file.
64344
64345         * lib/striconveha.h: Include <stdbool.h>.
64346         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64347         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64348         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64349         (mem_iconveha): New function.
64350         (str_iconveha_notranslit): Renamed from str_iconveha.
64351         (str_iconveha): New function.
64352         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64353         c-strcase.
64354
64355 2007-01-23  Bruno Haible  <bruno@clisp.org>
64356
64357         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64358         encodings without forgiving before trying any encoding with handler.
64359         (str_iconveha): Try all encodings without forgiving before trying any
64360         encoding with handler.
64361
64362 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64363
64364         Import the following changes from libc.
64365
64366         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64367
64368         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64369
64370         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64371
64372         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64373         normal_bracket label.
64374
64375         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64376
64377         [BZ #361]
64378         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64379         to normal_bracket after fetching the next character.
64380
64381 2007-01-22  Bruno Haible  <bruno@clisp.org>
64382
64383         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64384         argument.
64385         * lib/striconveh.c (iconv_carefully_1): New function.
64386         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64387         argument.
64388         (str_cd_iconveh): Update.
64389         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64390         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64391         * tests/test-striconveh.c (MAGIC): New macro.
64392         (new_offsets): New function.
64393         (main): Test call with and without offsets.
64394
64395 2007-01-22  Bruno Haible  <bruno@clisp.org>
64396
64397         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64398         * modules/sys_select (Makefile.am): Likewise.
64399         * modules/sys_socket (Makefile.am): Likewise.
64400         * modules/sys_time (Makefile.am): Likewise.
64401
64402 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64403
64404         * modules/gettimeofday (License): Change from GPL to LGPL, since
64405         gettimeofday is a library function.
64406
64407 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64408
64409         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64410
64411 2007-01-21  Bruno Haible  <bruno@clisp.org>
64412
64413         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64414
64415 2007-01-21  Bruno Haible  <bruno@clisp.org>
64416
64417         * modules/striconveha: New file.
64418         * lib/striconveha.h: New file.
64419         * lib/striconveha.c: New file.
64420         * MODULES.html.sh (Internationalization functions): Add striconveha.
64421         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64422         string.
64423         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64424
64425 2007-01-21  Bruno Haible  <bruno@clisp.org>
64426
64427         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64428         * lib/striconveh.c (str_iconveh): Likewise.
64429
64430 2007-01-21  Bruno Haible  <bruno@clisp.org>
64431
64432         * lib/striconveh.h (mem_iconveh): New declaration.
64433         * lib/striconveh.c (mem_iconveh): New function.
64434         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64435
64436 2007-01-21  Bruno Haible  <bruno@clisp.org>
64437
64438         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64439
64440         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64441         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64442         original result buffer.
64443         (str_cd_iconveh): Update.
64444         * tests/test-striconveh.c (main): Update.
64445
64446         * lib/striconv.h (mem_cd_iconv): Change specification.
64447         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64448         result buffer.
64449         (str_cd_iconv): Update.
64450         * tests/test-striconv.c (main): Update.
64451
64452 2007-01-21  Bruno Haible  <bruno@clisp.org>
64453
64454         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64455
64456 2007-01-20  Jim Meyering  <jim@meyering.net>
64457
64458         * lib/userspec.c (parse_with_separator): If a user or group string
64459         starts with "+", skip the corresponding name-to-ID look-up, since
64460         such a look-up must fail: user and group names may not include "+".
64461
64462 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64463
64464         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64465         since we now assume the sys_time module.
64466         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64467         check for sys/time.h; no longer needed.
64468         * modules/poll (Depends-on): Depend on sys_time.
64469
64470 2007-01-18  Bruno Haible  <bruno@clisp.org>
64471
64472         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64473         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64474
64475         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64476         gettimeofday.
64477
64478         * tests/test-gettimeofday.c: Include <time.h>.
64479         (dummy): Remove variable.
64480
64481         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64482         gl_HEADER_SYS_TIME_H.
64483         (gl_HEADER_SYS_TIME_H): New macro.
64484
64485         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64486         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64487         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64488         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64489         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64490         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64491         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64492         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64493         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64494         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64495         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64496
64497         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64498         last change; it caused a compilation error when cross-compiling to
64499         Cygwin.
64500
64501 2007-01-18  Jim Meyering  <jim@meyering.net>
64502
64503         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64504         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64505         than the race-prone "test -d sys || mkdir sys".
64506         (configure.ac): Use AC_PROG_MKDIR_P.
64507         * modules/sys_select: Likewise.
64508         * modules/sys_socket: Likewise.
64509         * modules/sys_time: Likewise.
64510
64511 2007-01-18  Eric Blake  <ebb9@byu.net>
64512
64513         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64514         replace gettimeofday.
64515         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64516         name, to avoid infinite recursion.
64517
64518 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64519
64520         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64521         module sys_time.
64522         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64523         assume timespec.h defines struct timeval.
64524         * lib/settime.c: Likewise.
64525         * lib/utimens.c: Likewise.
64526         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64527         since we now assume the gettimeofday module.
64528         * lib/tempname.c (__gen_tempname): Likewise.
64529         * lib/gettimeofday.h: Remove.
64530         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64531         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64532         Include <time.h>, for 'time()'.
64533         (localtime_buffer_addr): Also use this workaround if
64534         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64535         to simplify the uses.  All uses changed.
64536         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64537         that #undef is inside {}, and 'const' follows type name consistently.
64538         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64539         (gettimeofday): Do not use the maximum possible value for
64540         tv->tv_usec, since that might break usages other than ls.c.
64541         Instead, we'll leave ls.c alone.  This undoes today's patch
64542         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64543         we've never observed the problem but might as well keep the
64544         canary.
64545         * lib/nanosleep.c: Include timespec.h first, for interface check.
64546         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64547         now assume the sys_time module.
64548         * lib/tempname.c: Likewise.
64549         * lib/timespec.h: Likewise.
64550         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64551         needed.
64552         * lib/strftime.c: Likewise.
64553         * lib/timespec.h: Likewise.
64554         * lib/posixtm.c: Include posixtm.h first, for interface check.
64555         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64556         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64557         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64558         * lib/sys_time_.h: New file.
64559         * lib/timespec.h (struct timespec): Use long int, not long.
64560         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64561         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64562         Remove obsolescent call to AC_HEADER_TIME.
64563         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64564         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64565         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64566         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64567         Likewise.
64568         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64569         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64570         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64571         into the sys_time module.  Check for gettimeofday just once.
64572         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64573         for gettimeofday signature to just check the signature.  Merely
64574         compile it, since linking doesn't test signature.  Improve test for
64575         whether gettimeofday.o is actually needed.
64576         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64577         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64578         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64579         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64580         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64581         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64582         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64583         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64584         than worrying about sys/time.h.
64585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64586         Don't bother worrying about TIME_WITH_SYS_TIME.
64587         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64588         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64589         * m4/sys_time_h.m4: New file.
64590         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64591         Don't include sys/time.h.  Return from main rather than exiting.
64592         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64593         all uses changed.
64594         * modules/gethrxtime (Depends-on): Add sys_time.
64595         * modules/gettime (Depends-on): Likewise.
64596         * modules/gettimeofday (Depends-on): Likewise.
64597         * modules/nanosleep (Depends-on): Likewise.
64598         * modules/settime (Depends-on): Likewise.
64599         * modules/tempname (Depends-on): Likewise.
64600         * modules/utimens (Depends-on): Likewise.
64601         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64602         (Include): Change back to <sys/time.h>.
64603         (Maintainer): Add self.
64604         * modules/sys_time: New file.
64605         * modules/tempname (Depends-on): Add gettimeofday.
64606         * tests/test-gettimeofday.c: Include <sys/time.h>
64607         rather than gettimeofday.h.
64608
64609 2007-01-17  Bruno Haible  <bruno@clisp.org>
64610
64611         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64612         the license default to GPL.
64613         (func_create_testdir): Don't complain if a module is LGPL and its
64614         tests module depends on GPLed modules.
64615
64616 2007-01-17  Bruno Haible  <bruno@clisp.org>
64617
64618         * lib/gettimeofday.c (gettimeofday): Add code for the case
64619         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64620         maximum possible value for tv->tv_usec, rather than the minimum one.
64621
64622 2005-10-08  Martin Lambers  <marlam@marlam.de>
64623 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64624 2007-01-16  Bruno Haible  <bruno@clisp.org>
64625
64626         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64627         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64628         gl_FUNC_GETTIMEOFDAY.
64629         (Include): Add gettimeofday.h.
64630         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64631         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64632         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64633         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64634         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64635         * lib/gettimeofday.h: New file.
64636         * lib/gettimeofday.c: Include <sys/timeb.h>.
64637         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64638         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64639         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64640         fall back on time().
64641
64642         * tests/test-gettimeofday.c: New file.
64643         * modules/gettimeofday-tests: New file.
64644
64645 2007-01-16  Eric Blake  <ebb9@byu.net>
64646
64647         * modules/fnmatch (Depends-on): Depend on wchar.
64648         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64649         * m4/fnmatch.m4: Likewise.
64650         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64651         * m4/mbchar.m4: Likewise.
64652         * modules/mbswidth (Depends-on): Depend on wchar.
64653         * lib/mbswidth.c: Assume <wchar.h>.
64654         * m4/mbswidth.m4: Likewise.
64655         * modules/quotearg (Depends-on): Depend on wchar.
64656         * lib/quotearg.c: Assume <wchar.h>.
64657         * m4/quotearg.m4: Likewise.
64658         * modules/regex (Depends-on): Depend on wchar.
64659         * lib/regex_internal.h: Assume <wchar.h>.
64660         * m4/regex.m4: Likewise.
64661         * modules/stdint (Depends-on): Depend on wchar.
64662         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64663         * m4/stdint.m4: Likewise.
64664         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64665         * modules/strftime (Depends-on): Depend on wchar.
64666         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64667         * modules/strtol (Depends-on): Depend on wchar.
64668         * lib/strtol.c: Assume <wchar.h>.
64669         * modules/wcwidth (Depends-on): Depend on wchar.
64670         * lib/wcwidth.h: Assume <wchar.h>.
64671         * m4/wcwidth.m4: Likewise.
64672
64673 2007-01-16  Bruno Haible  <bruno@clisp.org>
64674
64675         * modules/csharpexec-script: New, created from...
64676         * modules/csharpexec: ... this.
64677
64678 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64679
64680         * modules/javaexec-script: New, created from...
64681         * modules/javaexec: ... this.
64682
64683 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64684
64685         * modules/poll (Dependencies): Add sys_select.
64686
64687 2007-01-15  Jim Meyering  <jim@meyering.net>
64688
64689         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64690         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64691         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64692         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64693
64694 2007-01-15  Bruno Haible  <bruno@clisp.org>
64695
64696         * modules/striconveh: New file.
64697         * lib/striconveh.h: New file.
64698         * lib/striconveh.c: New file.
64699         * MODULES.html.sh (Internationalization functions): Add striconveh.
64700
64701         * modules/striconveh-tests: New file.
64702         * tests/test-striconveh.c: New file.
64703
64704 2007-01-15  Bruno Haible  <bruno@clisp.org>
64705
64706         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64707         not from GNU libiconv or GNU libc.
64708
64709 2007-01-15  Bruno Haible  <bruno@clisp.org>
64710
64711         * doc/gnulib-intro.texi (Copyright): Explain the different license
64712         terms for module descriptions, autoconf macros, tests, documentation.
64713
64714 2007-01-14  Bruno Haible  <bruno@clisp.org>
64715
64716         * modules/striconv-tests: New file.
64717         * tests/test-striconv.c: New file.
64718
64719 2007-01-14  Bruno Haible  <bruno@clisp.org>
64720
64721         * modules/iconv-tests: New file.
64722         * tests/test-iconv.c: New file.
64723
64724 2007-01-14  Bruno Haible  <bruno@clisp.org>
64725
64726         * gnulib-tool (func_get_license): For test modules, use the license of
64727         the main module.
64728
64729 2007-01-14  Bruno Haible  <bruno@clisp.org>
64730
64731         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64732         if iconv is found to exist.
64733
64734 2007-01-14  Bruno Haible  <bruno@clisp.org>
64735
64736         * modules/c-ctype-tests: New file.
64737         * tests/test-c-ctype.c: New file.
64738
64739 2007-01-14  Bruno Haible  <bruno@clisp.org>
64740
64741         * modules/binary-io-tests: New file.
64742         * tests/test-binary-io.sh: New file.
64743         * tests/test-binary-io.c: New file.
64744
64745 2007-01-14  Bruno Haible  <bruno@clisp.org>
64746
64747         * modules/array-oset-tests: New file.
64748         * tests/test-array_oset.c: New file.
64749
64750 2007-01-14  Bruno Haible  <bruno@clisp.org>
64751
64752         * modules/array-list-tests: New file.
64753         * tests/test-array_list.c: New file.
64754
64755 2007-01-14  Bruno Haible  <bruno@clisp.org>
64756
64757         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64758         and make.
64759         Reported by Simon Josefsson in
64760         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64761
64762 2007-01-14  Bruno Haible  <bruno@clisp.org>
64763
64764         * modules/allocsa-tests: New file.
64765         * tests/test-allocsa.c: New file.
64766
64767 2007-01-14  Bruno Haible  <bruno@clisp.org>
64768
64769         * modules/fchdir (Depends-on): Add absolute-header.
64770         * modules/unistd (Depends-on): Likewise.
64771
64772 2006-12-30  Bruno Haible  <bruno@clisp.org>
64773
64774         * modules/fchdir: New file.
64775         * modules/unistd (Files): Add lib/unistd_.h.
64776         (Makefile.am): Generate unistd.h from unistd_.h.
64777         * lib/fchdir.c: New file.
64778         * lib/dirent_.h: New file.
64779         * lib/unistd_.h: New file.
64780         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64781         * m4/fchdir.m4: New file.
64782         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64783         (gl_HEADER_UNISTD): Invoke it.
64784         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64785         function.
64786         * lib/backupfile.c (opendir, closedir): Undefine.
64787         * lib/chown.c (open, close): Undefine.
64788         * lib/clean-temp.c (open, close): Undefine.
64789         * lib/copy-file.c (open, close): Undefine.
64790         * lib/execute.c (open, close): Undefine.
64791         * lib/fsusage.c (open, close): Undefine.
64792         * lib/gc-gnulib.c (open, close): Undefine.
64793         * lib/getcwd.c (opendir, closedir): Undefine.
64794         * lib/glob.c (opendir, closedir): Undefine.
64795         * lib/javacomp.c (open, close): Undefine.
64796         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64797         * lib/openat-proc.c (open, close): Undefine.
64798         * lib/pagealign_alloc.c (open, close): Undefine.
64799         * lib/pipe.c (open, close): Undefine.
64800         * lib/progreloc.c (open, close): Undefine.
64801         * lib/savedir.c (opendir, closedir): Undefine.
64802         * lib/utime.c (open, close): Undefine.
64803         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64804
64805 2007-01-10  Bruno Haible  <bruno@clisp.org>
64806
64807         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64808
64809 2007-01-12  Eric Blake  <ebb9@byu.net>
64810
64811         Provide a robust <wchar.h>.  Further simplifications are now
64812         possible in other modules, but not included here.
64813         * modules/wchar: New module.
64814         * m4/wchar.m4: New file.
64815         * lib/wchar_.h: Likewise.
64816         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64817         of the new module.
64818         * MODULES.html.sh (Extended multibyte and wide character utilities):
64819         New section.
64820
64821 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64822
64823         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64824         to a reasonable default for memory allocation.
64825         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64826         file system that reports garbage st_size values for symlinks.
64827         Problem reported by Liyang Hu.
64828
64829 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64830
64831         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64832         Emacs .#* auto-save files).
64833
64834 2007-01-11  Bruno Haible  <bruno@clisp.org>
64835
64836         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64837         directory.
64838
64839 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64840
64841         Use @...@ consistently in lib/wctype_.h.
64842         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64843         on it being set to 1 or 0.
64844         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64845         go back to AC_SUBSTing it.
64846         * modules/wctype (Makefile.am): Undo previous change.
64847
64848 2007-01-10  Eric Blake  <ebb9@byu.net>
64849
64850         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64851         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64852         * modules/wctype (Makefile.am): Likewise.
64853         Reported by Chris McGuire.
64854
64855 2007-01-10  Jim Meyering  <jim@meyering.net>
64856
64857         fts.c: a small readability/maintainability improvement
64858         * lib/fts.c (fts_read): Make this code slightly more readable and
64859         maintainable by hoisting the "sp->fts_cur = p" assignments to
64860         immediately follow the statements that set P.  Derived from
64861         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64862
64863 2007-01-10  Eric Blake  <ebb9@byu.net>
64864
64865         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64866         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64868         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64869         Reported by Chris McGuire.
64870
64871 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64872
64873         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64874         in sed script.
64875
64876 2007-01-09  Bruno Haible  <bruno@clisp.org>
64877
64878         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64879         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64880         variables.
64881         (func_module): Use them.
64882
64883 2007-01-09  Bruno Haible  <bruno@clisp.org>
64884
64885         * modules/unistr/base: New file.
64886         * lib/unistr.h: New file.
64887
64888         * modules/unistr/u8-to-u16: New file.
64889         * lib/unistr/u8-to-u16.c: New file.
64890
64891         * modules/unistr/u8-to-u32: New file.
64892         * lib/unistr/u8-to-u32.c: New file.
64893
64894         * modules/unistr/u16-to-u8: New file.
64895         * lib/unistr/u16-to-u8.c: New file.
64896
64897         * modules/unistr/u16-to-u32: New file.
64898         * lib/unistr/u16-to-u32.c: New file.
64899
64900         * modules/unistr/u32-to-u8: New file.
64901         * lib/unistr/u32-to-u8.c: New file.
64902
64903         * modules/unistr/u32-to-u16: New file.
64904         * lib/unistr/u32-to-u16.c: New file.
64905
64906         * modules/unistr/u8-check: New file.
64907         * modules/unistr/u16-check: New file.
64908         * modules/unistr/u32-check: New file.
64909         * lib/unistr/u8-check.c: New file.
64910         * lib/unistr/u16-check.c: New file.
64911         * lib/unistr/u32-check.c: New file.
64912
64913         * modules/unistr/u8-chr: New file.
64914         * modules/unistr/u16-chr: New file.
64915         * modules/unistr/u32-chr: New file.
64916         * lib/unistr/u8-chr.c: New file.
64917         * lib/unistr/u16-chr.c: New file.
64918         * lib/unistr/u32-chr.c: New file.
64919
64920         * modules/unistr/u8-cmp: New file.
64921         * modules/unistr/u16-cmp: New file.
64922         * modules/unistr/u32-cmp: New file.
64923         * lib/unistr/u8-cmp.c: New file.
64924         * lib/unistr/u16-cmp.c: New file.
64925         * lib/unistr/u32-cmp.c: New file.
64926
64927         * modules/unistr/u8-cpy: New file.
64928         * modules/unistr/u16-cpy: New file.
64929         * modules/unistr/u32-cpy: New file.
64930         * lib/unistr/u8-cpy.c: New file.
64931         * lib/unistr/u16-cpy.c: New file.
64932         * lib/unistr/u32-cpy.c: New file.
64933         * lib/unistr/u-cpy.h: New file.
64934
64935         * modules/unistr/u8-cpy-alloc: New file.
64936         * modules/unistr/u16-cpy-alloc: New file.
64937         * modules/unistr/u32-cpy-alloc: New file.
64938         * lib/unistr/u8-cpy-alloc.c: New file.
64939         * lib/unistr/u16-cpy-alloc.c: New file.
64940         * lib/unistr/u32-cpy-alloc.c: New file.
64941         * lib/unistr/u-cpy-alloc.h: New file.
64942
64943         * modules/unistr/u8-endswith: New file.
64944         * modules/unistr/u16-endswith: New file.
64945         * modules/unistr/u32-endswith: New file.
64946         * lib/unistr/u8-endswith.c: New file.
64947         * lib/unistr/u16-endswith.c: New file.
64948         * lib/unistr/u32-endswith.c: New file.
64949         * lib/unistr/u-endswith.h: New file.
64950
64951         * modules/unistr/u8-mblen: New file.
64952         * modules/unistr/u16-mblen: New file.
64953         * modules/unistr/u32-mblen: New file.
64954         * lib/unistr/u8-mblen.c: New file.
64955         * lib/unistr/u16-mblen.c: New file.
64956         * lib/unistr/u32-mblen.c: New file.
64957
64958         * modules/unistr/u8-mbtouc: New file.
64959         * modules/unistr/u16-mbtouc: New file.
64960         * modules/unistr/u32-mbtouc: New file.
64961         * lib/unistr/u8-mbtouc.c: New file.
64962         * lib/unistr/u16-mbtouc.c: New file.
64963         * lib/unistr/u32-mbtouc.c: New file.
64964
64965         * modules/unistr/u8-mbtouc-safe: New file.
64966         * modules/unistr/u16-mbtouc-safe: New file.
64967         * modules/unistr/u32-mbtouc-safe: New file.
64968         * lib/unistr/u8-mbtouc-safe.c: New file.
64969         * lib/unistr/u16-mbtouc-safe.c: New file.
64970         * lib/unistr/u32-mbtouc-safe.c: New file.
64971
64972         * modules/unistr/u8-move: New file.
64973         * modules/unistr/u16-move: New file.
64974         * modules/unistr/u32-move: New file.
64975         * lib/unistr/u8-move.c: New file.
64976         * lib/unistr/u16-move.c: New file.
64977         * lib/unistr/u32-move.c: New file.
64978         * lib/unistr/u-move.h: New file.
64979
64980         * modules/unistr/u8-next: New file.
64981         * modules/unistr/u16-next: New file.
64982         * modules/unistr/u32-next: New file.
64983         * lib/unistr/u8-next.c: New file.
64984         * lib/unistr/u16-next.c: New file.
64985         * lib/unistr/u32-next.c: New file.
64986
64987         * modules/unistr/u8-prev: New file.
64988         * modules/unistr/u16-prev: New file.
64989         * modules/unistr/u32-prev: New file.
64990         * lib/unistr/u8-prev.c: New file.
64991         * lib/unistr/u16-prev.c: New file.
64992         * lib/unistr/u32-prev.c: New file.
64993
64994         * modules/unistr/u8-set: New file.
64995         * modules/unistr/u16-set: New file.
64996         * modules/unistr/u32-set: New file.
64997         * lib/unistr/u8-set.c: New file.
64998         * lib/unistr/u16-set.c: New file.
64999         * lib/unistr/u32-set.c: New file.
65000         * lib/unistr/u-set.h: New file.
65001
65002         * modules/unistr/u8-startswith: New file.
65003         * modules/unistr/u16-startswith: New file.
65004         * modules/unistr/u32-startswith: New file.
65005         * lib/unistr/u8-startswith.c: New file.
65006         * lib/unistr/u16-startswith.c: New file.
65007         * lib/unistr/u32-startswith.c: New file.
65008         * lib/unistr/u-startswith.h: New file.
65009
65010         * modules/unistr/u8-stpcpy: New file.
65011         * modules/unistr/u16-stpcpy: New file.
65012         * modules/unistr/u32-stpcpy: New file.
65013         * lib/unistr/u8-stpcpy.c: New file.
65014         * lib/unistr/u16-stpcpy.c: New file.
65015         * lib/unistr/u32-stpcpy.c: New file.
65016         * lib/unistr/u-stpcpy.h: New file.
65017
65018         * modules/unistr/u8-stpncpy: New file.
65019         * modules/unistr/u16-stpncpy: New file.
65020         * modules/unistr/u32-stpncpy: New file.
65021         * lib/unistr/u8-stpncpy.c: New file.
65022         * lib/unistr/u16-stpncpy.c: New file.
65023         * lib/unistr/u32-stpncpy.c: New file.
65024         * lib/unistr/u-stpncpy.h: New file.
65025
65026         * modules/unistr/u8-strcat: New file.
65027         * modules/unistr/u16-strcat: New file.
65028         * modules/unistr/u32-strcat: New file.
65029         * lib/unistr/u8-strcat.c: New file.
65030         * lib/unistr/u16-strcat.c: New file.
65031         * lib/unistr/u32-strcat.c: New file.
65032         * lib/unistr/u-strcat.h: New file.
65033
65034         * modules/unistr/u8-strchr: New file.
65035         * modules/unistr/u16-strchr: New file.
65036         * modules/unistr/u32-strchr: New file.
65037         * lib/unistr/u8-strchr.c: New file.
65038         * lib/unistr/u16-strchr.c: New file.
65039         * lib/unistr/u32-strchr.c: New file.
65040
65041         * modules/unistr/u8-strcmp: New file.
65042         * modules/unistr/u16-strcmp: New file.
65043         * modules/unistr/u32-strcmp: New file.
65044         * lib/unistr/u8-strcmp.c: New file.
65045         * lib/unistr/u16-strcmp.c: New file.
65046         * lib/unistr/u32-strcmp.c: New file.
65047
65048         * modules/unistr/u8-strcpy: New file.
65049         * modules/unistr/u16-strcpy: New file.
65050         * modules/unistr/u32-strcpy: New file.
65051         * lib/unistr/u8-strcpy.c: New file.
65052         * lib/unistr/u16-strcpy.c: New file.
65053         * lib/unistr/u32-strcpy.c: New file.
65054         * lib/unistr/u-strcpy.h: New file.
65055
65056         * modules/unistr/u8-strcspn: New file.
65057         * modules/unistr/u16-strcspn: New file.
65058         * modules/unistr/u32-strcspn: New file.
65059         * lib/unistr/u8-strcspn.c: New file.
65060         * lib/unistr/u16-strcspn.c: New file.
65061         * lib/unistr/u32-strcspn.c: New file.
65062         * lib/unistr/u-strcspn.h: New file.
65063
65064         * modules/unistr/u8-strdup: New file.
65065         * modules/unistr/u16-strdup: New file.
65066         * modules/unistr/u32-strdup: New file.
65067         * lib/unistr/u8-strdup.c: New file.
65068         * lib/unistr/u16-strdup.c: New file.
65069         * lib/unistr/u32-strdup.c: New file.
65070         * lib/unistr/u-strdup.h: New file.
65071
65072         * modules/unistr/u8-strlen: New file.
65073         * modules/unistr/u16-strlen: New file.
65074         * modules/unistr/u32-strlen: New file.
65075         * lib/unistr/u8-strlen.c: New file.
65076         * lib/unistr/u16-strlen.c: New file.
65077         * lib/unistr/u32-strlen.c: New file.
65078         * lib/unistr/u-strlen.h: New file.
65079
65080         * modules/unistr/u8-strmblen: New file.
65081         * modules/unistr/u16-strmblen: New file.
65082         * modules/unistr/u32-strmblen: New file.
65083         * lib/unistr/u8-strmblen.c: New file.
65084         * lib/unistr/u16-strmblen.c: New file.
65085         * lib/unistr/u32-strmblen.c: New file.
65086
65087         * modules/unistr/u8-strmbtouc: New file.
65088         * modules/unistr/u16-strmbtouc: New file.
65089         * modules/unistr/u32-strmbtouc: New file.
65090         * lib/unistr/u8-strmbtouc.c: New file.
65091         * lib/unistr/u16-strmbtouc.c: New file.
65092         * lib/unistr/u32-strmbtouc.c: New file.
65093
65094         * modules/unistr/u8-strncat: New file.
65095         * modules/unistr/u16-strncat: New file.
65096         * modules/unistr/u32-strncat: New file.
65097         * lib/unistr/u8-strncat.c: New file.
65098         * lib/unistr/u16-strncat.c: New file.
65099         * lib/unistr/u32-strncat.c: New file.
65100         * lib/unistr/u-strncat.h: New file.
65101
65102         * modules/unistr/u8-strncmp: New file.
65103         * modules/unistr/u16-strncmp: New file.
65104         * modules/unistr/u32-strncmp: New file.
65105         * lib/unistr/u8-strncmp.c: New file.
65106         * lib/unistr/u16-strncmp.c: New file.
65107         * lib/unistr/u32-strncmp.c: New file.
65108
65109         * modules/unistr/u8-strncpy: New file.
65110         * modules/unistr/u16-strncpy: New file.
65111         * modules/unistr/u32-strncpy: New file.
65112         * lib/unistr/u8-strncpy.c: New file.
65113         * lib/unistr/u16-strncpy.c: New file.
65114         * lib/unistr/u32-strncpy.c: New file.
65115         * lib/unistr/u-strncpy.h: New file.
65116
65117         * modules/unistr/u8-strnlen: New file.
65118         * modules/unistr/u16-strnlen: New file.
65119         * modules/unistr/u32-strnlen: New file.
65120         * lib/unistr/u8-strnlen.c: New file.
65121         * lib/unistr/u16-strnlen.c: New file.
65122         * lib/unistr/u32-strnlen.c: New file.
65123         * lib/unistr/u-strnlen.h: New file.
65124
65125         * modules/unistr/u8-strpbrk: New file.
65126         * modules/unistr/u16-strpbrk: New file.
65127         * modules/unistr/u32-strpbrk: New file.
65128         * lib/unistr/u8-strpbrk.c: New file.
65129         * lib/unistr/u16-strpbrk.c: New file.
65130         * lib/unistr/u32-strpbrk.c: New file.
65131         * lib/unistr/u-strpbrk.h: New file.
65132
65133         * modules/unistr/u8-strrchr: New file.
65134         * modules/unistr/u16-strrchr: New file.
65135         * modules/unistr/u32-strrchr: New file.
65136         * lib/unistr/u8-strrchr.c: New file.
65137         * lib/unistr/u16-strrchr.c: New file.
65138         * lib/unistr/u32-strrchr.c: New file.
65139
65140         * modules/unistr/u8-strspn: New file.
65141         * modules/unistr/u16-strspn: New file.
65142         * modules/unistr/u32-strspn: New file.
65143         * lib/unistr/u8-strspn.c: New file.
65144         * lib/unistr/u16-strspn.c: New file.
65145         * lib/unistr/u32-strspn.c: New file.
65146         * lib/unistr/u-strspn.h: New file.
65147
65148         * modules/unistr/u8-strstr: New file.
65149         * modules/unistr/u16-strstr: New file.
65150         * modules/unistr/u32-strstr: New file.
65151         * lib/unistr/u8-strstr.c: New file.
65152         * lib/unistr/u16-strstr.c: New file.
65153         * lib/unistr/u32-strstr.c: New file.
65154         * lib/unistr/u-strstr.h: New file.
65155
65156         * modules/unistr/u8-strtok: New file.
65157         * modules/unistr/u16-strtok: New file.
65158         * modules/unistr/u32-strtok: New file.
65159         * lib/unistr/u8-strtok.c: New file.
65160         * lib/unistr/u16-strtok.c: New file.
65161         * lib/unistr/u32-strtok.c: New file.
65162         * lib/unistr/u-strtok.h: New file.
65163
65164         * modules/unistr/u8-uctomb: New file.
65165         * modules/unistr/u16-uctomb: New file.
65166         * modules/unistr/u32-uctomb: New file.
65167         * lib/unistr/u8-uctomb.c: New file.
65168         * lib/unistr/u16-uctomb.c: New file.
65169         * lib/unistr/u32-uctomb.c: New file.
65170
65171         * MODULES.html.sh (Unicode string functions): Add the new modules.
65172
65173 2007-01-08  Bruno Haible  <bruno@clisp.org>
65174
65175         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65176         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65177         subdirectories.
65178
65179 2007-01-08  Karl Berry  <karl@gnu.org>
65180
65181         * doc/error.texi: mention that main() fns must set program_name
65182         when progname is used.
65183
65184 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65185
65186         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65187         WCTYPE_H is empty, for the benefit of builds from non-distclean
65188         directories.  Problem reported by Eric Blake in
65189         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65190
65191 2007-01-08  Bruno Haible  <bruno@clisp.org>
65192
65193         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65194         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65195         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65196         PROVIDE_CANONICALIZE_FILENAME_MODE.
65197         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65198
65199 2007-01-08  Bruno Haible  <bruno@clisp.org>
65200
65201         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65202         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65203         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65204         * lib/fts.c: Likewise.
65205         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65206
65207 2006-12-25  Bruno Haible  <bruno@clisp.org>
65208
65209         * modules/utf8-ucs4-safe: New file.
65210         * lib/utf8-ucs4-safe.h: New file.
65211         * lib/unistr/utf8-ucs4-safe.c: New file.
65212
65213         * modules/utf16-ucs4-safe: New file.
65214         * lib/utf16-ucs4-safe.h: New file.
65215         * lib/unistr/utf16-ucs4-safe.c: New file.
65216
65217         * MODULES.html.sh (Unicode string functions): Add the new modules.
65218
65219 2007-01-08  Bruno Haible  <bruno@clisp.org>
65220
65221         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65222         (Depends-on): Add unitypes.
65223         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65224         (u8_mbtouc_aux): Move out to separate file.
65225         (u8_mbtouc): Use ucs4_t, uint8_t types.
65226         * lib/unistr/utf8-ucs4.c: New file.
65227
65228         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65229         (Depends-on): Add unitypes.
65230         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65231         (u16_mbtouc_aux): Move out to separate file.
65232         (u16_mbtouc): Use ucs4_t, uint16_t types.
65233         * lib/unistr/utf16-ucs4.c: New file.
65234
65235         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65236         (Depends-on): Add unitypes.
65237         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65238         (u8_uctomb_aux): Move out to separate file.
65239         (u8_uctomb): Use ucs4_t, uint8_t types.
65240         * lib/unistr/ucs4-utf8.c: New file.
65241
65242         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65243         (Depends-on): Add unitypes.
65244         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65245         (u16_uctomb_aux): Move out to separate file.
65246         (u16_uctomb): Use ucs4_t, uint16_t types.
65247         * lib/unistr/ucs4-utf16.c: New file.
65248
65249 2006-12-25  Bruno Haible  <bruno@clisp.org>
65250
65251         * modules/unitypes: New file.
65252         * lib/unitypes.h: New file.
65253         * MODULES.html.sh (func_all_modules): New section "Unicode string
65254         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65255         this section. Add unitypes.
65256
65257 2007-01-08  Bruno Haible  <bruno@clisp.org>
65258
65259         Avoid variable names that conflict with those from libtool.
65260         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65261         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65262         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65263         library_names_spec to acl_library_names_spec, hardcode_* to
65264         acl_hardcode_*.
65265         Reported by Ralf Wildenhues.
65266
65267 2007-01-08  Bruno Haible  <bruno@clisp.org>
65268
65269         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65270         definition.
65271         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65272         definition.
65273         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65274         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65275         definition.
65276         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65277         definition.
65278         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65279         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65280         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65281         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65282         definition.
65283         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65284         definition.
65285         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65286         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65287         GC_USE_<algorithm>.
65288         * lib/gc-libgcrypt.c: Likewise.
65289         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65290         * modules/gc-arctwo (configure.ac): Likewise.
65291         * modules/gc-des (configure.ac): Likewise.
65292         * modules/gc-hmac-md5 (configure.ac): Likewise.
65293         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65294         * modules/gc-md2 (configure.ac): Likewise.
65295         * modules/gc-md4 (configure.ac): Likewise.
65296         * modules/gc-md5 (configure.ac): Likewise.
65297         * modules/gc-random (configure.ac): Likewise.
65298         * modules/gc-rijndael (configure.ac): Likewise.
65299         * modules/gc-sha1 (configure.ac): Likewise.
65300
65301 2007-01-08  Bruno Haible  <bruno@clisp.org>
65302
65303         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65304         macro definition.
65305         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65306         definition.
65307         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65308         definition.
65309         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65310         * modules/fcntl-safer (configure.ac): Likewise.
65311         * modules/fopen-safer (configure.ac): Likewise.
65312         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65313         GNULIB_FWRITEERROR macro definition.
65314
65315 2007-01-08  Bruno Haible  <bruno@clisp.org>
65316
65317         * m4/gnulib-common.m4: New file.
65318         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65319         (func_get_filelist): Add m4/gnulib-common.m4.
65320
65321 2007-01-08  Bruno Haible  <bruno@clisp.org>
65322
65323         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65324         command.
65325
65326 2007-01-08  Jim Meyering  <jim@meyering.net>
65327
65328         Use a more robust test for a "can't happen" condition.
65329         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65330         narrowed the st_size value.  Presuming the "can't happen" condition
65331         is true, that narrowing could conceivably convert an invalid st_size
65332         value into a valid one.  Instead, use a change based on Matthew
65333         Woehlke's original patch.
65334
65335         Slight readability improvement: use an assert-like macro
65336         in place of literal "abort ()" uses.
65337         * lib/fts.c (fts_assert): Define.
65338         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65339         Use this macro instead of a bare 'abort'.
65340
65341 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65342
65343         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65344         simply work around them.
65345         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65346         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65347         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65348         declaring.
65349         Don't bother to define as macros, since the standard doesn't require it.
65350         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65351         longer worry about IRIX 5.3.
65352         (HAVE_WCTYPE_CTMP_BUG): Remove.
65353
65354 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65355
65356         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65357         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65358         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65359         Problems reported by Georg Schwarz for IRIX 5.3.
65360
65361         * gnulib-tool (autoconf_minversion): Take the maximum version number
65362         found, not the minimum.  Problem reported by James Youngman.
65363
65364 2007-01-03  Karl Berry  <karl@gnu.org>
65365
65366         * doc/error.texi: new file, explaining interaction with progname.
65367         * doc/gnulib.texi: include it.  Update copyright.
65368
65369 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65370
65371         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65372         AC_CANONICAL_HOST, to improve autobuild outputs.
65373
65374 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65375             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65376
65377         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65378         sockets, server sockets, and other file descriptors.  Count errors
65379         to compute the return value.  Reorder the code a bit to be easier
65380         to follow.  Don't set event bits that were not requested (except
65381         POLLERR and POLLHUP).
65382
65383 2007-01-01  Bruno Haible  <bruno@clisp.org>
65384
65385         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65386
65387 2007-01-03  Jim Meyering  <jim@meyering.net>
65388
65389         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65390
65391 2007-01-02  Bruno Haible  <bruno@clisp.org>
65392
65393         * modules/settime (Include): Require timespec.h.
65394         * modules/nanosleep (Include): Likewise.
65395
65396 2007-01-01  Bruno Haible  <bruno@clisp.org>
65397
65398         * gnulib-tool (func_emit_copyright_notice): Bump year.
65399         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65400
65401 2007-01-01  Bruno Haible  <bruno@clisp.org>
65402
65403         Improve support for OpenBSD.
65404         * build-aux/config.rpath (libname_spec): Export.
65405         (library_names_spec): New variable. Export.
65406         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65407         library_names_spec from the config.rpath output. Locate shared library
65408         through the name pattern in library_names_spec.
65409
65410 2007-01-01  Eric Blake  <ebb9@byu.net>
65411
65412         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65413
65414 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65417         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65418         assume the C locale, and avoid an "eval" that could cause trouble.
65419         Problem with SORT reported by Bob Proulx.
65420
65421         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65422         Define.  Trivial patch from Henning Nielsen Lund, originally
65423         sent to bug-grep@gnu.org today.
65424
65425 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65426
65427         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65428         struct stat.  Problem reported by Henning Nielsen Lund.
65429         * lib/acl.c: Include acl.h first, to check interface.  Don't
65430         bother to include sys/types.h and sys/stat.h again.
65431
65432 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65433
65434         Import the following change from libc; problem reported by
65435         Sven Verdoolaege.
65436
65437         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65438
65439         [BZ #1373]
65440         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65441
65442 2006-12-28  Jim Meyering  <jim@meyering.net>
65443
65444         * build-aux/announce-gen: Do not assume that the package
65445         builds any of tar.gz, tar.bz2, and .xdelta files.
65446         Suggestion from Simon Josefsson.
65447
65448 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65449
65450         * modules/announce-gen: New file.
65451
65452 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65453
65454         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65455         handles its gotchas now.
65456         * lib/mbswidth.c: Likewise.
65457         * lib/wcwidth.h: Likewise.
65458         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65459         and iswcntrl; the wctype module does this stuff now.
65460         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65462         * modules/mbchar (Depends-on): Add wctype.
65463         * modules/mbswidth (Depends-on): Likewise.
65464         * modules/wcwidth (Depends-on): Likewise.
65465
65466 2006-12-27  Eric Blake  <ebb9@byu.net>
65467
65468         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65469         module uses more than what <wctype.h> is required to provide.
65470
65471 2006-12-26  Eric Blake  <ebb9@byu.net>
65472
65473         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65474
65475 2006-12-26  Eric Blake  <ebb9@byu.net>
65476
65477         * modules/absolute-header: New module.
65478         * modules/fcntl (Depends-on): Depend on it.
65479         * modules/inttypes (Depends-on): Likewise.
65480         * modules/stdint (Depends-on): Likewise.
65481         * modules/sys_stat (Depends-on): Likewise.
65482         * modules/wctype (Depends-on): Likewise.
65483         * MODULES.html.sh (Support for building libraries and
65484         executables): Document it.
65485
65486 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65487
65488         * gnulib-tool (SED): Remove, undoing previous change.
65489         The problem was that it broke coreutils on Solaris, because
65490         "sed --posix" leaked into a makefile.
65491         (sed): New alias, if 'alias' and GNU sed.
65492
65493 2006-12-24  Jim Meyering  <jim@meyering.net>
65494
65495         Work around an fchownat bug in glibc-2.4:
65496         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65497         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65498         in spite of the -P option.
65499         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65500         New macros.
65501         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65502         * modules/openat (Files): Add lib/fchownat.c.
65503         * lib/openat.c (fchownat): Don't define here.  Move to...
65504         * lib/fchownat.c: ...this new file.
65505
65506 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65507
65508         Fix bug reported by Bruno Haible in
65509         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65510         where quotearg.c didn't compile on Mac OS X 10.2 because it
65511         lacks <wchar.h> and wint_t.
65512         * lib/wctype_.h (__wctype_wint_t): New type.
65513         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65514         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65515         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65516         Arg is now of type __wctype_wint_t, not wint_t.
65517         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65518         substitute HAVE_WINT_T.
65519         * modules/wctype (Files): Add m4/wint_t.m4.
65520         (wctype.h): Substitute HAVE_WINT_T.
65521
65522 2006-12-23  Bruno Haible  <bruno@clisp.org>
65523
65524         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65525
65526 2006-12-23  Bruno Haible  <bruno@clisp.org>
65527
65528         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65529         S_ISLNK.
65530         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65531         mingw.
65532
65533 2006-12-22  Bruno Haible  <bruno@clisp.org>
65534
65535         * lib/copy-file.c: Include acl.h.
65536         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65537         Close the file descriptors only after being done with copy_acl.
65538         * modules/copy-file (Depends-on): Add acl.
65539
65540 2006-12-22  Bruno Haible  <bruno@clisp.org>
65541
65542         * gnulib-tool (SED): New variable.
65543         Use $SED instead of sed everywhere.
65544
65545 2006-12-22  Bruno Haible  <bruno@clisp.org>
65546
65547         * modules/no-c++: New file.
65548         * m4/no-c++.m4: New file.
65549         * MODULES.html.sh (Support for building libraries and executables):
65550         Add no-c++.
65551
65552 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65555         Include <limits.h>, and use its INT_MAX to rewrite the
65556         j loop so that it does not overflow 'int'.  Problem reported by
65557         Ralf Wildenhues in
65558         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65559         Play it safe by shifting left by 1 rather than multiplying by 2,
65560         as GCC is less likely to optimize this away when the value
65561         is signed (when it assumes overflow leads to undefined behavior).
65562         Also, don't assume time_t uses two's complement.
65563
65564 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65565
65566         * MODULES.html.sh: New module wctype.
65567         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65568         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65569         <wctype.h>, since the new wctype module should fix this.
65570         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65571         the wctype module should arrange for it.
65572         * lib/regex_internal.h: Likewise.
65573         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65574         since the wctype module should handle this now.
65575         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65576         * modules/fnmatch (Depends-on): Add wctype.
65577         * modules/quotearg (Depends-on): Likewise.
65578         * modules/regex (Depends-on): Likewise.
65579
65580 2006-12-19  Bruno Haible  <bruno@clisp.org>
65581
65582         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65583         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65584
65585 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65586
65587         * modules/savewd (Depends-on): Fix dependency on fcntl.
65588
65589 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65590
65591         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65592         conforms to C99, rather than relying on the user's environment
65593         setting of STDINT_H.
65594
65595 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65596         and Eric Blake  <ebb9@byu.net>
65597
65598         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65599         This is more consistent with the other defines here.
65600         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65601         Port to z/OS.  Problem reported by Paul Gilmartin.
65602         Change local vars to use gl_ prefix rather than ac_.
65603         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65604         with other defines.
65605         * modules/double-slash-root: New module.
65606         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65607         (Depends-on): Add double-slash-root.
65608         * MODULES.html.sh (File system functions): Mention new module.
65609
65610 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65611
65612         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65613         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65614         This is for the benefit of gzip, which doesn't do i18n.
65615
65616 2006-12-12  Jim Meyering  <jim@meyering.net>
65617
65618         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65619         Reported by Andreas Schwab <schwab@suse.de>.
65620
65621 2006-12-12  Bruno Haible  <bruno@clisp.org>
65622
65623         Merge these changes.
65624         2006-09-05  Bruno Haible  <bruno@clisp.org>
65625         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65626         iconv_alloc succeeded.
65627         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65628         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65629         test for " && dest " at the end - dest is always != NULL there. Call
65630         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65631         with 2xNULL arguments, also to flush the state storage. Handle the
65632         IRIX iconv behaviour. Realloc the final result, to throw away unused
65633         memory.
65634
65635 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65636
65637         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65638         and fchmodat unconditionally, since glibc 2.4 has them.
65639         Problem reported by Arkadiusz Miskiewicz.
65640
65641 2006-12-10  Bruno Haible  <bruno@clisp.org>
65642
65643         * gnulib-tool (func_import): Show the include files only for those
65644         modules that are copied and specified.
65645         Reported by Karl Berry.
65646
65647 2006-12-08  Jim Meyering  <jim@meyering.net>
65648
65649         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65650         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65651
65652         * build-aux/announce-gen: Add two new options, both optional:
65653         --bootstrap-tools=TOOL_LIST
65654               a comma-separated list of tools, e.g.,
65655               autoconf,automake,bison,gnulib
65656         --gnulib-snapshot-date=DATE
65657               if gnulib is in the bootstrap tool list,
65658               then report this as the snapshot date.
65659               If not specified, use the current date/time.
65660               If you specify a date here, be sure it's UTC.
65661
65662 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65663
65664         * tests/test-argp-2.sh: Fix test to match actual output.
65665         (func_compare): Fix sed script to be portable.
65666
65667 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65668
65669         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65670         workaround for this case.  It is not autoconfigured now; offhand
65671         it's hard to see how to autoconfigure it.
65672
65673 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65674
65675         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65676         a directory that is about to be chowned.  Such a directory's
65677         initial file permissions should permit the owner only and this
65678         should not be changed until after the chown, since the group and
65679         other bits would be incorrect if they granted permission before
65680         the chown.
65681
65682         Fix porting problem for iswctype reported by Georg Schwarz in:
65683         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65684         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65685         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65686         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65687         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65688
65689 2006-12-03  Jim Meyering  <jim@meyering.net>
65690
65691         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65692         p->fts_statp may not yet be defined.
65693         (fts_read): Instead, set it in the caller, once p->fts_statp is
65694         sure to be defined, and corresponds to a top-level directory.
65695         This bug made du -x fail.  Here's the coreutils test case:
65696         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65697         Reported by Mike Frysinger.
65698
65699 2006-12-01  Jim Meyering  <jim@meyering.net>
65700
65701         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65702         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65703         Reported by Simon Josefsson.
65704
65705 2006-11-30  Jim Meyering  <jim@meyering.net>
65706
65707         * m4/warning.m4: Use the all-permissive copyright notice
65708         recommended by RMS (rather than LGPL).
65709         * m4/vararrays.m4: Likewise.
65710         * m4/flexmember.m4: Likewise.
65711
65712 2006-11-29  Bruno Haible  <bruno@clisp.org>
65713
65714         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65715         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65716         using +=.
65717         Reported by Simon Josefsson <simon@josefsson.org>.
65718
65719 2006-11-28  James Youngman <jay@gnu.org>
65720
65721         * README: Advise users that they might find the bug-gnulib@gnu.org
65722         and autotools-announce@gnu.org mailing lists useful.
65723
65724 2006-11-28  Bruno Haible  <bruno@clisp.org>
65725
65726         * m4/ptrdiff_max.m4: Remove file.
65727
65728 2006-11-21  Bruno Haible  <bruno@clisp.org>
65729
65730         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65731         _AC_COMPUTE_INT.
65732         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65733         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65734         _AC_COMPUTE_INT.
65735         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65736         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65737         _AC_COMPUTE_INT.
65738         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65739
65740 2006-11-28  Jim Meyering  <jim@meyering.net>
65741
65742         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65743         warning from "gcc -Wshadow" about shadowing the builtin.
65744
65745 2006-11-27  Bruno Haible  <bruno@clisp.org>
65746
65747         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65748         _AC_COMPUTE_INT.
65749         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65750
65751 2006-11-27  Bruno Haible  <bruno@clisp.org>
65752             Paul Eggert  <eggert@cs.ucla.edu>
65753
65754         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65755
65756 2006-11-26  Bruno Haible  <bruno@clisp.org>
65757
65758         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65759         noinst_LTLIBRARIES.
65760
65761 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65762             Bruno Haible  <bruno@clisp.org>
65763
65764         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65765         if compiling with "gcc -ansi".
65766
65767 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65768
65769         Fix some incompatibilities with gcc -ansi -pedantic.
65770         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65771         if compiling pedantically with GCC, unless it's C99 or later.
65772         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65773         it mishandles gcc -ansi -pedantic as well.
65774         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65775         if gcc -pedantic.
65776         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65777         initializers for struct if -pedantic, unless it's C99 or later.
65778
65779 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65780
65781         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65782         Don't close an fd more than once. Identical atimes indicate
65783         success, not failure.
65784
65785 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65786
65787         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65788
65789 2006-11-23  Jim Meyering  <jim@meyering.net>
65790
65791         * build-aux/announce-gen: New file.  From coreutils.
65792
65793 2006-11-22  Jim Meyering  <jim@meyering.net>
65794
65795         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65796         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65797         (fts_read): Use a temporary to narrow the overused st_size member
65798         before using it in a switch statement.  Reported by Matthew Woehlke.
65799
65800         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65801         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65802
65803 2006-11-20  Bruno Haible  <bruno@clisp.org>
65804
65805         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65806         changequote instead of pairs of brackets.
65807         Reported by Andreas Schwab <schwab@suse.de>.
65808
65809 2006-11-21  Jim Meyering  <jim@meyering.net>
65810
65811         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65812         so as to remain compatible with older compilers.
65813         Patch from Michael Deutschmann.
65814
65815 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         * MODULES.html.sh (File system functions): Add openat.
65818
65819         * lib/openat.h (rpl_fstatat): New macro, if
65820         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65821         (fstatat): Define to rpl_fstatat under the same conditions,
65822         unless COMPILING_FSTATAT.
65823         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65824         seems to have the bug.
65825         * lib/fstatat.c: New file.
65826         * modules/openat (Files): Add it.
65827
65828 2006-11-20  Bruno Haible  <bruno@clisp.org>
65829
65830         * Makefile: New file.
65831
65832 2006-11-20  Jim Meyering  <jim@meyering.net>
65833
65834         The beginnings of syntax-related checks for gnulib.
65835         * lib/Makefile: New file.
65836         * lib/t-idcache: New script.  Ensure that the two halves of
65837         idcache.c stay in sync.
65838
65839         * lib/idcache.c: Adjust comments in user- and group- portions to
65840         be more accurate, and to be consistent with one another.
65841
65842 2006-11-20  Jim Meyering  <jim@meyering.net>
65843
65844         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65845         continue using the flexible array member (thus, this module performs
65846         half as many malloc calls), with the addition that...
65847         (getgroup, getuser): Consistently record a non-match via an empty
65848         "name" string, and map an empty string match to a NULL return value.
65849         * modules/idcache (Depends-on): Re-add flexmember.
65850
65851         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65852         (getuidbyname, getgroup, getgidbyname): Likewise.
65853
65854         Use cleaner syntax: NULL rather than 0.
65855         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65856
65857 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65858
65859         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65860         It mishandled the case where the group was missing.
65861         Problem reported by Greg Schafer.
65862         * modules/idcache: Likewise.
65863
65864 2006-11-18  Jim Meyering  <jim@meyering.net>
65865
65866         * check-module (%exempt_header): Add exception for some
65867         conditionally-included headers.
65868
65869         * modules/i-ring (Depends-on): Add verify.
65870         (License): Change to LGPL.
65871
65872 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65873
65874         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65875         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65876         and inttostr.h.  Use snprintf rather than uinttostr, so that
65877         LGPLed code doesn't depend on GPLed.
65878
65879 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65880
65881         * modules/inline (License): Change from GPL to LGPL.
65882
65883 2006-11-17  Jim Meyering  <jim@meyering.net>
65884
65885         * modules/d-type (License): Switch to LGPL.
65886
65887 2006-11-15  Bruno Haible  <bruno@clisp.org>
65888
65889         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65890
65891 2006-11-15  Eric Blake  <ebb9@byu.net>
65892
65893         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65894         the module dependency.
65895
65896 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65897             Bruno Haible  <bruno@clisp.org>
65898
65899         * gnulib-tool (func_create_testdir): Add license consistency check.
65900
65901 2006-11-15  Eric Blake  <ebb9@byu.net>
65902
65903         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65904         random "(cached)" in configure output.
65905
65906 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65907
65908         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65909         test for conforming inttypes.h is both announced and cached.
65910
65911         * MODULES.html.sh (seen_modules, seen_files): New variables.
65912         (func_module): Rewrite to use a few less gnulib-tool and sed
65913         invocations.  Avoid a couple of quadratic algorithms for ...
65914         (missed_modules, missed_files): ... these, with ...
65915         (func_append, func_tmpdir): ... these new functions, from
65916         gnulib-tool.  Analogously, install traps for cleanup.
65917
65918         * tests/test-gc.c (main): Remove unused variables.
65919         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65920
65921 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65922
65923         * modules/inttostr (License): Change to LGPL.
65924
65925 2006-11-14  Eric Blake  <ebb9@byu.net>
65926
65927         * modules/tempname (License): Change to LGPL.
65928
65929 2006-11-14  Eric Blake  <ebb9@byu.net>
65930
65931         * doc/functions.texi (Function Portability): *printf functions on
65932         Cygwin now understand all POSIX size specifiers.
65933
65934 2006-11-14  Bruno Haible  <bruno@clisp.org>
65935
65936         * modules/c-ctype (License): Change to LGPL.
65937
65938 2006-11-12  Bruno Haible  <bruno@clisp.org>
65939
65940         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65941         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65942         for GNOME libraries, for which the include files are installed in
65943         subdirectories of $prefix/include.
65944
65945 2006-11-12  Bruno Haible  <bruno@clisp.org>
65946
65947         * m4/lib-link.m4: Require at least autoconf-2.54.
65948         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65949         name to underscores for the --with option.
65950
65951 2006-11-13  Bruno Haible  <bruno@clisp.org>
65952
65953         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65954         the tests directory.
65955         Reported by Ralf Wildenhues.
65956
65957 2006-11-13  Bruno Haible  <bruno@clisp.org>
65958
65959         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65960         (func_emit_initmacro_end): Undo the override here.
65961         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65962         Works around the famous automake error in coreutils.
65963
65964 2006-11-13  Eric Blake  <ebb9@byu.net>
65965
65966         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65967         element, not its node.
65968
65969 2006-11-12  Bruno Haible  <bruno@clisp.org>
65970
65971         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65972         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65973
65974 2006-11-12  Bruno Haible  <bruno@clisp.org>
65975
65976         * gnulib-tool: New option --local-symlink.
65977         (func_usage): Document it.
65978         (lsymbolic): New variable.
65979         (func_import, func_create_testdir): If --symlink was not specified,
65980         test whether --local-symlink was specified and the file comes from
65981         the local_gnulib_dir.
65982
65983 2006-11-12  Bruno Haible  <bruno@clisp.org>
65984
65985         * gnulib-tool (func_ln): New function.
65986         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65987
65988 2006-11-12  Bruno Haible  <bruno@clisp.org>
65989
65990         Finish support for source files in subdirectories.
65991         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65992         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65993         AUTOMAKE_OPTIONS.
65994         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65995
65996 2006-11-12  Bruno Haible  <bruno@clisp.org>
65997
65998         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65999         EXTRA_lib_SOURCES augmentation.
66000         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66001
66002 2006-11-12  Jim Meyering  <jim@meyering.net>
66003
66004         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66005         file descriptors.  This also averts a failure on systems with
66006         native openat support when a traversed directory lacks "x" access.
66007         * lib/fts_.h: Include "i-ring.h"
66008         (struct FTS) [fts_fd_ring]: New member.
66009         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66010         (FCHDIR): Add parentheses.
66011         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66012         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66013         When descending, rather than simply closing the previous
66014         fts_cwd_fd value, push that file descriptor onto the ring.
66015         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66016         (fts_open): Initialize the new fd_ring member.
66017         (fts_close): Clear the ring.
66018         (fts_safe_changedir): When possible, use our new fd_ring to skip
66019         the diropen and fstat and dev/ino comparison that would normally
66020         accompany a virtual `chdir ("..")'.
66021
66022         * modules/fts (Depends-on): Add i-ring.
66023         * modules/i-ring: New module.
66024         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66025         * m4/i-ring.m4: New file.
66026
66027 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66028
66029         * gnulib-tool (func_create_testdir): Fix replacement of
66030         `build-aux' in configure.ac.  Run autotools in gltests
66031         subdirectory.
66032         (func_create_testdir, func_create_megatestdir, test): There is
66033         no need for '--force' in most autotool invocations in a new
66034         tree.  Actually fail the whole test if any of the tools, or the
66035         configure or make stages fail.
66036
66037         Sync from Automake.
66038         * build-aux/gnupload: Revert last change.  Add pointer to upload
66039         instructions of the GNU Maintenance Instructions.
66040         Suggestion by Karl Berry.
66041
66042 2006-11-10  Jim Meyering  <jim@meyering.net>
66043
66044         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66045
66046 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66047
66048         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66049         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66050         (bind_textdomain_codeset) [! ENABLE_NLS]:
66051         Evaluate all the arguments.  That way, callers get compatible behavior
66052         if the arguments have side effects.  Also, it avoids some GCC
66053         diagnostics in some cases; Joel E. Denny reported problems when Bison
66054         was configured with --enable-gcc-warnigs.
66055
66056 2006-11-10  Jim Meyering  <jim@meyering.net>
66057
66058         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66059         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66060         account.
66061
66062 2006-11-10  Jim Meyering  <jim@meyering.net>
66063
66064         * modules/inline: New file/module.
66065         * modules/xalloc (Files): Remove m4/inline.m4.
66066         (Depends-on): Add inline, instead.
66067         * modules/oset: Likewise.
66068         * modules/list: Likewise.
66069
66070 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66071
66072         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66073         Problem reported by Matthew Woehlke.
66074
66075 2006-11-09  Bruno Haible  <bruno@clisp.org>
66076
66077         * lib/tempname.c (gen_tempname): Remove variant that invokes
66078         __gen_tempname.
66079         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66080         __gen_tempname.
66081
66082 2006-11-08  Bruno Haible  <bruno@clisp.org>
66083
66084         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66085         to 'yes' instead of 'cross-compiling'.
66086
66087 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66088
66089         * lib/quotearg.h (quotearg_free): New decl.
66090         * lib/quotearg.c (quotearg_free): New function.
66091         (slot0, nslots, slotvec0, slotvec):
66092         Now file-scope so that quotearg_free can get at them.
66093
66094 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66095
66096         Sync from Automake.
66097         * build-aux/gnupload: Add missing 'gnu' to example URL.
66098         Report by Karl Berry.
66099
66100 2006-11-08  Bruno Haible  <bruno@clisp.org>
66101
66102         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66103         Suggested by Paul Eggert.
66104
66105 2006-11-08  Jim Meyering  <jim@meyering.net>
66106
66107         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66108         It's already included if !_LIBC.
66109         (fts_safe_changedir): Add a comment.
66110
66111 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66112
66113         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66114         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66115         Matthew Woehlke.
66116
66117         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66118         definitions up, to avoid colliding with change below.
66119         (static_inline) [HAVE_INLINE]: New macro.
66120         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66121         Provide extern decls when !HAVE_INLINE.  Do not define unless
66122         static_inline is defined, either by us or by xmalloc.c.  Use
66123         static_inline rather than static inline.
66124         (XCALLOC): Optimize sizeof(T) = 1 case.
66125         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66126
66127 2006-11-07  Bruno Haible  <bruno@clisp.org>
66128
66129         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66130         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66131         AC_C_INLINE.
66132         * modules/xalloc (Files): Add m4/inline.m4.
66133
66134 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66135
66136         * README: Fix typo.
66137         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66138         (Miscellanous Notes): ...from this.
66139
66140 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66141
66142         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66143         Mention that offsetof should be used instead of sizeof.
66144         From Bruno Haible.
66145
66146 2006-11-07  Bruno Haible  <bruno@clisp.org>
66147
66148         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66149
66150 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66151
66152         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66153         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66154         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66155         (gl_tree_add_before, gl_tree_add_after):
66156         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66157         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66158         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66159         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66160         (gl_linked_add_after, gl_linked_add_at): Likewise.
66161         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66162         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66163         (gl_tree_add_before, gl_tree_add_after): Likewise.
66164         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66165         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66166         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66167
66168 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66169
66170         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66171
66172 2006-11-06  Bruno Haible  <bruno@clisp.org>
66173
66174         * m4/inline.m4: New file.
66175         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66176         * modules/list (Files): Add m4/inline.m4.
66177         * modules/oset (Files): Likewise.
66178
66179 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         * lib/idcache.c: Include <stddef.h>, for offsetof.
66182         (struct userid.name): Change from char * to a flexible array member.
66183         All uses changed.
66184         * modules/idcache (Depends-on): Add flexmember.
66185
66186         * MODULES.html.sh (Core language properties): New module flexmember.
66187         * modules/flexmember, m4/flexmember.m4: New files.
66188
66189         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66190         inline functions that are identical with the old xnmalloc_inline,
66191         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66192         that we can avoid some unnecessary integer multiplications and
66193         divisions in the common case where the element size is known at
66194         compile time.
66195         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66196         needed.
66197         (xnboundedmalloc): Remove.
66198         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66199         arguments, for consistency with rest of this header.
66200         (xcharalloc): Rewrite using XNMALLOC.
66201         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66202         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66203         versions have been moved to lib/xalloc.h and renamed to be the
66204         non-*_inline versions.
66205         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66206         and xnrealloc functions, since those functions are now inline and
66207         now call us.
66208         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66209         renaming described above.
66210         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66211         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66212         captures the dependency in AC_C_INLINE.
66213
66214         New module canonicalize-lgpl, proposed by Charles Wilson in
66215         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66216         with a few small changes afterwards.
66217         * MODULES.html.sh (File system functions): New module
66218         canonicalize-lgpl.
66219         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66220         and canonicalize_file_name.
66221         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66222         * modules/canonicalize-lgpl: New files.
66223
66224 2006-11-05  Bruno Haible  <bruno@clisp.org>
66225
66226         * gnulib-tool (func_import, func_create_testdir): Create directories
66227         also for files in subdirectories of lib/.
66228
66229 2006-11-05  Bruno Haible  <bruno@clisp.org>
66230
66231         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66232         ANSI C compliant.
66233
66234 2006-11-03  Bruno Haible  <bruno@clisp.org>
66235
66236         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66237         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66238         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66239         (xnboundedmalloc): New inline function.
66240         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66241         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66242         xmalloc.
66243         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66244         xmalloc.
66245         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66246         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66247         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66248         xmalloc.
66249         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66250         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66251         xmalloc.
66252         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66253         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66254         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66255         xmalloc.
66256         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66257         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66258         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66259         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66260         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66261         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66262         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66263
66264 2006-11-03  Bruno Haible  <bruno@clisp.org>
66265
66266         * lib/c-ctype.h [C++]: Define functions without name mangling.
66267         * lib/fwriteerror.h [C++]: Likewise.
66268         * lib/gcd.h [C++]: Likewise.
66269         * lib/linebreak.h [C++]: Likewise.
66270
66271 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66272
66273         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66274         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66275         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66276         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66277         Check for functions and headers just once.
66278         Check for declaration of canonicalize_file_name.
66279         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66280
66281 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66282
66283         * gnulib-tool (func_import): Fix typo in actioncmd.
66284
66285 2006-11-02  Bruno Haible  <bruno@clisp.org>
66286
66287         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66288         newline sequence in the Makefile.am snippet as a space, like "make"
66289         does.
66290         Reported by Roger Persson <perrog@gmail.com>.
66291
66292 2006-11-01  Bruno Haible  <bruno@clisp.org>
66293
66294         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66295         already declared in <string.h>.
66296         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66297
66298 2006-11-01  Bruno Haible  <bruno@clisp.org>
66299
66300         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66301         * lib/strcase.h: Include <string.h>.
66302         (strcasecmp): Define to rpl_strcasecmp here.
66303
66304 2006-11-01  Bruno Haible  <bruno@clisp.org>
66305
66306         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66307
66308 2006-11-01  Eric Blake  <ebb9@byu.net>
66309
66310         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66311
66312         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66313
66314 2006-10-29  Bruno Haible  <bruno@clisp.org>
66315
66316         Make it compile in C++ mode.
66317         * lib/full-write.c (full_rw): Add a cast.
66318
66319 2006-11-01  Bruno Haible  <bruno@clisp.org>
66320
66321         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66322         be POSIX compliant.
66323         Reported by Roger Persson <perrog@gmail.com>.
66324
66325 2006-11-01  Eric Blake  <ebb9@byu.net>
66326
66327         * lib/getopt_.h: Fix comments.
66328
66329 2006-10-31  Eric Blake  <ebb9@byu.net>
66330
66331         * modules/tmpdir (Depends-on): Add sys_stat.
66332         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66333         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66334         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66335         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66336         tempname.
66337
66338 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66339
66340         Avoid some C++ diagnostics reported by Bruno Haible.
66341         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66342         xmalloc.
66343         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66344         (struct slotvec): Move to top level.
66345         (quotearg_n_options): Rewrite to avoid xmalloc.
66346         * lib/xalloc.h (xcharalloc): New function.
66347         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66348         [defined __cplusplus]: Add function template that provides result
66349         type propagation.  This part of the change is from Bruno Haible.
66350
66351 2006-10-29  Bruno Haible  <bruno@clisp.org>
66352
66353         Make it compile in C++ mode.
66354         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66355         * lib/strnlen1.c (strnlen1): Cast memchr result.
66356         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66357         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66358         (create_temp_dir): Rename local variable 'template'.
66359         (compile_csharp_using_sscli): Add cast.
66360         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66361         * lib/findprog.c (find_in_path): Likewise.
66362         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66363         * lib/wait-process.c (register_slave_subprocess): Likewise.
66364
66365 2006-10-22  Bruno Haible  <bruno@clisp.org>
66366
66367         * modules/tsearch: New file.
66368         * lib/tsearch.h: New file.
66369         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66370         * m4/tsearch.m4: New file.
66371         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66372
66373 2006-10-29  Eric Blake  <ebb9@byu.net>
66374
66375         * lib/arcfour.c: Assume config.h.
66376         * lib/arctwo.c: Likewise.
66377         * lib/base64.c: Likewise.
66378         * lib/check-version.c: Likewise.
66379         * lib/crc.c: Likewise.
66380         * lib/des.c: Likewise.
66381         * lib/gc-gnulib.c: Likewise.
66382         * lib/gc-libgcrypt.c: Likewise.
66383         * lib/gc-pbkdf2-sha1.c: Likewise.
66384         * lib/getaddrinfo.c: Likewise.
66385         * lib/getdelim.c: Likewise.
66386         * lib/getline.c: Likewise.
66387         * lib/hmac-md5.c: Likewise.
66388         * lib/hmac-sha1.c: Likewise.
66389         * lib/iconvme.c: Likewise.
66390         * lib/md2.c: Likewise.
66391         * lib/md4.c: Likewise.
66392         * lib/memxor.c: Likewise.
66393         * lib/read-file.c: Likewise.
66394         * lib/readline.c: Likewise.
66395         * lib/rijndael-alg-fst.c: Likewise.
66396         * lib/rijndael-api-fst.c: Likewise.
66397         * lib/xgetdomainname.c: Likewise.
66398
66399 2006-10-28  Eric Blake  <ebb9@byu.net>
66400
66401         * lib/xstrndup.c: Assume config.h.
66402
66403 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66404
66405         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66406         stat-macros.h is now for our own macros, whereas stat_h is for
66407         macros in the <sys/stat.h> name space.
66408         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66409         (STAT_MACROS_H): Remove.
66410         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66411         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66412         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66413         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66414         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66415         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66416         Move these macros to ...
66417         * lib/stat_.h: here.  Don't include stat-macros.h.
66418         * lib/canonicalize.c: Don't include stat-macros.h.
66419         * lib/chown.c: Likewise.
66420         * lib/euidaccess.c: Likewise.
66421         * lib/file-type.c: Likewise.
66422         * lib/filemode.c: Likewise.
66423         * lib/glob.c: Likewise.
66424         * lib/isapipe.c: Likewise.
66425         * lib/lchown.c: Likewise.
66426         * lib/lstat.c: Likewise.
66427         * lib/mkdir-p.c: Likewise.
66428         * lib/rmdir.c: Likewise.
66429         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66430         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66431         unless mkdir isn't declared, to speed up 'configure'.
66432         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66433         would define all the S_* symbols.
66434         * modules/canonicalize (Depends-on):
66435         Depend on sys_stat, not stat-macros.
66436         * modules/chown: Likewise.
66437         * modules/euidaccess: Likewise.
66438         * modules/filemode: Likewise.
66439         * modules/file-type: Likewise.
66440         * modules/glob: Likewise.
66441         * modules/isapipe: Likewise.
66442         * modules/lchown: Likewise.
66443         * modules/lstat: Likewise.
66444         * modules/mkancesdirs: Likewise.
66445         * modules/rmdir: Likewise.
66446         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66447         * modules/modechange: Likewise.
66448         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66449         (configure.ac): Remove gl_STAT_MACROS.
66450         * modules/sys_stat (Depends-on): Remove stat-macros.
66451
66452 2006-10-27  Bruno Haible  <bruno@clisp.org>
66453
66454         * m4/signed.m4: Remove file.
66455         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66456         invocation.
66457         * modules/vasnprintf (Files): Remove m4/signed.m4.
66458
66459 2006-10-27  Bruno Haible  <bruno@clisp.org>
66460
66461         Update to GNU gettext 0.16.
66462         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66463         m4/inttypes-h.m4, m4/signed.m4.
66464         * m4/gettext.m4: Update to GNU gettext 0.16.
66465         * m4/intl.m4: New file, from GNU gettext.
66466         * m4/intldir.m4: New file, from GNU gettext.
66467         * config/srclist.txt: Update
66468
66469 2006-10-27  Eric Blake  <ebb9@byu.net>
66470
66471         * MODULES.html.sh: Document tempname.
66472         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66473         dependencies.
66474         (Files): Move lib/tempname.c...
66475         * modules/tempname: ...to this new module.
66476         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66477         (gl_PREREQ_TEMPNAME): Move...
66478         * m4/tempname.m4: ...to this new file.
66479         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66480         * modules/sys_stat (Depends-on): Add stat-macros.
66481         * lib/stat_.h (includes): Pick up stat macros.
66482         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66483         if stat macros are broken.
66484         * lib/tempname.c (includes): No need to include "stat-macros.h".
66485         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66486         (direxists, __path_search) [!_LIBC]: Don't compile these in
66487         gnulib; the tmpdir module covers that.
66488         * lib/tempname.h: New file.
66489
66490 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66491
66492         * COPYING: Explain how gnulib-tool converts licence headers.
66493         Almost all wording by Eric Blake.
66494
66495 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66496
66497         * lib/mbchar.h (is_basic_table): Make read-only.
66498         * lib/mbchar.c (is_basic_table): Likewise.
66499         Reported by John Darrington.
66500
66501 2006-10-25  Bruno Haible  <bruno@clisp.org>
66502
66503         * lib/progname.h (set_program_name): Undefine before defining.
66504
66505 2006-10-25  Bruno Haible  <bruno@clisp.org>
66506
66507         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66508         false for non-gcc C++ compilers.
66509         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66510
66511 2006-10-24  Bruno Haible  <bruno@clisp.org>
66512
66513         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66514         iconv implementations like Irix iconv.
66515
66516 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66517
66518         * modules/vararrays: New file.
66519         * m4/vararrays.m4: New file, taken from diffutils.
66520         * MODULES.html.sh: New module vararrays.
66521
66522 2006-10-24  Karl Berry  <karl@gnu.org>
66523
66524         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66525         Don't call GNU Unix.
66526
66527 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66528
66529         * users.txt: Add Libtool.
66530
66531         Sync from Libtool:
66532
66533         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66534
66535         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66536         to gnulib's policy of including config.h unconditionally.
66537
66538 2006-10-24  Bruno Haible  <bruno@clisp.org>
66539
66540         * modules/wcwidth (Files): Add m4/wint_t.m4.
66541         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66542         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66543
66544 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66545
66546         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66547         to pacify GCC with some -W flags enabled.  Problem reported by
66548         Bruno Haible.
66549
66550 2006-10-24  Jim Meyering  <jim@meyering.net>
66551
66552         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66553         Reported by Karl Berry.
66554
66555 2006-10-23  Bruno Haible  <bruno@clisp.org>
66556
66557         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66558
66559 2006-10-24  Bruno Haible  <bruno@clisp.org>
66560
66561         * lib/gl_list.h: Use C comment style, not C++ comment style.
66562
66563 2006-10-23  Eric Blake  <ebb9@byu.net>
66564
66565         * lib/getaddrinfo.c (includes): Add missing include.
66566
66567 2006-10-23  Bruno Haible  <bruno@clisp.org>
66568             Paul Eggert  <eggert@cs.ucla.edu>
66569
66570         Ability to rename obstack_free.
66571         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66572         obstack_free.
66573         (obstack_free): Invoke the __obstack_free macro.
66574         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66575
66576 2006-10-23  Bruno Haible  <bruno@clisp.org>
66577             Paul Eggert  <eggert@cs.ucla.edu>
66578
66579         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66580         __argc, __argv from the declaration. (They are defined as macros on
66581         mingw.)
66582
66583 2006-10-22  Bruno Haible  <bruno@clisp.org>
66584
66585         * doc/gnulib-intro.texi: New file.
66586         * doc/gnulib.texi: Include it.
66587
66588 2006-10-21  Bruno Haible  <bruno@clisp.org>
66589
66590         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66591         "Introduction", "Miscellanous Notes", "Particular Modules".
66592
66593 2006-10-21  Bruno Haible  <bruno@clisp.org>
66594
66595         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66596         Change mostlyclean-local rule to avoid sh syntax error from bash
66597         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66598
66599 2006-10-23  Jim Meyering  <jim@meyering.net>
66600
66601         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66602         in place of snprintf.
66603
66604         * modules/inttostr (Files): Add lib/uinttostr.c.
66605         * lib/uinttostr.c (inttostr): New file/function.
66606         * lib/inttostr.h (uinttostr): Declare.
66607         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66608         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66609         Add uinttostr.
66610         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66611
66612 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66613
66614         * lib/canonicalize.c (ELOOP): Define if not already defined.
66615         Problem reported by Bruno Haible in
66616         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66617
66618 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66619
66620         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66621         Problem reported by Perry Smith and Ville Laurikari.
66622
66623         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66624         uses.
66625
66626 2006-10-19  Bruno Haible  <bruno@clisp.org>
66627
66628         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66629         for mingw.
66630
66631 2006-10-19  Bruno Haible  <bruno@clisp.org>
66632
66633         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66634         Needed for mingw.
66635
66636 2006-10-19  Bruno Haible  <bruno@clisp.org>
66637
66638         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66639
66640 2006-10-19  Bruno Haible  <bruno@clisp.org>
66641
66642         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66643         it.
66644
66645 2006-10-19  Bruno Haible  <bruno@clisp.org>
66646
66647         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66648         invocation.
66649
66650 2006-10-19  Bruno Haible  <bruno@clisp.org>
66651
66652         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66653         mountlist by default.
66654
66655 2006-10-16  Bruno Haible  <bruno@clisp.org>
66656
66657         * lib/c-strstr.c: Include c-strstr.h.
66658
66659 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66660
66661         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66662         in a slash.
66663
66664 2006-10-18  Bruno Haible  <bruno@clisp.org>
66665
66666         * lib/lock.h [C++]: Wrap definitions in extern "C".
66667
66668 2006-10-18  Bruno Haible  <bruno@clisp.org>
66669
66670         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66671         gl_LIBOBJS list.
66672
66673 2006-10-18  Bruno Haible  <bruno@clisp.org>
66674
66675         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66676
66677 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66678
66679         * lib/xstrtol.h: Include gettext.h.
66680         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66681         Problem reported by Eric Blake.
66682         * modules/xstrtol (Depends-on): Add gettext-h.
66683
66684 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66685
66686         * lib/strftime.c (advance): New macro.
66687         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66688         incomplete type, so you can't add 0 to it.  Problem and patch
66689         reported by Eelco Dolstra for dietlibc.
66690
66691 2006-10-18  Jim Meyering  <jim@meyering.net>
66692
66693         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66694         type for a local, and rename it: s/up/user_proc/.
66695
66696 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66697
66698         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66699         READ_UTMP_USER_PROCESS.
66700         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66701
66702 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66705         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66706
66707 2006-10-17  Eric Blake  <ebb9@byu.net>
66708
66709         * lib/sigprocmask.c (sigprocmask): Fix typo.
66710
66711         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66712
66713         * modules/clean-temp (Makefile.am): Don't add to make output...
66714         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66715         config.h.
66716
66717 2006-10-17  Bruno Haible  <bruno@clisp.org>
66718
66719         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66720         differently if DEFAULT_TEXT_DOMAIN is set.
66721
66722 2006-10-16  Bruno Haible  <bruno@clisp.org>
66723
66724         * lib/clean-temp.c: Include fwriteerror.h.
66725
66726 2006-10-16  Bruno Haible  <bruno@clisp.org>
66727
66728         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66729
66730 2006-10-16  Bruno Haible  <bruno@clisp.org>
66731
66732         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66733         * lib/sigprocmask.h: Include <sys/types.h>.
66734         (sigset_t): Use the system's definition if present.
66735
66736 2006-10-17  Eric Blake  <ebb9@byu.net>
66737
66738         * lib/xvasprintf.c (includes): Assume config.h.
66739         * lib/xasprintf.c (includes): Likewise.
66740
66741 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66742
66743         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66744         at least as wide as intmax_t.
66745
66746 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66747
66748         (Imported from Automake.)
66749         * build-aux/gnupload: Update to version 1.1 of directive file.
66750
66751 2006-10-16  Eric Blake  <ebb9@byu.net>
66752
66753         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66754         match Automake 1.10a.
66755
66756 2006-10-14  Bruno Haible  <bruno@clisp.org>
66757
66758         * modules/sigprocmask: New file.
66759         * lib/sigprocmask.h: New file.
66760         * lib/sigprocmask.c: New file.
66761         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66762         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66763         request sigprocmask.o.
66764         (gl_PREREQ_SIGPROCMASK): New macro.
66765         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66766         (Depends-on): Add sigprocmask.
66767         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66768         gt_SIGNALBLOCKING. Test for 'raise' only once.
66769         * lib/fatal-signal.c: Include sigprocmask.h.
66770         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66771         unblock_fatal_signals): Define always.
66772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66773         sigprocmask.
66774
66775 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66776
66777         Sync from Automake.
66778         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66779         which incorrectly sets the mode of an existing destination
66780         directory.  In some cases the unpatched install-sh could do the
66781         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66782         system.  We hope this is rare in practice, but it's clearly worth
66783         fixing.  Problem reported by Alex Unleashed in
66784         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66785         Also, don't bother to check for -m bugs unless we're using -m;
66786         suggested by Stepan Kasal.
66787
66788 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66789
66790         Sync from Automake.
66791         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66792         `-c' flag, so they appear at the same position as in %FASTDEP%
66793         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66794         which ignores unknown options only after the first non-option.
66795         Bug report against M4 by Nelson H. F. Beebe.
66796
66797 2006-10-13  Jim Meyering  <jim@meyering.net>
66798
66799         Fix a bug in yesterday's change.
66800         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66801         p->fts_statp->st_dev would be used uninitialized.
66802         Ensures that we always call fts_stat on the very first entry.
66803         Miklos Szeredi reported that find -xdev stopped working.
66804
66805 2006-10-12  Bruno Haible  <bruno@clisp.org>
66806
66807         * gnulib-tool (func_get_automake_snippet): Append an automatically
66808         computed EXTRA_DIST augmentation.
66809         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66810         * modules/alloca-opt (Makefile.am): Likewise.
66811         * modules/allocsa (Makefile.am): Likewise.
66812         * modules/arcfour (Makefile.am): Likewise.
66813         * modules/arctwo (Makefile.am): Likewise.
66814         * modules/argmatch (Makefile.am): Likewise.
66815         * modules/argz (Makefile.am): Likewise.
66816         * modules/atexit (Makefile.am): Likewise.
66817         * modules/backupfile (Makefile.am): Likewise.
66818         * modules/byteswap (Makefile.am): Likewise.
66819         * modules/c-strtod (Makefile.am): Likewise.
66820         * modules/c-strtold (Makefile.am): Likewise.
66821         * modules/calloc (Makefile.am): Likewise.
66822         * modules/canon-host (Makefile.am): Likewise.
66823         * modules/canonicalize (Makefile.am): Likewise.
66824         * modules/chdir-long (Makefile.am): Likewise.
66825         * modules/chdir-safer (Makefile.am): Likewise.
66826         * modules/check-version (Makefile.am): Likewise.
66827         * modules/chown (Makefile.am): Likewise.
66828         * modules/cloexec (Makefile.am): Likewise.
66829         * modules/close-stream (Makefile.am): Likewise.
66830         * modules/closeout (Makefile.am): Likewise.
66831         * modules/crc (Makefile.am): Likewise.
66832         * modules/csharpexec (Makefile.am): Likewise.
66833         * modules/cycle-check (Makefile.am): Likewise.
66834         * modules/des (Makefile.am): Likewise.
66835         * modules/dev-ino (Makefile.am): Likewise.
66836         * modules/dirfd (Makefile.am): Likewise.
66837         * modules/dirname (Makefile.am): Likewise.
66838         * modules/dup2 (Makefile.am): Likewise.
66839         * modules/eealloc (Makefile.am): Likewise.
66840         * modules/error (Makefile.am): Likewise.
66841         * modules/euidaccess (Makefile.am): Likewise.
66842         * modules/exclude (Makefile.am): Likewise.
66843         * modules/exitfail (Makefile.am): Likewise.
66844         * modules/fcntl-safer (Makefile.am): Likewise.
66845         * modules/fcntl (Makefile.am): Likewise.
66846         * modules/file-type (Makefile.am): Likewise.
66847         * modules/fileblocks (Makefile.am): Likewise.
66848         * modules/filemode (Makefile.am): Likewise.
66849         * modules/filenamecat (Makefile.am): Likewise.
66850         * modules/fnmatch (Makefile.am): Likewise.
66851         * modules/fopen-safer (Makefile.am): Likewise.
66852         * modules/fpending (Makefile.am): Likewise.
66853         * modules/fprintftime (Makefile.am): Likewise.
66854         * modules/free (Makefile.am): Likewise.
66855         * modules/fsusage (Makefile.am): Likewise.
66856         * modules/ftruncate (Makefile.am): Likewise.
66857         * modules/fts (Makefile.am): Likewise.
66858         * modules/gc-arcfour (Makefile.am): Likewise.
66859         * modules/gc-des (Makefile.am): Likewise.
66860         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66861         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66862         * modules/gc-md4 (Makefile.am): Likewise.
66863         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66864         * modules/gc-sha1 (Makefile.am): Likewise.
66865         * modules/gc (Makefile.am): Likewise.
66866         * modules/getaddrinfo (Makefile.am): Likewise.
66867         * modules/getcwd (Makefile.am): Likewise.
66868         * modules/getdelim (Makefile.am): Likewise.
66869         * modules/getdomainname (Makefile.am): Likewise.
66870         * modules/getgroups (Makefile.am): Likewise.
66871         * modules/gethostname (Makefile.am): Likewise.
66872         * modules/gethrxtime (Makefile.am): Likewise.
66873         * modules/getline (Makefile.am): Likewise.
66874         * modules/getloadavg (Makefile.am): Likewise.
66875         * modules/getlogin_r (Makefile.am): Likewise.
66876         * modules/getndelim2 (Makefile.am): Likewise.
66877         * modules/getopt (Makefile.am): Likewise.
66878         * modules/getpagesize (Makefile.am): Likewise.
66879         * modules/getpass-gnu (Makefile.am): Likewise.
66880         * modules/getpass (Makefile.am): Likewise.
66881         * modules/getsubopt (Makefile.am): Likewise.
66882         * modules/gettime (Makefile.am): Likewise.
66883         * modules/gettimeofday (Makefile.am): Likewise.
66884         * modules/getugroups (Makefile.am): Likewise.
66885         * modules/getusershell (Makefile.am): Likewise.
66886         * modules/glob (Makefile.am): Likewise.
66887         * modules/group-member (Makefile.am): Likewise.
66888         * modules/hard-locale (Makefile.am): Likewise.
66889         * modules/hash (Makefile.am): Likewise.
66890         * modules/hmac-md5 (Makefile.am): Likewise.
66891         * modules/hmac-sha1 (Makefile.am): Likewise.
66892         * modules/human (Makefile.am): Likewise.
66893         * modules/idcache (Makefile.am): Likewise.
66894         * modules/imaxabs (Makefile.am): Likewise.
66895         * modules/imaxdiv (Makefile.am): Likewise.
66896         * modules/inet_ntop (Makefile.am): Likewise.
66897         * modules/inet_pton (Makefile.am): Likewise.
66898         * modules/intprops (Makefile.am): Likewise.
66899         * modules/inttostr (Makefile.am): Likewise.
66900         * modules/inttypes (Makefile.am): Likewise.
66901         * modules/isapipe (Makefile.am): Likewise.
66902         * modules/javaversion (Makefile.am): Likewise.
66903         * modules/lchmod (Makefile.am): Likewise.
66904         * modules/lchown (Makefile.am): Likewise.
66905         * modules/localcharset (Makefile.am): Likewise.
66906         * modules/long-options (Makefile.am): Likewise.
66907         * modules/lstat (Makefile.am): Likewise.
66908         * modules/malloc (Makefile.am): Likewise.
66909         * modules/mathl (Makefile.am): Likewise.
66910         * modules/mbchar (Makefile.am): Likewise.
66911         * modules/md2 (Makefile.am): Likewise.
66912         * modules/md4 (Makefile.am): Likewise.
66913         * modules/md5 (Makefile.am): Likewise.
66914         * modules/memcasecmp (Makefile.am): Likewise.
66915         * modules/memchr (Makefile.am): Likewise.
66916         * modules/memcmp (Makefile.am): Likewise.
66917         * modules/memcoll (Makefile.am): Likewise.
66918         * modules/memcpy (Makefile.am): Likewise.
66919         * modules/memmem (Makefile.am): Likewise.
66920         * modules/memmove (Makefile.am): Likewise.
66921         * modules/mempcpy (Makefile.am): Likewise.
66922         * modules/memrchr (Makefile.am): Likewise.
66923         * modules/memset (Makefile.am): Likewise.
66924         * modules/memxor (Makefile.am): Likewise.
66925         * modules/mkancesdirs (Makefile.am): Likewise.
66926         * modules/mkdir-p (Makefile.am): Likewise.
66927         * modules/mkdir (Makefile.am): Likewise.
66928         * modules/mkdtemp (Makefile.am): Likewise.
66929         * modules/mkstemp (Makefile.am): Likewise.
66930         * modules/mktime (Makefile.am): Likewise.
66931         * modules/modechange (Makefile.am): Likewise.
66932         * modules/mountlist (Makefile.am): Likewise.
66933         * modules/nanosleep (Makefile.am): Likewise.
66934         * modules/obstack (Makefile.am): Likewise.
66935         * modules/openat (Makefile.am): Likewise.
66936         * modules/pagealign_alloc (Makefile.am): Likewise.
66937         * modules/pathmax (Makefile.am): Likewise.
66938         * modules/physmem (Makefile.am): Likewise.
66939         * modules/poll (Makefile.am): Likewise.
66940         * modules/posixtm (Makefile.am): Likewise.
66941         * modules/posixver (Makefile.am): Likewise.
66942         * modules/putenv (Makefile.am): Likewise.
66943         * modules/quote (Makefile.am): Likewise.
66944         * modules/quotearg (Makefile.am): Likewise.
66945         * modules/raise (Makefile.am): Likewise.
66946         * modules/read-file (Makefile.am): Likewise.
66947         * modules/readline (Makefile.am): Likewise.
66948         * modules/readlink (Makefile.am): Likewise.
66949         * modules/readtokens (Makefile.am): Likewise.
66950         * modules/readutmp (Makefile.am): Likewise.
66951         * modules/realloc (Makefile.am): Likewise.
66952         * modules/regex (Makefile.am): Likewise.
66953         * modules/rename-dest-slash (Makefile.am): Likewise.
66954         * modules/rename (Makefile.am): Likewise.
66955         * modules/rijndael (Makefile.am): Likewise.
66956         * modules/rmdir (Makefile.am): Likewise.
66957         * modules/rpmatch (Makefile.am): Likewise.
66958         * modules/safe-read (Makefile.am): Likewise.
66959         * modules/safe-write (Makefile.am): Likewise.
66960         * modules/same-inode (Makefile.am): Likewise.
66961         * modules/same (Makefile.am): Likewise.
66962         * modules/save-cwd (Makefile.am): Likewise.
66963         * modules/savedir (Makefile.am): Likewise.
66964         * modules/setenv (Makefile.am): Likewise.
66965         * modules/settime (Makefile.am): Likewise.
66966         * modules/sha1 (Makefile.am): Likewise.
66967         * modules/sig2str (Makefile.am): Likewise.
66968         * modules/snprintf (Makefile.am): Likewise.
66969         * modules/stat-macros (Makefile.am): Likewise.
66970         * modules/stat-time (Makefile.am): Likewise.
66971         * modules/stdbool (Makefile.am): Likewise.
66972         * modules/stdint (Makefile.am): Likewise.
66973         * modules/stdlib-safer (Makefile.am): Likewise.
66974         * modules/stpcpy (Makefile.am): Likewise.
66975         * modules/stpncpy (Makefile.am): Likewise.
66976         * modules/strcase (Makefile.am): Likewise.
66977         * modules/strcasestr (Makefile.am): Likewise.
66978         * modules/strchrnul (Makefile.am): Likewise.
66979         * modules/strcspn (Makefile.am): Likewise.
66980         * modules/strdup (Makefile.am): Likewise.
66981         * modules/strerror (Makefile.am): Likewise.
66982         * modules/strftime (Makefile.am): Likewise.
66983         * modules/strndup (Makefile.am): Likewise.
66984         * modules/strnlen (Makefile.am): Likewise.
66985         * modules/strpbrk (Makefile.am): Likewise.
66986         * modules/strsep (Makefile.am): Likewise.
66987         * modules/strstr (Makefile.am): Likewise.
66988         * modules/strtod (Makefile.am): Likewise.
66989         * modules/strtoimax (Makefile.am): Likewise.
66990         * modules/strtok_r (Makefile.am): Likewise.
66991         * modules/strtol (Makefile.am): Likewise.
66992         * modules/strtoll (Makefile.am): Likewise.
66993         * modules/strtoul (Makefile.am): Likewise.
66994         * modules/strtoull (Makefile.am): Likewise.
66995         * modules/strtoumax (Makefile.am): Likewise.
66996         * modules/strverscmp (Makefile.am): Likewise.
66997         * modules/sys_socket (Makefile.am): Likewise.
66998         * modules/sys_stat (Makefile.am): Likewise.
66999         * modules/sysexits (Makefile.am): Likewise.
67000         * modules/time_r (Makefile.am): Likewise.
67001         * modules/timegm (Makefile.am): Likewise.
67002         * modules/timespec (Makefile.am): Likewise.
67003         * modules/tmpfile-safer (Makefile.am): Likewise.
67004         * modules/trim (Makefile.am): Likewise.
67005         * modules/unistd-safer (Makefile.am): Likewise.
67006         * modules/unlinkdir (Makefile.am): Likewise.
67007         * modules/unlocked-io (Makefile.am): Likewise.
67008         * modules/userspec (Makefile.am): Likewise.
67009         * modules/utime (Makefile.am): Likewise.
67010         * modules/utimecmp (Makefile.am): Likewise.
67011         * modules/utimens (Makefile.am): Likewise.
67012         * modules/vasnprintf (Makefile.am): Likewise.
67013         * modules/vasprintf (Makefile.am): Likewise.
67014         * modules/vsnprintf (Makefile.am): Likewise.
67015         * modules/xalloc (Makefile.am): Likewise.
67016         * modules/xgetcwd (Makefile.am): Likewise.
67017         * modules/xnanosleep (Makefile.am): Likewise.
67018         * modules/xreadlink (Makefile.am): Likewise.
67019         * modules/xstrtod (Makefile.am): Likewise.
67020         * modules/xstrtol (Makefile.am): Likewise.
67021         * modules/xstrtold (Makefile.am): Likewise.
67022         * modules/yesno (Makefile.am): Likewise.
67023         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67024
67025 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67026
67027         * modules/error (Makefile.am): Distribute files through
67028         EXTRA_DIST, not lib_SOURCES.
67029
67030 2006-10-12  Eric Blake  <ebb9@byu.net>
67031
67032         * modules/error (Makefile.am): Distribute files in /lib.
67033         * modules/obstack (Makefile.am): Likewise.
67034
67035 2006-10-12  Bruno Haible  <bruno@clisp.org>
67036
67037         * modules/acl (Makefile.am): Distribute all files in lib/ through
67038         EXTRA_DIST.
67039         * modules/arcfour (Makefile.am): Likewise.
67040         * modules/arctwo (Makefile.am): Likewise.
67041         * modules/argmatch (Makefile.am): Likewise.
67042         * modules/argz (Makefile.am): Likewise.
67043         * modules/atexit (Makefile.am): Likewise.
67044         * modules/backupfile (Makefile.am): Likewise.
67045         * modules/c-strtod (Makefile.am): Likewise.
67046         * modules/c-strtold (Makefile.am): Likewise.
67047         * modules/calloc (Makefile.am): Likewise.
67048         * modules/canon-host (Makefile.am): Likewise.
67049         * modules/canonicalize (Makefile.am): Likewise.
67050         * modules/chdir-long (Makefile.am): Likewise.
67051         * modules/chdir-safer (Makefile.am): Likewise.
67052         * modules/check-version (Makefile.am): Likewise.
67053         * modules/chown (Makefile.am): Likewise.
67054         * modules/cloexec (Makefile.am): Likewise.
67055         * modules/close-stream (Makefile.am): Likewise.
67056         * modules/closeout (Makefile.am): Likewise.
67057         * modules/crc (Makefile.am): Likewise.
67058         * modules/cycle-check (Makefile.am): Likewise.
67059         * modules/des (Makefile.am): Likewise.
67060         * modules/dirfd (Makefile.am): Likewise.
67061         * modules/dirname (Makefile.am): Likewise.
67062         * modules/dup2 (Makefile.am): Likewise.
67063         * modules/euidaccess (Makefile.am): Likewise.
67064         * modules/exclude (Makefile.am): Likewise.
67065         * modules/exitfail (Makefile.am): Likewise.
67066         * modules/fcntl-safer (Makefile.am): Likewise.
67067         * modules/file-type (Makefile.am): Likewise.
67068         * modules/fileblocks (Makefile.am): Likewise.
67069         * modules/filemode (Makefile.am): Likewise.
67070         * modules/filenamecat (Makefile.am): Likewise.
67071         * modules/fnmatch (Makefile.am): Likewise.
67072         * modules/fopen-safer (Makefile.am): Likewise.
67073         * modules/fpending (Makefile.am): Likewise.
67074         * modules/fprintftime (Makefile.am): Likewise.
67075         * modules/free (Makefile.am): Likewise.
67076         * modules/fsusage (Makefile.am): Likewise.
67077         * modules/ftruncate (Makefile.am): Likewise.
67078         * modules/fts (Makefile.am): Likewise.
67079         * modules/gc (Makefile.am): Likewise.
67080         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67081         * modules/getaddrinfo (Makefile.am): Likewise.
67082         * modules/getcwd (Makefile.am): Likewise.
67083         * modules/getdelim (Makefile.am): Likewise.
67084         * modules/getdomainname (Makefile.am): Likewise.
67085         * modules/getgroups (Makefile.am): Likewise.
67086         * modules/gethostname (Makefile.am): Likewise.
67087         * modules/gethrxtime (Makefile.am): Likewise.
67088         * modules/getline (Makefile.am): Likewise.
67089         * modules/getloadavg (Makefile.am): Likewise.
67090         * modules/getlogin_r (Makefile.am): Likewise.
67091         * modules/getopt (Makefile.am): Likewise.
67092         * modules/getpass (Makefile.am): Likewise.
67093         * modules/getpass-gnu (Makefile.am): Likewise.
67094         * modules/getsubopt (Makefile.am): Likewise.
67095         * modules/gettime (Makefile.am): Likewise.
67096         * modules/gettimeofday (Makefile.am): Likewise.
67097         * modules/getugroups (Makefile.am): Likewise.
67098         * modules/getusershell (Makefile.am): Likewise.
67099         * modules/glob (Makefile.am): Likewise.
67100         * modules/group-member (Makefile.am): Likewise.
67101         * modules/hard-locale (Makefile.am): Likewise.
67102         * modules/hash (Makefile.am): Likewise.
67103         * modules/hmac-md5 (Makefile.am): Likewise.
67104         * modules/hmac-sha1 (Makefile.am): Likewise.
67105         * modules/human (Makefile.am): Likewise.
67106         * modules/idcache (Makefile.am): Likewise.
67107         * modules/imaxabs (Makefile.am): Likewise.
67108         * modules/imaxdiv (Makefile.am): Likewise.
67109         * modules/inet_ntop (Makefile.am): Likewise.
67110         * modules/inet_pton (Makefile.am): Likewise.
67111         * modules/inttostr (Makefile.am): Likewise.
67112         * modules/isapipe (Makefile.am): Likewise.
67113         * modules/lchown (Makefile.am): Likewise.
67114         * modules/long-options (Makefile.am): Likewise.
67115         * modules/lstat (Makefile.am): Likewise.
67116         * modules/malloc (Makefile.am): Likewise.
67117         * modules/mathl (Makefile.am): Likewise.
67118         * modules/mbchar (Makefile.am): Likewise.
67119         * modules/md2 (Makefile.am): Likewise.
67120         * modules/md4 (Makefile.am): Likewise.
67121         * modules/md5 (Makefile.am): Likewise.
67122         * modules/memcasecmp (Makefile.am): Likewise.
67123         * modules/memchr (Makefile.am): Likewise.
67124         * modules/memcmp (Makefile.am): Likewise.
67125         * modules/memcoll (Makefile.am): Likewise.
67126         * modules/memcpy (Makefile.am): Likewise.
67127         * modules/memmem (Makefile.am): Likewise.
67128         * modules/memmove (Makefile.am): Likewise.
67129         * modules/mempcpy (Makefile.am): Likewise.
67130         * modules/memrchr (Makefile.am): Likewise.
67131         * modules/memset (Makefile.am): Likewise.
67132         * modules/memxor (Makefile.am): Likewise.
67133         * modules/mkancesdirs (Makefile.am): Likewise.
67134         * modules/mkdir (Makefile.am): Likewise.
67135         * modules/mkdir-p (Makefile.am): Likewise.
67136         * modules/mkdtemp (Makefile.am): Likewise.
67137         * modules/mkstemp (Makefile.am): Likewise.
67138         * modules/mktime (Makefile.am): Likewise.
67139         * modules/modechange (Makefile.am): Likewise.
67140         * modules/mountlist (Makefile.am): Likewise.
67141         * modules/nanosleep (Makefile.am): Likewise.
67142         * modules/openat (Makefile.am): Likewise.
67143         * modules/pagealign_alloc (Makefile.am): Likewise.
67144         * modules/physmem (Makefile.am): Likewise.
67145         * modules/poll (Makefile.am): Likewise.
67146         * modules/posixtm (Makefile.am): Likewise.
67147         * modules/posixver (Makefile.am): Likewise.
67148         * modules/putenv (Makefile.am): Likewise.
67149         * modules/quote (Makefile.am): Likewise.
67150         * modules/quotearg (Makefile.am): Likewise.
67151         * modules/raise (Makefile.am): Likewise.
67152         * modules/read-file (Makefile.am): Likewise.
67153         * modules/readline (Makefile.am): Likewise.
67154         * modules/readlink (Makefile.am): Likewise.
67155         * modules/readtokens (Makefile.am): Likewise.
67156         * modules/readutmp (Makefile.am): Likewise.
67157         * modules/realloc (Makefile.am): Likewise.
67158         * modules/regex (Makefile.am): Likewise.
67159         * modules/rename (Makefile.am): Likewise.
67160         * modules/rename-dest-slash (Makefile.am): Likewise.
67161         * modules/rijndael (Makefile.am): Likewise.
67162         * modules/rmdir (Makefile.am): Likewise.
67163         * modules/rpmatch (Makefile.am): Likewise.
67164         * modules/safe-read (Makefile.am): Likewise.
67165         * modules/safe-write (Makefile.am): Likewise.
67166         * modules/same (Makefile.am): Likewise.
67167         * modules/save-cwd (Makefile.am): Likewise.
67168         * modules/savedir (Makefile.am): Likewise.
67169         * modules/setenv (Makefile.am): Likewise.
67170         * modules/settime (Makefile.am): Likewise.
67171         * modules/sha1 (Makefile.am): Likewise.
67172         * modules/sig2str (Makefile.am): Likewise.
67173         * modules/snprintf (Makefile.am): Likewise.
67174         * modules/stdlib-safer (Makefile.am): Likewise.
67175         * modules/stpcpy (Makefile.am): Likewise.
67176         * modules/stpncpy (Makefile.am): Likewise.
67177         * modules/strcase (Makefile.am): Likewise.
67178         * modules/strcasestr (Makefile.am): Likewise.
67179         * modules/strchrnul (Makefile.am): Likewise.
67180         * modules/strcspn (Makefile.am): Likewise.
67181         * modules/strdup (Makefile.am): Likewise.
67182         * modules/strerror (Makefile.am): Likewise.
67183         * modules/strftime (Makefile.am): Likewise.
67184         * modules/strndup (Makefile.am): Likewise.
67185         * modules/strnlen (Makefile.am): Likewise.
67186         * modules/strpbrk (Makefile.am): Likewise.
67187         * modules/strsep (Makefile.am): Likewise.
67188         * modules/strstr (Makefile.am): Likewise.
67189         * modules/strtod (Makefile.am): Likewise.
67190         * modules/strtoimax (Makefile.am): Likewise.
67191         * modules/strtok_r (Makefile.am): Likewise.
67192         * modules/strtol (Makefile.am): Likewise.
67193         * modules/strtoll (Makefile.am): Likewise.
67194         * modules/strtoul (Makefile.am): Likewise.
67195         * modules/strtoull (Makefile.am): Likewise.
67196         * modules/strtoumax (Makefile.am): Likewise.
67197         * modules/strverscmp (Makefile.am): Likewise.
67198         * modules/time_r (Makefile.am): Likewise.
67199         * modules/timegm (Makefile.am): Likewise.
67200         * modules/tmpfile-safer (Makefile.am): Likewise.
67201         * modules/unistd-safer (Makefile.am): Likewise.
67202         * modules/unlinkdir (Makefile.am): Likewise.
67203         * modules/userspec (Makefile.am): Likewise.
67204         * modules/utime (Makefile.am): Likewise.
67205         * modules/utimecmp (Makefile.am): Likewise.
67206         * modules/utimens (Makefile.am): Likewise.
67207         * modules/vasnprintf (Makefile.am): Likewise.
67208         * modules/vasprintf (Makefile.am): Likewise.
67209         * modules/vsnprintf (Makefile.am): Likewise.
67210         * modules/xalloc (Makefile.am): Likewise.
67211         * modules/xgetcwd (Makefile.am): Likewise.
67212         * modules/xnanosleep (Makefile.am): Likewise.
67213         * modules/xreadlink (Makefile.am): Likewise.
67214         * modules/xstrtod (Makefile.am): Likewise.
67215         * modules/xstrtol (Makefile.am): Likewise.
67216         * modules/xstrtold (Makefile.am): Likewise.
67217         * modules/yesno (Makefile.am): Likewise.
67218
67219 2006-10-12  Jim Meyering  <jim@meyering.net>
67220
67221         * m4/getloadavg.m4: Revert the change below.
67222
67223         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67224         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67225         fail with a symlink, which is what coreutils' ./bootstrap now
67226         creates by default.
67227
67228 2006-10-12  Bruno Haible  <bruno@clisp.org>
67229
67230         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67231         mingw.
67232         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67233         MSVC and mingw explicitly.
67234
67235 2006-10-11  Simon Josefsson  <jas@extundo.com>
67236             Bruno Haible  <bruno@clisp.org>
67237
67238         Add support for multiple gnulib-tool invocations in the scope of a
67239         single configure.ac file.
67240         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67241         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67242         with the same contents as the _LIBADD variable.
67243         (func_emit_initmacro_start, func_emit_initmacro_end,
67244         func_emit_initmacro_done): New functions.
67245         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67246         gl_LIBOBJS and gl_LTLIBOBJS.
67247
67248 2006-10-11  Bruno Haible  <bruno@clisp.org>
67249
67250         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67251         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67252         autoreconf. Instead, invoke autopoint explicitly but move back the
67253         *.m4 files from gnulib.
67254
67255 2006-10-11  Bruno Haible  <bruno@clisp.org>
67256
67257         * gnulib-tool (func_usage): Make module names after --create-testdir
67258         optional.
67259         (func_create_testdir): If no module was specified, use nearly all
67260         modules.
67261
67262 2006-10-12  Jim Meyering  <jim@meyering.net>
67263
67264         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67265         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67266         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67267         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67268         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67269         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67270         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67271         (fts_set_stat_required): New function.
67272         (fts_open): Defer the calls to fts_stat, if possible or requested.
67273         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67274         into fts_stat itself.
67275         (fts_read): Perform any required (deferred) fts_stat call.
67276         (fts_build): Likewise, for the directory we're about to open and read.
67277         In the readdir loop, carefully decide whether each entry will require
67278         an eventual call to fts_stat, using dirent.d_type info if available.
67279         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67280         a command line argument into this function.  Update all callers.
67281         Map a return value of FTS_DOT to FTS_D for a command line argument.
67282         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67283         Thanks to Miklos Szeredi for his tenacity and for the initial
67284         bug report about "find" failing on a FUSE-based file system.
67285
67286         * lib/fts.c (fts_open): Use consistent indentation.
67287
67288 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67289
67290         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67291         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67292         reported by Jim Meyering.  All uses of cache variables renamed
67293         to match Autoconf's.
67294         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67295         the other one.
67296
67297         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67298         Fix misspelling in diagnostic.
67299
67300 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67301
67302         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67303         defined.  Problem reported by Matthew Woehlke.
67304
67305         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67306         Add support for Tandem NonStop R series.
67307         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67308         Use new macro.
67309
67310         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67311         (has_trailing_slash): Omit size arg; all callers changed.
67312         Omit 'inline', since it doesn't help performance and we'd
67313         need to configure it.
67314         Don't count //, ///, etc. as having a trailing slash.
67315         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67316         (rpl_rename_dest_slash): On failure, use rename's errno rather
67317         than (in some cases) an incorrect or junk errno.
67318         Simplify code by removing need to compute length; this does
67319         cause it to make two passes instead of one over the file name,
67320         but it's worth it.
67321
67322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67323         change, since Autoconf's version may no longer be appropriate now
67324         that we are using CVS Autoconf's version.  Add support for Tandem.
67325
67326 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67327             Bruno Haible  <bruno@clisp.org>
67328
67329         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67330         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67331         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67332         gl_AC_TYPE_LONG_LONG.
67333
67334         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67335         instead of HAVE_LONG_LONG.
67336         * lib/printf-args.c (printf_fetchargs): Likewise.
67337         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67338         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67339         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67340         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67341         gl_AC_TYPE_LONG_LONG.
67342
67343 2006-10-11  Bruno Haible  <bruno@clisp.org>
67344
67345         * m4/longlong.m4: Add comments.
67346         * m4/ulonglong.m4: Likewise.
67347
67348 2006-10-10  Bruno Haible  <bruno@clisp.org>
67349
67350         Make it possible to #define stpcpy, strdup to aliases.
67351         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67352         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67353
67354 2006-10-10  Bruno Haible  <bruno@clisp.org>
67355
67356         Make it possible to #define gcd to an alias.
67357         * lib/gcd.c: Include config.h.
67358
67359 2006-10-10  Bruno Haible  <bruno@clisp.org>
67360
67361         Make it possible to #define c_isascii to an alias.
67362         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67363         defined. Undefine the macros before defining them, to avoid gcc
67364         warnings.
67365         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67366         define NO_C_CTYPE_MACROS early.
67367
67368 2006-10-10  Bruno Haible  <bruno@clisp.org>
67369
67370         Make it possible to #define set_program_name to an alias.
67371         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67372         ENABLE_RELOCATABLE early.
67373
67374 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67375
67376         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67377         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67378         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67379         More generally, don't assume that 64-bit signed int is available
67380         if unsigned int is, and vice versa.
67381         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67382         unsigned symbols, not on their signed counterparts.
67383         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67384         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67385         (UINT64_C, UINTMAX_C):
67386         Likewise.
67387         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67388         unsigned counterparts.
67389         (Have_long_long, Unsigned): New macros.
67390         (Int): Renamed from INT.
67391         (strtoimax): Use the new macros.
67392         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67393         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67394         * modules/inttypes (inttypes.h): Substitute
67395         HAVE_UNSIGNED_LONG_LONG_INT.
67396         * modules/stdint (stdint.h): Likewise.
67397         (Files): Add m4/ulonglong.m4.
67398
67399 2006-10-10  Bruno Haible  <bruno@clisp.org>
67400
67401         Fix a gcc -Wshadow warning.
67402         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67403         to 'bucket'.
67404         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67405         gl_linked_indexof_from_to): Likewise.
67406         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67407         Likewise.
67408         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67409         Likewise.
67410         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67411         Reported by Eric Blake.
67412
67413 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67414
67415         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67416         for NetBSD.  Problem reported by Bruno Haible.
67417
67418 2006-10-09  Jim Meyering  <jim@meyering.net>
67419
67420         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67421         Patch from Bruno Haible.
67422
67423 2006-10-09  Jim Meyering  <jim@meyering.net>
67424
67425         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67426         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67427         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67428
67429 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67430
67431         Don't include <config.h> twice; this doesn't work in some cases,
67432         e.g., when config.h has "#define intmax_t long long int" and
67433         we include <config.h>, <inttypes.h>, <config.h> in that order.
67434         Problem reported by Matthew Woehlke in:
67435         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67436         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67437         * lib/fts-cycle.c: Don't include config.h.
67438         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67439         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67440         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67441         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67442         inttypes.h.
67443         * lib/xstrtoumax.c: Likewise.
67444         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67445         __strtol and the like, so that this module is more like its siblings.
67446         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67447         Remove; no longer needed now that we assume gnulib inttypes.h.
67448
67449 2006-10-08  Bruno Haible  <bruno@clisp.org>
67450
67451         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67452         option.
67453
67454 2006-10-07  Jim Meyering  <jim@meyering.net>
67455
67456         * modules/inttypes (inttypes.h): Revert what seems to have been
67457         an inadvertent part of today's change: use "|", not "/" in the
67458         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67459
67460 2006-10-07  Bruno Haible  <bruno@clisp.org>
67461
67462         * modules/sublist: New file.
67463
67464 2006-10-07  Bruno Haible  <bruno@clisp.org>
67465
67466         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67467         * modules/argz (argz.h): Likewise.
67468         * modules/arpa_inet (arpa/inet.h): Likewise.
67469         * modules/byteswap (byteswap.h): Likewise.
67470         * modules/configmake (configmake.h): Likewise.
67471         * modules/fcntl (fcntl.h): Likewise.
67472         * modules/fnmatch (fnmatch.h): Likewise.
67473         * modules/getopt (getopt.h): Likewise.
67474         * modules/glob (glob.h): Likewise.
67475         * modules/inttypes (inttypes.h): Likewise.
67476         * modules/netinet_in (netinet/in.h): Likewise.
67477         * modules/poll (poll.h): Likewise.
67478         * modules/stdbool (stdbool.h): Likewise.
67479         * modules/stdint (stdint.h): Likewise.
67480         * modules/sys_select (sys/select.h): Likewise.
67481         * modules/sys_socket (sys/socket.h): Likewise.
67482         * modules/sys_stat (sys/stat.h): Likewise.
67483         * modules/sysexits (sysexits.h): Likewise.
67484         * modules/unistd (unistd.h): Likewise.
67485         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67486         Add a "DO NOT EDIT" comment to the generated file.
67487         (func_import): Likewise for gnulib-comp.m4.
67488
67489 2006-10-07  Bruno Haible  <bruno@clisp.org>
67490
67491         * lib/gl_sublist.h: New file.
67492         * lib/gl_sublist.c: New file.
67493
67494 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67495
67496         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67497         name (relative to the original working directory) and the file
67498         name component (relative to the temporary working directory).  All
67499         callers changed.
67500         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67501         * lib/mkdir-p.c (make_dir_parents): Likewise.
67502         * lib/mkdir-p.h (make_dir_parents): Likewise.
67503
67504 2006-10-06  Eric Blake  <ebb9@byu.net>
67505
67506         Define several macros for use by the clean-temp module.
67507         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67508         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67509         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67510
67511         * lib/clean-temp.h (close_stream_temp): New declaration.
67512         * lib/clean-temp.c (includes): Pull in headers according to what
67513         other modules are in use.
67514         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67515
67516 2006-10-06  Bruno Haible  <bruno@clisp.org>
67517
67518         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67519         instead of fopen, fwriteerror.
67520
67521 2006-10-06  Bruno Haible  <bruno@clisp.org>
67522
67523         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67524         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67525         int.
67526         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67527         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67528         Return an error indicator.
67529         Suggested by Eric Blake.
67530
67531 2006-10-06  Bruno Haible  <bruno@clisp.org>
67532
67533         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67534         Reported by Eric Blake.
67535
67536 2006-10-06  Bruno Haible  <bruno@clisp.org>
67537
67538         * modules/closeout (Description): Mention stderr too.
67539
67540 2006-10-06  Bruno Haible  <bruno@clisp.org>
67541         and Paul Eggert  <eggert@cs.ucla.edu>
67542
67543         * lib/closeout.c (close_stdout): Also close stderr.
67544         * lib/closeout.h: Update comment.
67545
67546 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67547
67548         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67549         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67550         * lib/dirchownmod.c: Include lchown.h.
67551         * lib/lchown.c: Don't include files that lchown.h now includes.
67552         Don't declare chown, since lchown.h now does that.
67553         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67554         (lchown): Define to rpl_chown if lchown is declared but
67555         does not exist.  Declare using a prototype if lchown is not
67556         declared.  Add a copyright notice.
67557         * lib/mkstemp.h: Include <unistd.h>.
67558         * lib/openat.c: Include lchown.h.
67559
67560         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67561         we now test for that separately.
67562         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67563         rather than O_NOFOLLOW, when testing whether it's possible to
67564         avoid a race condition reliably.
67565         * lib/savewd.c (savewd_chdir): Likewise.
67566
67567         Remove macros that are no longer needed now that stdint.h is
67568         reliable.
67569         * lib/fsusage.c (UINTMAX_MAX): Remove.
67570         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67571         * lib/utimecmp.c (SIZE_MAX): Remove.
67572
67573         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67574
67575         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67576         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67577         O_NOATIME works.
67578
67579 2006-10-05  Bruno Haible  <bruno@clisp.org>
67580
67581         * lib/gl_list.h (gl_sortedlist_search_from_to,
67582         gl_sortedlist_indexof_from_to): New declarations.
67583         (gl_list_implementation): New fields sortedlist_search_from_to,
67584         sortedlist_indexof_from_to.
67585         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67586         inline functions.
67587         * lib/gl_list.c (gl_sortedlist_search_from_to,
67588         gl_sortedlist_indexof_from_to): New functions.
67589         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67590         function.
67591         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67592         (gl_array_sortedlist_search_from_to): New function.
67593         (gl_array_list_implementation): Update.
67594         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67595         function.
67596         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67597         (gl_carray_sortedlist_search_from_to): New function.
67598         (gl_carray_list_implementation): Update.
67599         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67600         gl_linked_sortedlist_indexof_from_to): New functions.
67601         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67602         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67603         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67604         gl_tree_sortedlist_indexof_from_to): New functions.
67605         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67606         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67607         Update.
67608         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67609         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67610         Update.
67611
67612 2006-10-05  Bruno Haible  <bruno@clisp.org>
67613
67614         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67615         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67616         (struct gl_list_implementation): Add fields search_from_to,
67617         indexof_from_to. Remove fields search, indexof.
67618         (gl_list_search): Use the search_from_to method.
67619         (gl_list_search_from, gl_list_search_from_to): New functions.
67620         (gl_list_indexof): Use the indexof_from_to method.
67621         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67622         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67623         (gl_list_search_from, gl_list_search_from_to): New functions.
67624         (gl_list_indexof): Use the indexof_from_to method.
67625         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67626         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67627         gl_array_indexof. Add start_index, end_index arguments.
67628         (gl_array_search_from_to): Renamed from gl_array_search. Add
67629         start_index, end_index arguments.
67630         (gl_array_remove, gl_array_list_implementation): Update.
67631         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67632         gl_carray_indexof. Add start_index, end_index arguments.
67633         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67634         start_index, end_index arguments.
67635         (gl_carray_remove, gl_carray_list_implementation): Update.
67636         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67637         gl_linked_search. Add start_index, end_index arguments.
67638         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67639         start_index, end_index arguments.
67640         (gl_linked_remove): Update.
67641         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67642         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67643         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67644         field to 'size_t'.
67645         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67646         gl_tree_search. Add start_index, end_index arguments.
67647         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67648         start_index, end_index arguments.
67649         (gl_tree_remove): Update.
67650         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67651         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67652         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67653         function.
67654         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67655         gl_tree_search. Add start_index, end_index arguments.
67656         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67657         start_index, end_index arguments.
67658         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67659         Update.
67660         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67661
67662 2006-10-05  Bruno Haible  <bruno@clisp.org>
67663
67664         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67665
67666         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67667         fwriteerror_temp): New declarations.
67668         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67669         (descriptors): New variable.
67670         (cleanup): First, close the descriptors.
67671         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67672         fclose_temp, fwriteerror_temp): New functions.
67673
67674 2006-10-04  Jim Meyering  <jim@meyering.net>
67675
67676         * lib/fts.c (fts_open): Tiny comment change.
67677
67678 2006-10-04  Bruno Haible  <bruno@clisp.org>
67679
67680         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67681         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67682         gl_LOCK_BODY.
67683         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67684         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67685         gl_LOCK_EARLY_BODY.
67686         (gl_LOCK): Require gl_LOCK_BODY.
67687
67688 2006-10-04  Bruno Haible  <bruno@clisp.org>
67689
67690         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67691         (gl_oset_search_atleast): New declaration.
67692         (struct gl_oset_implementation): Add field 'search_atleast'.
67693         (gl_oset_search_atleast): New inline function.
67694         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67695         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67696         (gl_array_oset_implementation): Update.
67697         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67698         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67699         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67700
67701 2006-10-04  Bruno Haible  <bruno@clisp.org>
67702
67703         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67704
67705 2006-10-03  Bruno Haible  <bruno@clisp.org>
67706
67707         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67708         from gl_avltreehash_list_implementation.
67709
67710 2006-10-03  Bruno Haible  <bruno@clisp.org>
67711
67712         * lib/gl_oset.c (gl_oset_add): Fix return type.
67713
67714 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67715
67716         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67717
67718 2006-10-02  Eric Blake  <ebb9@byu.net>
67719
67720         * modules/strnlen (Depends-on): Add extensions.
67721
67722 2006-10-02  Eric Blake  <ebb9@byu.net>
67723
67724         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67725         definition in 2.60+.
67726
67727 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67728
67729         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67730         checks.
67731
67732 2006-10-02  Bruno Haible  <bruno@clisp.org>
67733
67734         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67735         to the AUTOMAKE_OPTIONS.
67736         Reported by Jim Meyering.
67737
67738 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67739
67740         Work around bug in Solaris 10 /proc file system:
67741         /proc/self/fd/NNN/.. isn't the parent directory of
67742         the directory whose file descriptor is NNN.  This needs to
67743         be worked around at run time, not compile time, since a
67744         program might be built on Solaris 8, where things work, and
67745         run on Solaris 10.
67746         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67747         to use the following interface instead:
67748         (OPENAT_BUFFER_SIZE): New macro.
67749         (openat_proc_name): New function.
67750         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67751         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67752         Likewise.
67753         * lib/openat-proc.c: New file.
67754         * modules/openat (Files): Add lib/openat-proc.c.
67755         (Depends-on): Add same-inode, stdbool.
67756         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67757
67758 2006-09-29  Bruno Haible  <bruno@clisp.org>
67759
67760         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67761         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67762         argument. Set stdout_closed before testing for ferror, not after.
67763         (fwriteerror, fwriteerror_no_ebadf): New functions.
67764
67765 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67766
67767         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67768
67769 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67770
67771         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67772         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67773
67774 2006-09-28  Jim Meyering  <jim@meyering.net>
67775
67776         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67777         Include <unistd.h>.
67778
67779 2006-09-28  Bruno Haible  <bruno@clisp.org>
67780
67781         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67782         * modules/linkedhash-list (Depends-on): Likewise.
67783         * modules/rbtreehash-list (Depends-on): Likewise.
67784
67785 2006-09-28  Bruno Haible  <bruno@clisp.org>
67786
67787         * lib/strndup.h: Simplify the redefinition of strndup.
67788         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67789         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67790
67791 2006-09-28  Bruno Haible  <bruno@clisp.org>
67792
67793         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67794         * lib/gl_linkedhash_list.c: Likewise.
67795         * lib/gl_rbtreehash_list.c: Likewise.
67796
67797 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67798
67799         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67800         getaddrinfo.
67801
67802         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67803         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67804         it causes <stdio_ext.h> to cause a compile-time error.
67805         Problem reported by Nelson H. F. Beebe.
67806         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67807         of HAVE_DECL___PENDING.
67808
67809         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67810         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67811         declaration.
67812
67813 2006-09-27  Jim Meyering  <jim@meyering.net>
67814
67815         This file could end up with a definition for a function
67816         named __strndup, rather than rpl_strndup on a system with
67817         incomplete weak_alias support.
67818         * lib/strndup.c (strndup): Rename from __strndup.
67819         Remove #defines that used to map __strndup to strndup.
67820         Don't use K&R prototypes.
67821         Remove LIBC-related code, since this file is not sync'd with glibc.
67822         * lib/strndup.h: Revamp, accordingly.
67823         * m4/strndup.m4: Modernize.
67824
67825 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67826
67827         * modules/savewd (Depends-on): Add 'raise'.
67828         * lib/savewd.c: Include <signal.h>, for 'raise'.
67829
67830 2006-09-26  Jim Meyering  <jim@meyering.net>
67831
67832         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67833         when we detect Darwin 8.7.0's acl_get_file bug.
67834         Rearrange to perform the new (below) run-test while $LIBS
67835         contains any acl-related library.  Set USE_ACL at the end.
67836         (gl_ACL_GET_FILE): New function.
67837
67838 2006-09-26  Eric Blake  <ebb9@byu.net>
67839
67840         * lib/verror.c: Include <config.h> unconditionally.
67841
67842 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67843
67844         * modules/clock-time (Maintainer): Add self.
67845         * modules/getlogin_r (Depends-on): Add extensions.
67846
67847 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67848
67849         * modules/clock-time: New module.
67850         * modules/nanosleep (Depends-on): Add clock-time.
67851         * modules/gethrxtime (Depends-on): Likewise.
67852         * modules/gettime (Depends-on): Likewise.
67853         * modules/settime (Depends-on): Likewise.
67854
67855         * modules/fts-lgpl: Depend on openat.
67856         * modules/mkancesdirs: Depend on savewd.
67857         * modules/mkdir-p: Likewise.
67858
67859 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67860
67861         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67862
67863         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67864         `gl_have_arbitrary_file_name_length_limit' to
67865         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67866         actually works between configure runs.
67867
67868 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67869             Bruno Haible  <bruno@clisp.org>
67870
67871         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67872
67873 2006-09-25  Jim Meyering  <jim@meyering.net>
67874
67875         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67876         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67877
67878 2006-09-25  Eric Blake  <ebb9@byu.net>
67879
67880         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67881         exec's in 2006-09-18 patch when shuffling fds.
67882
67883 2006-09-25  Bruno Haible  <bruno@clisp.org>
67884
67885         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67886         Reported by Jim Meyering.
67887
67888 2006-09-24  Jim Meyering  <jim@meyering.net>
67889
67890         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67891         compare a pointer against a literal "0".  That caused failures with
67892         at least HP-UX's hpcc.
67893
67894 2006-09-22  Simon Josefsson  <jas@extundo.com>
67895
67896         * modules/gc-sha1:
67897         * modules/gc-md4:
67898         * modules/gc-hmac-sha1:
67899         * modules/gc-hmac-md5:
67900         * modules/gc-des:
67901         * modules/gc-arcfour: Distribute more files.
67902
67903 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67904
67905         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67906         (gl_linked_iterator_from_to): Initialize struct completely.
67907         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67908         (gl_tree_iterator_from_to): Likewise
67909         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67910         * lib/gl_array_list.c [lint] (gl_array_iterator)
67911         (gl_array_iterator_from_to): Likewise.
67912         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67913         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67914         (gl_carray_iterator_from_to): Likewise.
67915
67916         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67917         * lib/md4.c (md4_process_block): Remove unused variable.
67918         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67919         parentheses for clarity.
67920
67921 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67922
67923         * modules/bison-i18n (Depends-on): Add gettext.
67924
67925 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67926
67927         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67928         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67929         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67930         also add missing comma that caused broken test.
67931         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67932         stdlib.h, for `abort'.
67933         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67934         variables.
67935         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67936         include unistd.h if present, for `rmdir'.
67937         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67938         variables.
67939         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67940         in the process include standard headers for prototypes.
67941         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67942         gets declared on GNU/Linux.
67943         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67944         unistd.h, for `rmdir'.
67945         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67946
67947         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67948         always true.
67949         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67950
67951         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67952
67953 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67954
67955         * gnulib-tool (func_version): Create output all at once.  This
67956         may help avoid triggering unnecessary SIGPIPEs, and at any
67957         rate it doesn't hurt.
67958
67959 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67960             Bruno Haible  <bruno@clisp.org>
67961
67962         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67963         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67964         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67965
67966         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67967         (gl_FUNC_VASPRINTF): Invoke it.
67968
67969 2006-09-22  Bruno Haible  <bruno@clisp.org>
67970
67971         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67972         getloadavg.c as first argument.
67973
67974 2006-09-22  Bruno Haible  <bruno@clisp.org>
67975
67976         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67977         at the beginning of the gl_INIT macro.
67978         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67979         gl_GETLOADAVG.
67980
67981 2006-09-22  Bruno Haible  <bruno@clisp.org>
67982
67983         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67984         module.
67985         Suggested by Ralf Wildenhues.
67986
67987 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67988
67989         Import this patch from libc:
67990
67991         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67992
67993         * lib/regex_internal.c (re_string_reconstruct): Handle
67994         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67995         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67996         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67997         re_string_context_at.
67998
67999         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68000         now requires it.
68001         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68002         gl_REGEX now does it for us.
68003         (gl_REGEX): Add test taken from
68004         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68005
68006         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68007         Check that large offsets work.  Modernize Autoconf usages.
68008         Prefer "yes" to mean a good thing rather than a bad.
68009         Don't put "#define mkstemp" in config.h, as this might interfere
68010         with standard system headers that "#define mkstemp mkstemp64".
68011
68012         * modules/mkstemp (Depends-on): Add extensions, so that
68013         mkstemp is visible on some platforms.
68014         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68015         (Include): Change to "mkstemp.h" from <stdlib.h>.
68016         (Files): Add mkstemp.h.
68017
68018         * lib/mkstemp.h: New file, since some standard headers
68019         #define mkstemp.
68020         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68021         Include "mkstemp.h".
68022         Make the _LIBC code resemble glibc original more,
68023         e.g., use K&R style.
68024         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68025         (mkstemp): Remove, since mkstemp.h does this for us.
68026         * lib/stdlib--.h: Include mkstemp.h.
68027
68028         Import this patch from libc:
68029
68030         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68031
68032         * lib/tempname.c (__gen_tempname): Change attempts_min
68033         into a macro.  Use preprocessor to decide how to initialize
68034         attempts [Coverity CID 67].
68035
68036 2006-09-20  Bruno Haible  <bruno@clisp.org>
68037
68038         * lib/mkdtemp.c: Import from libc.
68039         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68040                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68041                 attempts_min into a macro.  Use preprocessor to decide how to
68042                 initialize attempts [Coverity CID 67].
68043         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68044                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68045                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68046
68047 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68048
68049         * gnulib-tool (func_exit): New function, to allow to pass the
68050         exit status portably through the trap.  Use everywhere.
68051         (--help, --version): Signal a write error.
68052         (trap): catch SIGPIPE, for write errors.
68053         Exit at the end of the trap, with the correct exit status.
68054
68055 2006-09-19  Karl Berry  <karl@gnu.org>
68056
68057         * doc/gnulib.texi: note about the license texinfo files.
68058
68059 2006-09-19  Eric Blake  <ebb9@byu.net>
68060
68061         * gnulib-tool: Avoid space-tab.
68062
68063 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68064
68065         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68066         that prevented coreutils 6.1 from building.  Problem reported
68067         by Petter Reinholdtsen.
68068
68069 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68070
68071         * gnulib-tool (avoidlist): Fix typo that broke options like
68072         --avoid=lock that are used by coreutils bootstrap.
68073
68074 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68075
68076         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68077         more systematically.
68078
68079 2006-09-18  Jim Meyering  <jim@meyering.net>
68080
68081         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68082
68083 2006-09-18  Bruno Haible  <bruno@clisp.org>
68084
68085         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68086
68087 2006-09-18  Bruno Haible  <bruno@clisp.org>
68088
68089         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68090         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68091         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68092         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68093         * m4/gettext.m4: Require autoconf >= 2.52.
68094         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68095         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68096         of gl_cv_header_inttypes_h.
68097
68098 2006-09-18  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/javaversion.c: Include configmake.h.
68101
68102 2006-09-18  Bruno Haible  <bruno@clisp.org>
68103
68104         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68105         avoid that the while loops be executed in a subshell.
68106
68107 2006-09-18  Bruno Haible  <bruno@clisp.org>
68108
68109         * MODULES.html.sh (func_module): Break long lines.
68110         Suggested by Bruce Korb <bkorb@gnu.org>.
68111
68112 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68113
68114         Speed up by a factor of 1.12.
68115         * gnulib-tool (nl): New variable.
68116         (func_import): Rewrite include directive extraction to only read each
68117         directive once.
68118
68119 2006-09-17  Bruno Haible  <bruno@clisp.org>
68120
68121         * modules/javaversion (Makefile.am): Remove DEFS setting.
68122         (Depends-on): Add configmake, for PKGDATADIR definition.
68123
68124 2006-09-17  Bruno Haible  <bruno@clisp.org>
68125
68126         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68127
68128 2006-09-17  Bruno Haible  <bruno@clisp.org>
68129
68130         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68131         (func_modules_transitive_closure, func_modules_add_dummy,
68132         func_modules_to_filelist, func_import, func_create_testdir,
68133         func_create_megatestdir, ...): Use it wherever possible.
68134         Suggested by Ralf Wildenhues.
68135
68136 2006-09-16  Karl Berry  <karl@gnu.org>
68137
68138         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68139         to avoid sectioning errors.
68140         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68141         [ifinfo]: blank line after @center-ed titles.
68142         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68143         Spell FSF address consistently with others.
68144         (These changes approved by rms.)
68145
68146 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68147
68148         Speed up by a factor of 1.61.
68149         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68150         already checked module names again.
68151
68152 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68153
68154         Speed up by a factor of 1.13.
68155         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68156         for new_files, and the input to func_add_or_update.
68157
68158 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68159
68160         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68161         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68162
68163 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68164
68165         * modules/mkancesdirs (Depends-on): Add fcntl.
68166         * modules/savewd: New file.
68167         * MODULES.html.sh (File system functions): Add savewd.
68168
68169         * modules/configmake (Makefile.am): Add support for the
68170         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68171
68172 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68173
68174         * m4/savewd.m4: New file.
68175
68176 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68177
68178         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68179         (dirchownmod): New arg FD.  All callers changed.
68180         Use FD rather than opening the directory ourself, as opening is
68181         now the caller's responsibility.
68182         * lib/dirchownmod.h: Likewise.
68183         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68184         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68185         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68186         (test_dir): Remove.
68187         (mkancesdirs): Return length of prefix of FILE that has already
68188         been made, or -2 if there is a child doing the work.  Redo
68189         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68190         ".", and treat ".." specially since it might stray back into
68191         already-created areas.  Use a subprocess if necessary.  New arg
68192         WD; all users changed.  MAKE_DIR function should now return 1
68193         if it creates a directory that is not readable.  Return -2 if
68194         a child process is spun off.
68195         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68196         Adjust signature to match code.
68197         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68198         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68199         all users changed.
68200         * lib/savewd.c, lib/savewd.h: New files.
68201
68202 2006-09-15  Jim Meyering  <jim@meyering.net>
68203
68204         * modules/rename-dest-slash: New module.
68205         * MODULES.html.sh (posix_compat): Add it here.
68206
68207         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68208
68209 2006-09-15  Jim Meyering  <jim@meyering.net>
68210
68211         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68212         file.
68213
68214         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68215
68216 2006-09-15  Jim Meyering  <jim@meyering.net>
68217
68218         * lib/rename-dest-slash.c (has_trailing_slash): Use
68219         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68220         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68221         test before testing whether SRC is a directory.
68222         Suggestions from Bruno Haible.
68223
68224         Avoid a warning about an unused variable.
68225         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68226         into the #ifdef block where it's used.
68227
68228         * lib/rename-dest-slash.c: New file.
68229
68230 2006-09-14  Bruno Haible  <bruno@clisp.org>
68231
68232         * lib/allocsa.c: Include <config.h> unconditionally.
68233         * lib/asnprintf.c: Likewise.
68234         * lib/asprintf.c: Likewise.
68235         * lib/c-strcasecmp.c: Likewise.
68236         * lib/c-strcasestr.c: Likewise.
68237         * lib/c-strncasecmp.c: Likewise.
68238         * lib/c-strstr.c: Likewise.
68239         * lib/classpath.c: Likewise.
68240         * lib/clean-temp.c: Likewise.
68241         * lib/concatpath.c: Likewise.
68242         * lib/copy-file.c: Likewise.
68243         * lib/csharpcomp.c: Likewise.
68244         * lib/csharpexec.c: Likewise.
68245         * lib/execute.c: Likewise.
68246         * lib/fatal-signal.c: Likewise.
68247         * lib/findprog.c: Likewise.
68248         * lib/fwriteerror.c: Likewise.
68249         * lib/gl_array_list.c: Likewise.
68250         * lib/gl_array_oset.c: Likewise.
68251         * lib/gl_avltree_list.c: Likewise.
68252         * lib/gl_avltree_oset.c: Likewise.
68253         * lib/gl_avltreehash_list.c: Likewise.
68254         * lib/gl_carray_list.c: Likewise.
68255         * lib/gl_linked_list.c: Likewise.
68256         * lib/gl_linkedhash_list.c: Likewise.
68257         * lib/gl_list.c: Likewise.
68258         * lib/gl_oset.c: Likewise.
68259         * lib/gl_rbtree_list.c: Likewise.
68260         * lib/gl_rbtree_oset.c: Likewise.
68261         * lib/gl_rbtreehash_list.c: Likewise.
68262         * lib/imaxabs.c: Likewise.
68263         * lib/imaxdiv.c: Likewise.
68264         * lib/javacomp.c: Likewise.
68265         * lib/javaexec.c: Likewise.
68266         * lib/javaversion.c: Likewise.
68267         * lib/linebreak.c: Likewise.
68268         * lib/localcharset.c: Likewise.
68269         * lib/lock.c: Likewise.
68270         * lib/mbchar.c: Likewise.
68271         * lib/mbswidth.c: Likewise.
68272         * lib/mkdtemp.c: Likewise.
68273         * lib/pipe.c: Likewise.
68274         * lib/printf-args.c: Likewise.
68275         * lib/printf-parse.c: Likewise.
68276         * lib/progname.c: Likewise.
68277         * lib/progreloc.c: Likewise.
68278         * lib/readlink.c: Likewise.
68279         * lib/sh-quote.c: Likewise.
68280         * lib/stpcpy.c: Likewise.
68281         * lib/stpncpy.c: Likewise.
68282         * lib/strcasecmp.c: Likewise.
68283         * lib/strcasestr.c: Likewise.
68284         * lib/strcspn.c: Likewise.
68285         * lib/striconv.c: Likewise.
68286         * lib/strncasecmp.c: Likewise.
68287         * lib/strnlen1.c: Likewise.
68288         * lib/strstr.c: Likewise.
68289         * lib/strtok_r.c: Likewise.
68290         * lib/tls.c: Likewise.
68291         * lib/tmpdir.c: Likewise.
68292         * lib/unicodeio.c: Likewise.
68293         * lib/unsetenv.c: Likewise.
68294         * lib/vasnprintf.c: Likewise.
68295         * lib/vasprintf.c: Likewise.
68296         * lib/wait-process.c: Likewise.
68297         * lib/xallocsa.c: Likewise.
68298         * lib/xsetenv.c: Likewise.
68299         * lib/xstriconv.c: Likewise.
68300
68301 2006-09-13  Simon Josefsson  <jas@extundo.com>
68302
68303         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68304         that internally, suggested by Ralf Wildenhues
68305         <Ralf.Wildenhues@gmx.de>.
68306
68307 2006-09-13  Simon Josefsson  <jas@extundo.com>
68308
68309         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68310         @LIBOBJS@.
68311         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68312
68313 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68314
68315         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68316         longer worry about uses that don't define HAVE_CONFIG_H.
68317         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68318         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68319         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68320         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68321         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68322         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68323         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68324         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68325         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68326         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68327         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68328         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68329         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68330         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68331         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68332         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68333         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68334         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68335         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68336         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68337         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68338         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68339         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68340         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68341         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68342         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68343         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68344         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68345         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68346         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68347         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68348         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68349         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68350         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68351         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68352         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68353         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68354         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68355         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68356         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68357         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68358         Likewise.
68359
68360 2006-09-13  Eric Blake  <ebb9@byu.net>
68361
68362         * lib/getopt.c: Fix typo in last commit.
68363
68364 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68365
68366         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68367         dgettext.
68368
68369 2006-09-12  Jim Meyering  <jim@meyering.net>
68370
68371         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68372         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68373         Reported by Nelson H. F. Beebe.
68374
68375 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68376
68377         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68378         program_invocation_name and program_invocation_short_name are
68379         initialized.
68380         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68381         and program_invocation_short_name to argp.h, so they are visible
68382         to user programs.
68383         * lib/argp.h: Likewise
68384
68385 2006-09-10  Bruno Haible  <bruno@clisp.org>
68386
68387         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68388         m4/inttypes_h.m4, m4/uintmax_t.m4.
68389
68390 2006-09-10  Bruno Haible  <bruno@clisp.org>
68391
68392         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68393         gl_AC_TYPE_UINTMAX_T.
68394
68395 2006-09-10  Bruno Haible  <bruno@clisp.org>
68396
68397         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68398
68399 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68400
68401         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68402         convention.  Text proposed by Bruno Haible.
68403         (struct argp_option): Document the use of N_() wrappers.
68404
68405         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68406         '\v', and translate the two parts separately, instead of feeding
68407         the whole string to gettext.  This allows to exclude
68408         '\v' from the strings visible to the translator by writing doc
68409         strings as N_("..") "\v" N_("..").
68410
68411 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68412
68413         * config/srclist.txt: Undo latest change; the bug was fixed.
68414
68415 2006-09-09  Bruno Haible  <bruno@clisp.org>
68416
68417         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68418         assignments if building a library without libtool.
68419         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68420         in func_emit_lib_Makefile_am.
68421         (func_import): When building a static library libfoo.a, arrange to
68422         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68423         (func_create_testdir): Likewise.
68424         * modules/gc (configure.ac, Makefile.am): If building statically,
68425         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68426         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68427         * modules/striconv (configure.ac, Makefile.am): Likewise.
68428         Based on a suggestion by Ralf Wildenhues.
68429
68430 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68431
68432         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68433         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68434         Also:
68435
68436         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68437         Add year_2050_test to catch glibc bug 2821
68438         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68439
68440         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68441         Prefer #ifdef to #if.
68442
68443         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68444         Return from 'main' instead of calling 'exit'.
68445
68446 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68447
68448         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68449         returned the maximum time_t value rather than (time_t) -1.
68450         Problem originally reported by William Bardwell
68451         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68452
68453         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68454         Moved to here ...
68455         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68456         ... from here.
68457
68458 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68459
68460         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68461         2821 is fixed.
68462
68463 2006-09-08  Jim Meyering  <jim@meyering.net>
68464
68465         Don't make generated files read-only.  That would bother too many
68466         people.  However, do retain the ability to work when targets are
68467         read-only: remove the destination and temporary files before writing
68468         them (when generated via sed or echo), or by using the -f option for
68469         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68470         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68471         * modules/byteswap, modules/configmake, modules/fcntl:
68472         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68473         * modules/localcharset, modules/netinet_in, modules/poll:
68474         * modules/stdbool, modules/stdint, modules/sys_select:
68475         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68476
68477 2006-09-08  Jim Meyering  <jim@meyering.net>
68478
68479         Avoid new build failure on FreeBSD 6.0.
68480         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68481         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68482         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68483
68484 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68485
68486         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68487
68488 2006-09-07  Jim Meyering  <jim@meyering.net>
68489
68490         Fix global typo in last change: use chmod u-w, not chmod u-x.
68491         Spotted by Paul Eggert and Bruce Korb.
68492         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68493         * modules/byteswap, modules/configmake, modules/fcntl:
68494         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68495         * modules/localcharset, modules/netinet_in, modules/poll:
68496         * modules/stdbool, modules/stdint, modules/sys_select:
68497         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68498
68499 2006-09-06  Jim Meyering  <jim@meyering.net>
68500
68501         Make generated files be read-only.
68502         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68503         Ensure that each generated file is now read-only.
68504         * modules/argz: Likewise.
68505         * modules/arpa_inet: Likewise.
68506         * modules/byteswap: Likewise.
68507         * modules/configmake: Likewise.
68508         * modules/fcntl: Likewise.
68509         * modules/fnmatch: Likewise.
68510         * modules/getopt: Likewise.
68511         * modules/glob: Likewise.
68512         * modules/inttypes: Likewise.
68513         * modules/netinet_in: Likewise.
68514         * modules/poll: Likewise.
68515         * modules/stdbool: Likewise.
68516         * modules/stdint: Likewise.
68517         * modules/sys_select: Likewise.
68518         * modules/sys_socket: Likewise.
68519         * modules/sys_stat: Likewise.
68520         * modules/sysexits: Likewise.
68521         * modules/localcharset: Same as above, but continue using temporary
68522         file named "t-$@" (why different?) rather than the "$@-t" used
68523         everywhere else.
68524
68525         * modules/sysexits (Makefile.am): Replace literal occurrences
68526         of "sysexit.h" more readable, and more consistent, "$@".
68527
68528 2006-09-06  Bruno Haible  <bruno@clisp.org>
68529
68530         * modules/striconv: New file.
68531         * modules/xstriconv: New file.
68532         * MODULES.html.sh (Internationalization functions): Add striconv,
68533         xstriconv.
68534
68535 2006-09-06  Bruno Haible  <bruno@clisp.org>
68536
68537         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68538         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68539         not using libtool correctly.
68540
68541 2006-09-06  Bruno Haible  <bruno@clisp.org>
68542
68543         * lib/striconv.h: New file.
68544         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68545         iconvstring.c.
68546         * lib/xstriconv.h: New file.
68547         * lib/xstriconv.c: New file.
68548
68549 2006-09-06  Bruno Haible  <bruno@clisp.org>
68550
68551         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68552         lib_..._LDFLAGS.
68553
68554 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68555
68556         * lib/argz_.h: Sync from Libtool.
68557
68558         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68559                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68560
68561         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68562
68563 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68564
68565         * modules/trim: New file.
68566
68567 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68568
68569         * lib/trim.h: New file.
68570         * lib/trim.c: New file.
68571
68572 2006-09-05  Bruno Haible  <bruno@clisp.org>
68573
68574         * MODULES.html.sh (String handling): Add trim.
68575
68576 2006-09-04  Karl Berry  <karl@gnu.org>
68577
68578         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68579         until next release.
68580
68581 2006-09-03  Bruno Haible  <bruno@clisp.org>
68582
68583         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68584         correctly.
68585
68586 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68587
68588         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68589         not gl_GETLOADAVG.  Omit unneeded semicolons.
68590         Problems reported by Ralf Wildenhues in
68591         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68592         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68593         at the end, which is the usual gnulib style.
68594
68595         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68596         of doing all the work ourselves.
68597         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68598         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68599
68600 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68601
68602         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68603         Problem reported by Ralf Wildenhues in
68604         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68605
68606         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68607         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68608
68609 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68610
68611         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68612         yesterday's patch by changing test -n to test -z.
68613
68614 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68615
68616         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68617         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68618         the former is now obsolescent.
68619
68620         * modules/chdir-long (Depends-on): Add fcntl.
68621
68622 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68623
68624         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68625         obsolescent, and programs should use gnulib instead.
68626         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68627         but with prefixes changed.
68628
68629 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68630
68631         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68632         or stdbool.h, because they might not exist while configuring.
68633
68634         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68635         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68636         does that for us.
68637         (O_DIRECTORY): Remove.
68638
68639 2006-08-31  Eric Blake  <ebb9@byu.net>
68640
68641         * gnulib-tool: Don't let emacs change spaces to TAB.
68642
68643 2006-08-31  Bruno Haible  <bruno@clisp.org>
68644
68645         * gnulib-tool: When calling func_import more than once, do it in a
68646         subshell.
68647         Reported by Eric Blake <ebb9@byu.net>.
68648
68649 2006-08-31  Bruno Haible  <bruno@clisp.org>
68650
68651         * gnulib-tool (nl): Remove variable.
68652         (sed_transform_lib_file): Use more robust test for config-h module.
68653         (func_import): Fix typo in 2006-08-25 patch.
68654
68655 2006-08-31  Bruno Haible  <bruno@clisp.org>
68656
68657         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68658         specified, augment Makefile.am variables instead of assigning them.
68659
68660 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68661
68662         Work around a bug in both the Linux and SunOS 64-bit kernels:
68663         nanosleep mishandles sleeps for longer than 2**31 seconds.
68664         Problem reported by Frank v Waveren in
68665         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68667         Check for nanosleep bug.
68668         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68669
68670 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68671
68672         Work around a bug in both the Linux and SunOS 64-bit kernels:
68673         nanosleep mishandles sleeps for longer than 2**31 seconds.
68674         Problem reported by Frank v Waveren in
68675         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68676         * lib/nanosleep.c (BILLION): New constant.
68677         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68678         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68679         implementation.
68680
68681 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68682
68683         * modules/nanosleep (Depends-on): Add gettime.
68684
68685 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68686         and Simon Josefsson  <jas@extundo.com>
68687         and Oskar Liljeblad  <oskar@osk.mine.nu>
68688
68689         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68690         * gnulib-tool (func_import): New license type 'unmodifiable license
68691         text'.
68692         * modules/fdl: Use it.  Longer description.
68693         * module/gpl, module/lgpl: New files.
68694
68695 2006-08-30  Jim Meyering  <jim@meyering.net>
68696
68697         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68698         shadowing the parameter.
68699
68700 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68701
68702         Sync from Libtool:
68703
68704         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68705
68706         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68707         sharing with gnulib.  Report by Eric Blake.
68708
68709 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68710
68711         * modules/isapipe: New file.
68712         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68713
68714 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68715
68716         * modules/configmake (Makefile.am): Add a comment, and omit
68717         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68718         by Bruno Haible.
68719
68720 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68721
68722         * m4/isapipe.m4: New file.
68723
68724 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68725
68726         * lib/isapipe.c, lib/isapipe.h: New files.
68727
68728 2006-08-29  Jim Meyering  <jim@meyering.net>
68729
68730         * modules/configmake (Makefile.am): Make configmake.h depend on
68731         Makefile.  Otherwise, a stale configmake.h could hang around.
68732
68733 2006-08-29  Eric Blake  <ebb9@byu.net>
68734
68735         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68736         resolution of upstream bug 3044.
68737
68738 2006-08-29  Bruno Haible  <bruno@clisp.org>
68739
68740         * modules/localcharset (Depends-on): Add configmake.
68741         (Makefile.am): Remove setting of LIBDIR through DEFS.
68742
68743 2006-08-29  Bruno Haible  <bruno@clisp.org>
68744
68745         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68746         defined.
68747
68748 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68749
68750         * modules/fcntl: New file.
68751         * modules/chdir-safer (Depends-on): Add fcntl.
68752         * modules/fts: Likewise.
68753         * modules/mkdir-p: Likewise.
68754
68755         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68756         This undoes the most recent change, since we're now addressing the
68757         problem in a different way.
68758
68759         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68760         into output, since the output might be called Makefile.am even
68761         if $makefile_name is something different.
68762         (func_import): Use $makefile_am rather than
68763         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68764         empty.
68765
68766         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68767
68768 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68769
68770         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68771         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68772         recent change to stdint.m4, since we're now addressing the problem in a
68773         different way.
68774
68775 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68776
68777         * m4/fcntl_h.m4: New file.
68778
68779 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68780
68781         * lib/fcntl_.h: New file.
68782         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68783         the fcntl module.
68784         * lib/dirchownmod.c: Likewise.
68785         * lib/fts.c: Likewise.
68786
68787         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68788         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68789         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68790         just before including <inttypes.h>, to avoid circular inclusion.
68791
68792 2006-08-28  Jim Meyering  <jim@meyering.net>
68793
68794         * doc/visibility.texi: Actually read and correct the grammar of the
68795         sentence affected by yesterday's change.
68796
68797 2006-08-28  Eric Blake  <ebb9@byu.net>
68798
68799         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68800         needs wrapper.
68801
68802 2006-08-28  Eric Blake  <ebb9@byu.net>
68803
68804         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68805
68806 2006-08-28  Eric Blake  <ebb9@byu.net>
68807
68808         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68809
68810 2006-08-28  Bruno Haible  <bruno@clisp.org>
68811
68812         * modules/c-strstr: New file, from GNU gettext.
68813         * MODULES.html.sh (String handling): Add c-strstr.
68814
68815 2006-08-28  Bruno Haible  <bruno@clisp.org>
68816
68817         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68818         macros.
68819         Reported by Eric Blake.
68820
68821 2006-08-28  Bruno Haible  <bruno@clisp.org>
68822
68823         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68824         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68825         * lib/vasprintf.c: Include errno.h, limits.h.
68826         (EOVERFLOW): New fallback definition.
68827         (vasprintf): Test here whether the string length is > INT_MAX.
68828         * lib/vsnprintf.c: Include errno.h, limits.h.
68829         (EOVERFLOW): New fallback definition.
68830         (vsnprintf): Fix bug when generated string was too long for the buffer.
68831         Test here whether the string length is > INT_MAX.
68832
68833 2006-08-28  Bruno Haible  <bruno@clisp.org>
68834
68835         * lib/inttypes_.h (SCNX*): Remove definitions.
68836         Reported by Eric Blake.
68837
68838 2006-08-28  Bruno Haible  <bruno@clisp.org>
68839
68840         * lib/c-strstr.h: New file, from GNU gettext.
68841         * lib/c-strstr.c: New file, from GNU gettext.
68842
68843 2006-08-28  Bruno Haible  <bruno@clisp.org>
68844
68845         * gnulib-tool: Reorder some statements.
68846
68847 2006-08-28  Bruno Haible  <bruno@clisp.org>
68848
68849         * gnulib-tool: New option --makefile-name.
68850         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68851         $makefile_name.
68852         (func_import): Write $makefile_name to the cache file, and read it from
68853         there unless explicitly specified. Use $makefile_name as file name
68854         instead of Makefile.am. Adjust the recommendations accordingly.
68855
68856 2006-08-28  Bruno Haible  <bruno@clisp.org>
68857
68858         * gnulib-tool (func_verify_module): Check against misapplying patch.
68859
68860 2006-08-28  Bruno Haible  <bruno@clisp.org>
68861
68862         * gnulib-tool (func_relativize, func_relconcat): New functions.
68863         Give an error if --local-dir is given with --update.
68864         Remove trailing slashes from $local_gnulib_dir.
68865         (func_import): Store the relativized $local_gnulib_dir in
68866         gnulib-cache.m4, and read it from there if not specified explicitly.
68867
68868 2006-08-28  Bruno Haible  <bruno@clisp.org>
68869
68870         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68871         is the current directory. Respect also $local_gnulib_dir.
68872
68873 2006-08-28  Bruno Haible  <bruno@clisp.org>
68874             Simon Josefsson  <jas@extundo.com>
68875
68876         BeOS portability.
68877         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68878
68879 2006-08-27  Jim Meyering  <jim@meyering.net>
68880
68881         * doc/visibility.texi: Remove duplicate word: "pointer".
68882
68883 2006-08-26  Bruno Haible  <bruno@clisp.org>
68884
68885         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68886         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68887         (Makefile.am): Create inttypes.h from inttypes_.h.
68888         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68889
68890         * modules/imaxabs: New file.
68891
68892         * modules/imaxdiv: New file.
68893
68894 2006-08-26  Bruno Haible  <bruno@clisp.org>
68895
68896         * m4/inttypes.m4: New file.
68897         * m4/_inttypes_h.m4: Remove file.
68898         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68899         PRI_MACROS_BROKEN.
68900         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68901
68902         * m4/imaxabs.m4: New file.
68903
68904         * m4/imaxdiv.m4: New file.
68905
68906 2006-08-26  Bruno Haible  <bruno@clisp.org>
68907
68908         * lib/inttypes_.h: New file.
68909         * lib/inttypes.h: Remove file.
68910         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68911
68912         * lib/imaxabs.c: New file.
68913
68914         * lib/imaxdiv.c: New file.
68915
68916 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68917
68918         New config-h module, so that "make" output needn't be cluttered
68919         by -DHAVE_CONFIG_H.
68920         * MODULES.html.sh (Support for building libraries and executables):
68921         Add config-h.
68922         * modules/config-h: New file.
68923         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68924         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68925         the config-h module is used.
68926
68927         New configmake module, so that "make" output needn't be cluttered
68928         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68929         * MODULES.html.sh (Support for building libraries and executables):
68930         Add configmake.
68931         * modules/configmake: New file.
68932
68933 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68934
68935         * m4/config-h.m4: New file.
68936
68937 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68938
68939         * config/srclist.txt: Add elisp-comp.
68940
68941 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68942
68943         * MODULES.html.sh (Support for building libraries and executables):
68944         Add elisp-comp.
68945         * build-aux/elisp-comp: New file.
68946         * modules/elisp-comp: New file.
68947
68948 2006-08-24  Bruno Haible  <bruno@clisp.org>
68949
68950         * gnulib-tool (func_create_testdir): Use non-default values of
68951         sourcebase and m4base.
68952
68953 2006-08-24  Bruno Haible  <bruno@clisp.org>
68954
68955         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68956         HTML structure.
68957
68958 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68959
68960         * modules/openat (Depends-on): Add lchown.
68961
68962 2006-08-23  Bruno Haible  <bruno@clisp.org>
68963
68964         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68965         of gl_LOCK_EARLY instead of gl_LOCK.
68966
68967 2006-08-23  Bruno Haible  <bruno@clisp.org>
68968
68969         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68970         on OSF/1 to no.
68971         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68972
68973 2006-08-23  Bruno Haible  <bruno@clisp.org>
68974
68975         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68976         as unusable.
68977
68978         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68979         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68980         (gl_LOCK): New macro.
68981
68982 2006-08-22  Simon Josefsson  <jas@extundo.com>
68983
68984         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68985         to md5 module.
68986
68987 2006-08-22  Simon Josefsson  <jas@extundo.com>
68988
68989         * MODULES.html.sh: Add "Support for maintaining and release
68990         projects".
68991
68992         * build-aux/gnupload: New file, from coreutils.
68993
68994 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68995
68996         Avoid the need for AC_LIBSOURCES in m4 macros.
68997         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68998         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68999         * modules/check-version (EXTRA_DIST): Add check-version.h.
69000         * modules/crc (EXTRA_DIST): Add crc.h.
69001         * modules/des (EXTRA_DIST): Add des.h.
69002         * modules/gc (EXTRA_DIST): Add gc.h.
69003         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69004         * modules/getline (EXTRA_DIST): Add getline.h.
69005         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69006         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69007         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69008         * modules/md2 (EXTRA_DIST): Add md2.h.
69009         * modules/md4 (EXTRA_DIST): Add md4.h.
69010         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69011         * modules/read-file (EXTRA_DIST): Add read-file.h.
69012         * modules/readline (EXTRA_DIST): Add readline.h.
69013         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69014         rijndael-api-fst.h.
69015
69016 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69017
69018         * m4/rijndael.m4 (gl_ARCFOUR):
69019         * m4/arctwo.m4 (gl_ARCTWO):
69020         * m4/check-version.m4 (gl_CHECK_VERSION):
69021         * m4/crc.m4 (gl_CRC):
69022         * m4/des.m4 (gl_DES):
69023         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69024         * m4/gc.m4 (gl_GC):
69025         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69026         * m4/getline.m4 (gl_FUNC_GETLINE):
69027         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69028         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69029         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69030         * m4/md2.m4 (gl_MD2):
69031         * m4/md4.m4 (gl_MD4):
69032         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69033         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69034         * m4/readline.m4 (gl_FUNC_READLINE):
69035         * m4/rijndael.m4 (gl_RIJNDAEL):
69036         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69037         to get the necessary .h files and whatnot.
69038
69039 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69040
69041         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69042         gnulib rather than the other way around.
69043         * config/srclistvars.sh (COREUTILS): Remove.
69044
69045 2006-08-22  Jim Meyering  <jim@meyering.net>
69046
69047         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69048
69049         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69050
69051 2006-08-22  Eric Blake  <ebb9@byu.net>
69052
69053         * modules/regexprops-generic: New file.
69054         * MODULES.html.sh (Support for building documentation): List it.
69055
69056 2006-08-22  Eric Blake  <ebb9@byu.net>
69057
69058         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69059         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69060         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69061         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69062
69063 2006-08-22  Bruno Haible  <bruno@clisp.org>
69064
69065         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69066         and lib_LTLIBRARIES like the other lib_* variables.
69067
69068 2006-08-22  Bruno Haible  <bruno@clisp.org>
69069
69070         * build-aux/x-to-1.in: New file, from GNU gettext.
69071
69072 2006-08-22  Bruno Haible  <bruno@clisp.org>
69073
69074         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69075         <utmpx.h> exists.
69076
69077 2006-08-22  Bruno Haible  <bruno@clisp.org>
69078
69079         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69080         <utmpx.h> exists.
69081
69082 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69083
69084         BeOS portability.
69085         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69086         exist.
69087         Problem reported by Bruno Haible.
69088
69089 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69090
69091         Avoid the need for AC_LIBSOURCES in m4 macros.
69092         * modules/acl (EXTRA_DIST): Add acl.h.
69093         * modules/argmatch (Files): Add m4/argmatch.m4.
69094         (configure.ac): Add gl_ARGMATCH.
69095         (EXTRA_DIST): Renamed from lib_SOURCES, for
69096         consistency with the other modules.  Remove argmatch.c.
69097         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69098         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69099         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69100         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69101         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69102         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69103         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69104         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69105         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69106         * modules/closeout (EXTRA_DIST): Add closeout.h.
69107         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69108         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69109         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69110         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69111         dirname.h; remove basename.c and stripslash.c.
69112         * modules/exclude (EXTRA_DIST): Add exclude.h.
69113         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69114         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69115         * modules/file-type (EXTRA_DIST): Add file-type.h.
69116         * modules/filemode (EXTRA_DIST): Add filemode.h.
69117         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69118         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69119         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69120         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69121         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69122         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69123         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69124         * modules/getdate (EXTRA_DIST): Add getdate.c.
69125         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69126         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69127         * modules/getpass (EXTRA_DIST): Add getpass.h.
69128         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69129         * modules/group-member (EXTRA_DIST): Add group-member.h.
69130         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69131         * modules/hash (EXTRA_DIST): Add hash.h.
69132         * modules/human (EXTRA_DIST): Add human.h.
69133         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69134         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69135         * modules/lchown (EXTRA_DIST): Add lchown.h.
69136         * modules/long-options (EXTRA_DIST): Add long-options.h.
69137         * modules/lstat (EXTRA_DIST): Add lstat.h.
69138         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69139         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69140         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69141         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69142         * modules/memxor (EXTRA_DIST): Add memxor.h.
69143         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69144         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69145         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69146         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69147         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69148         * modules/physmem (EXTRA_DIST): Add physmem.h.
69149         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69150         * modules/posixver (EXTRA_DIST): Add posixver.h.
69151         * modules/quote (EXTRA_DIST): Add quote.h.
69152         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69153         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69154         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69155         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69156         regex_internal.h regexec.c.
69157         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69158         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69159         * modules/same (EXTRA_DIST): Add same.h.
69160         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69161         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69162         * modules/savedir (EXTRA_DIST): Add savedir.h.
69163         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69164         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69165         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69166         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69167         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69168         * modules/strdup (EXTRA_DIST): Add strdup.h.
69169         * modules/strftime (EXTRA_DIST): Add strftime.h.
69170         * modules/strndup (EXTRA_DIST): Add strndup.h.
69171         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69172         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69173         * modules/time_r (EXTRA_DIST): Add time_r.h.
69174         * modules/timespec (EXTRA_DIST): Add timespec.h.
69175         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69176         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69177         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69178         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69179         * modules/userspec (EXTRA_DIST): Add userspec.h.
69180         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69181         * modules/utimens (EXTRA_DIST): Add utimens.h.
69182         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69183         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69184         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69185         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69186         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69187         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69188         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69189         * modules/yesno (EXTRA_DIST): Add yesno.h.
69190
69191 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69192
69193         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69194
69195         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69196         * m4/dev-ino.m4, same-inode.m4: Remove.
69197
69198         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69199         * m4/acl.m4 (AC_FUNC_ACL):
69200         * m4/backupfile.m4 (gl_BACKUPFILE):
69201         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69202         * m4/canon-host.m4 (gl_CANON_HOST):
69203         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69204         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69205         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69206         * m4/cloexec.m4 (gl_CLOEXEC):
69207         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69208         * m4/closeout.m4 (gl_CLOSEOUT):
69209         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69210         * m4/dirname.m4 (gl_DIRNAME):
69211         * m4/exclude.m4 (gl_EXCLUDE):
69212         * m4/exitfail.m4 (gl_EXITFAIL):
69213         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69214         * m4/file-type.m4 (gl_FILE_TYPE):
69215         * m4/filemode.m4 (gl_FILEMODE):
69216         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69217         * m4/fpending.m4 (gl_FUNC_FPENDING):
69218         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69219         * m4/fts.m4 (gl_FUNC_FTS):
69220         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69221         * m4/getdate.m4 (gl_GETDATE):
69222         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69223         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69224         * m4/getpass.m4 (gl_FUNC_GETPASS):
69225         * m4/gettime.m4 (gl_GETTIME):
69226         * m4/getugroups.m4 (gl_GETUGROUPS):
69227         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69228         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69229         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69230         * m4/hash.m4 (gl_HASH):
69231         * m4/idcache.m4 (gl_IDCACHE):
69232         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69233         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69234         * m4/long-options.m4 (gl_LONG_OPTIONS):
69235         * m4/lstat.m4 (gl_FUNC_LSTAT):
69236         * m4/md5.m4 (gl_MD5):
69237         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69238         * m4/memcoll.m4 (gl_MEMCOLL):
69239         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69240         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69241         * m4/memxor.m4 (gl_MEMXOR):
69242         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69243         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69244         * m4/modechange.m4 (gl_MODECHANGE):
69245         * m4/mountlist.m4 (gl_MOUNTLIST):
69246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69247         * m4/openat.m4 (gl_FUNC_OPENAT):
69248         * m4/pathmax.m4 (gl_PATHMAX):
69249         * m4/physmem.m4 (gl_PHYSMEM):
69250         * m4/posixtm.m4 (gl_POSIXTM):
69251         * m4/posixver.m4 (gl_POSIXVER):
69252         * m4/quote.m4 (gl_QUOTE):
69253         * m4/quotearg.m4 (gl_QUOTEARG):
69254         * m4/readtokens.m4 (gl_READTOKENS):
69255         * m4/readutmp.m4 (gl_READUTMP):
69256         * m4/regex.m4 (gl_REGEX):
69257         * m4/safe-read.m4 (gl_SAFE_READ):
69258         * m4/safe-write.m4 (gl_SAFE_WRITE):
69259         * m4/same.m4 (gl_SAME):
69260         * m4/save-cwd.m4 (gl_SAVE_CWD):
69261         * m4/savedir.m4 (gl_SAVEDIR):
69262         * m4/settime.m4 (gl_SETTIME):
69263         * m4/sha1.m4 (gl_SHA1):
69264         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69265         * m4/stat-macros.m4 (gl_STAT_MACROS):
69266         * m4/stat-time.m4 (gl_STAT_TIME):
69267         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69268         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69269         * m4/strdup.m4 (gl_FUNC_STRDUP):
69270         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69271         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69272         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69273         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69274         * m4/time_r.m4 (gl_TIME_R):
69275         * m4/timespec.m4 (gl_TIMESPEC):
69276         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69277         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69278         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69279         * m4/userspec.m4 (gl_USERSPEC):
69280         * m4/utimecmp.m4 (gl_UTIMECMP):
69281         * m4/utimens.m4 (gl_UTIMENS):
69282         * m4/xalloc.m4 (gl_XALLOC):
69283         * m4/xgetcwd.m4 (gl_XGETCWD):
69284         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69285         * m4/xreadlink.m4 (gl_XREADLINK):
69286         * m4/xstrtod.m4 (gl_XSTRTOD):
69287         * m4/yesno.m4 (gl_YESNO):
69288         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69289         to get the necessary .h files and whatnot.
69290
69291 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69292             Bruno Haible  <bruno@clisp.org>
69293
69294         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69295         /bin/sh understanding of '!' conditional negation.
69296
69297 2006-08-21  Jim Meyering  <jim@meyering.net>
69298
69299         * modules/openat (Depends-on): Really alphabetize.
69300
69301         * modules/acl (Depends-on): Add error and quote.
69302
69303         * check-module (find_included_lib_files): Add at-func.c to the
69304         ok-to-include-more-than-once white list.
69305
69306         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69307
69308 2006-08-21  Bruno Haible  <bruno@clisp.org>
69309
69310         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69311         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69312         Reported by Martin Lambers <marlam@marlam.de>.
69313
69314 2006-08-21  Bruno Haible  <bruno@clisp.org>
69315
69316         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69317         specify an installation location, don't emit a noinst_LIBRARIES or
69318         noinst_LTLIBRARIES assignment.
69319
69320 2006-08-21  Bruno Haible  <bruno@clisp.org>
69321
69322         BeOS portability.
69323         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69324         BeOS has mbrtowc() but no <wctype.h>.
69325
69326 2006-08-21  Bruno Haible  <bruno@clisp.org>
69327
69328         BeOS portability.
69329         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69330         exist.
69331
69332 2006-08-21  Bruno Haible  <bruno@clisp.org>
69333
69334         BeOS portability.
69335         * lib/mbchar.h: Include <wctype.h> only if it exists.
69336
69337 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69338
69339         Remove files that are no longer needed by their respective modules.
69340         * m4/obstack.m4: Remove.
69341         * m4/strerror_r.m4: Remove.
69342         * m4/uint32_t.m4: Remove.
69343         * m4/uintptr_t.m4: Remove.
69344         * m4/ullong_max.m4: Remove.
69345         * m4/xstrtoimax.m4: Remove.
69346         * m4/xstrtoumax.m4: Remove.
69347
69348         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69349         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69350         dependencies now capture this.
69351
69352         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69353         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69354         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69355         * m4/human.m4 (gl_HUMAN): Likewise.
69356         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69357         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69358
69359         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69360
69361         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69362         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69363         stdint.
69364         * m4/human.m4 (gl_HUMAN): Likewise.
69365         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69366         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69367         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69368         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69369         * m4/xstrtol (gl_XSTRTOL): Likewise.
69370
69371         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69372         AC_TYPE_LONG_LONG_INT.
69373         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69374         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69375         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69376         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69377
69378         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69379         on stdbool.
69380
69381         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69382         (gl_PREREQ_XSTRTOUL): Remove.
69383
69384         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69385
69386         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69387         mode.
69388
69389 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69390
69391         Add and change modules to make it easier for coreutils to use
69392         gnulib-tool.
69393         * modules/backupfile (Files): Remove m4/d-ino.m4.
69394         (Depends-on): Add d-ino.
69395         * modules/cycle-check (Depends-on): Add stdint.
69396         (lib_SOURCES): Add cycle-check.h.
69397         * modules/d-ino: New module.
69398         * modules/d-type: New module.
69399         * modules/error (Files): Remove m4/strerror_r.m4.
69400         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69401         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69402         m4/inttypes_h.m4, m4/uintmax_t.m4.
69403         (Depends-on): Add stdint.
69404         (lib_SOURCES): Add fsusage.h.
69405         * modules/getcwd (Files): Remove d-ino.m4.
69406         (Depends-on): Add d-ino.
69407         * modules/getndelim2 (Depends-on): Add stdint.
69408         * modules/glob (Files): Remove m4/d-type.m4.
69409         (Depends-on): Add d-type.
69410         * modules/host-os: New module.
69411         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69412         m4/inttypes_h.m4, m4/uintmax_t.m4.
69413         * Depends-on: Add stdint.
69414         (lib_SOURCES): Add human.h.
69415         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69416         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69417         m4/uintmax_t.m4, m4/ulonglong.m4.
69418         (Depends-on): Add stdint.
69419         (EXTRA_DIST): Add inttostr.h.
69420         * modules/lchmod: New module.
69421         * modules/link-follow: New module.
69422         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69423         (Depends-on): Add lchmod.
69424         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69425         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69426         (Depends-on): Add stdint.
69427         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69428         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69429         (Depends-on): Add stdint.
69430         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69431         * modules/perl: New module.
69432         * modules/regex (Depends-on): Add stdint.
69433         * modules/rmdir-errno: New module.
69434         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69435         m4/intmax_t.m4.
69436         (Depends-on): Add stdint.
69437         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69438         m4/uintmax_t.m4.
69439         (Depends-on): Add stdint.
69440         * modules/unlink-busy: New module.
69441         * modules/utimecmp (Depends-on): Add stdint.
69442         * modules/uptime: New module.
69443         * modules/winsz-ioctl: New module.
69444         * modules/winsz-termios: New module.
69445         * modules/xnanosleep (Depends-on): Add nanosleep.
69446         * modules/ullong_max: Remove.
69447         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69448         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69449         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69450         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69451         (Depends-on): Add inttypes.
69452         (lib_SOURCES): Add xstrtol.h.
69453         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69454         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69455         * MODULES.html.sh: Move 'assert' into the assert section.
69456         Move 'dummy' into the linking section.
69457         Remove ullong_max.
69458         Add section for compatibility checks for POSIX:2001 functions,
69459         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69460         winsz-ioctl, and winsz-termios into it.
69461         Add lchmod.
69462         Add top-level Misc section and put host-os, perl, and uptime
69463         into it.
69464
69465 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69466
69467         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69468         now assume the stdint module.  Do not include inttypes.h.
69469         * lib/fsusage.h: Likewise.
69470         * lib/getndelim2.c: Likewise.
69471         * lib/human.h: Likewise.
69472         * lib/inttostr.h: Likewise.
69473         * lib/obstack.c: Likewise.
69474         * lib/regex_internal.h: Likewise.
69475         * lib/tempname.c: Likewise.
69476         * lib/utimecmp.c: Likewise.
69477         * lib/xstrtol.h: Likewise.
69478
69479         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69480
69481         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69482         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69483         * lib/xtime.h: Likewise.
69484
69485 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69486
69487         * modules/openat (Files): Add lib/fchmodat.c.
69488         Fixes problem reported by Jay Youngman.
69489
69490 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69491
69492         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69493         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69494
69495 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69496             Bruno Haible  <bruno@clisp.org>
69497
69498         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69499         and is a script that invokes bison. Tighten the code. Add comments.
69500
69501 2006-08-18  Jim Meyering  <jim@meyering.net>
69502
69503         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69504         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69505         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69506         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69507
69508 2006-08-18  Bruno Haible  <bruno@clisp.org>
69509
69510         * modules/bison-i18n: New file.
69511         * MODULES.html.sh (Internationalization functions): Add it.
69512
69513 2006-08-18  Bruno Haible  <bruno@clisp.org>
69514
69515         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69516         sys/statvfs.h. When getmntinfo was found, check its declaration and
69517         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69518
69519 2006-08-18  Bruno Haible  <bruno@clisp.org>
69520
69521         * m4/bison-i18n.m4: New file, from bison.
69522
69523 2006-08-18  Bruno Haible  <bruno@clisp.org>
69524
69525         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69526         (ME_DUMMY): Treat "kernfs" as a dummy.
69527         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69528
69529 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69530
69531         Update from coreutils.
69532
69533         2006-08-15  Jim Meyering  <jim@meyering.net>
69534
69535         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69536
69537         2006-01-17  Jim Meyering  <jim@meyering.net>
69538
69539         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69540
69541         2006-01-11  Jim Meyering  <jim@meyering.net>
69542
69543         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69544         Check for the lchmod function.
69545
69546 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69547
69548         Update from coreutils.
69549
69550         * lib/__fpending.h: Add copyright notice.
69551         * lib/fprintftime.h: Likewise.
69552         * lib/savedir.c: Use (C) in copyright notice.
69553         * lib/savedir.h: Likewise.
69554
69555         2006-08-15  Jim Meyering  <jim@meyering.net>
69556
69557         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69558         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69559         in support of the EXPECTED_ERRNO macro.
69560         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69561         definitions.  Instead, define the appropriate symbols and include
69562         "at-func.c".
69563         * lib/mkdirat.c (mkdirat): Likewise.
69564         * lib/fchmodat.c (fchmodat): Likewise.
69565         (ENOSYS): Remove definition.
69566         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69567         it.  Don't include "unistd--.h" -- it wasn't ever used.
69568
69569         2006-01-17  Jim Meyering  <jim@meyering.net>
69570
69571         Rewrite fts.c not to change the current working directory,
69572         by using openat, fstatat, fdopendir, etc..
69573
69574         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69575         (HAVE_OPENAT_SUPPORT): Define.
69576         [_LIBC] (fchdir): Don't undef or define; no longer used.
69577         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69578         Now, this `function' always succeeds, and consumes its file descriptor
69579         parameter -- so callers must not close such FDs.  Update callers.
69580         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69581         (diropen): Add parameter, SP.  Adjust all callers.
69582         Implement using diropen_fd, rather than open.
69583         (fts_open): Initialize new member, fts_cwd_fd.
69584         Remove fts_rft-setting code.
69585         (fts_close): Close fts_cwd_fd, if necessary.
69586         (__opendir2): Define in terms of opendir or opendirat,
69587         depending on whether the FST_NOCHDIR flag is set.
69588         (fts_build): Since fts_safe_changedir consumes its FD, and since
69589         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69590         and close the dup'd file descriptor upon failure.
69591         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69592         (fts_safe_changedir): Tweak semantics to reflect that this function
69593         now calls cwd_advance_fd and hence consumes its FD argument.
69594         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69595         [struct FTS] (fts_rft): Remove now-unused member.
69596         [struct FTS] (fts_cycle.state): Improve comment.
69597
69598         * lib/openat.c (openat_needs_fchdir): New function.
69599         * lib/openat.h (openat_needs_fchdir): Declare it.
69600
69601 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69602
69603         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69604         Problem and fix reported by Pádraig Brady in
69605         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69606
69607 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69610
69611 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69612
69613         * lib/memcoll.c (memcoll): Optimize for the common case where the
69614         arguments are bytewise equal.
69615
69616 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69617
69618         * doc/regexprops-generic.texi: Add a copyright notice.
69619
69620 2006-08-15  Bruno Haible  <bruno@clisp.org>
69621
69622         * modules/tmpdir (License): Change to LGPL.
69623
69624 2006-08-15  Bruno Haible  <bruno@clisp.org>
69625
69626         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69627         module.
69628
69629 2006-08-14  Simon Josefsson  <jas@extundo.com>
69630
69631         * config/srclist.txt: Add gnupload.
69632
69633 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69634
69635         Change copyright notice from LGPL 2 to GPL 2, since that's the
69636         standard form used in the gnulib repository.
69637         * tests/test-lock.c: Likewise.
69638         * tests/test-stdint.c: Likewise.
69639         * tests/test-tls.c: Likewise.
69640
69641         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69642         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69643         Add copyright notice.
69644
69645         * check-module: Add copyright notice.  Output a copyright
69646         notice if "--version" is specified.
69647         * modules/COPYING: New file.
69648         * tests/test-getaddrinfo.c: Add copyright notice.
69649         * tests/test-verify.c: Likewise.
69650
69651 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69652
69653         Change copyright notice from LGPL 2 to GPL 2, since that's the
69654         standard form used in the gnulib repository.
69655         * lib/lock.c: LGPL -> GPL.
69656         * lib/lock.h: Likewise.
69657         * lib/strnlen1.c: Likewise.
69658         * lib/strnlen1.h: Likewise.
69659         * lib/tls.c: Likewise.
69660         * lib/tls.h: Likewise.
69661         * lib/tmpdir.c: Likewise.
69662
69663         * lib/TODO: Remove; this belongs only in coreutils.
69664
69665 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69666
69667         Add copyright notices to long-enough files that lack them, since
69668         otherwise the files aren't clearly free.  Use the same notice that
69669         getdate.texi already uses.
69670         * doc/alloca-opt.texi: Add copyright notice.
69671         * doc/alloca.texi: Likewise.
69672         * doc/ctime.texi: Likewise.
69673         * doc/functions.texi: Likewise.
69674         * doc/gcd.texi: Likewise.
69675         * doc/gnulib-tool.texi: Likewise.
69676         * doc/inet_ntoa.texi: Likewise.
69677         * doc/visibility.texi: Likewise.
69678
69679         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69680         * doc/quote.texi: Add copyright notice.
69681
69682         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69683         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69684         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69685         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69686         is now obsolete, and give a pointer to the Sun list.
69687         Add copyright notice.
69688
69689 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69690
69691         * config/srclistvars.sh: Add copyright notice.
69692
69693 2006-08-14  Eric Blake  <ebb9@byu.net>
69694
69695         Import the following change from libc:
69696
69697         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69698
69699         Upstream bug 2997.
69700         * lib/misc/error.c: Add space between program name and message if file
69701         name is missing.
69702
69703 2006-08-12  Karl Berry  <karl@gnu.org>
69704
69705         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69706         remove, these originate in gnulib now.
69707
69708 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69709
69710         * doc/Makefile (standards.info standards.html standards.dvi):
69711         Also depend on make-stds.texi.
69712
69713 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69714
69715         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69716         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69717
69718         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69719         in wchar_t.  Problem reported by Eric Blake.
69720
69721         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69722         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69723         Also, help the compiler to keep LEN in a register.
69724
69725 2006-08-11  Eric Blake  <ebb9@byu.net>
69726
69727         * users.txt: Sort.  Add tar.
69728
69729 2006-08-11  Bruno Haible  <bruno@clisp.org>
69730
69731         * users.txt: New file.
69732
69733 2006-08-11  Bruno Haible  <bruno@clisp.org>
69734
69735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69736         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69737
69738 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * modules/snprintf (Depends-on): Remove minmax.
69741         (Maintainer): Add self and Bruno.
69742
69743 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69744
69745         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69746         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69747         (EOVERFLOW): Define if the system does not.
69748         Do not include "minmax.h"; it wasn't used.
69749         (snprintf): Don't assume size_t promotes to an unsigned type.
69750         Fix bug when generated string was too long for the buffer: the
69751         buffer's contents are supposed to be the initial prefix of the
69752         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69753         exceeds INT_MAX; do the check ourselves.
69754
69755         Import the following changes from libc:
69756
69757         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69758
69759         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69760         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69761         set wc to the byte which couldn't be converted.
69762         (re_string_reconstruct): Don't clear valid_raw_len before calling
69763         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69764         tip_context using re_string_context_at.
69765
69766         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69767
69768         * lib/posix/regex.h: g++ still cannot handled [restrict].
69769
69770         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69771
69772         * lib/posix/regex.h: Remove special handling for VMS.
69773
69774 2006-08-10  Jim Meyering  <jim@meyering.net>
69775
69776         * modules/same-inode: New module.
69777         * modules/dev-ino: New module.
69778         * modules/cycle-check: Depend on these modules, rather than simply
69779         including their .h files.
69780         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69781         required via m4/cycle-check.m4.
69782         * modules/same: Depend on new same-inode module, rather than
69783         including same-inode.h.
69784         * modules/chdir-safer: New file.
69785
69786         * modules/chown (Depends-on): Add stat-macros.
69787
69788 2006-08-10  Jim Meyering  <jim@meyering.net>
69789
69790         * m4/cycle-check.m4: New file.
69791         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69792         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69793
69794 2006-08-10  Eric Blake  <ebb9@byu.net>
69795
69796         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69797         in from original proposal.
69798
69799 2006-08-10  Eric Blake  <ebb9@byu.net>
69800         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69801
69802         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69803         namespace.
69804
69805 2006-08-10  Bruno Haible  <bruno@clisp.org>
69806
69807         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69808         as well.
69809
69810 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69811
69812         Sync from coreutils.
69813
69814         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69815
69816         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69817         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69818
69819 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69820
69821         * modules/restrict: Remove; no longer needed now that we assume
69822         Autoconf 2.59 or later.
69823         * MODULES.html.sh: Remove 'restrict'.
69824         * modules/argp (Depends-on): Remove 'restrict'.
69825         * modules/base64 (Depends-on): Likewise.
69826         * modules/gc (Depends-on): Likewise.
69827         * modules/getaddrinfo (Depends-on): Likewise.
69828         * modules/glob (Depends-on): Likewise.
69829         * modules/inet_ntop (Depends-on): Likewise.
69830         * modules/inet_pton (Depends-on): Likewise.
69831         * modules/memxor (Depends-on): Likewise.
69832         * modules/regex (Depends-on): Likewise.
69833         * modules/strtok_r (Depends-on): Likewise.
69834         * modules/time_r (Depends-on): Likewise.
69835
69836 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69837
69838         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69839         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69840         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69841         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69842         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69843         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69844         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69845         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69846
69847         Merge from coreutils.
69848         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69849         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69850         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69851         * m4/time_r.m4 (gl_TIME_R): Likewise.
69852
69853 2006-08-09  Karl Berry  <karl@gnu.org>
69854
69855         * config/srclist.txt: no more gettext-tools, per Bruno.
69856
69857 2006-08-08  Eric Blake  <ebb9@byu.net>
69858
69859         * modules/verror: New module.
69860         * MODULES.html.sh: Document it.
69861
69862 2006-08-08  Eric Blake  <ebb9@byu.net>
69863
69864         * lib/verror.h, lib/verror.c: New files.
69865
69866 2006-08-08  Eric Blake  <ebb9@byu.net>
69867
69868         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69869         verror_at_line output complies with GNU Coding Standards even when
69870         file is NULL.
69871
69872 2006-08-07  Bruno Haible  <bruno@clisp.org>
69873
69874         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69875         versions of AIX.
69876         Reported by Ralf Wildenhues.
69877
69878 2006-08-07  Bruno Haible  <bruno@clisp.org>
69879
69880         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69881         in an AC_DEFUN. Needed so that the autoconf snippets can use
69882         AC_REQUIRE.
69883
69884 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69885
69886         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69887         Initialize pkgdata_DATA.
69888         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69889         overriding it.
69890
69891 2006-08-06  Eric Blake  <ebb9@byu.net>
69892
69893         * lib/error.h: Fold in some upstream changes from glibc.
69894         * lib/error.c: Likewise.
69895
69896 2006-08-04  Bruno Haible  <bruno@clisp.org>
69897
69898         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69899         Make the mostlyclean-local rule depend on mostlyclean-generic.
69900         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69901
69902 2006-07-31  Bruno Haible  <bruno@clisp.org>
69903
69904         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69905         <stdlib.h>, <string.h>.
69906
69907 2006-07-30  Bruno Haible  <bruno@clisp.org>
69908
69909         * modules/readlink (License): Change to LGPL.
69910
69911 2006-07-30  Bruno Haible  <bruno@clisp.org>
69912
69913         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69914         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69915         set PKGDATADIR to point to it.
69916
69917 2006-07-30  Bruno Haible  <bruno@clisp.org>
69918
69919         * modules/csharpexec (configure.ac): Comment out macro invocation.
69920         * modules/javaexec (configure.ac): Likewise.
69921         * modules/javacomp-script (configure.ac): Likewise.
69922
69923         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69924
69925 2006-07-30  Bruno Haible  <bruno@clisp.org>
69926
69927         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69928         linked-list.
69929
69930 2006-07-30  Bruno Haible  <bruno@clisp.org>
69931
69932         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69933
69934 2006-07-30  Bruno Haible  <bruno@clisp.org>
69935
69936         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69937         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69938         get removed.
69939
69940 2006-07-29  Bruno Haible  <bruno@clisp.org>
69941
69942         Make it possible for gnulib-tool to work with locally modified or
69943         augmented gnulib repositories.
69944         * gnulib-tool (func_usage): Document --local-dir option.
69945         (local_gnulib_dir): New variable.
69946         Handle --local-dir option.
69947         (func_lookup_file): New function.
69948         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69949         (func_get_description, func_get_filelist, func_get_description,
69950         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69951         func_get_automake_snippet, func_get_include_directive,
69952         func_get_license, func_get_maintainer): Use func_lookup_file.
69953         (func_import, func_create_testdir): Use func_lookup_file.
69954
69955 2006-07-29  Bruno Haible  <bruno@clisp.org>
69956
69957         * modules/setenv (Depends-on): Add unistd.
69958
69959 2006-07-29  Bruno Haible  <bruno@clisp.org>
69960
69961         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69962
69963 2006-07-29  Bruno Haible  <bruno@clisp.org>
69964
69965         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69966
69967 2006-07-29  Bruno Haible  <bruno@clisp.org>
69968
69969         * gnulib-tool (import, update): If there is no Makefile.am, look at
69970         aclocal.m4, instead of bailing out.
69971
69972 2006-07-29  Bruno Haible  <bruno@clisp.org>
69973
69974         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69975         Categorize the options by when they are useful.
69976
69977 2006-07-29  Bruno Haible  <bruno@clisp.org>
69978
69979         * gnulib-tool (func_usage): Document option --no-libtool.
69980         Handle option --no-libtool.
69981         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69982         for changed semantics of $libtool variable.
69983         (func_import): Likewise. If libtool is not used, show this through
69984         an option --no-libtool.
69985         (func_create_testdir): Update.
69986
69987 2006-07-29  Bruno Haible  <bruno@clisp.org>
69988
69989         * gnulib-tool (func_import): Extend error message about missing
69990         --doc-base.
69991
69992 2006-07-29  Bruno Haible  <bruno@clisp.org>
69993
69994         * gnulib-tool (func_import): Don't create the $docbase directory if
69995         there is no file to store there.
69996
69997 2006-07-29  Bruno Haible  <bruno@clisp.org>
69998
69999         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70000         relevant, look for configure.ac there, not in the current directory.
70001         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70002
70003 2006-07-29  Bruno Haible  <bruno@clisp.org>
70004
70005         * gnulib-tool (SORT): New variable.
70006         (func_usage): Undocument --assume-autoconf option.
70007         Remove --assume-autoconf option handling.
70008         (autoconf_minversion): Determine from the contents of configure.ac.
70009         (func_import): Remove autoconf_minversion handling.
70010         Suggested by Eric Blake.
70011
70012 2006-07-29  Bruno Haible  <bruno@clisp.org>
70013
70014         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70015
70016 2006-07-29  Bruno Haible  <bruno@clisp.org>
70017
70018         * config/srclist.txt (*setenv.[ch]): Remove rules.
70019
70020 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70021
70022         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70023
70024 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70025
70026         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70027         arpa/inet.h.
70028
70029 2006-07-28  Simon Josefsson  <jas@extundo.com>
70030
70031         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70032         * modules/inet_pton (Depends-on): Likewise.
70033
70034 2006-07-28  Simon Josefsson  <jas@extundo.com>
70035
70036         * m4/netinet_in_h.m4: New file.
70037
70038 2006-07-28  Simon Josefsson  <jas@extundo.com>
70039
70040         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70041         #include's.
70042
70043 2006-07-28  Simon Josefsson  <jas@extundo.com>
70044
70045         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70046         #include's.
70047
70048 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70051         setgid on directories only if they set these bits.
70052         * lib/modechange.h: Remove obsolete comment about masks.
70053
70054 2006-07-28  Eric Blake  <ebb9@byu.net>
70055
70056         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70057         macro expansion.
70058
70059 2006-07-28  Bruno Haible  <bruno@clisp.org>
70060
70061         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70062
70063 2006-07-28  Bruno Haible  <bruno@clisp.org>
70064
70065         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70066
70067 2006-07-28  Bruno Haible  <bruno@clisp.org>
70068
70069         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70070         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70071         Define fallbacks.
70072         Avoids link error on FreeBSD 4.x.
70073         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70074
70075         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70076         encoding.
70077         * lib/mbswidth.c (iswcntrl): Likewise.
70078
70079 2006-07-27  Bruno Haible  <bruno@clisp.org>
70080
70081         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70082         test.
70083
70084 2006-07-27  Bruno Haible  <bruno@clisp.org>
70085
70086         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70087         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70088         defined.
70089
70090 2006-07-26  Eric Blake  <ebb9@byu.net>
70091
70092         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70093
70094 2006-07-26  Eric Blake  <ebb9@byu.net>
70095
70096         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70097         like mingw that lack mkstemp.
70098         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70099         avoid compilation warning on mingw.
70100
70101 2006-07-26  Bruno Haible  <bruno@clisp.org>
70102
70103         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70104         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70105         INT_FAST*_MIN, INTPTR_MIN.
70106
70107 2006-07-25  Bruno Haible  <bruno@clisp.org>
70108
70109         * modules/version-etc (Depends-on): Add stdarg.
70110
70111 2006-07-25  Bruno Haible  <bruno@clisp.org>
70112
70113         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70114         complex commands.
70115
70116 2006-07-25  Bruno Haible  <bruno@clisp.org>
70117
70118         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70119         defined in <stdarg.h> or config.h.
70120
70121 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70122
70123         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70124         (gl_STDIO_SAFER): Remove.
70125
70126 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70127
70128         * MODULES.html.sh (File stream based Input/Output):
70129         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70130         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70131         * modules/fopen-safer, modules/tmpfile-safer: New files.
70132         * modules/stdio-safer: Remove.
70133
70134 2006-07-24  Bruno Haible  <bruno@clisp.org>
70135
70136         * modules/tmpdir: New file.
70137         * MODULES.html.sh (File system functions): Add it.
70138
70139 2006-07-24  Bruno Haible  <bruno@clisp.org>
70140
70141         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70142         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70143
70144 2006-07-24  Bruno Haible  <bruno@clisp.org>
70145
70146         * modules/clean-temp: New file.
70147
70148 2006-07-24  Bruno Haible  <bruno@clisp.org>
70149
70150         * m4/tmpdir.m4: New file, from GNU gettext.
70151
70152 2006-07-24  Bruno Haible  <bruno@clisp.org>
70153
70154         * lib/tmpdir.h: New file, from GNU gettext.
70155         * lib/tmpdir.c: New file, from GNU gettext.
70156
70157 2006-07-24  Bruno Haible  <bruno@clisp.org>
70158
70159         * lib/clean-temp.h: New file, from GNU gettext.
70160         * lib/clean-temp.c: New file, from GNU gettext.
70161
70162 2006-07-23  Eric Blake  <ebb9@byu.net>
70163
70164         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70165         (Depends-on): Add binary-io.
70166
70167 2006-07-23  Eric Blake  <ebb9@byu.net>
70168
70169         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70170
70171 2006-07-23  Eric Blake  <ebb9@byu.net>
70172
70173         * lib/tmpfile-safer.c: New file.
70174         * lib/stdio-safer.h (fopen_safer): Add prototype.
70175         * lib/stdio--.h (tmpfile): Make safer.
70176
70177 2006-07-23  Bruno Haible  <bruno@clisp.org>
70178
70179         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70180         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70181         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70182         gl_linked_remove_at): Use it.
70183
70184 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70185         and Simon Josefsson <jas@extundo.com>
70186
70187         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70188
70189         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70190
70191 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70192
70193         * modules/close-stream: New file.
70194         * modules/closeout (Description): Make it clear that it exits
70195         with a diagnostic on error.
70196         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70197         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70198
70199 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70200
70201         * m4/close-stream.m4: New file.
70202
70203 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70204
70205         * lib/close-stream.c, lib/close-stream.h: New files.
70206
70207 2006-07-22  Bruno Haible  <bruno@clisp.org>
70208
70209         Merge from GNU gettext 0.15.
70210
70211         2006-05-01  Bruno Haible  <bruno@clisp.org>
70212
70213                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70214
70215         2006-07-22  Bruno Haible  <bruno@clisp.org>
70216
70217                 * modules/javaversion: New file.
70218                 * MODULES.html.sh (Java): Add javaversion.
70219
70220         2006-03-12  Bruno Haible  <bruno@clisp.org>
70221
70222                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70223
70224         2005-12-04  Bruno Haible  <bruno@clisp.org>
70225
70226                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70227                 (untested).
70228
70229         2006-06-21  Bruno Haible  <bruno@clisp.org>
70230
70231                 Avoid warnings from recent versions of mcs.
70232                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70233                 -o, -L, -r any more. Use options documented since mcs-1.0
70234                 instead. Similarly for -g.
70235
70236         2005-12-04  Bruno Haible  <bruno@clisp.org>
70237
70238                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70239                 .resources, not .resource.
70240
70241         2005-07-09  Bruno Haible  <bruno@clisp.org>
70242
70243                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70244                 add a .dll suffix.
70245                 Reported by Mark Junker <mjscod@gmx.de>.
70246
70247         2006-07-22  Bruno Haible  <bruno@clisp.org>
70248
70249                 * modules/gettext: Upgrade to gettext-0.15.
70250                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70251                 m4/visibility.m4.
70252                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70253
70254 2006-07-22  Bruno Haible  <bruno@clisp.org>
70255
70256         Merge from GNU gettext 0.15.
70257
70258         2006-03-25  Bruno Haible  <bruno@clisp.org>
70259
70260                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70261
70262         2006-07-21  Bruno Haible  <bruno@clisp.org>
70263
70264                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70265                 "1.1".
70266
70267         2006-05-09  Bruno Haible  <bruno@clisp.org>
70268
70269                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70270                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70271                 for the conftestver execution.
70272
70273         2006-05-01  Bruno Haible  <bruno@clisp.org>
70274
70275                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70276                 optional target-version argument. Verify that the compiler
70277                 groks source of the specified source-version, or add -source
70278                 option as necessary. Verify that the compiler produces
70279                 bytecode in the specified target-version, or add -target and
70280                 -source options as necessary. Make the result of the test
70281                 available as variable CONF_JAVAC. Also log error output in
70282                 config.log.
70283
70284         2006-03-11  Bruno Haible  <bruno@clisp.org>
70285
70286                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70287
70288         2006-05-09  Bruno Haible  <bruno@clisp.org>
70289
70290                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70291                 CLASSPATH_SEPARATOR to a semicolon.
70292
70293         2006-03-12  Bruno Haible  <bruno@clisp.org>
70294
70295                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70296                 available as variable CONF_JAVA, for subsequent autoconf
70297                 tests. Also log error output in config.log.
70298
70299         2006-07-19  Bruno Haible  <bruno@clisp.org>
70300
70301                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70302                 that getline works on glibc2 systems. Needed to avoid trouble
70303                 in relocatable.c.
70304                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70305
70306         2005-12-04  Bruno Haible  <bruno@clisp.org>
70307
70308                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70309                 launcher (untested).
70310
70311         2005-12-04  Bruno Haible  <bruno@clisp.org>
70312
70313                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70314
70315         2006-07-22  Bruno Haible  <bruno@clisp.org>
70316
70317                 * gettext.m4: Update from GNU gettext-0.15.
70318                 * nls.m4: Likewise.
70319                 * po.m4: Likewise.
70320                 * inttypes-pri.m4: Likewise.
70321                 * inttypes-h.m4: Renamed from inttypes.m4.
70322                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70323
70324 2006-07-22  Bruno Haible  <bruno@clisp.org>
70325
70326         Merge from GNU gettext 0.15.
70327
70328         2005-07-05  Bruno Haible  <bruno@clisp.org>
70329
70330                 * printf-args.c (printf_fetchargs): Work around broken
70331                 definition of wint_t on mingw.
70332
70333         2005-02-12  Bruno Haible  <bruno@clisp.org>
70334
70335                 * xallocsa.h: Add extern "C" for C++.
70336
70337         2006-05-17  Bruno Haible  <bruno@clisp.org>
70338
70339                 Cygwin portability.
70340                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70341
70342         2006-04-30  Bruno Haible  <bruno@clisp.org>
70343
70344                 * progreloc.c: Include <mach-o/dyld.h> if available.
70345                 (find_executable): Use _NSGetExecutablePath when possible.
70346
70347         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70348
70349                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70350                 function.
70351
70352         2005-12-29  Bruno Haible  <bruno@clisp.org>
70353
70354                 * progreloc.c (set_program_name_and_installdir): Fix
70355                 compilation error.
70356
70357         2005-12-04  Bruno Haible  <bruno@clisp.org>
70358
70359                 Cygwin portability.
70360                 * progreloc.c: Include <windows.h> also on Cygwin.
70361                 (find_executable): Add support for Cygwin.
70362                 (set_program_name_and_installdir): Handle also platforms with
70363                 nonempty EXEEXT.
70364
70365         2006-07-11  Bruno Haible  <bruno@clisp.org>
70366
70367                 * javacomp.c: Fix a comment.
70368                 Reported by Jim Meyering.
70369
70370         2006-04-30  Bruno Haible  <bruno@clisp.org>
70371
70372                 * javacomp.h (compile_java_class): Add source_version,
70373                 target_version arguments.
70374                 * javacomp.c: Rewritten to choose only a compiler that
70375                 respects the specified source_version and target_version.
70376
70377         2006-06-27  Bruno Haible  <bruno@clisp.org>
70378
70379                 Assume correct S_ISDIR macro.
70380                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70381
70382         2006-07-22  Bruno Haible  <bruno@clisp.org>
70383
70384                 * javaversion.h: New file, from GNU gettext.
70385                 * javaversion.c: New file, from GNU gettext.
70386                 * javaversion.java: New file, from GNU gettext.
70387                 * javaversion.class: New file, from GNU gettext.
70388
70389         2006-05-17  Bruno Haible  <bruno@clisp.org>
70390
70391                 Cygwin portability.
70392                 * javaexec.c (execute_java_class): Test for jview program
70393                 also on Cygwin.
70394
70395         2006-04-09  Bruno Haible  <bruno@clisp.org>
70396
70397                 * fatal-signal.c: Don't include string.h.
70398                 (at_fatal_signal): Use a copying loop instead of memcpy.
70399
70400         2005-12-04  Bruno Haible  <bruno@clisp.org>
70401
70402                 * csharpexec.c: Add support for 'clix' launcher (untested).
70403                 (execute_csharp_using_sscli): New function.
70404                 (execute_csharp_program): Call it.
70405
70406         2006-06-21  Bruno Haible  <bruno@clisp.org>
70407
70408                 Avoid warnings from recent versions of mcs.
70409                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70410                 -o, -L, -r any more. Use options documented since mcs-1.0
70411                 instead. Similarly for -g.
70412
70413         2005-07-09  Bruno Haible  <bruno@clisp.org>
70414
70415                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70416                 add a .dll suffix.
70417                 Reported by Mark Junker <mjscod@gmx.de>.
70418
70419         2006-06-17  Bruno Haible  <bruno@clisp.org>
70420
70421                 * config.charset: Update for NetBSD 3.0.
70422
70423         2006-05-17  Bruno Haible  <bruno@clisp.org>
70424
70425                 Cygwin portability.
70426                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70427
70428         2006-05-16  Bruno Haible  <bruno@clisp.org>
70429
70430                 * localcharset.c [CYGWIN]: Include <windows.h>.
70431                 (get_charset_aliases): For Cygwin, return the same CPxxx
70432                 aliases list as under WIN32.
70433                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70434                 the environment variables. Fall back to GetACP().
70435
70436         2006-04-05  Bruno Haible  <bruno@clisp.org>
70437
70438                 * config.charset: Update Juan Manuel Guerrero's address.
70439
70440         2005-02-12  Bruno Haible  <bruno@clisp.org>
70441
70442                 * allocsa.h: Add extern "C" for C++.
70443
70444         2005-02-10  Bruno Haible  <bruno@clisp.org>
70445
70446                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70447                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70448
70449         2006-07-22  Bruno Haible  <bruno@clisp.org>
70450
70451                 * gettext.h: Update to GNU gettext-0.15.
70452
70453 2006-07-22  Bruno Haible  <bruno@clisp.org>
70454
70455         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70456         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70457         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70458
70459 2006-07-21  Eric Blake  <ebb9@byu.net>
70460
70461         * modules/stdlib-safer: New file.
70462         * MODULES.html.sh (File stream based Input/Output): Add
70463         stdlib-safer.
70464
70465 2006-07-21  Eric Blake  <ebb9@byu.net>
70466
70467         * lib/stdlib-safer.h: New file from coreutils, required by
70468         stdlib--.h.
70469
70470 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70471
70472         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70473
70474 2006-07-20  Bruno Haible  <bruno@clisp.org>
70475
70476         * gnulib-tool: Recognize new option --assume-autoconf.
70477         (autoconf_minversion): New variable.
70478         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70479
70480 2006-07-20  Bruno Haible  <bruno@clisp.org>
70481
70482         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70483
70484 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70485
70486         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70487         Reindent and repaginate.
70488
70489 2006-07-19  Derek Price  <derek@ximbiot.com>
70490
70491         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70492         Correct grammar.
70493
70494 2006-07-17  Bruno Haible  <bruno@clisp.org>
70495
70496         * modules/list: New file.
70497         * modules/array-list: New file.
70498         * modules/carray-list, modules/carray-list-tests: New files.
70499         * modules/linked-list, modules/linked-list-tests: New files.
70500         * modules/avltree-list, modules/avltree-list-tests: New files.
70501         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70502         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70503         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70504         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70505         * modules/oset: New file.
70506         * modules/array-oset: New file.
70507         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70508         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70509         * tests/test-carray_list.c: New file.
70510         * tests/test-linked_list.c: New file.
70511         * tests/test-avltree_list.c: New file.
70512         * tests/test-rbtree_list.c: New file.
70513         * tests/test-linkedhash_list.c: New file.
70514         * tests/test-avltreehash_list.c: New file.
70515         * tests/test-rbtreehash_list.c: New file.
70516         * tests/test-avltree_oset.c: New file.
70517         * tests/test-rbtree_oset.c: New file.
70518         * MODULES.html.sh (Container data structures): New section.
70519
70520 2006-07-17  Bruno Haible  <bruno@clisp.org>
70521
70522         * m4/gl_list.m4: New file.
70523
70524 2006-07-17  Bruno Haible  <bruno@clisp.org>
70525
70526         * lib/gl_list.h: New file.
70527         * lib/gl_list.c: New file.
70528         * lib/gl_array_list.h: New file.
70529         * lib/gl_array_list.c: New file.
70530         * lib/gl_carray_list.h: New file.
70531         * lib/gl_carray_list.c: New file.
70532         * lib/gl_linked_list.h: New file.
70533         * lib/gl_linked_list.c: New file.
70534         * lib/gl_anylinked_list1.h: New file.
70535         * lib/gl_anylinked_list2.h: New file.
70536         * lib/gl_avltree_list.h: New file.
70537         * lib/gl_avltree_list.c: New file.
70538         * lib/gl_anyavltree_list1.h: New file.
70539         * lib/gl_anyavltree_list2.h: New file.
70540         * lib/gl_rbtree_list.h: New file.
70541         * lib/gl_rbtree_list.c: New file.
70542         * lib/gl_anyrbtree_list1.h: New file.
70543         * lib/gl_anyrbtree_list2.h: New file.
70544         * lib/gl_anytree_list1.h: New file.
70545         * lib/gl_anytree_list2.h: New file.
70546         * lib/gl_linkedhash_list.h: New file.
70547         * lib/gl_linkedhash_list.c: New file.
70548         * lib/gl_anyhash_list1.h: New file.
70549         * lib/gl_anyhash_list2.h: New file.
70550         * lib/gl_avltreehash_list.h: New file.
70551         * lib/gl_avltreehash_list.c: New file.
70552         * lib/gl_rbtreehash_list.h: New file.
70553         * lib/gl_rbtreehash_list.c: New file.
70554         * lib/gl_anytreehash_list1.h: New file.
70555         * lib/gl_anytreehash_list2.h: New file.
70556
70557         * lib/gl_oset.h: New file.
70558         * lib/gl_oset.c: New file.
70559         * lib/gl_array_oset.h: New file.
70560         * lib/gl_array_oset.c: New file.
70561         * lib/gl_avltree_oset.h: New file.
70562         * lib/gl_avltree_oset.c: New file.
70563         * lib/gl_rbtree_oset.h: New file.
70564         * lib/gl_rbtree_oset.c: New file.
70565         * lib/gl_anytree_oset.h: New file.
70566
70567 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70568
70569         * m4/mkancesdirs.m4: New file.
70570         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70571         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70572         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70573         it.
70574
70575 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70576
70577         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70578         * lib/mkancesdirs.h: New files.
70579         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70580         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70581         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70582         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70583         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70584         callers changed.  Revamp internals significantly, by not
70585         attempting to create directories that are temporarily more
70586         permissive than the final results.  Do not attempt to use
70587         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70588         This removes some race conditions, fixes some bugs, and simplifies
70589         things.  Use new dirchownmod function to do owner and mode changes.
70590         * lib/mkdir-p.h: Likewise.
70591         * lib/modechange.c (octal_to_mode): New function.
70592         (struct mode_change): New member mentioned.
70593         (make_node_op_equals): New arg mentioned.  All callers changed.
70594         (mode_compile): Keep track of which mode bits the user has explicitly
70595         mentioned.
70596         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70597         New arg PMODE_BITS, to keep track of which mode bits the user
70598         mentioned; it treats S_ISUID and S_ISGID speciall.
70599         All callers changed.
70600         * lib/modechange.h: Likewise.
70601
70602 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70603
70604         * MODULES.html.sh: Add mkancestors.
70605         * modules/mkancesdirs: New module.
70606         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70607         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70608         The chdir-safer and afs files are now orphans; I'll remove them
70609         unless someone speaks up.
70610         Add lib/dirchownmod.c, lib/dirchownmod.h.
70611         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70612         Add lchown, mkancesdirs.
70613         (Maintainer): Add self.
70614
70615 2006-07-15  Karl Berry  <karl@gnu.org>
70616
70617         * gnulib-tool: help message wording/arrangement.
70618
70619 2006-07-14  Simon Josefsson  <jas@extundo.com>
70620
70621         * doc/gnulib.texi (Libtool and Windows): New section.
70622
70623 2006-07-12  Simon Josefsson  <jas@extundo.com>
70624
70625         * modules/gendocs (License): Fix license, approved by Karl.
70626
70627 2006-07-12  Eric Blake  <ebb9@byu.net>
70628
70629         * MODULES.html.sh: Add gendocs.
70630
70631 2006-07-11  Eric Blake  <ebb9@byu.net>
70632
70633         * modules/fdl: New module, to install doc/fdl.texi.
70634         * MODULES.html.sh: Add new section for documentation modules.
70635         * gnulib-tool: Avoid space-tab.
70636         (--doc-base): New option, to manage files from doc.
70637
70638 2006-07-11  Eric Blake  <ebb9@byu.net>
70639
70640         * m4/absolute-header.m4: Fix comments to match recent change.
70641
70642 2006-07-11  Eric Blake  <ebb9@byu.net>
70643
70644         * gnulib-tool: List --doc-base before --tests-base.
70645
70646 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70647
70648         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70649
70650 2006-07-11  Bruno Haible  <bruno@clisp.org>
70651
70652         * README: Mention where to put documentation.
70653
70654 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70655
70656         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70657
70658 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70659
70660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70661         to stdint.m4.
70662
70663 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70666         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70667         "no/such/file/stdint.h" when there is no such file, so that
70668         the resulting C code can be parsed by dodgy compilers.
70669         Problems reported by Bob Proulx.
70670
70671 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70672
70673         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70674         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70675         macros into the GNU _D_EXACT_NAMLEN.
70676         * lib/savedir.c:  Likewise.
70677         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70678
70679 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70680         and Paul Eggert  <eggert@cs.ucla.edu>
70681
70682         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70683         * m4/savedir.m4:
70684         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70685         macros into the GNU _D_EXACT_NAMLEN.
70686
70687 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70688
70689         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70690         around the absolute name, to work around a problem with the HP-UX
70691         11.23 native C compiler, reported by Bob Proulx.
70692
70693 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70694
70695         * doc/maintain.texi, make-stds.texi: Sync from
70696         <http://savannah.gnu.org/projects/gnustandards>.
70697
70698 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70699
70700         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70701
70702 2006-07-09  Jim Meyering  <jim@meyering.net>
70703
70704         * m4/glob.m4: Remove a doubled word in a comment.
70705
70706 2006-07-09  Jim Meyering  <jim@meyering.net>
70707
70708         * lib/argp-pv.c: Remove a doubled word in a comment.
70709         * lib/check-version.c (check_version): Likewise.
70710         * lib/javacomp.c (compile_java_class): Likewise.
70711
70712 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70713
70714         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70715         for the benefit of people using Autoconf 2.60.  If you want to
70716         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70717         (or m4/onceonly.m4, if pre-2.57) manually.
70718
70719 2006-07-08  Jim Meyering  <jim@meyering.net>
70720
70721         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70722         comment.
70723         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70724         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70725         comment.
70726
70727 2006-07-08  Jim Meyering  <jim@meyering.net>
70728
70729         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70730
70731 2006-07-07  Simon Josefsson  <jas@extundo.com>
70732
70733         * tests/test-crc.c: Change expected crc value, the test vector
70734         were probably computed using the old broken crc.c?
70735
70736 2006-07-06  Simon Josefsson  <jas@extundo.com>
70737
70738         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70739         now the canonical place for the M4 file).
70740
70741         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70742         from the sys_socket dependency now.
70743
70744         * modules/inet_pton (Files): Ditto.
70745
70746         * modules/inet_ntop (Files): Ditto.
70747
70748 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70749
70750         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70751         not gl_PREREQ_GETUSERSHELL.
70752
70753 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70754
70755         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70756         with only one argument, for Autoconf 2.60.
70757         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70758         expand to nothing, so add a shell command to avoid syntax error.
70759         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70760
70761 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70762
70763         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70764
70765 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70766
70767         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70768         no longer needed.  Check for isblank decl.
70769         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70770         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70771         of existence.
70772
70773 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70774
70775         * lib/getloadavg.c: Use __VMS, not VMS.
70776         * lib/getopt.c: Likewise.
70777         * lib/getpagesize.h: Likewise.
70778         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70779         and probably does not work.
70780
70781 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70782
70783         * lib/.cppi-disable: Add wcwidth.
70784         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70785         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70786         (ISGRAPH): Remove.  All uses changed to isgraph.
70787         (FOLD) [!defined _LIBC]: Remove special case.
70788         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70789         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70790         HAVE_ISBLANK.
70791         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70792         case.
70793
70794 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70795
70796         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70797         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70798         brackets.  Other minor changes to suppress some compiler
70799         warnings.
70800
70801 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70802         and Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70805         of invoking obsolescent AC_HEADER_DIRENT macro.
70806         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70807         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70808         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70809         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70810         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70811         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70812         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70813         * m4/readdir.m4: Remove; no longer needed.
70814
70815 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70816         and Paul Eggert  <eggert@cs.ucla.edu>
70817
70818         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70819         Don't worry about this obsolete case any more.
70820         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70821         directories.
70822         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70823         worry about this obsolete case any more.
70824         * lib/fts.c: Likewise.
70825         * lib/getcwd.c: Likewise.
70826         * lib/glob.h: Likewise.
70827         * lib/savedir.c: Likewise.
70828
70829 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70830
70831         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70832         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70833         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70834         needed.
70835         All uses removed.
70836         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70837         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70838         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70839         needed.
70840         * m4/getdate.m4 (gl_GETDATE): Likewise.
70841         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70842         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70843         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70844         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70845         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70846         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70847         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70848         needed.
70849
70850 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70851
70852         * lib/memcasecmp.c: Include <limits.h>.
70853         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70854         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70855         Don't assume isdigit succeeds only on '0' through '9'.
70856
70857 2006-07-05  Eric Blake  <ebb9@byu.net>
70858
70859         * modules/getaddrinfo (Depends-on): Add snprintf.
70860
70861 2006-07-05  Eric Blake  <ebb9@byu.net>
70862
70863         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70864         to avoid 'header present but could not be compiled' on cygwin.
70865
70866 2006-07-05  Eric Blake  <ebb9@byu.net>
70867
70868         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70869         missing from netdb.h.
70870         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70871
70872 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70873
70874         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70875         no longer needed.
70876         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70877         * m4/getdate.m4 (gl_GETDATE): Likewise.
70878         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70879         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70880         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70881         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70882         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70883
70884 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70885
70886         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70887         All uses of is_space replaced by isspace.
70888         * lib/exit.h: Don't talk about STDC_HEADERS.
70889         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70890         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70891         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70892         replaced by isprint etc.
70893         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70894         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70895         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70896         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70897         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70898         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70899
70900 2006-07-05  Bruno Haible  <bruno@clisp.org>
70901
70902         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70903         the function exists, before testing against AIX.
70904         Reported by Martin Lambers <marlam@marlam.de>.
70905
70906 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70907
70908         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70909         From Mark D. Baushke.
70910
70911 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70912
70913         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70914         to the absolute name, not just one, to bypass Sun C 5.8's
70915         "warning: #include of /usr/include/... may be non-portable".
70916
70917 2006-07-04  Eric Blake  <ebb9@byu.net>
70918
70919         * modules/dirname-tests: New test module.
70920         * tests/test-dirname.c: New file, replacing dirname.c
70921         TEST_DIRNAME section that was recently deleted.
70922
70923 2006-07-04  Bruno Haible  <bruno@clisp.org>
70924
70925         Assume ANSI C header files and <ctype.h> functions.
70926         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70927         (mbsnwidth): Use isprint, iscntrl instead.
70928
70929 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70930
70931         Merge from coreutils.
70932         * MODULES.html.sh: Add xstrtold.
70933         * modules/xstrtold: New file.
70934         * modules/cycle-check (Files): Add lib/same-inode.h.
70935         * modules/dirname (Files): Add m4/double-slash-root.m4.
70936         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70937         * modules/mkdir-p (Files): Add lib/same-inode.h.
70938         * modules/same (Files): Add lib/same-inode.h.
70939
70940 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70941
70942         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70943         This is to keep the terminology clean; POSIX talks about
70944         "absolute pathnames", not "full pathnames", but the GNU
70945         Coding Standards say to use "path" for something else;
70946         so use "absolute" to keep both sides happy.
70947         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70948         Set gl_absolute_header, not gl_full_header_path.
70949         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70950         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70951         All uses changed.
70952
70953         Merge from coreutils.
70954
70955         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70958         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70959         want to require the building of c-strtod.o.
70960         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70961         needs -lm directly.
70962         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70963
70964         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70965
70966         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70967         --as-needed option if available.  Problem reported by Albert Chin in
70968         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70969         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70970         cc merely issues a bunch of annoying warnings for --as-needed
70971         (this problem was reported by Bob Proulx).  Also, try linking with
70972         -lm to detect a bug in binutils 2.16 (this problem was reported
70973         by Ralf Wildenhues).
70974
70975         2006-06-18  Jim Meyering  <jim@meyering.net>
70976
70977         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70978         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70979         macro.
70980         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70981         also check for glibc-2.4's abort-inducing bug.
70982
70983         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70984         Low-probability clean-up should be to use rmdir to get rid of
70985         the just-created directory, not unlink.
70986
70987         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70988         configure fail, and request a bug report to inform us about it.
70989         Add a comment that, barring reports to the contrary, in 2007 we'll
70990         assume ftruncate is universally available.
70991
70992         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70993
70994         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70995
70996         2006-03-12  Jim Meyering  <jim@meyering.net>
70997
70998         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70999         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71000         * m4/same.m4 (gl_SAME): Likewise.
71001         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71002
71003         2006-03-11  Eric Blake  <ebb9@byu.net>
71004
71005         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71006         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71007         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71008         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71009
71010 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71011
71012         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71013         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71014         reported by Mark D. Baushke, one in
71015         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71016
71017         Merge from coreutils.
71018
71019         * lib/.cppi-disable: Add stdint_.h.
71020         * lib/.cvsignore: Add stdint.h.
71021
71022         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71023
71024         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71025         both double and long double versions.
71026         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71027         * lib/xstrtold.c: New file.
71028         * lib/xstrtod.h (xstrtold): New decl.
71029
71030         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71031
71032         * lib/filemode.c (setst): Remove.
71033         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71034         (arguably) clearer, and the generated code is a bit smaller on my
71035         Debian GNU/Linux stable x86 host.
71036
71037         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71038
71039         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71040         Assume that filemode.h includes sys/types.h and sys/stat.h.
71041         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71042         (ftypelet): Reorder to put common cases first, for efficiency.
71043         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71044         to do 'M'.
71045         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71046         of 10, for compatibility with FreeBSD.  All callers changed.
71047         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71048         types that can't be deduced solely from st_mode.  First arg is now a
71049         const pointer.
71050         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71051         (strmode): Renamed from mode_string.
71052         (filemodestring): New decl.
71053         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71054         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71055         needed.
71056         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71057
71058         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71059
71060         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71061         fsusage.h now does that.  Include fsusage.h first, to test interface.
71062         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71063         at most one method (the old code could have generated decls that
71064         didn't conform to C89, not that this was ever exercised).
71065         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71066
71067         2006-03-19  Jim Meyering  <jim@meyering.net>
71068
71069         Work even in a chroot where d_ino values for entries in "/"
71070         don't match the stat.st_ino values for the same names.
71071         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71072         number, iterate through all entries again, using lstat instead.
71073         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71074         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71075
71076         * lib/getcwd.c (__getcwd): Clarify a comment.
71077         Use memcpy in place of a call to strcpy.
71078
71079         2006-03-12  Jim Meyering  <jim@meyering.net>
71080
71081         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71082         matches that of the current directory (which we're about to chdir ".."
71083         out of), then save the dev-ino of the parent, instead.
71084
71085         * lib/same-inode.h (SAME_INODE): New file/macro.
71086         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71087         Include "same-inode.h", instead.
71088         * lib/same.c: Likewise.
71089         * lib/cycle-check.h: Include "same-inode.h".
71090         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71091         * lib/cycle-check.c (SAME_INODE): Remove definition.
71092         * lib/root-dev-ino.h: Include "same-inode.h".
71093
71094         2006-03-11  Eric Blake  <ebb9@byu.net>
71095
71096         * lib/same.c (same_name): s/base_name/last_component/
71097         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71098         * lib/filenamecat.c (file_name_concat): Likewise.
71099
71100         2006-03-11  Eric Blake  <ebb9@byu.net>,
71101                     Paul Eggert  <eggert@cs.ucla.edu>
71102
71103         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71104         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71105         drive prefix.
71106         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71107         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71108         (last_component): New method.
71109         * lib/dirname.c (dir_len): Determine when drive letters need a
71110         subsequent slash.  Preserve // when it is special.
71111         (dir_name): Don't append dot when drive letter is absolute.
71112         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71113         * lib/basename.c (base_name): New semantics - malloc the result.
71114         Preserve // when it is special.  Preserve relative files that look
71115         like drive letters.
71116         (base_len): Preserve // when it is special.
71117         (last_component): New method, similar to old base_name semantics.
71118         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71119         base_name.  Strip redundant slashes from ///.
71120
71121 2006-07-03  Jim Meyering  <jim@meyering.net>
71122
71123         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71124         macro is used before the first cycle_check call.
71125
71126 2006-07-03  Eric Blake  <ebb9@byu.net>
71127
71128         * modules/dirname (Depends-on): Add xstrndup.
71129
71130 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71131
71132         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71133         test cases, so that config.log is a bit easier to follow.
71134
71135 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71136
71137         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71138         both are 64 bits, since this seems to be the tradition, and this
71139         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71140         we ever run into a host that prefers long long to long in this
71141         case, we'll need another configure-time test.  Problem reported by
71142         Jim Meyering.
71143
71144 2006-07-02  Eric Blake  <ebb9@byu.net>
71145
71146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71147
71148 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71149
71150         * modules/inttypes (Depends-on): No longer depends on stdint.
71151         * modules/stdint (Description): Say more about assumptions.
71152         Say that the fast types might differ.  Say macros are used.
71153         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71154         (Makefile.am): Revise list of substituted symbols to match
71155         new stdint.m4.
71156         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71157         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71158         * tests/test-stdint.c (verify_same_types)
71159         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71160         the code conforms to C99/C89.
71161         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71162         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71163
71164 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71165
71166         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71167         but fix a bug, by requiring at least 64 bits.
71168         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71169         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71170         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71171         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71172
71173         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71174         changes.  Make 2.59 a prerequisite.  Check and substitute for
71175         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71176         inttypes.h.  Do not use special include files; just use the
71177         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71178         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71179         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71180         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71181         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71182         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71183         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71184         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71185         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71186         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71187         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71188         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71189         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71190         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71191         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71192         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71193         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71194         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71195         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71196         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71197         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71198         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71199         not check for things that C99 does not require, e.g., int8_t.  If
71200         a test isn't needed unless <stdint.h> isn't working, and is
71201         unlikely to be needed for any other reason, then don't do it
71202         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71203         size_t, since we assume C89 freestanding at least.  Do not check
71204         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71205         the right thing even if the types are not defined.  Instead use:
71206         (gl_STDINT_TYPE_PROPERTIES): New macro.
71207         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71208         testing whether <sys/types.h> clashes, as Autoconf does this for
71209         us now.  All uses removed.
71210         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71211         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71212         (gl_CHECK_TYPE_SAME):
71213         Remove; no longer needed.
71214         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71215         exists, since we'll return 0 anyway in that case.
71216         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71217
71218 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71219
71220         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71221         possible collision with system files.
71222         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71223         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71224         WCHAR_MIN and WCHAR_MAX in this case.
71225         (<stddef.h>): Do not include; no longer needed.
71226         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71227         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71228         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71229         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71230         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71231         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71232         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71233         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71234         !defined(__c99))]: Include in this case too, since it's harmless
71235         now.
71236         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71237         dangerous to do so.
71238         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71239         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71240         (_STDINT_MIN, _STDINT_MAX): New macros.
71241         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71242         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71243         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71244         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71245         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71246         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71247         macros, not typedefs; this simplifies things quite a bit.
71248         Use long int for all types narrower than int64_t.
71249         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71250         Define in terms of long long int or int64_t or long int,
71251         not int64_t or int32_t.  This saves some compile-time testing.
71252         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71253         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71254         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71255         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71256         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71257         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71258         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71259         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71260         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71261         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71262         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71263         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71264         undef any previous version and define our own version, for
71265         simplicity and consistency with the new macros for types.
71266         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71267         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71268         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71269         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71270         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71271         @WINT_T_SUFFIX@ to keep things simple here.
71272         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71273         Simplify by assuming typical 8/16/32/64 host, since we're
71274         already doing that elsewhere anyway.
71275         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71276         and assume long long int is 64 bits if available.  This
71277         speeds up 'configure'.
71278
71279 2006-07-01  Eric Blake  <ebb9@byu.net>
71280
71281         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71282         Reported by Andreas Buening.
71283
71284 2006-07-01  Eric Blake  <ebb9@byu.net>
71285
71286         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71287
71288 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71289
71290         * lib/getaddrinfo.c: fixed typo
71291
71292 2006-06-29  Jim Meyering  <jim@meyering.net>
71293
71294         * modules/strftime (Maintainer): Add my name, since with the
71295         FPRINTFTIME changes strftime.c has forked from glibc.
71296
71297 2006-06-29  Eric Blake  <ebb9@byu.net>
71298
71299         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71300
71301 2006-06-29  Eric Blake  <ebb9@byu.net>
71302
71303         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71304
71305 2006-06-29  Eric Blake  <ebb9@byu.net>
71306
71307         * lib/stat_.h: New file.
71308
71309 2006-06-29  Eric Blake  <ebb9@byu.net>
71310
71311         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71312         unused static function.
71313
71314 2006-06-29  Eric Blake  <ebb9@byu.net>
71315
71316         * doc/functions.texi (Function Portability): Document missing lstat
71317         on mingw.
71318
71319 2006-06-29  Eric Blake  <ebb9@byu.net>
71320
71321         * MODULES.html.sh: Add sys_stat.
71322         * modules/sys_stat: New module.
71323         * modules/mkstemp (Depends-on): Add sys_stat.
71324
71325 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71326
71327         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71328
71329 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71330
71331         * m4/c-bs-a.m4: Removed.
71332
71333 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71334
71335         * lib/strftime.c: Assume strftime() exists.
71336
71337 2006-06-29  Derek Price  <derek@ximbiot.com>
71338
71339         * modules/c-bs-a: Removed - \a is C89.
71340         * MODULES.html.sh: Remove c-bs-a.
71341
71342 2006-06-29  Bruno Haible  <bruno@clisp.org>
71343
71344         * modules/wcwidth (License): Change to LGPL.
71345
71346 2006-06-28  Simon Josefsson  <jas@extundo.com>
71347
71348         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71349         on _WIN32.
71350
71351         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71352         getnameinfo.
71353
71354 2006-06-28  Simon Josefsson  <jas@extundo.com>
71355
71356         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71357
71358 2006-06-28  Simon Josefsson  <jas@extundo.com>
71359
71360         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71361         functions there.  It will succeed on Windows XP, but on Windows
71362         2000 and (presumably) earlier, it will fail, and use the internal
71363         re-implementation.
71364         (use_win32_p): New function.
71365         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71366         Support AI_NUMERICSERV to disable getservbyname.
71367         (getnameinfo): New function, only supports
71368         NI_NUMERICHOST|NI_NUMERICSERV for now.
71369
71370         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71371         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71372         getnameinfo.
71373
71374 2006-06-28  Eric Blake  <ebb9@byu.net>
71375
71376         * modules/wcwidth: New file.
71377         * modules/mbchar (Depends-on): Add wcwidth.
71378         * modules/mbswidth (Depends-on): Add wcwidth.
71379         * MODULES.html.sh: Add wcwidth.
71380
71381 2006-06-28  Eric Blake  <ebb9@byu.net>
71382
71383         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71385
71386 2006-06-28  Eric Blake  <ebb9@byu.net>
71387
71388         * lib/xvasprintf.h: Fix comments.
71389
71390 2006-06-28  Eric Blake  <ebb9@byu.net>
71391
71392         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71393         * lib/mbswidth.c (wcwidth): Move from here...
71394         * lib/wcwidth.h: ...to this new file.
71395
71396 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71397
71398         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71399
71400         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71401         it's obsolete.
71402         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71403
71404 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71405
71406         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71407         Autoconf 2.60 says this stuff was obsolete.
71408
71409 2006-06-28  Bruno Haible  <bruno@clisp.org>
71410
71411         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71412
71413 2006-06-28  Bruno Haible  <bruno@clisp.org>
71414
71415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71416         gt_TYPE_WCHAR_T.
71417
71418 2006-06-28  Bruno Haible  <bruno@clisp.org>
71419
71420         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71421         declaration for wcwidth.
71422         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71423
71424 2006-06-28  Bruno Haible  <bruno@clisp.org>
71425
71426         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71427         (mkdir): Define using _mkdir.
71428
71429 2006-06-28  Bruno Haible  <bruno@clisp.org>
71430
71431         * lib/getaddrinfo.h: Fix POSIX URL.
71432         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71433         _WIN32.
71434         (use_win32_p): Make static.
71435         (getaddrinfo): Reject service name if it is empty or does not consist
71436         solely of decimal digits, or if its value is > 65535.
71437         (getnameinfo): Remove useless casts.
71438
71439 2006-06-27  Simon Josefsson  <jas@extundo.com>
71440
71441         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71442         Eggert and Martin Lambers.
71443
71444 2006-06-27  Simon Josefsson  <jas@extundo.com>
71445
71446         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71447         Eggert and Martin Lambers.
71448
71449 2006-06-27  Bruno Haible  <bruno@clisp.org>
71450
71451         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71452         result to 0, not to empty.
71453         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71454
71455 2006-06-27  Bruno Haible  <bruno@clisp.org>
71456
71457         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71458
71459 2006-06-26  Simon Josefsson  <jas@extundo.com>
71460
71461         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71462         present.
71463
71464 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71465
71466         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71467         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71468         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71469
71470 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71471
71472         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71473
71474 2006-06-26  Bruno Haible  <bruno@clisp.org>
71475
71476         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71477
71478 2006-06-26  Bruno Haible  <bruno@clisp.org>
71479
71480         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71481
71482 2006-06-26  Bruno Haible  <bruno@clisp.org>
71483
71484         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71485         SGI C compiler in pre-C99 mode.
71486         Suggested by Mark D. Baushke and Larry Jones.
71487
71488 2006-06-26  Bruno Haible  <bruno@clisp.org>
71489
71490         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71491         WCHAR_MAX.
71492         Reported by Mark D. Baushke and Larry Jones.
71493
71494 2006-06-26  Bruno Haible  <bruno@clisp.org>
71495
71496         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71497         in pre-C99 mode.
71498         Suggested by Mark D. Baushke and Larry Jones.
71499
71500 2006-06-23  Simon Josefsson  <jas@extundo.com>
71501             Bruno Haible  <bruno@clisp.org>
71502
71503         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71504         Emit mostlyclean-local rule.
71505         (func_emit_tests_Makefile_am): Likewise.
71506         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71507
71508 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71509
71510         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71511
71512 2006-06-23  Bruno Haible  <bruno@clisp.org>
71513
71514         * tests/test-stdint.c: Update to match ISO C 99 Technical
71515         Corrigendum 1.
71516
71517 2006-06-23  Bruno Haible  <bruno@clisp.org>
71518
71519         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71520
71521 2006-06-23  Bruno Haible  <bruno@clisp.org>
71522
71523         * lib/stdint_.h: Treat IRIX like OpenBSD.
71524
71525 2006-06-23  Bruno Haible  <bruno@clisp.org>
71526
71527         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71528         ISO C 99 Technical Corrigendum 1.
71529
71530 2006-06-22  Simon Josefsson  <jas@extundo.com>
71531
71532         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71533         MinGW.
71534
71535 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71536
71537         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71538         needed.  Some compiler complained about some of them.  Problem reported
71539         by Larry Jones in
71540         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71541
71542 2006-06-21  Simon Josefsson  <jas@extundo.com>
71543
71544         * tests/test-getaddrinfo.c: New file.
71545
71546         * modules/getaddrinfo-tests: New file.
71547
71548         * MODULES.html.sh: Add inet_pton.
71549
71550         * modules/inet_pton: New file.
71551
71552 2006-06-21  Simon Josefsson  <jas@extundo.com>
71553
71554         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71555         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71556         of using the (limited) gnulib implementation on Windows XP.
71557
71558         * m4/inet_pton.m4: New file.
71559
71560 2006-06-21  Simon Josefsson  <jas@extundo.com>
71561
71562         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71563         variable.
71564
71565         * lib/socket_.h: Don't define WINVER.
71566
71567         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71568         slightly modified to work in gnulib.
71569
71570 2006-06-21  Simon Josefsson  <jas@extundo.com>
71571
71572         * doc/gnulib.texi (Windows sockets): Add.
71573
71574 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         * lib/read-file.c (fread_file): Start with buffer allocation of
71577         0 bytes rather than 1 byte; this simplifies the code.
71578         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71579         code to free buffer and save/restore errno.
71580         (internal_read_file): Remove unused local.
71581
71582 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71583
71584         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71585         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71586         Problem reported by Denis Excoffier in
71587         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71588
71589 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71590
71591         * modules/sys_socket, modules/socklen: Include sys/types since
71592         FreeBSD 4.x's sys/socket.h needs it.
71593
71594 2006-06-19  Simon Josefsson  <jas@extundo.com>
71595
71596         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71597
71598 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71599
71600         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71601
71602 2006-06-19  Bruno Haible  <bruno@clisp.org>
71603
71604         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71605         and FULL_PATH_INTTYPES_H in angle brackets.
71606         Reported by Mark D. Baushke <mdb@gnu.org>.
71607
71608 2006-06-17  Eric Blake  <ebb9@byu.net>
71609
71610         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71611         errno.
71612
71613 2006-06-17  Bruno Haible  <bruno@clisp.org>
71614
71615         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71616         <sys/inttypes.h>.
71617
71618 2006-06-17  Bruno Haible  <bruno@clisp.org>
71619
71620         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71621         whether errno is declared. Assume <errno.h> declares errno.
71622
71623 2006-06-17  Bruno Haible  <bruno@clisp.org>
71624
71625         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71626
71627 2006-06-17  Bruno Haible  <bruno@clisp.org>
71628
71629         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71630         problem on Solaris 2.5.1.
71631
71632 2006-06-16  Eric Blake  <ebb9@byu.net>
71633
71634         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71635         * lib/unicodeio.c [!defined errno]: Likewise.
71636         * lib/strtol.c [!defined errno]: Likewise.
71637         * lib/strtod.c [!defined errno]: Likewise.
71638
71639 2006-06-15  Eric Blake  <ebb9@byu.net>
71640
71641         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71642
71643 2006-06-15  Eric Blake  <ebb9@byu.net>
71644
71645         * config/srclist.txt (ssize_t.m4): Lose sync.
71646
71647 2006-06-15  Bruno Haible  <bruno@clisp.org>
71648
71649         * modules/stdint (Files): Include m4/full-header-path.m4,
71650         m4/size_max.m4, m4/wchar_t.m4.
71651         (Makefile.am): Many more substitutions.
71652         * modules/stdint-tests: New file.
71653         * tests/test-stdint.c: New file.
71654
71655 2006-06-15  Bruno Haible  <bruno@clisp.org>
71656
71657         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71658         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71659         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71660         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71661         gl_CHECK_TYPE_SAME): New macros.
71662
71663 2006-06-15  Bruno Haible  <bruno@clisp.org>
71664
71665         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71666
71667 2006-06-15  Bruno Haible  <bruno@clisp.org>
71668
71669         * lib/stdint_.h: Rewritten to be fully auto-configured.
71670         Fixes bug on HP-UX/IA64.
71671
71672 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71673
71674         * lib/getdate.y (__attribute__): Don't define if already defined.
71675         Problem reported by Larry Jones.
71676         * lib/utimens.c (__attribute__): Likewise.
71677
71678 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71679
71680         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71681         reported by Andreas Schwab.
71682
71683 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71684             Bruno Haible  <bruno@clisp.org>
71685
71686         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71687         check for the declaration of strnlen and a run test that exposes the
71688         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71689         rpl_strndup.
71690
71691 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71692             Bruno Haible  <bruno@clisp.org>
71693
71694         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71695
71696 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71697
71698         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71699         compile test, for Tru64 4.0D.
71700
71701 2006-05-28  Karl Berry  <karl@gnu.org>
71702
71703         * config/srclist.txt (printf-args.c): lose sync.
71704
71705 2006-05-26  Martin Lambers  <marlam@marlam.de>
71706
71707         * lib/getpass.c: Updates the test for the native W32 API, and adds
71708         missing includes, thus fixing compilation warnings.
71709
71710 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71711
71712         * lib/exclude.c (exclude_fnmatch): New function.
71713         (excluded_file_name): Call exclude_fnmatch.
71714         * lib/exclude.h (excluded_file_name): New prototype
71715
71716 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71717
71718         * lib/tempname.c (small_open, large_open): New macros.
71719         (__open, __open64) [!_LIBC]: Remove.
71720         (__gen_tempname): Use small_open and large_open instead of __open
71721         and __open64.  This fixes a portability bug on HP-UX 11.11i
71722         reported by Simon Wing-Tang in
71723         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71724
71725 2006-05-24  Bruno Haible  <bruno@clisp.org>
71726
71727         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71728         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71729         Reported by Thorsten Maerz <torte@netztorte.de> via
71730         Aaron Stone <aaron@serendipity.cx>.
71731
71732 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71733
71734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71735         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71736         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71737         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71738         not really conditional on the cache.
71739         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71740
71741 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71742
71743         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71744         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71745         (my_usleep): Don't mishandle maximum value.
71746
71747 2006-05-19  Jim Meyering  <jim@meyering.net>
71748
71749         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71750
71751 2006-05-17  Bruno Haible  <bruno@clisp.org>
71752
71753         Cygwin portability.
71754         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71755
71756 2006-05-17  Bruno Haible  <bruno@clisp.org>
71757
71758         * lib/stdint_.h: Fix recognition of Cygwin.
71759
71760 2006-05-15  Bruno Haible  <bruno@clisp.org>
71761
71762         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71763         on libtool patch by Ralf Wildenhues.
71764
71765 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71768         test for C99 conformance; (bool) 0.5 is an integer constant
71769         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71770         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71771
71772 2006-05-11  Simon Josefsson  <jas@extundo.com>
71773
71774         * m4/xvasprintf.m4: Fix obvious typo.
71775
71776 2006-05-11  Jim Meyering  <jim@meyering.net>
71777
71778         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71779         James Lemley.
71780
71781 2006-05-10  Simon Josefsson  <jas@extundo.com>
71782
71783         * lib/md4.c: Typo fix, update copyright years.
71784         (K1, K2): Don't use L because it turn computations into 64-bit on
71785         64-bit platforms.
71786
71787 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71788
71789         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71790         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71791         unwanted sign propagation, e.g., on hosts with 64-bit int.
71792         There still are some problems with reeelly weird theoretical hosts
71793         (e.g., 33-bit int) but it's not worth worrying about now.
71794         * lib/sha1.c (rol): Likewise.
71795         (K1, K2, K3, K4): Remove unnecessary L suffix.
71796
71797 2006-05-10  Bruno Haible  <bruno@clisp.org>
71798
71799         * lib/des.c: Cast to avoid warnings.
71800
71801 2006-05-09  Bruno Haible  <bruno@clisp.org>
71802
71803         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71804         (Depends-on): Depend also on xsize, stdarg.
71805         (configure.ac): Add gl_XVASPRINTF.
71806
71807 2006-05-09  Bruno Haible  <bruno@clisp.org>
71808
71809         * m4/xvasprintf.m4: New file.
71810
71811 2006-05-09  Bruno Haible  <bruno@clisp.org>
71812
71813         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71814         (EOVERFLOW): Define fallback value.
71815         (xstrcat): New function.
71816         (xvasprintf): Recognize the special case of a string concatenation.
71817
71818 2006-05-08  Eric Blake  <ebb9@byu.net>
71819
71820         * gnulib-tool (func_version): Base copyright year on CVS date.
71821         (func_emit_copyright_notice): New function.
71822         (func_emit_lib_Makefile_am): Use it.
71823         (func_emit_tests_Makefile_am): Likewise.
71824         (func_import): Likewise.
71825
71826 2006-05-08  Bruno Haible  <bruno@clisp.org>
71827
71828         * modules/stdarg: New file.
71829         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71830
71831 2006-05-08  Bruno Haible  <bruno@clisp.org>
71832
71833         * m4/stdarg.m4: New file, from GNU gettext.
71834
71835 2006-05-08  Bruno Haible  <bruno@clisp.org>
71836
71837         * config/srclist.txt (build-aux/config.rpath): different from latest
71838         release.
71839
71840 2006-05-08  Bruno Haible  <bruno@clisp.org>
71841
71842         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71843
71844 2006-05-05  Jim Meyering  <jim@meyering.net>
71845
71846         * m4/warning.m4: New file, derived from bison's file by the same name.
71847
71848 2006-05-03  Bruno Haible  <bruno@clisp.org>
71849
71850         * lib/stdint_.h: Shorter URL.
71851         * lib/inttypes.h: Likewise.
71852
71853 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71854
71855         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71856
71857 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71858
71859         * lib/verify.h: Document the internals better.  Most of this change
71860         was written by Bruno Haible.
71861
71862 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71863
71864         * doc/verify.texi: New file, partly based on a proposal by
71865         Bruno Haible.
71866
71867 2006-05-02  Bruno Haible  <bruno@clisp.org>
71868
71869         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71870         test from here...
71871         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71872
71873 2006-04-29  Bruno Haible  <bruno@clisp.org>
71874
71875         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71876         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71877
71878 2006-04-29  Bruno Haible  <bruno@clisp.org>
71879
71880         * gnulib-tool: Make --update option actually work.
71881
71882 2006-04-29  Bruno Haible  <bruno@clisp.org>
71883
71884         * doc/gcd.texi: New file.
71885         * doc/gnulib.texi: Include it.
71886
71887 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71888
71889         * lib/getdate.y (get_date): When adding relative date, start with the
71890         initial time, not with the result of the first mktime call.
71891
71892 2006-04-25  Bruno Haible  <bruno@clisp.org>
71893
71894         * gnulib-tool (func_import): Output the include directives in three
71895         blocks, sorted separately.
71896         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71897
71898 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71899
71900         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71901         to define main with arguments, for C++.  Reported by Eric Blake.
71902         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71903         Prefer 'int main ()' to 'int main (void)', for C++.
71904         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71905         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71906         for 'main', for C99 and C++.
71907
71908 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71909
71910         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71911         Don't assume that exit status -1 is valid.
71912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71913         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71914         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71915         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71916         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71917         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71918         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71919         functions can be used without declaring them, or that you can
71920         exit with status -1.
71921         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71922
71923 2006-04-24  Karl Berry  <karl@gnu.org>
71924
71925         * config/srclist.txt (longdouble.m4): sync lost.
71926
71927 2006-04-24  Eric Blake  <ebb9@byu.net>
71928
71929         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71930
71931 2006-04-24  Bruno Haible  <bruno@clisp.org>
71932
71933         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71934         poll() implementation in AIX.
71935         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71936
71937 2006-04-24  Bruno Haible  <bruno@clisp.org>
71938
71939         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71940         assigned exactly once.
71941
71942 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71943             Bruno Haible  <bruno@clisp.org>
71944
71945         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71946         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71947         for AM_CPPFLAGS.
71948
71949 2006-04-23  Bruno Haible  <bruno@clisp.org>
71950
71951         * modules/copy-file: Depend on unistd.
71952         * modules/execute: Likewise.
71953         * modules/fatal-signal: Likewise.
71954         * modules/findprog: Likewise.
71955         * modules/mkdtemp : Likewise.
71956         * modules/pipe: Likewise.
71957         * modules/wait-process: Likewise.
71958
71959 2006-04-23  Bruno Haible  <bruno@clisp.org>
71960
71961         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71962         condition was already detected.
71963         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71964
71965 2006-04-23  Bruno Haible  <bruno@clisp.org>
71966
71967         * lib/copy-file.c: Include <unistd.h> unconditionally.
71968         * lib/execute.c: Likewise.
71969         * lib/fatal-signal.c: Likewise.
71970         * lib/findprog.c: Likewise.
71971         * lib/mkdtemp.c: Likewise.
71972         * lib/pipe.h: Likewise.
71973         * lib/pipe.c: Likewise.
71974         * lib/wait-process.h: Likewise.
71975
71976 2006-04-23  Bruno Haible  <bruno@clisp.org>
71977
71978         * gnulib-tool (func_usage): Fix --import description. Document
71979         --update.
71980         (func_import): Create temporary file in a temporary directory, if
71981         --dry-run is specified. Silence errors from 'grep' when there are no
71982         m4 files in $m4dir.
71983         (func_create_testdir): Silence errors from 'grep' when there are no
71984         m4 files in $m4dir.
71985         Reported by Karl Berry <karl@freefriends.org>.
71986
71987 2006-04-20  Bruno Haible  <bruno@clisp.org>
71988
71989         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71990         one argument, so that the code will be portable to Autoconf 2.60.
71991         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71992         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71993         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71994
71995 2006-04-19  Derek Price  <derek@ximbiot.com>
71996             Eric Blake  <ebb9@byu.net>
71997
71998         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71999         rather than "/full/path.h".  Update comment to match.  Shorten &
72000         generalize m4_translit call via AS_TR_CPP.
72001
72002 2006-04-19  Derek Price  <derek@ximbiot.com>
72003             Eric Blake  <ebb9@byu.net>
72004
72005         * lib/inttypes.h: Correct grammar in comment.
72006
72007 2006-04-18  Derek Price  <derek@ximbiot.com>
72008             Paul Eggert  <eggert@cs.ucla.edu>
72009
72010         * modules/inttypes: New file.
72011         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72012
72013 2006-04-18  Derek Price  <derek@ximbiot.com>
72014             Paul Eggert  <eggert@cs.ucla.edu>
72015
72016         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72017         New files.
72018
72019 2006-04-18  Derek Price  <derek@ximbiot.com>
72020             Paul Eggert  <eggert@cs.ucla.edu>
72021
72022         * lib/inttypes.h: New file.
72023         * lib/strtoimax.c: Assume <inttypes.h>.
72024
72025 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72026
72027         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72028         isn't mounted.  Problem reported by Kir Kolyshkin.
72029
72030 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72031
72032         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72033         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72034         Derek R. Price.
72035         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72036         implementation.
72037
72038 2006-04-12  Eric Blake  <ebb9@byu.net>
72039
72040         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72041         is now done automatically by the corresponding Autoconf macro.
72042
72043 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72044
72045         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72046         time_r.h.
72047
72048 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72049
72050         Merge regex changes from libc, removing some of our
72051         POSIX-conformance changes that were rejected and redoing them in a
72052         less-intrusive way.
72053
72054         * lib/regcomp.c (re_compile_internal, init_dfa):
72055         Length arg is now size_t, not Idx.  All uses changed.
72056         (peek_token): Forward decl now says internal_function.
72057         (__re_error_msgid, __re_error_msgid_idx):
72058         Now static rather than extern with attribute_hidden.
72059         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72060         For some reason libc prefers K&R style defns for external functions.
72061         (regerror) [!defined _LIBC]: Likewise.
72062         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72063         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72064         (build_range_exp, build_collating_symbol):
72065         Use K&R-style defn.
72066         (re_compile_fastmap): Use '\0' to memset, not 0.
72067         (utf8_sb_map): Make the calculations more obvious.
72068         (init_dfa, parse_bracket_exp, build_charclass_op):
72069         Call calloc and cast result, as glibc does.
72070         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72071         (build_range_exp, build_collating_symbol):
72072         Now internal functions.
72073
72074         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72075
72076         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72077         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72078         Don't depend on VMS; depend on __VMS instead, for POSIX
72079         namespace cleanness.
72080         (regoff_t): Define to ssize_t, not long int.
72081
72082         Remove the REG_ macros named below.  Instead, make the old names
72083         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72084         __USE_GNU_REGEX.
72085         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72086         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72087         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72088         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72089         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72090         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72091         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72092         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72093         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72094         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72095         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72096         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72097         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72098         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72099         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72100         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72101         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72102         (REG_NREGS):
72103         Remove.  All uses replaced by the old RE_* names.
72104         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72105         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72106         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72107         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72108         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72109         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72110         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72111         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72112         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72113         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72114         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72115         Don't bother having these macros be independent of each others'
72116         values, since they no longer exist in the POSIX name space.
72117
72118         Rename the following member names back to their old names,
72119         unless !__USE_GNU_REGEX.  All uses changed back.
72120         (buffer): Renamed from re_buffer.
72121         (allocated): Renamed from re_allocated.
72122         (used): Renamed from re_used.
72123         (syntax): Renamed from re_syntax.
72124         (fastmap): Renamed from re_fastmap.
72125         (translate): Renamed from re_translate.
72126         (can_be_null): Renamed from re_can_be_null.
72127         (regs_allocated): Renamed from re_regs_allocated.
72128         (fastmap_accurate): Renamed from re_fastmap_accurate.
72129         (no_sub): Renamed from re_no_sub.
72130         (not_bol): Renamed from re_not_bol.
72131         (not_eol): Renamed from re_not_eol.
72132         (newline_anchor): Renamed from re_newline_anchor.
72133         (num_regs): Renamed from rm_num_regs.
72134         (start): Renamed from rm_start.
72135         (end): Renamed from rm_end.
72136
72137         (free_state): Move up a bit.
72138
72139         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72140         #define to be empty.
72141         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72142         when that is what is intended.
72143         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72144         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72145         (MAX): New macro.
72146         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72147         All uses changed back to re_malloc, etc.  It's now the caller's
72148         responsibility to check for overflow; all callers changed.
72149         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72150         (re_x2nrealloc): Remove.
72151         (free_state): Remove decl.
72152
72153         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72154         (re_set_registers, re_exec):
72155         Use K&R-style defn.
72156
72157         2006-01-31  Roland McGrath  <roland@redhat.com>
72158
72159         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72160         Reported by Mike Frysinger <vapier@gentoo.org>.
72161
72162         2006-01-15  Andreas Jaeger  <aj@suse.de>
72163
72164         [BZ #1950]
72165         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72166         build_wcs_upper_buffer change.
72167         (build_wcs_upper_buffer): Change return type.
72168
72169         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72170
72171         * lib/regex_internal.h: Include <stdint.h> if available.
72172
72173         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72174
72175         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72176
72177         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72178
72179         * lib/regcomp.c: Adjust for changed secondary hash function.
72180
72181         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72182
72183         * lib/regex.h: Pretty printing.
72184         Clean up namespace a bit.
72185
72186         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72187
72188         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72189         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72190
72191         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72192                     Ulrich Drepper  <drepper@redhat.com>
72193
72194         [BZ #1302]
72195         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72196         changed.
72197         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72198
72199         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72200
72201         [BZ #281]
72202         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72203         * lib/regcomp.c: Remove unnecessary uses of
72204         unsigned RE_TRANSLATE_TYPE.
72205         * lib/regex_internal.h: Likewise.
72206         * lib/regex_internal.c: Likewise.
72207         * lib/regexec.c: Likewise.
72208         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72209
72210         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72211
72212         * lib/regexec.c (find_recover_state): Remove unnecessary
72213         initialization.
72214         (transit_state_bkref): Make DFA a const pointer.
72215         (get_subexp): Likewise.
72216         (check_arrival): Likewise.
72217         (update_cur_sifted_state): Likewise.
72218         (re_search_internal): Likewise.
72219         (prune_impossible_nodes): Likewise.
72220         (acquire_init_state_context): Likewise.
72221         (proceed_next_node): Likewise.
72222         (set_regs): Likewise.
72223         (free_fail_stack_return): Likewise.
72224         (check_arrival_expand_ecl): Mark DFA parameter as const.
72225         (check_arrival_expand_ecl_sub): Likewise.
72226         (check_subexp_limits): Likewise.
72227         (sub_epsilon_src_nodes):  Likewise.
72228         (add_epsilon_src_nodes):  Likewise.
72229         (merge_state_array): Likewise.
72230         (update_regs): Likewise.
72231         (build_trtable): Likewise.
72232         (sift_states_backward): Mark MCTX parameter as const.
72233         (build_sifted_states): Likewise.
72234         (update_cur_sifted_state): Likewise.
72235         (sift_states_mkref): Likewise.
72236         (check_arrival_expand_ecl): Mark eclosure as const.
72237         (check_dst_limits_calc_pos_1): Likewise.
72238         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72239         pointer.
72240
72241         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72242
72243         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72244         (transit_state_sb): Likewise.
72245         (transit_state_mb): Likewise.
72246         (sift_states_iter_mb): Likewise.
72247         (check_arrival_add_next_nodes): Likewise.
72248         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72249         [_LIBC] (re_search_2_stub): Use mempcpy.
72250
72251         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72252         mbrtowc for very simple UTF-8 case.
72253
72254         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72255         a pointer-to-const.
72256         (re_acquire_state_context): Likewise.
72257         * lib/regex_internal.h: Adjust prototypes.
72258
72259         * lib/regex.c: Prevent using C++ compilers.
72260
72261         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72262         (re_acquire_state_context): Likewise.
72263
72264 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72265
72266         * modules/regex (Depends-on): Add ssize_t.
72267
72268 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72269
72270         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72271         translation table.
72272
72273 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72274
72275         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72276
72277 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72278             Bruno Haible  <bruno@clisp.org>
72279
72280         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72281         <sys/types.h> and <inttypes.h>.
72282
72283 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72284
72285         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72286         `__error_t_defined', so argp.h will not typedef the former.
72287
72288 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72291         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72292         glibc names.  Even if glibc is changed to conform to POSIX, the
72293         traditional names will be available anyway, since regex depends on
72294         the extensions module.  Also, fix a longstanding typo in the
72295         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72296         reported by Emanuele Giaquinta.  Also, change sense of cached
72297         variable, so that the message makes sense.
72298
72299 2006-03-24  Simon Josefsson  <jas@extundo.com>
72300
72301         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72302         including some doc fixes.
72303         (base64_encode_alloc): Fix +1 bug on allocation failures.
72304
72305 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72306
72307         * lib/base64.c (base64_encode): Do not read past end of array with
72308         unsanitized input on systems with CHAR_BIT > 8.
72309
72310 2006-03-24  Eric Blake  <ebb9@byu.net>
72311
72312         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72313
72314 2006-03-22  Karl Berry  <karl@gnu.org>
72315
72316         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72317         * config/srclistvars.sh (COREUTILS): new var.
72318
72319 2006-03-17  Jim Meyering  <jim@meyering.net>
72320
72321         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72322         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72323
72324 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72325
72326         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72327         no longer needs it.  Instead, check that regoff_t is as least
72328         as wide as ptrdiff_t.
72329
72330         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72331         so that our regex.h stays compatible with the installed regex.
72332         This is helpful for installers who configure --without-included-regex.
72333         Problem reported by Emanuele Giaquinta.
72334
72335 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72336
72337         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72338         Typedef to long int, not to off_, as POSIX will likely change
72339         in that direction.
72340
72341 2006-03-15  Eric Blake  <ebb9@byu.net>
72342
72343         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72344
72345 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72346
72347         * lib/argp-help.c (validate_uparams): Fix typo
72348         * lib/argp-parse.c (argp_default_options): Consistently begin help
72349         messages with a lowercase letter.
72350
72351 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72352
72353         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72354         overrun buffers and shouldn't be used (much as gets shouldn't be
72355         used).
72356         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72357
72358 2006-03-08  Simon Josefsson  <jas@extundo.com>
72359
72360         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72361         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72362
72363 2006-03-08  Simon Josefsson  <jas@extundo.com>
72364
72365         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72366         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72367
72368 2006-03-08  Simon Josefsson  <jas@extundo.com>
72369
72370         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72371         signal that configure disabled the device.
72372
72373 2006-03-08  Simon Josefsson  <jas@extundo.com>
72374
72375         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72376         languages.
72377
72378 2006-03-07  Simon Josefsson  <jas@extundo.com>
72379
72380         * modules/getopt (Depends-on): Add unistd.
72381
72382         * modules/unistd: New file.
72383
72384 2006-03-07  Simon Josefsson  <jas@extundo.com>
72385
72386         * modules/gc-random: New file.
72387
72388 2006-03-07  Simon Josefsson  <jas@extundo.com>
72389
72390         * m4/unistd_h.m4: New file.
72391
72392 2006-03-07  Simon Josefsson  <jas@extundo.com>
72393
72394         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72395         test to be side-effect free by storing the result in the cache
72396         variable gl_cv_lib_readline, and moving the assignment of
72397         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72398         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72399
72400 2006-03-07  Simon Josefsson  <jas@extundo.com>
72401
72402         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72403         error on missing devices (the functions will return an error).
72404
72405         * m4/gc.m4: Move random stuff to gc-random.m4
72406
72407 2006-03-07  Simon Josefsson  <jas@extundo.com>
72408
72409         * lib/unistd_.h: New file.
72410
72411 2006-03-07  Simon Josefsson  <jas@extundo.com>
72412
72413         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72414
72415 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72416
72417         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72418         Problem reported by Juan Manuel Guerrero.
72419
72420 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72421
72422         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72423         the unistd module.
72424         * lib/getlogin_r.c: Likewise.
72425         * lib/getlogin_r.h: Likewise.
72426         * lib/glob.c: Likewise.
72427         * lib/pagealign_alloc.c: Likewise.
72428         * lib/unistd_.h: Remove; no longer needed.
72429
72430 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72431
72432         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72433         Add unistd.
72434         * modules/c-stack (Depends-on): Add unistd.
72435         * modules/getlogin_r: Likewise.
72436         * modules/glob: Likewise.
72437         * modules/pagealign_alloc: Likewise.
72438         * modules/unistd (Files): Remove lib/unistd_.h.
72439         (EXTRA_DIST): Remove.
72440         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72441         need unistd_.h.
72442         (MOSTLYCLEANFILES): Remove unistd.h-t.
72443
72444 2006-03-03  Simon Josefsson  <jas@extundo.com>
72445
72446         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72447
72448 2006-03-03  Simon Josefsson  <jas@extundo.com>
72449
72450         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72451         libidn and bison.
72452
72453 2006-03-03  Simon Josefsson  <jas@extundo.com>
72454
72455         * build-aux/maint.mk: Add indent target.
72456
72457 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72458
72459         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72460         our replacement poll.h in any case, to avoid a differing
72461         declaration from a system header.  Seen on AIX.
72462
72463 2006-03-01  Simon Josefsson  <jas@extundo.com>
72464
72465         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72466         <kasal@ucw.cz>.
72467
72468 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72469
72470         * modules/gettime (Depends-on): Add extensions module.
72471         * modules/nanosleep (Depends-on): Likewise.
72472         * modules/settime (Depends-on): Likewise.
72473
72474 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72475
72476         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72477         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72478         pedantically.
72479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72480         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72481
72482         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72483         not "==".  Reported by Ralf Wildenhues.
72484
72485 2006-03-01  Karl Berry  <karl@gnu.org>
72486
72487         * doc/Copyright/request-*: new files, synced from gnuorg.
72488
72489 2006-03-01  Karl Berry  <karl@gnu.org>
72490
72491         * config/srclist.txt (Copyright/*): new entries.
72492
72493 2006-02-28  Simon Josefsson  <jas@extundo.com>
72494
72495         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72496
72497 2006-02-27  Simon Josefsson  <jas@extundo.com>
72498
72499         * lib/base64.h: Indent #define's.  From Jim Meyering
72500         <jim@meyering.net>.
72501
72502 2006-02-27  Jim Meyering  <jim@meyering.net>
72503
72504         Revert the change of 2006-02-24, so these files can continue
72505         to be sync'd from gettext.
72506         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72507         of `config.h'.
72508
72509 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72510
72511         * modules/intprops: New file.
72512         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72513         Add intprops.
72514         * modules/getloadavg (Files): Remove lib/intprops.h.
72515         (Depends-on): Add intprops.
72516         * modules/human: Likewise.
72517         * modules/inttostr: Likewise.
72518         * modules/openat: Likewise.
72519         * modules/sig2str: Likewise.
72520         * modules/userspec: Likewise.
72521         * modules/utimecmp: Likewise.
72522         * modules/xnanosleep: Likewise.
72523         * modules/xstrtol: Likewise.
72524
72525 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72526
72527         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72528         * modules/lock-tests (TESTS): Use $(EXEEXT).
72529         * modules/tls-tests: Likewise.
72530         * modules/argp-tests: Likewise.
72531         (check_PROGRAMS): New var, replacing...
72532         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72533
72534 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72535
72536         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72537         `config.h'.
72538
72539 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72540
72541         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72542
72543 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72544
72545         Sync from coreutils.
72546         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72547         gl_CHDIR_SAFER.
72548
72549 2006-02-22  Jim Meyering  <jim@meyering.net>
72550
72551         Sync from coreutils.
72552         * m4/chdir-safer.m4: New file.
72553
72554 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72555
72556         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72557         AT_FDCWD exceeds INT_MAX.
72558         * lib/openat.h (AT_FDCWD): Likewise.
72559
72560 2006-02-17  Eric Blake  <address@hidden>
72561
72562         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72563
72564 2006-02-16  Simon Josefsson  <jas@extundo.com>
72565
72566         * modules/getaddrinfo (Depends-on): Add sys_socket.
72567
72568 2006-02-15  Simon Josefsson  <jas@extundo.com>
72569
72570         * build-aux/maint.mk: Add dsyntax-check rule.
72571
72572 2006-02-15  Eric Blake  <ebb9@byu.net>
72573
72574         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72575         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72576         'present but cannot compile' warnings on cygwin.
72577         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72578         use ws2tcpip.h if sys/socket.h works.
72579         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72580         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72581
72582 2006-02-14  Simon Josefsson  <jas@extundo.com>
72583
72584         * modules/maintainer-makefile (Files): Rename.
72585
72586         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72587         and (the local) Makefile.cfg to maint-cfg.mk.
72588
72589         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72590         to the latter.
72591
72592         * modules/maintainer-makefile: New module.
72593
72594         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72595         severaly stripped to make it possible to build it up from scratch
72596         with reliable tests.
72597
72598         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72599         fixes to permit overriding the default actions when configure and
72600         makefile are not available.
72601
72602 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72603
72604         Sync from coreutils.
72605         * modules/lstat (Depends-on): Don't depend on xalloc.
72606         (License): Change from GPL to LGPL, since this is now simply a
72607         replacement for a libc function.
72608
72609 2006-02-14  Jim Meyering  <jim@meyering.net>
72610
72611         Sync from coreutils.
72612
72613         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72614         failure on deficient systems, and simplify gnulib lgpl dependencies.
72615         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72616         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72617
72618         * lib/xalloc-die.c: Remove unused definition of N_.
72619
72620 2006-02-14  Jim Meyering  <jim@meyering.net>
72621
72622         Sync from coreutils.
72623         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72624         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72625         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72626         double-quote uses of that variable, to accommodate the rare case in
72627         which getmntent is available in none of the libraries checked.  This
72628         happens at least on FreeBSD 5.0.
72629
72630 2006-02-13  Simon Josefsson  <jas@extundo.com>
72631
72632         * gnulib-tool (Usage): Fix --import, from
72633         karl@freefriends.org (Karl Berry).
72634
72635 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72636
72637         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72638
72639 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72640
72641         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72642         "autoupdate" on 2005-12-12.
72643
72644 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72645
72646         * modules/closeout (Depends-on): Remove atexit.
72647
72648 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72649
72650         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72651         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72652
72653 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72654
72655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72656         __EXTENSIONS__ if this causes compilation to fail.  Problem
72657         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72658         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72659
72660 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72661
72662         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72663         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72664         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72665         All uses changed.
72666
72667 2006-01-26  Simon Josefsson  <jas@extundo.com>
72668
72669         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72670         prototype is visible on mingw32.
72671
72672         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72673         for mingw32.
72674
72675         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72676         mingw32).
72677
72678 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72679
72680         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72681         attempt to open for write; this always fails, at least on POSIX
72682         hosts.  This reinstates the 2006-01-09 change, which was
72683         inadvertently removed.
72684
72685 2006-01-26  Bruno Haible  <bruno@clisp.org>
72686
72687         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72688         Reported by Paul Eggert.
72689
72690 2006-01-26  Bruno Haible  <bruno@clisp.org>
72691             Paul Eggert  <eggert@cs.ucla.edu>
72692
72693         * lib/stdbool_.h (_Bool)
72694         [(! (defined __cplusplus || defined __BEOS__)
72695           && !defined __GNUC__
72696           && !(defined __HP_cc || defined __xlc__
72697                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72698                || defined __sgi))]:
72699         #define to signed char in these cases too; this simplifies
72700         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72701         etc., separately) and makes it more conservative.
72702
72703 2006-01-25  Simon Josefsson  <jas@extundo.com>
72704
72705         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72706         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72707         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72708
72709 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72710
72711         * lib/argp-namefrob.h: Bugfix. Remove stray #
72712
72713 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72714
72715         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72716         so that we test the test.
72717         Check for yet another HP-UX cc bug involving *bool |= bool.
72718
72719 2006-01-25  Karl Berry  <karl@gnu.org>
72720
72721         * config/srclist.txt (vasnprintf.c): sync lost.
72722
72723 2006-01-25  Jim Meyering  <jim@meyering.net>
72724
72725         Sync from the stable (b5) branch of coreutils:
72726
72727         * lib/fts.c (fts_children): Don't let close() clobber errno from
72728         failed fchdir().
72729
72730         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72731         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72732         a dangling symlink.  That can also happen at least for ELOOP.
72733         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72734         FYI, this bug predates the inclusion of fts.c in coreutils.
72735
72736         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72737         in their own block, so pre-c99 compilers don't object.
72738
72739         Avoid the double-free (first in fts_read, second in fts_close) that
72740         would occur when an `active' directory is made inaccessible (e.g.,
72741         via chmod a-x) during a traversal.
72742         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72743         before returning.  Reproduce this failure by
72744         mkdir -p a/b; cd a; chmod a-x . b
72745         Reported by Stavros Passas.
72746
72747 2006-01-25  Jim Meyering  <jim@meyering.net>
72748
72749         * lib/fileblocks.c: Remove more useless parentheses.
72750         * lib/readutmp.h: Likewise.
72751
72752 2006-01-25  Bruno Haible  <bruno@clisp.org>
72753
72754         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72755         warnings.
72756         Reported by Paul Eggert.
72757
72758 2006-01-25  Bruno Haible  <bruno@clisp.org>
72759
72760         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72761         rid of a trap command. For Solaris sh.
72762         Reported by Mark D. Baushke <mdb@gnu.org>.
72763
72764 2006-01-24  Simon Josefsson  <jas@extundo.com>
72765
72766         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72767         Bruno.
72768
72769 2006-01-24  Karl Berry  <karl@gnu.org>
72770
72771         * config/srclist.txt (argp-namefrob.h): sync lost.
72772
72773 2006-01-24  Jim Meyering  <jim@meyering.net>
72774
72775         * modules/openat (Files): Add lib/intprops.h.
72776         From Mark D. Baushke.
72777
72778 2006-01-24  Jim Meyering  <jim@meyering.net>
72779
72780         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72781         Reported by Mark D. Baushke.
72782
72783 2006-01-24  Jim Meyering  <jim@meyering.net>
72784
72785         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72786
72787 2006-01-24  Bruno Haible  <bruno@clisp.org>
72788
72789         * modules/strnlen (Maintainer): Change from glibc to all.
72790
72791 2006-01-24  Bruno Haible  <bruno@clisp.org>
72792
72793         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72794         Patch by Paul Eggert.
72795
72796 2006-01-24  Bruno Haible  <bruno@clisp.org>
72797
72798         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72799         already has it.
72800         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72801         2005-11-26.
72802
72803         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72804         'signed char' to avoid problems with the built-in _Bool type.
72805         Reported by Paul Eggert on 2005-11-26.
72806
72807 2006-01-24  Bruno Haible  <bruno@clisp.org>
72808
72809         * gnulib-tool (func_import): Avoid constructing complicated sed
72810         expressions inside backquote.
72811         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72812
72813 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72814
72815         These changes imported from libc.
72816         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72817         test and two separate function calls.
72818         * lib/strndup.c (__strndup): Add libc_hidden_def.
72819
72820 2006-01-23  Simon Josefsson  <jas@extundo.com>
72821
72822         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72823         Remove the test_*_SOURCES variable: automake infers it by default.
72824         * modules/tls-tests: Likewise.
72825
72826 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72827
72828         Work around porting bugs reported by Dieter in
72829         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72830         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72831         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72832         Include "getopt.h" first, to check interface.
72833         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72834         !HAVE_DECL_GETENV.
72835         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72836         (__strndup): Revert to K&R-style function dfns, the glibc style.
72837         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72838         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72839         Include strnlen.h first, to get prototype properly.
72840         (strnlen): Renamed from __strnlen.
72841         Remove weak alias.
72842
72843 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72844
72845         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72846
72847 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72848
72849         * config/srclist.txt: Adjust to reflect glibc reorganization.
72850         This affects only comments.
72851
72852 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72853
72854          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72855          Reported by Bruce Korb <bkorb@gnu.org>.
72856
72857 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72858
72859         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72860         to pacify gcc -Wswitch-default.
72861
72862 2006-01-22  Bruno Haible  <bruno@clisp.org>
72863
72864         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72865         temporary buffer for sprintf, take into account the precision also
72866         for 'd', 'i', 'u', 'o', 'x', 'X'.
72867
72868 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72869
72870         * modules/argp-tests: New module
72871         * tests/test-argp.c: New file
72872         * tests/test-argp-2.sh: New file
72873
72874 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72875
72876         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72877         (__argp_base_name): Removed
72878         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72879         typo.
72880         (__argp_base_name): Provide macro definition or extern declaration
72881         depending on the configuration
72882
72883 2006-01-20  Simon Josefsson  <jas@extundo.com>
72884
72885         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72886
72887 2006-01-20  Simon Josefsson  <jas@extundo.com>
72888
72889         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72890
72891 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72892
72893         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72894         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72895         Suggested by Bruno Haible.
72896
72897 2006-01-20  Karl Berry  <karl@gnu.org>
72898
72899         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72900         until changes propagate, I guess.
72901
72902 2006-01-19  Simon Josefsson  <jas@extundo.com>
72903
72904         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72905
72906 2006-01-19  Simon Josefsson  <jas@extundo.com>
72907
72908         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72909
72910 2006-01-19  Simon Josefsson  <jas@extundo.com>
72911
72912         * gnulib-tool: Set check_PROGRAMS.
72913
72914         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72915         modules/des-tests, modules/gc-arcfour-tests,
72916         modules/gc-arctwo-tests, modules/gc-des-tests,
72917         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72918         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72919         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72920         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72921         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72922         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72923         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72924         test_*_SOURCES.
72925
72926 2006-01-18  Simon Josefsson  <jas@extundo.com>
72927
72928         * modules/socklen (Depends-on): Depend on sys_socket.
72929
72930 2006-01-18  Simon Josefsson  <jas@extundo.com>
72931
72932         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72933         modules/des-tests, modules/gc-arcfour-tests,
72934         modules/gc-arctwo-tests, modules/gc-des-tests,
72935         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72936         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72937         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72938         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72939         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72940         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72941         $(EXEEXT) to automake TESTS variable, for mingw32.
72942
72943 2006-01-17  Simon Josefsson  <jas@extundo.com>
72944
72945         * modules/socklen (Include): Need sys/socket.h.
72946
72947 2006-01-17  Bruno Haible  <bruno@clisp.org>
72948
72949         * modules/ssize_t (Include): Add <sys/types.h>.
72950
72951 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72952
72953         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72954         it's not portable and it doesn't work with cross-compiles.
72955         Problem reported by Bruno Haible.  Fix missing-$ typo in
72956         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72957         -zignore from being used with Sun's C compiler.
72958
72959 2006-01-12  Simon Josefsson  <jas@extundo.com>
72960
72961         * lib/base64.c: Fix warning, reported by Bruno Haible
72962         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72963
72964 2006-01-12  Bruno Haible  <bruno@clisp.org>
72965
72966         * modules/ldd: New file.
72967         * build-aux/ldd.sh.in: New file.
72968         * MODULES.html.sh (Support for building libraries and executables): Add
72969         ldd.
72970
72971 2006-01-12  Bruno Haible  <bruno@clisp.org>
72972
72973         * m4/ldd.m4: New file.
72974
72975 2006-01-12  Bruno Haible  <bruno@clisp.org>
72976
72977         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72978         endless loop while replacing $auxdir with build-aux.
72979
72980 2006-01-11  Simon Josefsson  <jas@extundo.com>
72981
72982         * lib/stdint_.h (SIZE_MAX): Add missing (.
72983
72984 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72985
72986         Sync from coreutils.
72987         * lib/md5.c: Fix commentary typos.
72988         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72989         * lib/md5.h (__attribute__): Remove; unused.
72990         * lib/sha1.c: Fix commentary to match md5 better.
72991         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72992         so that we don't need to worry about alignment.  All uses changed.
72993         This merges the 2005-10-28 md5 change into sha1.
72994
72995 2006-01-11  Jim Meyering  <jim@meyering.net>
72996
72997         Sync from coreutils.
72998         * lib/md5.c (OP): Fix spacing.
72999
73000 2006-01-11  Bruno Haible  <bruno@clisp.org>
73001
73002         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73003         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73004         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73005
73006 2006-01-11  Bruno Haible  <bruno@clisp.org>
73007
73008         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73009         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73010         the "early" section as well.
73011
73012 2006-01-11  Bruno Haible  <bruno@clisp.org>
73013
73014         Avoid "ar: no archive members specified" error on MacOS X.
73015         * gnulib-tool (func_modules_add_dummy): New function.
73016         (func_import, func_create_testdir): Invoke it.
73017
73018 2006-01-11  Bruno Haible  <bruno@clisp.org>
73019
73020         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73021         with $auxdir in AC_CONFIG_FILES statements.
73022
73023 2006-01-11  Bruno Haible  <bruno@clisp.org>
73024
73025         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73026         Initialize also noinst_HEADERS to empty.
73027
73028 2006-01-11  Bruno Haible  <bruno@clisp.org>
73029
73030         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73031         variables.
73032         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73033         autoreconf.
73034
73035 2006-01-11  Bruno Haible  <bruno@clisp.org>
73036
73037         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73038         overridable by the user.
73039         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73040
73041 2006-01-10  Simon Josefsson  <jas@extundo.com>
73042
73043         * modules/sys_socket: New file.
73044
73045 2006-01-10  Simon Josefsson  <jas@extundo.com>
73046
73047         * m4/sys_socket_h.m4: New file.
73048
73049 2006-01-10  Simon Josefsson  <jas@extundo.com>
73050
73051         * lib/socket_.h: New file.
73052
73053 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73054
73055         * modules/readutmp (Maintainer): Add myself.
73056
73057 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73058
73059         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73060         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73061         People who are still concerned with buggy memcmp implementations
73062         can invoke gl_FUNC_MEMCMP themselves.
73063
73064 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73065
73066         * lib/regex_internal.h (BITSET_WORD_BITS):
73067         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73068         preprocessor mishandles large unsigned values as if they were signed.
73069         Problem reported by Claudio Fontana in
73070         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73071
73072 2006-01-10  Jim Meyering  <jim@meyering.net>
73073
73074         Avoid the double-free (first in fts_read, second in fts_close) that
73075         would occur when an `active' directory is made inaccessible (e.g.,
73076         via chmod a-x) during a traversal.
73077         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73078         before returning.  Reproduce this failure by
73079         mkdir -p a/b; cd a; chmod a-x . b
73080         Reported by Stavros Passas.
73081
73082         Sync from coreutils.
73083         * lib/sha1.c: Tweak grammar in a comment.
73084
73085 2006-01-10  Jim Meyering  <jim@meyering.net>
73086
73087         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73088         Patch by Joerg Sonnenberger.
73089
73090 2006-01-10  Bruno Haible  <bruno@clisp.org>
73091
73092         * modules/readutmp: Depend on module free.
73093         * modules/strtok_r: Depend on module restrict.
73094
73095 2006-01-10  Bruno Haible  <bruno@clisp.org>
73096
73097         * modules/gettext (configure.ac): Add an invocation of
73098         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73099
73100 2006-01-10  Bruno Haible  <bruno@clisp.org>
73101
73102         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73103         Reported by Werner Lemberg <wl@gnu.org>.
73104
73105 2006-01-10  Bruno Haible  <bruno@clisp.org>
73106
73107         * lib/localcharset.c: Update from GNU gettext.
73108
73109 2006-01-10  Bruno Haible  <bruno@clisp.org>
73110
73111         * lib/argp.h (__const): Remove macro. Use const instead.
73112         * lib/argp-fmtstream.h (__const): Likewise.
73113         * lib/glob_.h (__const): Remove macro.
73114         * lib/glob-libc.h: Use const instead of __const.
73115
73116 2006-01-10  Bruno Haible  <bruno@clisp.org>
73117
73118         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73119         variable.
73120         Needed to avoid an automake error regarding the 'gettext' module.
73121
73122 2006-01-09  Simon Josefsson  <jas@extundo.com>
73123
73124         * modules/inet_ntop (Depends-on): Add restrict.
73125
73126 2006-01-09  Simon Josefsson  <jas@extundo.com>
73127
73128         * modules/gc-rijndael-tests (License): Put under LGPL.
73129
73130         * modules/gc-des-tests (License): Likewise.
73131
73132         * modules/gc-arcfour-tests (License): Likewise.
73133
73134         * modules/gc-arctwo-tests (License): Likewise.
73135
73136         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73137
73138         * modules/gc-hmac-sha1-tests (Files): Likewise.
73139
73140         * modules/gc-hmac-md5-tests (License): Likewise.
73141
73142         * modules/gc-sha1-tests (License): Likewise.
73143
73144         * modules/gc-md5-tests (License): Likewise.
73145
73146         * modules/gc-md4-tests (License): Likewise.
73147
73148         * modules/gc-md2-tests (License): Likewise.
73149
73150         * modules/gc-tests (License): Likewise.
73151
73152         * modules/des-tests (License): Likewise.
73153
73154         * modules/md4-tests (License): Likewise.
73155
73156         * modules/md2-tests (License): Likewise.
73157
73158 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73159
73160         Sync from coreutils:
73161
73162         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73163         * modules/lib-ignore: New file.
73164         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73165         chdir-safer.m4, lchmod.m4.
73166         * modules/openat: Add mkdirat.c, openat-priv.h.
73167
73168 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73169
73170         Sync from coreutils.
73171         * m4/lib-ignore.m4: New file.
73172         * m4/lchmod.m4: New file.
73173
73174 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73175
73176         Sync from coreutils.
73177         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73178         for write access: POSIX says that must fail.
73179         * lib/fts.c (diropen): Likewise.
73180         * lib/save-cwd.c (save_cwd): Likewise.
73181         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73182         well, for minor improvements on hosts that lack O_DIRECTORY.
73183         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73184         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73185         Fall back on chown if open failed with EACCES.
73186
73187         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73188         Report an error at compile-time if only a 1-second nominal clock
73189         resolution is found.
73190
73191         * lib/lchmod.h: New file.
73192         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73193         (make_dir_parents): Use lchown rather than chown, and
73194         lchmod rather than chmod.
73195
73196         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73197         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73198         "proc" reported by n0dalus.
73199
73200         * lib/mountlist.c: Include <limits.h>.
73201         (dev_from_mount_options)
73202         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73203         New function.  It no longer assumes "dev=" has the System V meaning
73204         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73205         (read_file_system_list)
73206         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73207         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73208         dev= in that case.
73209
73210         * lib/posixtm.h (PDS_PRE_2000): New macro.
73211         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73212         allow_century.  All usages changed.  Reject dates outside the range
73213         1969-1999 if PDS_PRE_2000 is used.
73214
73215 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         Sync from coreutils.
73218         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73219         (Time of day items): Mention the possibility of leap seconds.
73220         Problem reported by Dr. David Alan Gilbert.
73221
73222 2006-01-09  Jim Meyering  <jim@meyering.net>
73223
73224         Sync from coreutils.
73225
73226         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73227
73228         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73229
73230         * lib/modechange.c (mode_compile): Reject an invalid mode string
73231         that starts with an octal digit.  From Andreas Gruenbacher.
73232
73233         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73234         and dup to open_safer and dup_safer, respectively.
73235         (openat_permissive): Fix typo in comment.
73236
73237         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73238         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73239         (_): Remove; no longer needed.
73240         (openat): Renamed from rpl_openat; no need for rpl_openat
73241         since openat.h renames openat for us.
73242         Replace most of the body with a call to openat_permissive,
73243         to avoid duplicate code.
73244         Port to (probably hypothetical) environments were mode_t is
73245         wider than int.
73246         (openat_permissive): Require mode arg, so that we can check
73247         types better.  Put it just after flags.  Change cwd failure
73248         indicator from pointer-to-bool to pointer-to-errno-value.
73249         All callers changed.
73250         Invoke openat_save_fail and/or openat_restore_fail if
73251         cwd_errno is null, so that openat can call us.
73252         (openat_permissive, fdopendir, fstatat, unlinkat):
73253         Simplify errno handling to avoid some duplicate code,
73254         as it's OK to set errno on success.
73255         * lib/openat.h: Revamp code so that function macros depend on
73256         __OPENAT_PREFIX only, not also on AT_FDCWD.
73257         (openat_ro): Remove.  Caller changed to use openat_permissive.
73258         (openat_permissive): Now a macro, if not a function.
73259         (openat_restore_fail, openat_save_fail): Now always functions,
73260         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73261
73262         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73263         and openat.c.
73264         * lib/mkdirat.c: Include openat-priv.h.
73265         Remove definitions of macros defined therein.
73266         * lib/openat.c: Likewise.
73267
73268         * lib/mkdirat.c (mkdirat): New file and function.
73269         * lib/openat.h (mkdirat): Declare.
73270
73271         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73272
73273         * lib/openat.h (openat_permissive): Declare.
73274         (openat_ro): Define.
73275
73276         * lib/openat.c (EXPECTED_ERRNO): New macro.
73277         (openat_permissive): New function -- used in remove.c rewrite.
73278         (all functions): Set errno just before returning, only if there
73279         was an actual failure.
73280         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73281
73282         Emulate openat-family functions using Linux's procfs, if possible.
73283         Idea and some code based on Ulrich Drepper's glibc changes.
73284
73285         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73286         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73287         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73288         before falling back on save_cwd and restore_cwd.
73289         (fdopendir, fstatat, unlinkat): Likewise.
73290
73291         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73292         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73293
73294         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73295         as second argument to va_arg.  Otherwise, some versions of gcc
73296         warn that `if this code is reached, the program will abort'.
73297
73298 2006-01-09  Jim Meyering  <jim@meyering.net>
73299
73300         Sync from coreutils.
73301         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73302         Require openat-priv.h.
73303
73304 2006-01-09  Bruno Haible  <bruno@clisp.org>
73305
73306         * modules/strnlen (Include): Use strnlen.h.
73307
73308 2006-01-09  Bruno Haible  <bruno@clisp.org>
73309
73310         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73311
73312 2006-01-09  Bruno Haible  <bruno@clisp.org>
73313
73314         * lib/sysexit_.h (EX_OK): New macro.
73315         Suggested by Martin Lambers <marlam@marlam.de>.
73316
73317 2006-01-09  Bruno Haible  <bruno@clisp.org>
73318
73319         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73320         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73321
73322 2006-01-09  Bruno Haible  <bruno@clisp.org>
73323
73324         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73325         numbers.
73326
73327 2006-01-09  Bruno Haible  <bruno@clisp.org>
73328
73329         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73330         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73331         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73332         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73333
73334 2006-01-09  Bruno Haible  <bruno@clisp.org>
73335
73336         * build-aux/javacomp.sh.in: New file, moved from lib/.
73337         * modules/javacomp-script (Files): Update.
73338         (configure.ac): Add AC_CONFIG_FILES invocation.
73339         (EXTRA_DIST): Remove variable.
73340
73341         * build-aux/javaexec.sh.in: New file, moved from lib/.
73342         * modules/javaexec (Files): Update.
73343         (configure.ac): Add AC_CONFIG_FILES invocation.
73344         (EXTRA_DIST): Remove javaexec.sh.in.
73345
73346         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73347         * modules/csharpcomp-script (Files): Update.
73348         (configure.ac): Add AC_CONFIG_FILES invocation.
73349         (EXTRA_DIST): Remove variable.
73350
73351         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73352         * modules/csharpexec (Files): Update.
73353         (configure.ac): Add AC_CONFIG_FILES invocation.
73354         (EXTRA_DIST): Remove csharpexec.sh.in.
73355
73356 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73357
73358         Sync from coreutils.
73359
73360         Add POSIX ACL support
73361         * lib/acl.h (copy_acl, set_acl): Add declarations.
73362         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73363         systems other than Linux.
73364         (chmod_or_fchmod): New function: use fchmod when possible,
73365         and chmod otherwise.
73366         (file_has_acl): Add a POSIX ACL implementation, with a
73367         Linux-specific subcase.
73368         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73369         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73370         acls are unsupported.
73371         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73372         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73373         are unsupported.
73374
73375 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73376
73377         Sync from coreutils.
73378         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73379
73380 2006-01-07  Bruno Haible  <bruno@clisp.org>
73381
73382         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73383         gl_EARLY.
73384
73385 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73386
73387         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73388         Problem reported for Mingw by Mark Junker.
73389
73390 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73391
73392         * README: Gnulib normally doesn't generate a tarball.
73393
73394 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73397         long int, not int, for nanosecond counts, so that people who are
73398         used to POSIX struct timespec won't be surprised.  Reported by Jim
73399         Meyering.
73400
73401 2005-12-28  Bruno Haible  <bruno@clisp.org>
73402
73403         * build-aux/config.rpath: Update from GNU gettext.
73404
73405 2005-12-16  Jim Meyering  <jim@meyering.net>
73406
73407         * modules/fprintftime: New module.
73408         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73409
73410 2005-12-16  Jim Meyering  <jim@meyering.net>
73411
73412         * m4/fprintftime.m4: New file.
73413
73414 2005-12-16  Jim Meyering  <jim@meyering.net>
73415
73416         * lib/fprintftime.c, lib/fprintftime.h: New files.
73417
73418 2005-12-15  Simon Josefsson  <jas@extundo.com>
73419
73420         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73421         new m4/socklen.m4.
73422
73423 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73424
73425         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73426         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73427
73428 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73429
73430         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73431         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73432         struct uparams is valid. Fall back to the default values if it is
73433         not.
73434
73435 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73436
73437         * modules/argp (Files): Add argp-pin.c
73438         (Depends-on): dirname
73439         (lib_SOURCES): Add argp-pin.c
73440
73441 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73442
73443         * m4/argp.m4:  Check if program_invocation_name and
73444         program_invocation_short_name are declared and define appropriate
73445         macros if they are not.
73446
73447 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73448
73449         * lib/argp-help.c (__argp_base_name): New function
73450         (__argp_short_program_name): Rewrite using __argp_base_name
73451         * lib/argp-namefrob.h: Define program_invocation_name and
73452         program_invocation_short_name if requested
73453         (__argp_base_name): Add prototype
73454         * lib/argp-parse.c (argp_def): Use gettext wrappers
73455         (argp_default_parser): Use __argp_base_name
73456         * lib/argp-pin.c: New file. Defines program_invocation_name and
73457         program_invocation_short_name on systems that lack them.
73458
73459 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73460
73461         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73462         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73463         porting problem reported by Georg Schwarz in
73464         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73465
73466 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73467
73468         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73469         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73470         porting problem reported by Georg Schwarz in
73471         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73472
73473 2005-12-05  Bruno Haible  <bruno@clisp.org>
73474
73475         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73476         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73477         Reported by Mark Junker <mjscod@gmx.de>.
73478
73479 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73480
73481         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73482         Use implementation from Albert Chin, with some
73483         comments/corrections by Stepan Kasal and myself.
73484
73485 2005-12-02  Bruno Haible  <bruno@clisp.org>
73486
73487         * gnulib-tool (func_import): Accept GPLed build tool modules when
73488         --lgpl is given.
73489         * modules/csharpcomp-script: New file.
73490         * modules/csharpcomp: Depend on it.
73491         * modules/javacomp-script: New file.
73492         * modules/javacomp: Depend on it.
73493         Suggested by Simon Josefsson.
73494
73495 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73496
73497         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73498         statement, to work around an HP-UX 10.20 compiler bug reported by
73499         Peter O'Gorman.
73500
73501 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73502
73503         * modules/savedir (Depends-on): Add openat.
73504
73505 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73506
73507         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73508         (uintmax_t) [defined uintmax_t]: Do not declare.
73509         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73510         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73511         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73512         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73513         sake of portability to weird hosts that C allows (though we don't
73514         know of any practical examples).
73515
73516         * lib/savedir.h (fdsavedir): New decl.
73517         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73518         contains most of the former guts of savedir.
73519         (savedir): Use savedirstream.
73520         Include "openat.h".
73521
73522 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73523
73524         * modules/obstack (Files): Add m4/ulonglong.m4.
73525         Problem reported by Davide Angelocola.
73526
73527 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73528
73529         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73530         coreutils no longer futzes with rounding modes.
73531
73532 2005-11-14  Jim Meyering  <jim@meyering.net>
73533
73534         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73535         replacement of mkstemp.
73536
73537 2005-11-10  Simon Josefsson  <jas@extundo.com>
73538
73539         * lib/readline.c: Remove EOL.
73540
73541 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73542
73543         * modules/gethrxtime (Depends-on): Add gettime.
73544
73545 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73546
73547         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73548         or gettimeofday; no longer needed.
73549
73550 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73551
73552         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73553         time business.
73554         (gethrxtime) [! (HAVE_NANOUPTIME
73555         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73556         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73557         our own approximation.
73558
73559 2005-11-08  Eric Blake  <ebb9@byu.net>
73560
73561         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73562
73563 2005-11-08  Eric Blake  <ebb9@byu.net>
73564
73565         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73566
73567 2005-11-04  Bruno Haible  <bruno@clisp.org>
73568
73569         * gnulib-tool: Implement --update mode.
73570
73571 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73572
73573         Fix porting problem reported by Theodoros V. Kalamatianos.
73574         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73575         Don't assume that futimes failing means we must fail.
73576
73577 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73578
73579         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73580         variables to suggest the intended function of the PATH_MAX check.
73581
73582 2005-10-30  Kean Johnston  <jkj@sco.com>
73583
73584         Trivial changes to support SCO systems.
73585         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73586         as PATH_MAX.
73587         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73588         where __ptr is null when no I/O is pending.
73589
73590 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73591
73592         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73593         leave errno alone.  Problem reported by Dmitry V. Levin.
73594
73595 2005-10-28  Simon Josefsson  <jas@extundo.com>
73596
73597         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73598         Test more.
73599
73600         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73601
73602         * modules/md2, modules/md2-tests: New files.
73603
73604 2005-10-28  Simon Josefsson  <jas@extundo.com>
73605
73606         * m4/inet_ntop.m4: More tests.
73607
73608         * m4/gc-md2.m4, md2.m4: New file.
73609
73610 2005-10-28  Simon Josefsson  <jas@extundo.com>
73611
73612         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73613         "restrict" keywords, as per POSIX.  Protect the function
73614         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73615         Don't use K&R prototypes.  Check the sprintf return values.
73616         Re-define EAFNOSUPPORT if not present.  Indent.
73617
73618         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73619         suggested by Bruno Haible <bruno@clisp.org>.
73620
73621         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73622
73623         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73624
73625         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73626         libgcrypt).
73627
73628         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73629
73630         * lib/md2.h, lib/md2.c: New files.
73631
73632 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73633
73634         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73635         errno alone.  Problem reported by Frederic Jolliton.
73636
73637 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73638
73639         * modules/verify (License): Change from GPL to LGPL.  This is a
73640         tiny module and there are apparently near-equivalents that are
73641         under the BSD license.
73642
73643 2005-10-24  Simon Josefsson  <jas@extundo.com>
73644
73645         * modules/sha1: Relicense to LGPL.
73646
73647 2005-10-24  Simon Josefsson  <jas@extundo.com>
73648
73649         * lib/md4.h: Shrink buffer size, now that we changed the type.
73650
73651 2005-10-23  Simon Josefsson  <jas@extundo.com>
73652
73653         * gnulib-tool (func_import): Fix --tests-base.
73654
73655 2005-10-22  Simon Josefsson  <jas@extundo.com>
73656
73657         * modules/arcfour (Depends-on): Need stdint.
73658
73659 2005-10-22  Simon Josefsson  <jas@extundo.com>
73660
73661         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73662         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73663
73664 2005-10-22  Simon Josefsson  <jas@extundo.com>
73665
73666         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73667         suggested by Bruno Haible <bruno@clisp.org>.
73668
73669 2005-10-22  Simon Josefsson  <jas@extundo.com>
73670
73671         * lib/crc.h: Include stddef.h, for size_t.
73672
73673 2005-10-22  Simon Josefsson  <jas@extundo.com>
73674
73675         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73676         arcfour_context struct (simplify test vector testing in GNU
73677         Shishi).
73678
73679 2005-10-21  Simon Josefsson  <jas@extundo.com>
73680
73681         * modules/des, modules/des-tests: New files.
73682
73683         * modules/gc-des, modules/gc-des-tests: New files.
73684
73685         * tests/test-des.c, tests/test-gc-des.c: New file.
73686
73687 2005-10-21  Simon Josefsson  <jas@extundo.com>
73688
73689         * modules/arctwo, modules/arctwo-tests: New files.
73690
73691         * tests/test-arctwo.c: New file.
73692
73693         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73694
73695         * tests/test-gc-arctwo.c: New file.
73696
73697 2005-10-21  Simon Josefsson  <jas@extundo.com>
73698
73699         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73700         Bruno Haible <bruno@clisp.org>.
73701
73702         * m4/gc-des.m4: New file.
73703
73704 2005-10-21  Simon Josefsson  <jas@extundo.com>
73705
73706         * m4/arctwo.m4: New file.
73707
73708         * m4/gc-arctwo.m4: New file.
73709
73710 2005-10-21  Simon Josefsson  <jas@extundo.com>
73711
73712         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73713         block.
73714
73715 2005-10-21  Simon Josefsson  <jas@extundo.com>
73716
73717         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73718         <bruno@clisp.org>.
73719
73720         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73721
73722         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73723         Bruno Haible <bruno@clisp.org>.
73724
73725         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73726         <bruno@clisp.org>.
73727
73728 2005-10-21  Simon Josefsson  <jas@extundo.com>
73729
73730         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73731
73732 2005-10-21  Simon Josefsson  <jas@extundo.com>
73733
73734         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73735
73736 2005-10-21  Simon Josefsson  <jas@extundo.com>
73737
73738         * lib/des.h, lib/des.c: New files.
73739
73740         * lib/gc-gnulib.c: Support DES.c
73741
73742 2005-10-21  Simon Josefsson  <jas@extundo.com>
73743
73744         * lib/arctwo.h, lib/arctwo.c: New files.
73745
73746         * lib/gc-gnulib.c: Support ARCTWO.
73747
73748 2005-10-21  Simon Josefsson  <jas@extundo.com>
73749
73750         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73751         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73752
73753 2005-10-21  Simon Josefsson  <jas@extundo.com>
73754
73755         * gnulib-tool (func_import, func_create_testdir): Define automake
73756         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73757         Makefile.am snippet),
73758         suggested by Bruno Haible <bruno@clisp.org>.
73759
73760         * modules/gc (Makefile.am): Use it.
73761
73762 2005-10-21  Bruno Haible  <bruno@clisp.org>
73763
73764         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73765         patch.
73766
73767 2005-10-19  Simon Josefsson  <jas@extundo.com>
73768
73769         * tests/test-gc-rijndael.c: New file.
73770
73771         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73772
73773 2005-10-19  Simon Josefsson  <jas@extundo.com>
73774
73775         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73776         interface too.
73777
73778 2005-10-19  Simon Josefsson  <jas@extundo.com>
73779
73780         * tests/test-gc-arcfour.c: New file.
73781
73782         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73783
73784 2005-10-19  Simon Josefsson  <jas@extundo.com>
73785
73786         * modules/gc-md4, modules/gc-md4-tests: New file.
73787
73788         * tests/test-gc-md4.c: New file.
73789
73790 2005-10-19  Simon Josefsson  <jas@extundo.com>
73791
73792         * m4/gc-md4.m4: New file.
73793
73794 2005-10-19  Simon Josefsson  <jas@extundo.com>
73795
73796         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73797         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73798         <kasal@ucw.cz>.
73799
73800 2005-10-19  Simon Josefsson  <jas@extundo.com>
73801
73802         * m4/gc-arcfour.m4: New file.
73803
73804         * m4/gc-rijndael.m4: New file.
73805
73806 2005-10-19  Simon Josefsson  <jas@extundo.com>
73807
73808         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73809
73810 2005-10-19  Simon Josefsson  <jas@extundo.com>
73811
73812         * lib/gc-gnulib.c: Support ARCFOUR.
73813
73814 2005-10-19  Simon Josefsson  <jas@extundo.com>
73815
73816         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73817         support.
73818
73819         * lib/gc.h: Add ECB enum type.
73820
73821         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73822
73823 2005-10-18  Simon Josefsson  <jas@extundo.com>
73824
73825         * tests/test-md5.c: New file.
73826
73827         * modules/md5-tests: New file.
73828
73829 2005-10-18  Simon Josefsson  <jas@extundo.com>
73830
73831         * tests/test-md4.c: New file.
73832
73833         * modules/md4, modules/md4-tests: New files.
73834
73835 2005-10-18  Simon Josefsson  <jas@extundo.com>
73836
73837         * m4/md4.m4: New file.
73838
73839 2005-10-18  Simon Josefsson  <jas@extundo.com>
73840
73841         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73842
73843 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73844
73845         * gnulib-tool (func_create_testdir): Omit the second check whether
73846         BUILT_SOURCES in nonempty.
73847
73848 2005-10-17  Simon Josefsson  <jas@extundo.com>
73849
73850         * tests/test-rijndael.c: New file.
73851
73852 2005-10-17  Simon Josefsson  <jas@extundo.com>
73853
73854         * modules/sha1: Depend on stdint instead of md5.
73855
73856         * modules/md5: Depend on stdint, remove uint32_t.
73857
73858 2005-10-17  Simon Josefsson  <jas@extundo.com>
73859
73860         * modules/gc-sha1-tests: New file.
73861
73862         * tests/test-gc-sha1.c: New file.
73863
73864 2005-10-17  Simon Josefsson  <jas@extundo.com>
73865
73866         * m4/md5.m4: Remove call to uint32_t.m4.
73867
73868 2005-10-17  Simon Josefsson  <jas@extundo.com>
73869
73870         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73871
73872         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73873         md5.h.
73874
73875         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73876
73877         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73878
73879 2005-10-17  Simon Josefsson  <jas@extundo.com>
73880
73881         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73882
73883 2005-10-17  Simon Josefsson  <jas@extundo.com>
73884
73885         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73886
73887 2005-10-17  Simon Josefsson  <jas@extundo.com>
73888
73889         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73890
73891         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73892
73893 2005-10-17  Bruno Haible  <bruno@clisp.org>
73894
73895         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73896         that it can also be used in a test.
73897
73898 2005-10-16  Bruno Haible  <bruno@clisp.org>
73899
73900         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73901         TESTS_ENVIRONMENT, so that individual tests can augment it.
73902
73903         * gnulib-tool (func_create_testdir): Use an intermediate target for
73904         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73905         macros, like $(ALLOCA_H), which cannot be passed through the command
73906         line.
73907
73908 2005-10-15  Simon Josefsson  <jas@extundo.com>
73909
73910         * modules/rijndael-tests: New file.
73911
73912         * modules/rijndael: New file.
73913
73914 2005-10-15  Simon Josefsson  <jas@extundo.com>
73915
73916         * m4/rijndael.m4: New file.
73917
73918 2005-10-15  Simon Josefsson  <jas@extundo.com>
73919
73920         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73921
73922         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73923
73924 2005-10-14  Simon Josefsson  <jas@extundo.com>
73925
73926         * tests/test-arcfour.c: New file.
73927
73928         * modules/arcfour, modules/arcfour-tests: New files.
73929
73930 2005-10-14  Simon Josefsson  <jas@extundo.com>
73931
73932         * m4/arcfour.m4: New file.
73933
73934 2005-10-14  Simon Josefsson  <jas@extundo.com>
73935
73936         * lib/arcfour.h, lib/arcfour.c: New files.
73937
73938 2005-10-14  Roland McGrath  <roland@redhat.com>
73939
73940         Import from libc.  [BZ #1331]
73941         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73942         macro argument.
73943         Reported by Matej Vela <vela@debian.org>.
73944
73945 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73948         include <wchar.h>; no longer needed.
73949
73950 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73951
73952         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73953
73954 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73955         and  Ulrich Drepper  <drepper@redhat.com>
73956
73957         Import from libc.
73958         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73959         instead of inline stream orientation test and two separate
73960         function calls.  Pay no attention to USE_IN_LIBIO.
73961
73962 2005-10-13  Simon Josefsson  <jas@extundo.com>
73963
73964         * modules/gc-hmac-md5-tests: New file.
73965
73966         * tests/test-gc-hmac-sha1.c: New file.
73967
73968         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73969
73970         * modules/gc-hmac-md5-tests: New file.
73971
73972         * tests/test-gc-md5.c: New file.
73973
73974         * modules/gc-md5-tests: New file.
73975
73976 2005-10-13  Simon Josefsson  <jas@extundo.com>
73977
73978         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73979         Move memory allocation outside of loop.
73980
73981 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73982
73983         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73984         intermediate directory is in a read-only file system.  Problem
73985         reported by Eric Blake.
73986
73987 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73988
73989         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73990
73991 2005-10-12  Simon Josefsson  <jas@extundo.com>
73992
73993         * tests/test-hmac-sha1.c: New file.
73994
73995         * modules/hmac-sha1-tests: New file.
73996
73997         * modules/hmac-sha1: New file.
73998
73999 2005-10-12  Simon Josefsson  <jas@extundo.com>
74000
74001         * modules/gc-sha1: New file.
74002
74003 2005-10-12  Simon Josefsson  <jas@extundo.com>
74004
74005         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74006
74007         * tests/test-gc-pbkdf2-sha1.c: New file.
74008
74009 2005-10-12  Simon Josefsson  <jas@extundo.com>
74010
74011         * modules/gc-md5, modules/gc-hmac-md5: New files.
74012
74013         * modules/gc (Files): Remove md5, memxor and hmac files.
74014
74015 2005-10-12  Simon Josefsson  <jas@extundo.com>
74016
74017         * m4/gc-pbkdf2-sha1.m4: New file.
74018
74019         * m4/gc-hmac-sha1.m4: New file.
74020
74021         * m4/gc-sha1: New file.
74022
74023         * m4/hmac-sha1.m4: New file.
74024
74025 2005-10-12  Simon Josefsson  <jas@extundo.com>
74026
74027         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74028
74029         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74030
74031 2005-10-12  Simon Josefsson  <jas@extundo.com>
74032
74033         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74034         suggested by Bruno Haible <bruno@clisp.org>.
74035
74036 2005-10-12  Simon Josefsson  <jas@extundo.com>
74037
74038         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74039
74040 2005-10-12  Simon Josefsson  <jas@extundo.com>
74041
74042         * lib/gc-pbkdf2-sha1.c: New file.
74043
74044         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74045
74046 2005-10-12  Simon Josefsson  <jas@extundo.com>
74047
74048         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74049
74050         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74051
74052 2005-10-12  Simon Josefsson  <jas@extundo.com>
74053
74054         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74055         GC_USE_HMAC_MD5, respectively.
74056
74057         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74058         (gc_md5): Fix typo.
74059
74060         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74061
74062         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74063
74064         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74065
74066 2005-10-12  Bruno Haible  <bruno@clisp.org>
74067
74068         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74069         Reported by Stepan Kasal <kasal@ucw.cz>.
74070
74071 2005-10-11  Simon Josefsson  <jas@extundo.com>
74072
74073         * tests/test-crc.c: New file.
74074
74075         * modules/crc, modules/crc-tests: New files.
74076
74077 2005-10-11  Simon Josefsson  <jas@extundo.com>
74078
74079         * m4/crc.m4: New file.
74080
74081 2005-10-11  Simon Josefsson  <jas@extundo.com>
74082
74083         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74084
74085         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74086
74087         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74088
74089 2005-10-11  Simon Josefsson  <jas@extundo.com>
74090
74091         * lib/crc.h, lib/crc.c: New files.
74092
74093         * lib/gc.h (gc_hash_buffer): Add doc.
74094
74095 2005-10-11  Bruno Haible  <bruno@clisp.org>
74096
74097         * modules/c-strcasestr: New file.
74098         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74099
74100 2005-10-11  Bruno Haible  <bruno@clisp.org>
74101
74102         * modules/c-strcase: New file.
74103         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74104
74105 2005-10-11  Bruno Haible  <bruno@clisp.org>
74106
74107         * lib/strcasecmp.c: Include limits.h.
74108         (strcasecmp): Avoid integer overflow on exotic platforms.
74109         * lib/strncasecmp.c: Include limits.h.
74110         (strncasecmp): Avoid integer overflow on exotic platforms.
74111         Reported by Paul Eggert.
74112
74113 2005-10-11  Bruno Haible  <bruno@clisp.org>
74114
74115         * lib/c-strcasestr.h: New file, from GNU gettext.
74116         * lib/c-strcasestr.c: New file, from GNU gettext.
74117
74118 2005-10-11  Bruno Haible  <bruno@clisp.org>
74119
74120         * lib/c-strcase.h: New file, from GNU gettext.
74121         * lib/c-strcasecmp.c: New file, from GNU gettext.
74122         * lib/c-strncasecmp.c: New file, from GNU gettext.
74123
74124 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74125
74126         * modules/mempcpy (License): GPL -> LGPL.
74127         * modules/strchrnul (License): Likewise.
74128         * modules/sysexits (License): Likewise.
74129
74130 2005-10-08  Simon Josefsson  <jas@extundo.com>
74131
74132         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74133
74134 2005-10-07  Simon Josefsson  <jas@extundo.com>
74135
74136         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74137
74138 2005-10-06  Simon Josefsson  <jas@extundo.com>
74139
74140         * tests/test-hmac-md5.c: New file.
74141
74142         * modules/hmac-md5-tests: New file.
74143
74144         * modules/hmac-md5: New file.
74145
74146 2005-10-06  Simon Josefsson  <jas@extundo.com>
74147
74148         * m4/hmac-md5.m4: New file.
74149
74150         * m4/memxor.m4: Require gl_C_RESTRICT.
74151
74152 2005-10-06  Simon Josefsson  <jas@extundo.com>
74153
74154         * lib/memxor.c (memxor): Avoid casts and warnings.
74155
74156 2005-10-06  Simon Josefsson  <jas@extundo.com>
74157
74158         * lib/hmac-md5.c: New file.
74159
74160         * lib/hmac.h: New file.
74161
74162 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74163
74164         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74165         promotes to int, not unsigned int, to catch the AIX 5.3
74166         compiler bug.
74167
74168 2005-10-05  Simon Josefsson  <jas@extundo.com>
74169
74170         * modules/memxor: New file.
74171
74172         * modules/iconv (Files): Move config.rpath to havelib, it is used
74173         there.
74174
74175         * modules/havelib (Files): Add config.rpath.
74176
74177 2005-10-05  Simon Josefsson  <jas@extundo.com>
74178
74179         * m4/memxor.m4: New file.
74180
74181 2005-10-05  Simon Josefsson  <jas@extundo.com>
74182
74183         * lib/memxor.c (memxor): Fix compiler error.
74184
74185         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74186         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74187
74188         * lib/memxor.h, lib/memxor.c: New files.
74189
74190         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74191         we assume all systems have it, suggested by Jim Meyering
74192         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74193         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74194         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74195         same reasons.
74196
74197 2005-10-05  Simon Josefsson  <jas@extundo.com>
74198
74199         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74200
74201 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74204         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74205         needed, since the source code now assumes these .h files.
74206
74207 2005-10-05  Derek Price  <derek@ximbiot.com>
74208
74209         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74210
74211 2005-10-05  Bruno Haible  <bruno@clisp.org>
74212
74213         * modules/stdint (License): Change to LGPL.
74214
74215 2005-10-04  Simon Josefsson  <jas@extundo.com>
74216
74217         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74218         D. Baushke" <mdb@gnu.org>.
74219
74220 2005-10-04  Bruno Haible  <bruno@clisp.org>
74221
74222         * lib/verify.h (verify_true): Provide alternative definition for C++.
74223
74224 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74225
74226         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74227         (SSIZE_MAX): New macro, if not already defined.
74228         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74229         than 2 GiB.
74230
74231 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74232
74233         Sync from coreutils.
74234         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74235         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74236         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74237         ULLONG_MAX doesn't work with 2.7.2.1.
74238
74239 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74240
74241         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74242         From Ben Pfaff.
74243
74244         * modules/exclude (Depends-on): Depend on verify.
74245         * modules/strtoimax (Depends-on): Likewise.
74246         * modules/utimecmp (Depends-on): Likewise.
74247
74248 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74249
74250         * lib/exclude.c: Include verify.h.
74251         (verify): Remove.  All callers changed to use verify.h's version.
74252         * lib/strtoimax.c: Likewise.
74253         * lib/utimecmp.c: Likewis.e
74254
74255         Sync from coreutils.
74256         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74257         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74258         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74259         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74260         bother returning ENOSYS if settimeofday or stime fails; just let
74261         them return whatever errno they want to return.
74262         * lib/utimens.c: Include unistd.h, for dup2.
74263         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74264         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74265
74266 2005-10-02  Jim Meyering  <jim@meyering.net>
74267
74268         Sync from coreutils.
74269         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74270         from glibc-2.2.5 that fails for read-only files.
74271
74272 2005-10-02  Jim Meyering  <jim@meyering.net>
74273
74274         Sync from coreutils.
74275         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74276         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74277         `#if HAVE_CONFIG_H'.
74278         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74279         Remove AT_FDCWD test.
74280         Do not consume the fd unless successful.
74281         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74282         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74283         block, so that we don't even try to compile it if settimeofday is
74284         available.  This works around a compilation failure on OSF1 V5.1,
74285         due to stime requiring a `long int*' while tv_sec is `int'.
74286
74287 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74288
74289         Sync from coreutils.
74290         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74291         against `yes', rather than just testing for nonempty.
74292
74293 2005-10-01  Simon Josefsson  <jas@extundo.com>
74294
74295         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74296         and Darwin.
74297
74298         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74299         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74300         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74301         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74302         Check if struct addrinfo is declared.
74303
74304 2005-10-01  Simon Josefsson  <jas@extundo.com>
74305
74306         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74307         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74308         AI_* and EAI_* definitions.  Protect function declarations.
74309
74310 2005-10-01  Jim Meyering  <jim@meyering.net>
74311
74312         Sync from coreutils.
74313
74314         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74315         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74316         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74317         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74318         in the inet and nsl libraries.  Required on Solaris 5.7.
74319
74320 2005-10-01  Jim Meyering  <jim@meyering.net>
74321
74322         Sync from coreutils.
74323         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74324         in the inet and nsl libraries.  Required on Solaris 5.7.
74325
74326 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74327
74328         * lib/getdelim.c (getdelim): Remove unused variables.
74329
74330 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74331
74332         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74333         so that the code works even with ancient cpp.  Portability problem
74334         with GCC 2.7.2.1 reported by Thomas M.Ott.
74335
74336 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74337
74338         * modules/regex (Depends-on): Add strcase.
74339
74340         * modules/gethostname (Licence): Change from GPL to LGPL, since
74341         gethostname.c is a trivial implementation of a standard library
74342         function.
74343         * modules/poll (License): Change from GPL to LGPL, since it's
74344         derived from LGPL code.
74345
74346 2005-09-27  Jim Meyering  <jim@meyering.net>
74347
74348         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74349         HAVE_CONFIG_H.
74350
74351         * lib/intprops.h (signed_type_or_expr__): Define.
74352         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74353         for unsigned types.
74354
74355 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74356
74357         * lib/verify.h (verify_expr): Remove, replacing with:
74358         (verify_true): New macro that returns true instead of void.
74359         (verify_type__): Remove.
74360         (verify): Use verify_true rather than verify_type__.
74361
74362 2005-09-26  Bruno Haible  <bruno@clisp.org>
74363
74364         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74365         is necessary.
74366         (lib_SOURCES): Remove mbchar.c.
74367         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74368         (Files): Add m4/mbrtowc.m4.
74369         * modules/mbiter: Likewise.
74370         * modules/mbuiter: Likewise.
74371
74372 2005-09-26  Bruno Haible  <bruno@clisp.org>
74373
74374         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74375         compile mbchar.c if they are not both present.
74376         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74377         * m4/mbiter.m4 (gl_MBITER): Likewise.
74378         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74379         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74380         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74381
74382 2005-09-25  Jim Meyering  <jim@meyering.net>
74383
74384         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74385         also uses socklen_t.
74386
74387 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74388
74389         * lib/utimens.c (ENOSYS): Define if not already defined.
74390         (futimens): Support having a null PATH if the file descriptor
74391         is nonnegative.
74392
74393         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74394         Remove.
74395         (__attribute): Define to empty unless GCC 3.1 or later.
74396         This works around a core dump on OpenBSD 3.4, which has GCC
74397         2.95.3, which dumps core when given __attribute__(()).  It also
74398         simplifies other tests, since we really don't want to bother with
74399         worrying about which ancient version of GCC supported what.
74400         Original problem reported by Yoann Vandoorselaere, with part of
74401         the fix suggested by Derek Price.
74402
74403 2005-09-24  Jim Meyering  <jim@meyering.net>
74404
74405         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74406         so we can once again use a positive bitfield width of 1 -- now we
74407         don't have to explain why we were using a bitfield width of 2.
74408
74409 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74410
74411         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74412         and similarly for the other external symbols.  Problem reported
74413         by James Gallager.
74414
74415         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74416         bug reported by Jim Meyering.
74417
74418         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74419         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74420         not needed, since socklen is a prerequisite module.
74421
74422 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74423
74424         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74425         Problem reported by Eric Blake.
74426         (getaddrinfo): Initialize se so that it's not garbage.
74427         Redo internal storage allocation so that it doesn't make unportable
74428         assumptions about alignment.
74429         Fix a memory leak.
74430
74431         * lib/utimens.c (futimens): Use futimesat if available.
74432         Prefer it to futimes since it doesn't have the futimes bug.
74433
74434         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74435         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74436         Instead, declare a function that returns a pointer to an array,
74437         and use verify_type__ to declare the size of the array.
74438         Problem and germ of a solution reported by Bruno Haible.
74439         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74440         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74441
74442 2005-09-23  Jim Meyering  <jim@meyering.net>
74443
74444         Sync from coreutils.
74445         Correct build failure (socklen_t not defined) on at least
74446         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74447         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74448
74449 2005-09-23  Jim Meyering  <jim@meyering.net>
74450
74451         * modules/getaddrinfo (Depends-on): Add socklen.
74452
74453 2005-09-23  Bruno Haible  <bruno@clisp.org>
74454
74455         * tests/test-verify.c: New file.
74456
74457 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74458
74459         Sync from coreutils.
74460
74461         * modules/argmatch (Depends-on): Add verify.
74462         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74463         unistd-safer.
74464         * modules/save-cwd (Depends-on): Likewise.
74465
74466         * modules/openat (Files): Add lib/openat-die.c.
74467         (Depends-on): Remove error, exitfail.
74468         Add dirname.
74469
74470         * modules/verify: New file.
74471         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74472         with "verify" module.
74473
74474 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74475
74476         Sync from coreutils.
74477
74478         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74479         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74480         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74481         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74482         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74483         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74484         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74485         Don't bother checking for string.h, stdlib.h, unistd.h.
74486         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74487         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74488         module's job.
74489         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74490         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74491
74492         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74493         (gl_GETDATE): Use it.
74494
74495         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74496
74497 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74498
74499         Sync from coreutils.
74500
74501         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74502         stat-time.h.
74503         * lib/argmatch.h: Include verify.h
74504         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74505         (ARGMATCH_ASSERT): Remove; unused.
74506         * lib/canonicalize.c: Assume STDC_HEADERS.
74507         * lib/exclude.c: Include "strcase.h".
74508         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74509         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74510         and stdio-safer.h.
74511         (getusershell): Call fopen, not fopen_safer.
74512         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74513         Do not include unistd-safer.h.
74514         (save_cwd): Don't call fd_safer; no longer needed
74515         now that we include fcntl--.h.
74516
74517         * lib/getdate.y (relative_time): New type.
74518         (RELATIVE_TIME_0): New constant.
74519         (parser_control): Use relative_time instead of doing it ourselves.
74520         (%union): Add new relative_time rel member.
74521         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74522         Now typeless.
74523         (relunit, relunit_snumber): Now of type rel.
74524         (zone, rel, relunit, get_date): Adjust to above changes.
74525
74526         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74527         Do not include unistd-safer.h.
74528         (getloadavg): Don't call fd_safer; no longer needed
74529         now that we include fcntl--.h.
74530
74531         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74532         (make_dir_parents): Treat ENOSYS like EEXIST.
74533
74534         Improve quality of diagnostics on restore_cwd failure.
74535         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74536         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74537         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74538         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74539         each time through the loop.  Do not diagnose restore_cwd failure;
74540         that is the caller's job (and perhaps the caller does not care).
74541
74542         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74543         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74544         If the file already exists but is not a directory, don't bother
74545         to try to make its parents.
74546         Close potential file descriptor leak if we can't chdir("/") (!).
74547         Don't always return true if chdir($PWD) fails; return true only
74548         if the requested action was done successfully (except for the
74549         chdir($PWD)).
74550         Don't log final directory unless we actually made it.
74551         Refactor to avoid duplicate code to fix up permissions.
74552         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74553
74554         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74555         to make it a bit faster and (I hope) clearer.
74556         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74557         Fix bug in formats like %2N.
74558
74559         * lib/verify.h: New file.
74560
74561 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74562
74563         Sync from coreutils.
74564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74565
74566 2005-09-22  Jim Meyering  <jim@meyering.net>
74567
74568         Sync from coreutils.
74569
74570         * m4/lstat.m4 (gl_FUNC_LSTAT):
74571         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74572         Remove obsolete comment.
74573         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74574         * m4/xstrtod.m4: Likewise.
74575
74576         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74577
74578 2005-09-22  Jim Meyering  <jim@meyering.net>
74579
74580         Sync from coreutils.
74581
74582         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74583
74584         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74585         the .tm_year member, since otherwise gcc-4.0 would now warn about
74586         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74587
74588         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74589         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74590
74591         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74592         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74593         when run in a time zone for which daylight savings time is in effect
74594         for the starting date.
74595
74596         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74597         stop us from restricting permissions of just-created absolute-named
74598         directories.
74599         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74600         to restore initial working directory.
74601         * lib/mkdir-p.c (make_dir_parents): New parameter:
74602         different_working_dir, to tell caller if/when we change the working
74603         directory and are unable to return to the initial one.
74604         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74605         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74606         `return false'.  This fixes a bug introduced on 2004-07-30.
74607
74608         * lib/openat.c (fdopendir): Be sure to close the supplied
74609         file descriptor before returning.  This makes our replacement
74610         implementation a little closer to Solaris's, where fdopendir
74611         ties the file descriptor to the returned DIR* pointer.
74612         * lib/openat.c (unlinkat): New function.
74613         * lib/openat.h (unlinkat): Add prototype.
74614         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74615         (openat_restore_fail): Rename from openat_restore_die.
74616         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74617
74618         Provide an alternative to exiting immediately upon save_cwd or
74619         restore_cwd failure.  Now, an application can arrange e.g.,
74620         to perform a longjump in that case.
74621         * lib/openat.c: Include dirname.h.
74622         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74623         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74624         and openat_restore_die rather than calling error directly.
74625         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74626
74627         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74628         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74629         define.
74630
74631         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74632         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74633                             int utc, int nanoseconds);
74634         Background:
74635         date should not have to allocate a megabyte of virtual memory to
74636         handle a format argument like +%1048575T.  When implemented with
74637         strftime, it must allocate such a buffer, use strftime to fill it
74638         in, print it, then free it.
74639         With fprintftime, it simply prints everything and exits.
74640         With no need for memory allocation, that's one fewer way to fail.
74641         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74642         optional field width, not before, so we accept %9:z, not %:9z.
74643         (my_strftime): Be sure to use L_('x') for literals.
74644
74645         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74646         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74647         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74648         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74649         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74650         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74651         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74652         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74653         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74654         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74655         * lib/xgethostname.c, lib/xreadlink.c:
74656         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74657
74658         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74659         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74660         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74661         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74662         and don't include <sys/file.h>).
74663
74664 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74665
74666         Sync from coreutils.
74667
74668         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74669         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74670         [!LDAV_DONE]: Avoid unused variable warning.
74671
74672 2005-09-21  Bruno Haible  <bruno@clisp.org>
74673
74674         * lib/unicodeio.h (unicode_to_mb): New declaration.
74675
74676 2005-09-20  Derek Price  <derek@ximbiot.com>
74677
74678         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74679         getaddrinfo.h.
74680
74681 2005-09-20  Bruno Haible  <bruno@clisp.org>
74682
74683         * gnulib-tool: Remove trailing slashes from the values specified for
74684         --source-base, --m4-base, --tests-base, --aux-dir.
74685         Suggested by Simon Josefsson <jas@extundo.com>.
74686
74687 2005-09-20  Bruno Haible  <bruno@clisp.org>
74688
74689         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74690         func_modules_to_filelist, func_import, func_create_testdir): Make all
74691         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74692         change when gnulib-tool is invoked in a different locale.
74693
74694 2005-09-19  Simon Josefsson  <jas@extundo.com>
74695
74696         * m4/socklen.m4: Fix typo.
74697
74698 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74699
74700         Use a consistent style for including <config.h>.
74701         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74702         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74703         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74704         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74705         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74706         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74707         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74708         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74709         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74710         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74711         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74712         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74713         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74714         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74715         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74716         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74717         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74718         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74719         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74720         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74721         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74722         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74723         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74724         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74725         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74726         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74727         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74728         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74729         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74730         lib/xstrtoumax.c, lib/yesno.c:
74731         Standardize inclusion of config.h.
74732         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74733         lib/inttostr.h:  Removed inclusion of config.h from header files.
74734         * lib/inttostr.c:  Adjusted in-tree users.
74735         * lib/timespec.h: Remove superfluous warning to include config.h.
74736         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74737         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74738         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74739         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74740         config.h with HAVE_CONFIG_H.
74741
74742 2005-09-19  Jim Meyering  <jim@meyering.net>
74743
74744         * modules/pathmax (License): Change to LGPL.
74745
74746 2005-09-19  Derek Price  <derek@ximbiot.com>
74747
74748         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74749
74750 2005-09-19  Bruno Haible  <bruno@clisp.org>
74751
74752         * gnulib-tool (import): Provide default for --tests-base.
74753
74754 2005-09-19  Bruno Haible  <bruno@clisp.org>
74755
74756         * doc/quote.texi: New file, extracted from gnulib.texi.
74757         * doc/ctime.texi: New file, extracted from gnulib.texi.
74758         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74759         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74760         * doc/gnulib.texi: Include them.
74761
74762 2005-09-18  Bruno Haible  <bruno@clisp.org>
74763
74764         Portability fix.
74765         * gnulib-tool (func_readlink): New function.
74766         (func_ln_if_changed): Use it.
74767
74768 2005-09-18  Bruno Haible  <bruno@clisp.org>
74769
74770         * gnulib-tool: Support --with-tests also with --import.
74771         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74772         (func_import): Use variables $testsbase and $inctests. Emit a
74773         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74774         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74775         SUBDIRS += $testsdir.
74776         (func_create_testdir): Update.
74777
74778 2005-09-18  Bruno Haible  <bruno@clisp.org>
74779
74780         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74781         instead of $dry_run.
74782         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74783         (func_ln_if_changed): Don't handle dry-run here.
74784         (func_import): In dry-run mode, detect more precisely which actions
74785         would be performed, and don't use "...ing" verbs.
74786
74787 2005-09-18  Bruno Haible  <bruno@clisp.org>
74788
74789         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74790         (func_import): Use join on two temporary files instead of three nested
74791         loops, in order to determine which files are new or old.
74792
74793 2005-09-18  Bruno Haible  <bruno@clisp.org>
74794
74795         * gnulib-tool (func_import): Comment out code that spits out the
74796         new files with --dry-run.
74797
74798 2005-09-18  Bruno Haible  <bruno@clisp.org>
74799
74800         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74801
74802 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         * lib/stat-time.h: New file.
74805         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74806         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74807         in a different way.
74808         (timespec_cmp): New function.
74809         * lib/utimecmp.c: Include stat-time.h.
74810         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74811         members exist, not on the obsolescent ST_MTIM_NSEC.
74812         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74813
74814 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74815
74816         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74817
74818 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74819
74820         * MODULES.html.sh (File system functions): Add stat-time.
74821         * modules/stat-time: New file.
74822         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74823         is now done in a different way, by the stat-time module.
74824         * modules/utimecmp (Depends-on): Add stat-time.
74825
74826 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74827
74828         * m4/st_mtim.m4: Remove.  Superseded by...
74829         * m4/stat-time.m4: New file.
74830         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74831         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74832
74833 2005-09-15  Derek Price  <derek@ximbiot.com>
74834
74835         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74836
74837 2005-09-15  Derek Price  <derek@ximbiot.com>
74838
74839         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74840         * lib/regex_internal.c: Ditto, using this...
74841         (__GNUC_PREREQ): ...new macro.
74842         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74843         using...
74844         (__GNUC_PREREQ): ...this new macro.
74845
74846         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74847
74848 2005-09-15  Derek Price  <derek@ximbiot.com>
74849             Paul Eggert  <eggert@cs.ucla.edu>
74850
74851         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74852         changes, consolidating in...
74853         * lib/regex_internal.h: ...this file.
74854
74855 2005-09-13  Jim Meyering  <jim@meyering.net>
74856
74857         * lib/canon-host.c: Filter through gnu indent and reword comments
74858         slightly.
74859         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74860
74861 2005-09-13  Derek Price  <derek@ximbiot.com>
74862
74863         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74864         failure.
74865         Reported by Jim Meyering  <jim@meyering.net>.
74866
74867 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74868
74869         * lib/base64.c: Typo.
74870         (base64_encode): Put b64str in initialized data section.
74871
74872 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74873
74874         Merge glibc and coreutils changes into gnulib, plus a few
74875         extra fixes.
74876         * lib/md5.c: Use #error rather than a string.
74877         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74878         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74879         (__attribute__): Define to empty for non recent-GCC.
74880         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74881         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74882         Renamed from their non-__ counterparts, with new macros replacing
74883         them if not _LIBC.  Add __THROW attribute.
74884         (rol): Remove.
74885         (struct md5_ctx): Align buffer if using GCC.
74886         * lib/sha1.h (struct sha1_ctx): Likewise.
74887         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74888         The old name was backwards.
74889         (NOTSWAP): Remove; not used.
74890         (rol): New macro, moved here from md5.h.
74891         (sha1_process_block): Remove a FIXME that doesn't make sense.
74892
74893 2005-09-12  Derek Price  <derek@ximbiot.com>
74894
74895         Return usable errors from canon-host.
74896         * lib/canon-host.h: New file.
74897         * lib/canon-host.c (canon_host): Wrap...
74898         (canon_host_r): ...this new function, which now relies exclusively on
74899         getaddrinfo.
74900         (ch_strerror): New function.
74901         (last_cherror): New global.
74902         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74903         interface.
74904         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74905         void *.
74906         (freeaddrinfo): Free ai->ai_canonname when set.
74907
74908 2005-09-12  Derek Price  <derek@ximbiot.com>
74909
74910         Make canon-host require getaddrinfo.
74911         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74912         AC_LIBSOURCE canon-host.h.  Call...
74913         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74914         gl_GETADDRINFO.
74915         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74916
74917 2005-09-12  Derek Price  <derek@ximbiot.com>
74918
74919         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74920         LGPL.
74921         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74922
74923 2005-09-12  Derek Price  <derek@ximbiot.com>
74924
74925         * lib/gai_strerror.c: Include config.h when available.  Include
74926         getaddrinfo.h before other headers to test interface.
74927         Reported by Larry Jones <lawrence.jones@ugs.com>.
74928
74929 2005-09-12  Derek Price  <derek@ximbiot.com>
74930             Paul Eggert  <eggert@cs.ucla.edu>
74931
74932         * modules/glob (Files): Add glob-libc.h.
74933
74934 2005-09-12  Derek Price  <derek@ximbiot.com>
74935             Paul Eggert  <eggert@cs.ucla.edu>
74936
74937         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74938         glob_.h, glob-libc.h.
74939         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74940
74941 2005-09-12  Derek Price  <derek@ximbiot.com>
74942             Paul Eggert  <eggert@cs.ucla.edu>
74943
74944         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74945         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74946         protecting things that should be done only in gnulib contexts.
74947         * lib/glob_.h: New file, containing only the glob things needed for
74948         gnulib.
74949         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74950         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74951         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74952         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74953         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74954         and to respect the namespace rules better.
74955
74956 2005-09-08  Simon Josefsson  <jas@extundo.com>
74957
74958         * modules/socklen: New file.
74959
74960 2005-09-08  Simon Josefsson  <jas@extundo.com>
74961
74962         * m4/socklen.m4: New file.
74963
74964 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74965
74966         * modules/utimens (Files): Add m4/utimbuf.m4, since
74967         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74968         Reported by Sergey Poznyakoff.
74969
74970 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74973         definitions, since that's the preferred style in glibc.
74974         Fix a minor spacing issue, and update copyright notice to match
74975         glibc's.
74976
74977 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74978
74979         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74980
74981 2005-09-06  Simon Josefsson  <jas@extundo.com>
74982
74983         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74984         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74985
74986 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74987
74988         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74989         warning.
74990
74991 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74992
74993         * config/srclist.txt: Add glibc bug 1302.
74994
74995 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74996
74997         Change bitset word type from unsigned int to unsigned long int,
74998         as this has better performance on typical 64-bit hosts.
74999         Port bitset code to hosts with unusual word sizes.
75000         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75001         (build_collating_symbol):
75002         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75003         argument is a bitset.  This is merely a style issue, but it makes
75004         it clearer that an entire array is expected.
75005         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75006         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75007         Port to the case where bitset_word is not the same as unsigned int.
75008         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75009         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75010         Likewise.
75011         * lib/regexec.c (check_dst_limits_calc_pos_1,
75012         check_subexp_matching_top):
75013         (build_trtable, group_nodes_into_DFAstates):
75014         Likewise.
75015         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75016         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75017         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75018         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75019         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75020         * lib/regcomp.c (optimize_subexps, lower_subexp):
75021         Work even if bitset_word has holes in its bitwise representation.
75022         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75023         * lib/regexec.c (check_dst_limits_calc_pos_1,
75024         check_subexp_matching_top):
75025         Likewise.
75026         * lib/regex_internal.c (re_string_reconstruct):
75027         Don't assume UCHAR_MAX == 255.
75028         * lib/regex_internal.h (bitset_set_all): Likewise.
75029         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75030         All uses changed.
75031         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75032         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75033         All uses changed.
75034         (BITSET_WORD_MAX): New macro.
75035         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75036         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75037         (bitset_empty, bitset_copy):
75038         Prefer sizeof (bitset) to multiplying it out ourselves.
75039         (bitset_not_merge): Remove; unused.
75040         (bitset_contain): Return bool, not unsigned int with one bit on.
75041         All callers changed.
75042         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75043         alignment than re_node_set; do this by defining a new internal
75044         type struct dests_alloc and using it to allocate memory.
75045
75046 2005-09-05  Bruno Haible  <bruno@clisp.org>
75047
75048         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75049         links.
75050
75051 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75052
75053         * modules/size_max (Makefile.am): Add size_max.h
75054
75055 2005-09-04  Derek Price  <derek@ximbiot.com>
75056
75057         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75058
75059 2005-09-03  Simon Josefsson  <jas@extundo.com>
75060
75061         * gnulib-tool: Fix typo.
75062
75063 2005-09-03  Simon Josefsson  <jas@extundo.com>
75064
75065         * config/srclist.txt: Add glibc bug 1293.
75066
75067 2005-09-03  Derek Price  <derek@ximbiot.com>
75068
75069         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75070         From Larry Jones <lawrence.jones@ugs.com>.
75071
75072 2005-09-02  Simon Josefsson  <jas@extundo.com>
75073
75074         * modules/socklen: New file.
75075
75076 2005-09-02  Simon Josefsson  <jas@extundo.com>
75077
75078         * modules/havelib: New module.
75079
75080         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75081         Use havelib.
75082
75083 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75084
75085         Check for arithmetic overflow when calculating sizes, to prevent
75086         some buffer-overflow issues.  These patches are conservative, in the
75087         sense that when I couldn't determine whether an overflow was possible,
75088         I inserted a run-time check.
75089         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75090         macros.
75091         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75092         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75093         (re_xnrealloc, re_x2nrealloc): New inline functions.
75094         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75095         parse_bracket_exp):
75096         (build_equiv_class, build_charclass): Check for arithmetic overflow
75097         in size expression calculations.
75098         * lib/regex_internal.c (re_string_realloc_buffers):
75099         (build_wcs_upper_buffer, re_node_set_add_intersect):
75100         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75101         (re_dfa_add_node, register_state): Likewise.
75102         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75103         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75104         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75105         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75106
75107 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75108
75109         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75110         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75111
75112 2005-09-02  Bruno Haible  <bruno@clisp.org>
75113
75114         Support for lib vs. lib64 distinction on biarch platforms.
75115         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75116         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75117         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75118
75119 2005-09-02  Bruno Haible  <bruno@clisp.org>
75120
75121         * gnulib-tool (import): In the other first-use case, provide defaults
75122         as well.
75123
75124 2005-09-02  Bruno Haible  <bruno@clisp.org>
75125
75126         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75127         patches not yet found in the latest gettext release.
75128
75129 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75130
75131         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75132         to avoid a collision with bits/local_lim.h in glibc.
75133         All uses changed.  Problem reported by Dmitry V. Levin in
75134         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75135
75136         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75137         bugs in int versus size_t comparisons.
75138         (re_string_context_at): Fix bug where the code assumed that
75139         Idx is signed.
75140
75141         Use bool where appropriate.
75142         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75143         All callers changed.
75144         (calc_eclosure_iter): Likewise, for ROOT arg.
75145         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75146         (build_charclass_op): Likewise, for NON_MATCH arg.
75147         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75148         (re_string_construct_common): Likewise, for ICASE arg.
75149         * lib/regexec.c (re_search_2_stub, re_search_stub):
75150         Likewise, for RET_LEN arg.
75151         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75152         (set_regs): Likewise, for FL_BACKTRACK arg.
75153         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75154         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75155         (calc_eclosure_iter, parse_bracket_exp):
75156         Use bool for internal variables that are booleans.
75157         * lib/regexec.c (re_search_internal, check_matching,
75158         proceed_next_node):
75159         (set_regs, build_sifted_states, sift_states_bkref):
75160         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75161         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75162         (find_collation_sequence_value):
75163         Likewise.
75164         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75165         (re_node_set_compare):
75166         Return bool, not int. All callers changed.
75167         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75168         (build_trtable, check_node_accept): Likewise.
75169         * lib/regex_internal.h: Include stdbool.h.
75170
75171         Fix bugs uncovered when converting to bool.
75172         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75173         failure instead of charging ahead blindly.
75174         * lib/regex_internal.c (register_state): Likewise.
75175         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75176         for freeing internal storage.
75177         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75178         bitset pieces used as boolean, to avoid undefined behavior
75179         on hosts that do int overflow checking.
75180
75181 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75182
75183         * config/srclist.txt: Add glibc bugs 1285-1287.
75184
75185 2005-09-01  Jim Meyering  <jim@meyering.net>
75186
75187         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75188         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75189         Require gl_STAT_MACROS, too.
75190
75191 2005-09-01  Bruno Haible  <bruno@clisp.org>
75192
75193         * gnulib-tool (import): In the first-use case, provide defaults.
75194
75195 2005-09-01  Bruno Haible  <bruno@clisp.org>
75196
75197         * gnulib-tool (func_import): Remove the .tmp files.
75198
75199 2005-09-01  Bruno Haible  <bruno@clisp.org>
75200
75201         * gnulib-tool (func_import): Fix handling of symbolic links.
75202
75203 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75204
75205         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75206         old glibc regex code mishandles strings longer than 2**31 bytes.
75207         This patch fixes this when the regex code is used in gnulib
75208         (i.e., outside glibc).
75209
75210         This patch should not affect the use of the regex code inside
75211         glibc.  No doubt this problem also needs to be handled for glibc
75212         as well, but the result will be an incompatible change to the
75213         glibc ABI, and the old ABI will have to be supported too.  That
75214         can be the the subject for another patch.
75215
75216         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75217         governing whether the rest of this patch is active.  By default,
75218         the macro is disabled and the patch has no effect.
75219         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75220         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75221         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75222         (re_match_2, re_set_registers): Use the new types.
75223         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75224         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75225         New macros.
75226         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75227         (re_string_context_at, bin_tree_t, re_dfastate_t):
75228         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75229         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75230         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75231         (re_string_char_size_at, re_string_wchar_at):
75232         (re_string_elem_size_at):
75233         Use the new types and macros to port to 64-bit hosts.
75234         Use unsigned types for internal values, so that the code
75235         mostly works even for arrays larger than SSIZE_MAX.
75236         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75237         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75238         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75239         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75240         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75241         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75242         (calc_inveclosure, parse_dup_op, build_range_exp):
75243         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75244         (fetch_number, create_token_tree, mark_opt_subexp):
75245         Likewise.
75246         * lib/regex_internal.c (re_string_construct_common,
75247         create_ci_newstate):
75248         (create_cd_newstate, re_string_allocate, re_string_construct):
75249         (re_string_realloc_buffers, build_wcs_upper_buffer):
75250         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75251         (re_string_reconstruct, re_string_peek_byte_case):
75252         (re_string_fetch_byte_case, re_string_context_at):
75253         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75254         (re_node_set_init_copy, re_node_set_add_intersect):
75255         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75256         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75257         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75258         (re_acquire_state, re_acquire_state_context, register_state):
75259         Likewise.
75260         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75261         search_cur_bkref_entry):
75262         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75263         (re_search_internal, re_search_2_stub, re_search_stub)
75264         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75265         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75266         (update_cur_sifted_state, check_dst_limits):
75267         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75268         (check_subexp_limits, sift_states_bkref, merge_state_array):
75269         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75270         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75271         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75272         (expand_bkref_cache, check_node_accept_bytes):
75273         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75274         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75275         (acquire_init_state_context, check_halt_node_context):
75276         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75277         (sift_states_backward, clean_state_log_if_needed):
75278         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75279         (find_recover_state, transit_state_sb, transit_state_mb):
75280         (transit_state_bkref, build_trtable, match_ctx_clean):
75281         Likewise.
75282         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75283         to work around an assumption that REG_MISSING is negative.
75284
75285         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75286         (seek_collating_symbol_entry) [defined _LIBC]:
75287         (lookup_collation_sequence_value) [defined _LIBC]:
75288         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75289         Use prototypes rather than old-style function definitions.
75290         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75291         (transit_state_sb) [0]:
75292         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75293
75294         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75295         rm_eo.
75296
75297         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75298         (optimize_subexps, lower_subexp):
75299         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75300         since the signed shift might overflow.  Use 1u<<31 instead.
75301         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75302         Likewise.
75303         * lib/regexec.c (check_dst_limits_calc_pos_1,
75304         check_subexp_matching_top): Likewise.
75305
75306         * lib/regcomp.c (optimize_subexps, lower_subexp):
75307         Use CHAR_BIT rather than 8, for clarity.
75308         * lib/regexec.c (check_dst_limits_calc_pos_1):
75309         (check_subexp_matching_top): Likewise.
75310         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75311         have to worry about portability issues when shifting it left.
75312         Remove no-longer-needed test for table_size > 0.
75313         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75314         in a word, as the resulting behavior is undefined.
75315         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75316         in one case, a <= should have been an <, and in another case the
75317         whole test was missing.
75318         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75319         the standard name CHAR_BIT.
75320         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75321         this is not true on one's complement and signed-magnitude hosts.
75322
75323         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75324         next_last_offset.
75325         (struct re_dfa_t): Remove unused member states_alloc.
75326         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75327
75328 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75329
75330         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75331         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75332         and large-file glibc and in 32-bit large-file Solaris.
75333
75334 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75335
75336         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75337         lengths fit in regoff_t; this isn't true if regoff_t is the same
75338         width as size_t.
75339         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75340         (= START + RANGE) instead of RANGE.  This avoids overflow
75341         problems when regoff_t is the same width as size_t.
75342         All callers changed.
75343         (re_search_2_stub): Check for overflow when adding the
75344         sizes of the two strings.
75345         (re_search_stub): Check for overflow when adding START
75346         to RANGE; if it occurs, substitute the extreme value.
75347
75348 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75349
75350         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75351
75352 2005-08-31  Jim Meyering  <jim@meyering.net>
75353
75354         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75355         a pointer-to-const.
75356         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75357         (register_state): Likewise.
75358         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75359         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75360         (group_nodes_into_DFAstates): Likewise.
75361
75362 2005-08-31  Jim Meyering  <jim@meyering.net>
75363
75364         * check-module: Add a FIXME comment.
75365
75366 2005-08-31  Eric Blake  <ebb9@byu.net>
75367
75368         * modules/unistd-safer (Files): Add unistd--.h.
75369         * modules/stdio-safer (Files): Add stdio--.h.
75370
75371 2005-08-31  Derek Price  <derek@ximbiot.com>
75372
75373         * lib/getdelim.c (getdelim): Return EOF on EOF.
75374         Reported by Larry Jones <lawrence.jones@ugs.com>.
75375
75376 2005-08-31  Bruno Haible  <bruno@clisp.org>
75377
75378         Avoid unnecessary diffs in the generated lib/Makefile.am.
75379         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75380         the generated files.
75381         (func_import): Don't set cmd.
75382
75383 2005-08-31  Bruno Haible  <bruno@clisp.org>
75384
75385         * lib/strstr.c: Include <stddef.h>, for NULL.
75386         * lib/strcasestr.c: Likewise.
75387         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75388
75389 2005-08-31  Bruno Haible  <bruno@clisp.org>
75390
75391         * gnulib-tool: New option --macro-prefix.
75392         (func_import): Use macro_prefix.
75393         (import): Handle option --macro-prefix.
75394
75395 2005-08-31  Bruno Haible  <bruno@clisp.org>
75396
75397         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75398         Also use new variables cached_lgpl, cached_libtool.
75399
75400 2005-08-31  Bruno Haible  <bruno@clisp.org>
75401
75402         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75403         always instantiating them.
75404
75405 2005-08-31  Bruno Haible  <bruno@clisp.org>
75406
75407         * gnulib-tool (func_import): Read the previous cached settings
75408         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75409         earlier added by gnulib but are now dropped. Warn when a gnulib file
75410         overwrites a non-gnulib file.
75411
75412 2005-08-31  Bruno Haible  <bruno@clisp.org>
75413
75414         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75415         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75416         projects that don't keep autogenerated files in CVS. Put into
75417         actioncmd only the specified modules, not the transitive closure.
75418
75419 2005-08-31  Bruno Haible  <bruno@clisp.org>
75420
75421         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75422         Create directories that shall be filled.
75423         (import): Don't look for gl_* macros in configure.ac. Recurse across
75424         all directories containing a gnulib-cache.m4 files, if meaningful.
75425
75426 2005-08-31  Bruno Haible  <bruno@clisp.org>
75427
75428         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75429         (import): Set seen_libtool when we see gl_LIBTOOL.
75430
75431 2005-08-31  Bruno Haible  <bruno@clisp.org>
75432
75433         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75434         declaration macro definitions from generated gnulib.m4.
75435
75436 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75437
75438         * lib/iconvme.h: Add prototype for iconv_alloc.
75439
75440 2005-08-29  Simon Josefsson  <jas@extundo.com>
75441
75442         * lib/iconvme.c: Fix errno.
75443
75444 2005-08-29  Bruno Haible  <bruno@clisp.org>
75445
75446         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75447         that it works when the directory contains spaces.
75448
75449 2005-08-29  Bruno Haible  <bruno@clisp.org>
75450
75451         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75452
75453 2005-08-29  Bruno Haible  <bruno@clisp.org>
75454
75455         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75456         Emit more advice.
75457
75458 2005-08-29  Bruno Haible  <bruno@clisp.org>
75459         and Stepan Kasal  <kasal@ucw.cz>
75460
75461         * check-module: If more parameters are given, check each of them
75462         separately; add more exceptions, as noted by Jim Meyering.
75463         (check_module): New procedure.
75464         (%exempt_header): Now contains all exceptions.
75465
75466 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75467
75468         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75469
75470 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75471
75472         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75473
75474 2005-08-28  Bruno Haible  <bruno@clisp.org>
75475
75476         * m4/gnulib-tool.m4: New file.
75477
75478 2005-08-27  Jim Meyering  <jim@meyering.net>
75479
75480         * modules/unistd-safer (Files): Add pipe-safer.c.
75481         * modules/fcntl-safer (Files): Add creat-safer.c.
75482
75483 2005-08-27  Jim Meyering  <jim@meyering.net>
75484
75485         * m4/stdlib-safer.m4: New file.  From coreutils.
75486         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75487         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75488         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75489         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75490         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75491
75492 2005-08-27  Jim Meyering  <jim@meyering.net>
75493
75494         * lib/fopen-safer.c: Merge minor changes from coreutils.
75495         * lib/dup-safer.c: Likewise.
75496         * lib/fd-safer.c: Likewise.
75497
75498         Merge from coreutils.
75499         * lib/stdio--.h: New file.
75500         * lib/stdlib--.h: New file.
75501         * lib/mkstemp-safer.c: New file.
75502
75503         GNU tar needs these.
75504         * lib/pipe-safer.c: New file.
75505         * lib/creat-safer.c: New file.
75506         * lib/fcntl--.h (creat): Define to creat_safer.
75507         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75508         * lib/unistd--.h (pipe): Define to pipe_safer.
75509         * lib/unistd-safer.h: Declare pipe_safer.
75510
75511 2005-08-26  Simon Josefsson  <jas@extundo.com>
75512
75513         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75514         Haible <bruno@clisp.org>.
75515
75516 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75517
75518         * lib/regex_internal.h: Remove all references to
75519         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75520         or better.
75521         (bitset_not, bitset_merge, bitset_not_merge):
75522         (bitset_mask, re_string_allocate, re_string_construct):
75523         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75524         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75525         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75526         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75527         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75528         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75529         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75530         (re_acquire_state_context):
75531         Remove unnecessary forward decls.
75532         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75533         Put __attribute at function definition,
75534         now that the function decl has been removed.
75535         * lib/regex_internal.c (re_string_peek_byte_case):
75536         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75537         Likewise.
75538
75539 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75540
75541         * m4/regex.m4: Add AC_PREREQ(2.50).
75542         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75543
75544 2005-08-25  Simon Josefsson  <jas@extundo.com>
75545
75546         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75547         __fsetlocking.
75548
75549 2005-08-25  Simon Josefsson  <jas@extundo.com>
75550
75551         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75552         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75553         GLIBC specific code.
75554
75555 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75556
75557         Make regex safe for g++.  This fixes one real bug (an "err"
75558         that should have been "*err").  g++ problem reported by
75559         Sam Steingold.
75560         * lib/regex_internal.h (re_calloc): New macro, consistent with
75561         re_malloc etc.  All callers of calloc changed to use re_calloc.
75562         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75563         not int.  All callers changed.
75564         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75565         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75566         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75567         (find_recover_state): Change "err" to "*err"; this fixes what
75568         appears to be a real bug.
75569         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75570         versus int.
75571
75572 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75573
75574         * modules/regex (Depends-on): Add malloc, since the code
75575         assumes that !malloc(0) means failure.
75576
75577 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75578
75579         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75580
75581         alloca modernization/simplification for regex.
75582         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75583         needs to be at the start of the file, and can be moved into
75584         regex_internal.h and simplified.
75585         * lib/regex_internal.h: Include <alloca.h>.
75586         (__libc_use_alloca) [!defined _LIBC]: New macro.
75587         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75588         now works outside glibc.
75589
75590 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75591
75592         * config/srclist.txt: Add glibc bugs 1241, 1245.
75593
75594 2005-08-25  Jim Meyering  <jim@meyering.net>
75595
75596         * lib/open-safer.c: Include <config.h>.
75597         Otherwise, we'd lose LARGEFILE support in any file using
75598         e.g. "fcntl--.h"
75599
75600 2005-08-25  Bruno Haible  <bruno@clisp.org>
75601
75602         * m4/minmax.m4: Require autoconf 2.52.
75603         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75604         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75605         alternatives of translit over the alphabet.
75606         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75607
75608 2005-08-24  Simon Josefsson  <jas@extundo.com>
75609
75610         * tests/test-getpass.c: New file.
75611
75612 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75613
75614         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75615         for GNU regex features.
75616
75617 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75618
75619         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75620         * lib/regex.h (regerror): Likewise.
75621
75622         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75623         requires this.  (The code never needed it.)
75624
75625         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75626         All uses of recently-renamed identifiers changed to use the new,
75627         POSIX-compliant names.  The code will build and run just fine
75628         without these changes, but it's better to eat our own dog food
75629         and use the standard-conforming names.
75630
75631         * lib/regex.h: Fix a multitude of POSIX name space violations.
75632         These changes have an effect only for programs that define
75633         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75634         do not change anything for programs compiled in the normal way.
75635         Also, there is no effect on the ABI.
75636
75637         (_REGEX_SOURCE): New macro.
75638         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75639         defined and _GNU_SOURCE is not; this fixes a name space violation.
75640
75641         Rename the following macros to obey POSIX requirements.
75642         The old names are still visible as macros if _REGEX_SOURCE is defined.
75643         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75644         RE_BACKSLASH_ESCAPE_IN_LISTS.
75645         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75646         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75647         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75648         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75649         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75650         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75651         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75652         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75653         (REG_INTERVALS): renamed from RE_INTERVALS.
75654         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75655         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75656         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75657         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75658         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75659         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75660         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75661         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75662         RE_UNMATCHED_RIGHT_PAREN_ORD.
75663         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75664         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75665         (REG_DEBUG): renamed from RE_DEBUG.
75666         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75667         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75668         unusual, since we can't clash with the POSIX REG_ICASE.
75669         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75670         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75671         (REG_NO_SUB): renamed from RE_NO_SUB.
75672         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75673         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75674         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75675         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75676         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75677         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75678         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75679         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75680         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75681         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75682         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75683         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75684         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75685         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75686         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75687         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75688         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75689         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75690         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75691         (REG_FIXED): Renamed from REGS_FIXED.
75692         (REG_NREGS): Renamed from RE_NREGS.
75693
75694         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75695         of other REG_* macros, since POSIX says the user is allowed to
75696         #undef these macros selectively.
75697
75698         (reg_errcode_t): Update comment stating what other tables need
75699         to be consistent.
75700
75701         Rename the following enum values to obey POSIX requirements.
75702         The old names are still visible as macros.
75703         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75704         is not defined, since GNU is supposed to be a superset of POSIX as
75705         much as possible, and since we want reg_errcode_t to be a signed
75706         type for implementation consistency.
75707         (_REG_NOERROR): Renamed from REG_NOERROR.
75708         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75709         (_REG_BADPAT): Renamed from REG_BADPAT.
75710         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75711         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75712         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75713         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75714         (_REG_EBRACK): Renamed from REG_EBRACK.
75715         (_REG_EPAREN): Renamed from REG_EPAREN.
75716         (_REG_EBRACE): Renamed from REG_EBRACE.
75717         (_REG_BADBR): Renamed from REG_BADBR.
75718         (_REG_ERANGE): Renamed from REG_ERANGE.
75719         (_REG_ESPACE): Renamed from REG_ESPACE.
75720         (_REG_BADRPT): Renamed from REG_BADRPT.
75721         (_REG_EEND): Renamed from REG_EEND.
75722         (_REG_ESIZE): Renamed from REG_ESIZE.
75723         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75724         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75725         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75726         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75727         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75728
75729         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75730         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75731         changed.  But support the old name if the new one is not defined
75732         and if _REGEX_SOURCE.
75733
75734         Change the following member names in struct re_pattern_buffer.
75735         The old names are still supported if !_REGEX_SOURCE.
75736         The new names are always supported, regardless of _REGEX_SOURCE.
75737         (re_buffer): Renamed from buffer.
75738         (re_allocated): Renamed from allocated.
75739         (re_used): Renamed from used.
75740         (re_syntax): Renamed from syntax.
75741         (re_fastmap): Renamed from fastmap.
75742         (re_translate): Renamed from translate.
75743         (re_can_be_null): Renamed from can_be_null.
75744         (re_regs_allocated): Renamed from regs_allocated.
75745         (re_fastmap_accurate): Renamed from fastmap_accurate.
75746         (re_no_sub): Renamed from no_sub.
75747         (re_not_bol): Renamed from not_bol.
75748         (re_not_eol): Renamed from not_eol.
75749         (re_newline_anchor): Renamed from newline_anchor.
75750
75751         Change the following member names in struct re_registers.
75752         The old names are still supported if !_REGEX_SOURCE.
75753         The new names are always supported, regardless of _REGEX_SOURCE.
75754         (rm_num_regs): Renamed from num_regs.
75755         (rm_start): Renamed from start.
75756         (rm_end): Renamed from end.
75757
75758         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75759         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75760         Prepend __ to parameter names.
75761
75762         Undo yesterday's changes.
75763
75764 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75765
75766         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75767         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75768         lib/regex.c.
75769
75770 2005-08-24  Jim Meyering  <jim@meyering.net>
75771
75772         Sync from coreutils.
75773         * m4/fcntl-safer.m4: New file.
75774
75775         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75776         and object files for this module.
75777
75778 2005-08-24  Jim Meyering  <jim@meyering.net>
75779
75780         Sync from coreutils.
75781         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75782
75783 2005-08-24  Jim Meyering  <jim@meyering.net>
75784
75785         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75786         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75787
75788 2005-08-24  Jim Meyering  <jim@meyering.net>
75789
75790         * modules/fcntl-safer: New module.
75791         * modules/fts (Depends-on): Add fcntl-safer.
75792         * MODULES.html.sh (File descriptor based Input/Output):
75793         Add fcntl-safer.
75794
75795 2005-08-24  Bruno Haible  <bruno@clisp.org>
75796
75797         Support for unit test modules.
75798         * modules/README: Mention tests modules.
75799         * modules/TEMPLATE-TESTS: New file.
75800         * gnulib-tool: New options --extract-tests-module, --with-tests and
75801         --tests-base (unused for the moment).
75802         (testsbase, inctests): New variables.
75803         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75804         (func_verify_module): Exclude TEMPLATE-TESTS.
75805         (func_verify_nontests_module, func_verify_tests_module): New functions.
75806         (func_get_dependencies): Add implicit dependency for tests modules.
75807         (func_get_tests_module): New function.
75808         (func_modules_transitive_closure): When --with-tests was specified,
75809         include the unit tests as well, unless explicitly avoided.
75810         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75811         (func_emit_tests_Makefile_am): New function.
75812         (func_create_testdir): When --with-tests was specified, emit a
75813         tests/ directory.
75814         * MODULES.html.sh (Future developments): Update.
75815
75816 2005-08-24  Bruno Haible  <bruno@clisp.org>
75817
75818         * modules/tls-tests: New file.
75819         * tests/test-tls.c: New file, from GNU gettext.
75820
75821 2005-08-24  Bruno Haible  <bruno@clisp.org>
75822
75823         * modules/lock-tests: New file.
75824         * tests/test-lock.c: New file, from GNU gettext.
75825
75826 2005-08-24  Bruno Haible  <bruno@clisp.org>
75827
75828         * lib/lock.h: Add multiple inclusion guard.
75829         * lib/tls.h: Add multiple inclusion guard.
75830
75831 2005-08-24  Bruno Haible  <bruno@clisp.org>
75832
75833         * gnulib-tool: Add support for the --aux-dir option to
75834         --create-testdir, --create-megatestdir, --test, --megatest.
75835         (func_create_testdir, func_create_megatestdir): Optionally emit a
75836         AC_CONFIG_AUX_DIR directive.
75837         (create-testdir, create-megatestdir, test, megatest): Provide a
75838         default value for $auxdir.
75839
75840 2005-08-24  Bruno Haible  <bruno@clisp.org>
75841
75842         * gnulib-tool (import): Use compound statement instead of subshell
75843         where possible.
75844
75845 2005-08-24  Bruno Haible  <bruno@clisp.org>
75846
75847         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75848
75849 2005-08-24  Bruno Haible  <bruno@clisp.org>
75850
75851         * gnulib-tool (func_version): Update.
75852
75853 2005-08-24  Bruno Haible  <bruno@clisp.org>
75854
75855         * gnulib-tool (func_import, func_create_testdir,
75856         func_create_megatestdir): Quote all autoconf macro arguments.
75857
75858 2005-08-24  Bruno Haible  <bruno@clisp.org>
75859
75860         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75861         option --force, because --force causes the aclocal.m4 of each
75862         subdirectory to be newer than the corresponding config.h.in.
75863
75864 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75865
75866         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75867         All contents moved to gl_REGEX.
75868         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75869         assume that it does.
75870
75871 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75872
75873         * lib/regex.h (REG_NOSYS)
75874         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75875         Define, since POSIX requires it as of 2001.
75876         (_REG_ENOSYS)
75877         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75878         New private symbol, used to keep the enum signed in all cases.
75879         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75880         Youngman in
75881         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75882
75883         * lib/regex_internal.c (re_string_skip_chars, register_state):
75884         (calc_state_hash):
75885         Remove forward decls; no longer needed now that we use prototypes.
75886         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75887         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75888         (clean_state_log_if_needed): Likewise.
75889
75890 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75891
75892         * config/srclist.txt: Add glibc bugs 1231-1233.
75893
75894 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75895
75896         Fix problems reported by Sam Steingold in
75897         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75898         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75899         assumed that reg_errcode_t is a signed type, which is not
75900         necessarily true if _XOPEN_SOURCE is not defined.
75901         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75902         since some compilers warn about it otherwise.
75903
75904 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75905
75906         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75907         (init_word_char, create_initial_state, duplicate_node_closure):
75908         (fetch_token, peek_token_bracket, build_range_exp):
75909         (build_collating_symbol): Remove forward decls; no longer needed
75910         now that we use prototypes.
75911
75912         * lib/regcomp.c:
75913         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75914         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75915         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75916         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75917         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75918         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75919         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75920         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75921         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75922         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75923         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75924         (build_charclass, build_charclass_op, fetch_number, create_tree):
75925         (create_token_tree, mark_opt_subexp, duplicate_tree):
75926         Use prototypes rather than old-style definitions.
75927
75928         * lib/regex_internal.c:
75929         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75930         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75931         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75932         (re_string_reconstruct, re_string_peek_byte_case):
75933         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75934         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75935         (re_node_set_init_copy, re_node_set_add_intersect):
75936         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75937         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75938         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75939         (re_acquire_state, re_acquire_state_context, register_state):
75940         (create_ci_newstate, create_cd_newstate, free_state):
75941         Likewise.
75942         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75943         re_search_2):
75944         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75945         (re_search_internal, prune_impossible_nodes):
75946         (acquire_init_state_context, check_matching, static):
75947         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75948         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75949         (update_regs, sift_states_backward, build_sifted_states):
75950         (clean_state_log_if_needed, merge_state_array):
75951         (update_cur_sifted_state, add_epsilon_src_nodes):
75952         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75953         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75954         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75955         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75956         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75957         (check_arrival, check_arrival_add_next_nodes):
75958         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75959         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75960         (check_node_accept_bytes, check_node_accept, extend_buffers):
75961         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75962         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75963         (sift_ctx_init):
75964         Likewise.
75965
75966         * lib/regex_internal.h:
75967         (re_string_allocate, re_string_construct, re_string_reconstruct):
75968         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75969         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75970         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75971         (re_string_context_at, re_string_peek_byte_case):
75972         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75973         is defined, since we now use prototypes always.
75974
75975         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75976         C89 or better.  All uses removed.
75977
75978 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         * config/srclist.txt: Add glibc bugs 1220-1227.
75981
75982 2005-08-20  Jim Meyering  <jim@meyering.net>
75983
75984         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75985         of unused local, dfa.
75986
75987 2005-08-20  Bruno Haible  <bruno@clisp.org>
75988
75989         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75990
75991 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75994         (re_node_set_insert_last, re_dfa_add_node):
75995         Rename local variables to avoid GCC shadowing warnings.
75996
75997 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75998
75999         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76000         [defined lint]: Suppress bogus uninitialized-variable warnings.
76001
76002         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76003         and let the caller return REG_ESPACE if out of space.  This
76004         removes an uninitialied-variable warning with GCC 4.0.1, and also
76005         avoids taking the address of a local variable.  All callers
76006         changed.
76007
76008 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76009
76010         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76011         $LIBCSRC/posix/regexec.c.
76012         Add glibc bug 1217 for regcomp.c.
76013
76014 2005-08-19  Jim Meyering  <jim@meyering.net>
76015
76016         * lib/regexec.c (proceed_next_node): Redo local variables to
76017         avoid GCC shadowing warnings.
76018
76019 2005-08-18  Bruno Haible  <bruno@clisp.org>
76020
76021         * lib/strstr.c (strstr): Fix return value in multibyte case.
76022         * lib/strcasestr.c (strcasestr): Likewise.
76023
76024 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76025
76026         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76027
76028 2005-08-17  Jim Meyering  <jim@meyering.net>
76029
76030         Make the %s format (seconds since the epoch) work for a negative
76031         number and when used with a zero-padded field width, e.g. %015s.
76032
76033         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76034         label so that it precedes the code to set `digits'.  Otherwise,
76035         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76036         print `00-22'.  Now, it prints `-0022', as it should.
76037
76038 2005-08-17  Bruno Haible  <bruno@clisp.org>
76039
76040         * modules/strstr (Files): Add m4/mbrtowc.m4.
76041         (Depends-on): Add mbuiter.
76042
76043 2005-08-17  Bruno Haible  <bruno@clisp.org>
76044
76045         * modules/strcasestr: New file.
76046         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76047         strcasestr.
76048
76049 2005-08-17  Bruno Haible  <bruno@clisp.org>
76050
76051         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76052
76053 2005-08-17  Bruno Haible  <bruno@clisp.org>
76054
76055         * modules/mbuiter: New file.
76056         * MODULES.html.sh (Extended multibyte and wide character utilities):
76057         Add mbuiter.
76058
76059 2005-08-17  Bruno Haible  <bruno@clisp.org>
76060
76061         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76062         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76063
76064 2005-08-17  Bruno Haible  <bruno@clisp.org>
76065
76066         * m4/strcasestr.m4: New file.
76067
76068 2005-08-17  Bruno Haible  <bruno@clisp.org>
76069
76070         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76071         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76072
76073 2005-08-17  Bruno Haible  <bruno@clisp.org>
76074
76075         * lib/strcasestr.h: New file.
76076         * lib/strcasestr.c: New file.
76077
76078 2005-08-17  Bruno Haible  <bruno@clisp.org>
76079
76080         * lib/strcasecmp.c: Use mbuiter.h.
76081
76082 2005-08-17  Bruno Haible  <bruno@clisp.org>
76083
76084         * lib/mbuiter.h: New file.
76085
76086 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76087
76088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76089         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76090         and gl_GETOPT are both invoked via different paths (as happens
76091         with GNU tar CVS because it uses both argp and getopt), the former
76092         wins.
76093
76094 2005-08-16  Bruno Haible  <bruno@clisp.org>
76095
76096         * modules/tls: New file.
76097         * MODULES.html.sh (Multithreading): Add tls.
76098
76099 2005-08-16  Bruno Haible  <bruno@clisp.org>
76100
76101         * modules/strnlen1: New file.
76102         * MODULES.html.sh (String handling): Add strnlen1.
76103
76104 2005-08-16  Bruno Haible  <bruno@clisp.org>
76105
76106         * modules/strcase (Files): Add m4/mbrtowc.m4.
76107         (Depends-on): Add strnlen1, mbchar.
76108
76109 2005-08-16  Bruno Haible  <bruno@clisp.org>
76110
76111         * modules/mbiter: New file.
76112         * MODULES.html.sh (Extended multibyte and wide character utilities):
76113         Add mbiter.
76114
76115 2005-08-16  Bruno Haible  <bruno@clisp.org>
76116
76117         * modules/mbfile: New file.
76118         * MODULES.html.sh (Extended multibyte and wide character utilities):
76119         Add mbfile.
76120
76121 2005-08-16  Bruno Haible  <bruno@clisp.org>
76122
76123         * modules/mbchar: New file.
76124         * MODULES.html.sh (Extended multibyte and wide character utilities):
76125         New section.
76126
76127 2005-08-16  Bruno Haible  <bruno@clisp.org>
76128
76129         * m4/tls.m4: New file, from GNU gettext.
76130
76131 2005-08-16  Bruno Haible  <bruno@clisp.org>
76132
76133         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76134         always.
76135         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76136
76137 2005-08-16  Bruno Haible  <bruno@clisp.org>
76138
76139         * m4/mbiter.m4: New file.
76140
76141 2005-08-16  Bruno Haible  <bruno@clisp.org>
76142
76143         * m4/mbfile.m4: New file.
76144
76145 2005-08-16  Bruno Haible  <bruno@clisp.org>
76146
76147         * m4/mbchar.m4: New file.
76148
76149 2005-08-16  Bruno Haible  <bruno@clisp.org>
76150
76151         * lib/tls.h: New file, from GNU gettext.
76152         * lib/tls.c: New file, from GNU gettext.
76153
76154 2005-08-16  Bruno Haible  <bruno@clisp.org>
76155
76156         * lib/strnlen1.h: New file.
76157         * lib/strnlen1.c: New file.
76158
76159 2005-08-16  Bruno Haible  <bruno@clisp.org>
76160
76161         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76162         (mbi_init): Update.
76163         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76164         NUL byte, not after it.
76165
76166 2005-08-16  Bruno Haible  <bruno@clisp.org>
76167
76168         * lib/strcase.h (strcasecmp): Add note in comments.
76169         * lib/strncasecmp.c: Use code from strcasecmp.c.
76170         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76171         (strcasecmp): Work correctly in multibyte locales.
76172
76173 2005-08-16  Bruno Haible  <bruno@clisp.org>
76174
76175         * lib/mbiter.h: New file.
76176
76177 2005-08-16  Bruno Haible  <bruno@clisp.org>
76178
76179         * lib/mbfile.h: New file.
76180
76181 2005-08-16  Bruno Haible  <bruno@clisp.org>
76182
76183         * lib/mbchar.h: New file.
76184         * lib/mbchar.c: New file.
76185
76186 2005-08-16  Bruno Haible  <bruno@clisp.org>
76187
76188         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76189         the valid ones. Makes the comparison operations transitive:
76190         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76191         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76192
76193 2005-08-15  Simon Josefsson  <jas@extundo.com>
76194
76195         * modules/ssize_t (License): Change to 'unlimited'.
76196
76197         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76198
76199 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76200
76201         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76202         Add comments for each pending glibc patch.
76203
76204 2005-08-15  Bruno Haible  <bruno@clisp.org>
76205
76206         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76207         __cplusplus is defined.
76208
76209 2005-08-14  Jim Meyering  <jim@meyering.net>
76210
76211         Sync from coreutils.
76212
76213         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76214         Use the hash-table-based cycle-detection code not just when
76215         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76216         Reported by James Youngman in
76217         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76218         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76219         FTS_TIGHT_CYCLE_CHECK.
76220         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76221         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76222         once again.
76223         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76224         * lib/fts.c (fd_safer): Remove decl.
76225         Include fcntl--.h rather than unistd-safer.h
76226         (fts_safe_changedir): Don't call fd_safer; no longer needed
76227         now that we include fcntl--.h.
76228
76229 2005-08-12  Simon Josefsson  <jas@extundo.com>
76230
76231         * modules/getndelim2: Use ssize_t module.
76232         * modules/getnline: Likewise.
76233         * modules/safe-read: Likewise.
76234         * modules/xreadlink: Likewise.
76235
76236         * modules/ssize_t: New file.
76237
76238 2005-08-12  Simon Josefsson  <jas@extundo.com>
76239
76240         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76241
76242 2005-08-12  Simon Josefsson  <jas@extundo.com>
76243
76244         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76245         ssize_t.
76246
76247 2005-08-12  Simon Josefsson  <jas@extundo.com>
76248
76249         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76250         readline, getdelim and check_version.
76251         (Support for systems lacking ISO C 99: Sizes of integer types):
76252         Add size_max.
76253
76254 2005-08-12  Bruno Haible  <bruno@clisp.org>
76255
76256         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76257
76258 2005-08-11  Simon Josefsson  <jas@extundo.com>
76259
76260         * modules/readline: New file.
76261
76262         * modules/strnlen (Files): Add strnlen.h.
76263
76264 2005-08-11  Simon Josefsson  <jas@extundo.com>
76265
76266         * m4/readline.m4: New file.
76267
76268 2005-08-11  Simon Josefsson  <jas@extundo.com>
76269
76270         * lib/readline.h, readline.c: New file.
76271
76272 2005-08-11  Simon Josefsson  <jas@extundo.com>
76273
76274         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76275         gl_AVOID.
76276
76277 2005-08-11  Bruno Haible  <bruno@clisp.org>
76278
76279         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76280
76281 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76282
76283         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76284
76285 2005-08-10  Simon Josefsson  <jas@extundo.com>
76286
76287         * tests/test-iconvme.c: New file.
76288
76289 2005-08-10  Simon Josefsson  <jas@extundo.com>
76290
76291         * m4/strnlen.m4: New file.
76292
76293         * m4/strndup.m4: Don't check for strnlen declaration, done in
76294         strnlen.m4.
76295
76296 2005-08-10  Simon Josefsson  <jas@extundo.com>
76297
76298         * lib/strndup.c: Use strnlen.h.
76299
76300         * lib/strnlen.h: New file.
76301
76302 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76303
76304         * README: Typos.
76305
76306 2005-08-02  Simon Josefsson  <jas@extundo.com>
76307
76308         * modules/readline: New file.
76309
76310 2005-08-02  Simon Josefsson  <jas@extundo.com>
76311
76312         * modules/getdelim: New file.
76313
76314         * modules/getline: Rewrite, don't use getndelim2.
76315
76316 2005-08-02  Simon Josefsson  <jas@extundo.com>
76317
76318         * m4/getline.m4: Separate out getdelim stuff into separate module.
76319
76320         * m4/getdelim.m4: New file.
76321
76322 2005-08-02  Simon Josefsson  <jas@extundo.com>
76323
76324         * lib/getline.h, getline.c: Rewrite.
76325
76326         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76327
76328 2005-07-31  Bruno Haible  <bruno@clisp.org>
76329
76330         * lib/lock.h (gl_lock_initializer): New macro.
76331         (gl_lock_define_initialized): Use it.
76332         (gl_rwlock_initializer): New macro.
76333         (gl_rwlock_define_initialized): Use it.
76334         (gl_recursive_lock_initializer): New macro.
76335         (gl_recursive_lock_define_initialized): Use it.
76336
76337 2005-07-30  Karl Berry  <karl@gnu.org>
76338
76339         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76340         Report from Ben Pfaff, regarding getopt.
76341
76342 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76343
76344         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76345         normal way.
76346         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76347         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76348         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76349         (gl_GETOPT): Use the new macros.  Most of the implementation
76350         is moved to the new macros.  This is for programs like Emacs
76351         that don't want all the functionality of gl_GETOPT.
76352
76353 2005-07-26  Bruno Haible  <bruno@clisp.org>
76354
76355         * m4/lock.m4: Update from GNU gettext.
76356
76357 2005-07-26  Bruno Haible  <bruno@clisp.org>
76358
76359         * lib/lock.h: Update from GNU gettext.
76360         * lib/lock.c: Update from GNU gettext.
76361
76362 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76363
76364         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76365         obsolescent AC_TRY_RUN.  Include the default includes files, for
76366         'exit'.
76367
76368 2005-07-24  Bruno Haible  <bruno@clisp.org>
76369
76370         * modules/visibility: New file.
76371         * MODULES.html.sh (Misc): Add visibility.
76372
76373 2005-07-24  Bruno Haible  <bruno@clisp.org>
76374
76375         * m4/visibility.m4: New file.
76376
76377 2005-07-24  Bruno Haible  <bruno@clisp.org>
76378
76379         * doc/visibility.texi: New file.
76380
76381 2005-07-22  Bruno Haible  <bruno@clisp.org>
76382
76383         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76384         $(ALLOCA_H), redundant through BUILT_SOURCES.
76385         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76386         redundant through BUILT_SOURCES.
76387         * modules/byteswap (Makefile.am): Remove explicit dependency on
76388         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76389         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76390         $(FNMATCH_H), redundant through BUILT_SOURCES.
76391         * modules/getopt (Makefile.am): Remove explicit dependency on
76392         $(GETOPT_H), redundant through BUILT_SOURCES.
76393         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76394         redundant through BUILT_SOURCES.
76395         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76396         redundant through BUILT_SOURCES.
76397         * modules/stdbool (Makefile.am): Remove explicit dependency on
76398         $(STDBOOL_H), redundant through BUILT_SOURCES.
76399         * modules/stdint (Makefile.am): Remove explicit dependency on
76400         $(STDINT_H), redundant through BUILT_SOURCES.
76401         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76402         Remove explicit dependency on $(SYSEXITS_H).
76403         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76404
76405 2005-07-18  Simon Josefsson  <jas@extundo.com>
76406
76407         * lib/check-version.c (check_version): Accept identical versions too.
76408
76409 2005-07-18  Bruno Haible  <bruno@clisp.org>
76410
76411         * modules/lock: New file.
76412         * MODULES.html.sh (Multithreading): New section.
76413
76414 2005-07-18  Bruno Haible  <bruno@clisp.org>
76415
76416         * m4/lock.m4: New file, from GNU gettext.
76417
76418 2005-07-18  Bruno Haible  <bruno@clisp.org>
76419
76420         * lib/lock.h: New file, from GNU gettext.
76421         * lib/lock.c: New file, from GNU gettext.
76422
76423 2005-07-18  Bruno Haible  <bruno@clisp.org>
76424
76425         * lib/lock.h (gl_once_t): New type.
76426         (gl_once_define, gl_once): New macros.
76427         * lib/lock.c (fresh_once): New variable.
76428         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76429         functions.
76430
76431 2005-07-16  Simon Josefsson  <jas@extundo.com>
76432
76433         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76434         workaround, suggested by Bruno.
76435
76436 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76437
76438         * modules/xalloc (Depends-on): Add xalloc-die.
76439         * modules/xvasprintf (Depends-on): Add xalloc-die.
76440
76441 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76442
76443         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76444         with a minor change.
76445
76446 2005-07-15  Bruno Haible  <bruno@clisp.org>
76447
76448         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76449         When using lib/poll.c, define poll as rpl_poll.
76450
76451 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76452
76453         * modules/argp (Depends-on): Remove unlocked-io.
76454
76455 2005-07-14  Derek Price  <derek@ximbiot.com>
76456
76457         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76458         for glob symlink bug.
76459
76460 2005-07-14  Bruno Haible  <bruno@clisp.org>
76461
76462         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76463         Instead, test for *_unlocked function declarations directly.
76464
76465 2005-07-11  Simon Josefsson  <jas@extundo.com>
76466
76467         * modules/size_max: New file.
76468
76469         * modules/xsize: Depend on size_max module for size_max.m4.
76470
76471 2005-07-11  Simon Josefsson  <jas@extundo.com>
76472
76473         * lib/size_max.h: New file.
76474
76475 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76476
76477         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76478         copyright symbol and the year.
76479         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76480         (version_etc_va): Use parameterized copyright notice.
76481         Reword to conform to the current GNU coding standards.
76482
76483 2005-07-11  Karl Berry  <karl@gnu.org>
76484
76485         * doc/gnulib.texi (Quoting): new node.
76486         (Initial import): more info, from Patrice.
76487
76488 2005-07-11  Bruno Haible  <bruno@clisp.org>
76489
76490         * gnulib-tool (func_usage): Document option --avoid.
76491         (Command line options): Handle --avoid.
76492         (func_acceptable): New function.
76493         (func_modules_transitive_closure): Use it.
76494
76495 2005-07-11  Bruno Haible  <bruno@clisp.org>
76496
76497         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76498         Reported by Jim Meyering.
76499
76500 2005-07-10  Bruno Haible  <bruno@clisp.org>
76501
76502         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76503         Needed when size_t is smaller than 'unsigned int'.
76504         Reported by Paul Eggert.
76505
76506 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76507
76508         * modules/argp (Depends-on): Add unlocked-io
76509
76510 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76511
76512         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76513         block of defines.
76514
76515 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76516
76517         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76518         fix now.
76519
76520 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76521         and Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76524         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76525
76526 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76527
76528         * modules/regex (Files): Add lib/regex_internal.c,
76529         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76530         (Depends-on): Add extensions.
76531         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76532
76533 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76534
76535         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76536         pathconf.
76537         * m4/same.m4 (gl_SAME): Likewise.
76538         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76539
76540         * m4/regex.m4: Adjust to new libc regex implementation.
76541         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76542         all the .c and .h parts of (the new) regex.
76543         Quote the m4 stuff better.
76544         Check for RE_ICASE bug of old gnulib.
76545         Check for REG_STARTEND of recent libc.
76546         Rename local variables from jm_* to gl_*.
76547         Quote operand of "test -f".
76548         Say "recent enough" version of libc, not "version 2".
76549         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76550         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76551         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76552         Remove check for btowc, isascii.
76553         Require AM_LANGINFO_CODESET.
76554
76555 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76556
76557         * lib/regex.c, regex.h: Sync from libc.
76558         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76559         * lib/regexec.c:
76560         New files, synced from libc, except that regex_internal.h
76561         currently has a small porting fix.
76562
76563 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76564
76565         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76566         regex_internal.c, regexec.c.
76567         Add regex_internal.h too, but as a comment, since the libc version
76568         is currently broken in gnulib mode.
76569
76570 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76571
76572         Support programs like Emacs that use gnulib but not gettext.
76573         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76574         * modules/gettext-h: New file.
76575         * modules/gettext (Files): Remove lib/gettext.h.
76576         (Depends-on): Add gettext-h.
76577         (Makefile.am): Remove lib_SOURCES.
76578         * modules/argmatch, modules/c-stack, modules/closeout:
76579         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76580         * modules/execute, modules/file-type, modules/getaddrinfo:
76581         * modules/getopt, modules/human, modules/javacomp:
76582         * modules/javaexec, modules/mkdir-p, modules/obstack:
76583         * modules/openat, modules/pagealign_alloc, modules/pipe:
76584         * modules/quotearg, modules/regex, modules/rpmatch:
76585         * modules/unicodeio, modules/userspec, modules/version-etc:
76586         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76587         * modules/xsetenv:
76588         Depend on gettext-h, not gettext.
76589
76590 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76591
76592         * gnulib-tool (func_import): Add support for 'public domain' license.
76593         * modules/alloca, modules/atexit, modules/memmove:
76594         Now public domain, not GPL.
76595         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76596         * modules/realloc, modules/strerror, modules/strtod:
76597         Now LGPL, not GPL.
76598
76599 2005-07-05  Bruno Haible  <bruno@clisp.org>
76600
76601         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76602         autoconf CVS. Needed for mingw.
76603
76604 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76605
76606         Remove the dependency of the strftime module on the tzset module.
76607         * modules/strftime (Depends-on): Remove dependency on tzset.
76608
76609 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76610
76611         Remove the dependency of the strftime module on the tzset module.
76612         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76613         gl_FUNC_TZSET_CLOBBER.
76614
76615 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76616
76617         Remove the dependency of the strftime module on the tzset module.
76618         * lib/strftime.c (my_strftime)
76619         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76620         Copy the input structure, to work around some of the bug with
76621         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76622         Solaris releases, you should also use the tzset module, but we won't
76623         require it as a dependency any more since we don't want LGPLed code
76624         to depend on GPLed code.
76625
76626 2005-07-02  Jim Meyering  <jim@meyering.net>
76627
76628         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76629         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76630         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76631         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76632
76633 2005-07-02  Jim Meyering  <jim@meyering.net>
76634
76635         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76636
76637 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76638
76639         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76640         declares only 'struct timespec;' (!).
76641
76642 2005-07-01  Jim Meyering  <jim@meyering.net>
76643
76644         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76645         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76646         * lib/save-cwd.c, tempname.c:
76647         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76648         and don't include <sys/file.h>).
76649
76650 2005-06-29  Jim Meyering  <jim@meyering.net>
76651
76652         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76653         type name.  Use the variable name instead.
76654         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76655         Likewise.
76656
76657 2005-06-28  Simon Josefsson  <jas@extundo.com>
76658
76659         * modules/check-version (Files): Add check-version.m4.
76660
76661 2005-06-28  Simon Josefsson  <jas@extundo.com>
76662
76663         * m4/check-version.m4: New file, suggested by Jim Meyering
76664         <jim@meyering.net>.
76665
76666 2005-06-28  Simon Josefsson  <jas@extundo.com>
76667
76668         * lib/check-version.h, lib/check-version.c: New files.
76669
76670 2005-06-28  Simon Josefsson  <jas@extundo.com>
76671
76672         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76673         collision with global variable.  Better indentation.  Don't
76674         increment buffer pointer beyond buffer end.  Based on comments
76675         from Paul Eggert <eggert@cs.ucla.edu>.
76676
76677         * lib/base64.h: Indent.
76678
76679 2005-06-28  Simon Josefsson  <jas@extundo.com>
76680
76681         * doc/gnulib.texi (Library version handling): New section.
76682
76683 2005-06-28  Jim Meyering  <jim@meyering.net>
76684
76685         * check-module (find_included_lib_files): Hard-code another
76686         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76687         but modules/fts-lgpl (correctly) does not list those files.
76688
76689         * modules/canonicalize (Files): Add lib/pathmax.h.
76690
76691 2005-06-25  Simon Josefsson  <jas@extundo.com>
76692
76693         * modules/check-version: New file.
76694
76695 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76696
76697         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76698         initializer of struct addrinfo, as an indication that we don't
76699         care how many members the structure has.
76700
76701 2005-06-24  Derek Price  <derek@ximbiot.com>
76702         and Bruno Haible  <bruno@clisp.org>
76703
76704         Remove stat module & update lstat.
76705         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76706         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76707         * m4/stat.m4: Remove this file.
76708
76709 2005-06-24  Derek Price  <derek@ximbiot.com>
76710         and Bruno Haible  <bruno@clisp.org>
76711
76712         Remove stat module & update lstat.
76713         * lib/stat.c: Remove this file...
76714         (slash_aware_lstat): ...moving this content and its support...
76715         * lib/lstat.c (rpl_lstat): ...into here.
76716         * lib/lstat.h: New file.
76717
76718 2005-06-24  Derek Price  <derek@ximbiot.com>
76719         and Bruno Haible  <bruno@clisp.org>
76720
76721         Remove stat module & update lstat.
76722         * config/srclist.txt (libc sources): Remove stat.
76723
76724 2005-06-24  Derek Price  <derek@ximbiot.com>
76725         and Bruno Haible  <bruno@clisp.org>
76726
76727         Remove stat module & update lstat.
76728         * MODULES.html.sh (stat): Remove.
76729         * MODULES.html: Regenerated.
76730         * modules/lstat (Description): Correct function name.
76731         (Files): Add "lstat.h".
76732         (Depends-on): Remove stat, add xalloc, stat-macros.
76733         * modules/stat: Remove this file.
76734         (Include): Add "lstat.h", remove <sys/stat.h>.
76735
76736 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76737
76738         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76739         (ranged_convert): Don't save conversion in a temporary struct.
76740         This causes a warning with GCC 4.0.0, and anyway in the typical
76741         case it's not worth the extra 100 bytes or so of code.
76742         (ranged_convert, __mktime_internal): When calling a function via a
76743         pointer P, use P () rather than (*P) (), as we now assume C89 or
76744         better.
76745
76746 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76749         "who -r" failed to give output.  Problem reported by Tim Waugh.
76750
76751         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76752         (xcalloc): Use it to avoid needless tests.
76753         Problem reported by Jim Meyering.
76754
76755 2005-06-20  Derek Price  <derek@ximbiot.com>
76756
76757         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76758         unnecessary for Autoconfs > 2.59c.
76759
76760 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76761
76762         * lib/argp.h (__option_is_short): Check upper limit of
76763         __key. Isprint() requires its argument to have the value
76764         of an unsigned char or EOF.
76765
76766 2005-06-16  Jim Meyering  <jim@meyering.net>
76767
76768         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76769         when either N or S is zero.
76770
76771 2005-06-16  Derek Price  <derek@ximbiot.com>
76772
76773         * m4/bison.m4: Declare YACC & YFLAGS precious.
76774
76775 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76778         multibyte string or pattern, fall back on unibyte matching.
76779         Problem reported by James Youngman.
76780
76781 2005-06-08  Bruno Haible  <bruno@clisp.org>
76782
76783         * modules/csharpcomp: New file.
76784         * MODULES.html.sh (C#): Add csharpcomp.
76785
76786 2005-06-08  Bruno Haible  <bruno@clisp.org>
76787
76788         * m4/csharpcomp.m4: New file, from GNU gettext.
76789
76790 2005-06-08  Bruno Haible  <bruno@clisp.org>
76791
76792         * lib/csharpcomp.h: New file, from GNU gettext.
76793         * lib/csharpcomp.c: New file, from GNU gettext.
76794         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76795
76796 2005-06-08  Bruno Haible  <bruno@clisp.org>
76797
76798         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76799         warning on mingw.
76800
76801 2005-06-07  Derek Price  <derek@ximbiot.com>
76802
76803         Sync from CVS.
76804         * lib/glob_.h: Indent nested #ifdef.
76805
76806 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76807
76808         Sync from coreutils.
76809         Use "file name" when talking about file names, instead of "filename"
76810         or "path", as per the GNU coding standards.
76811         * lib/mkdir-p.c: Renamed from makepath.c.
76812         (make_dir_parents): Renamed from make_path.  All callers changed.
76813         * lib/mkdir-p.h: Likewise.  All includers changed.
76814         * lib/filenamecat.c: Renamed from path-concat.c.
76815         (file_name_concat): Renamed from path_concat.  All callers changed.
76816         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76817         * lib/filenamecat.h: Likewise.  All includers changed.
76818         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76819         in comments or local variable names.
76820         * lib/basename.c: Likewise.
76821         * lib/canonicalize.c, canonicalize.h: Likewise.
76822         * lib/dirname.c, dirname.h: Likewise.
76823         * lib/euidaccess.c: Likewise.
76824         * lib/exclude.c: Likewise
76825         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76826         * lib/fsusage.c, fsuage.h: Likewise.
76827         * lib/fts.c, fts_.h: Likewise.
76828         * lib/getcwd.c: Likewise.
76829         * lib/getloadavg.c: Likewise.
76830         * lib/mkstemp.c: Likewise.
76831         * lib/mountlist.c, mountlist.h: Likewise.
76832         * lib/openat.c, openat.h: Likewise.
76833         * lib/readlink-stub.c: Likewise.
76834         * lib/readutmp.c, readutmp.h: Likewise.
76835         * lib/rename.c: Likewise.
76836         * lib/rmdir.c: Likewise.
76837         * lib/same.c: Likewise.
76838         * lib/savedir.c: Likewise.
76839         * lib/stripslash.c: Likewise.
76840         * lib/tempname.c: Likewise.
76841         * lib/xreadlink.c: Likewise.
76842         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76843         All uses changed.
76844         * lib/exclude.h: Likewise.
76845
76846         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76847         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76848         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76849         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76850         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76851         files have been getting away with it for years (MORE/BSD 4.3
76852         is extinct now).
76853         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76854         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76855
76856         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76857         Define to 256, not 255, as per modern POSIX.
76858
76859 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76860
76861         Sync from coreutils.
76862         Use "file name" when talking about file names, instead of "filename"
76863         or "path", as per the GNU coding standards.
76864         * MODULES.html.sh: mkdir-p renamed from makepath.
76865         filenamecat renamed from path-concat.
76866         * modules/filenamecat: Renamed from modules/path-concat.
76867         (Files): filenamecat.h and filenamecat.c renamed from
76868         path-concat.h and path-concat.c.
76869         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76870         (Include): filenamecat.h, not path-concat.h.
76871         * modules/mkdir-p: Renamed from modules/makepath.
76872         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76873         makepath.c.
76874         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76875         (Include): mkdir-p.h, not makepath.h.
76876
76877 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76878
76879         Sync from coreutils.
76880         * m4/mkdir-p.m4: Renamed from makepath.m4.
76881         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76882         Rename files from makepath.c to mkdir-p.c, and from
76883         makepath.h to mkdir-p.h.
76884         * m4/filenamecat.m4: Renamed from path-concat.m4.
76885         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76886         Rename files from path-concat.c to filenamecat.c,
76887         and from path-concat.h to filenamecat.h.
76888         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76889         "file name" in local variables or comments.
76890         * m4/rename.m4: Likewise.
76891
76892 2005-06-01  Bruno Haible  <bruno@clisp.org>
76893
76894         * modules/csharpexec: New file.
76895         * MODULES.html.sh (C#): New section.
76896
76897 2005-06-01  Bruno Haible  <bruno@clisp.org>
76898
76899         * m4/csharp.m4: New file, from GNU gettext.
76900         * m4/csharpexec.m4: New file, from GNU gettext.
76901
76902 2005-06-01  Bruno Haible  <bruno@clisp.org>
76903
76904         * lib/csharpexec.h: New file, from GNU gettext.
76905         * lib/csharpexec.c: New file, from GNU gettext.
76906         * lib/csharpexec.sh.in: New file, from GNU gettext.
76907
76908 2005-05-31  Derek Price  <derek@ximbiot.com>
76909             Paul Eggert  <eggert@cs.ucla.edu>
76910
76911         Sync from cvs.
76912         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76913
76914 2005-05-31  Derek Price  <derek@ximbiot.com>
76915             Paul Eggert  <eggert@cs.ucla.edu>
76916
76917         Sync from cvs.
76918         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76919
76920 2005-05-29  Derek Price  <derek@ximbiot.com>
76921
76922         * config/srclist.txt (glob_.h, glob.c): Add these files.
76923
76924 2005-05-29  Derek Price  <derek@ximbiot.com>
76925
76926         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76927         * modules/glob: New file.
76928         * modules/getlogin_r: Add link to POSIX spec in description.
76929
76930 2005-05-29  Derek Price  <derek@ximbiot.com>
76931             Paul Eggert  <eggert@cs.ucla.edu>
76932
76933         * m4/glob.m4: New file.
76934
76935 2005-05-29  Derek Price  <derek@ximbiot.com>
76936             Paul Eggert  <eggert@cs.ucla.edu>
76937
76938         * lib/glob_.h, lib/glob.c: New files.
76939
76940 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76941
76942         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76943         * modules/fts-lgpl (Depends-on): Remove gettext.
76944
76945 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76946
76947         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76948         and don't require gt_INTTYPES_PRI.
76949
76950 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76951
76952         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76953
76954         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76955         the configuration hassle isn't worth it.
76956         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76957         (LONGEST_MODIFIER, PRIuMAX): Remove.
76958
76959 2005-05-27  Bruno Haible  <bruno@clisp.org>
76960
76961         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76962
76963 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76964
76965         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76966         _POSIX_PTHREAD_SEMANTICS for Solaris.
76967
76968 2005-05-25  Derek Price  <derek@ximbiot.com>
76969
76970         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76971
76972 2005-05-25  Derek Price  <derek@ximbiot.com>
76973             Paul Eggert  <eggert@cs.ucla.edu>
76974
76975         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76976         * lib/getlogin_r.c, getlogin_r.h: New files.
76977
76978 2005-05-25  Bruno Haible  <bruno@clisp.org>
76979             Derek Price  <derek@ximbiot.com>
76980
76981         * lib/getlogin_r.h: Simplify API documentation.
76982
76983 2005-05-23  Derek Price  <derek@ximbiot.com>
76984
76985         * modules/minmax (Files): Add m4/minmax.m4.
76986         (configure.ac): Add gl_MINMAX.
76987
76988 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76989
76990         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76991         so that unistd-safer.h (GPL'ed code) need not be included.
76992
76993 2005-05-22  Bruno Haible  <bruno@clisp.org>
76994
76995         * m4/minmax.m4: New file.
76996         Based on a patch by Derek Price <derek@ximbiot.com>.
76997
76998 2005-05-22  Bruno Haible  <bruno@clisp.org>
76999
77000         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77001         (INT64_MIN): Fix definition.
77002         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77003
77004         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77005         NEED_SIGNED_INT_TYPES.
77006
77007         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77008         HAVE_SYSTEM_INTTYPES.
77009
77010 2005-05-22  Bruno Haible  <bruno@clisp.org>
77011
77012         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77013         Also include <sys/param.h> if it defines MIN, MAX.
77014         Based on a patch by Derek Price <derek@ximbiot.com>.
77015
77016 2005-05-21  Jim Meyering  <jim@meyering.net>
77017
77018         * modules/fts (Files): Add m4/inttypes-pri.m4.
77019         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77020
77021 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77022
77023         New fts module.
77024         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77025         (setup_dir, free_dir): New functions.
77026         (enter_dir, leave_dir): Define trivial
77027         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77028         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77029         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77030         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77031         Move to fts-cycle.c.
77032         (fts_open): Use setup_dir.
77033         (fts_close): Use free_dir.
77034         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77035         This adds a label and some gotos, but the alternatives were messier.
77036         Check for memory allocation failure when entering a dir.
77037         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77038         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77039         (FTS): New member fts_cycle, that is a union that contains the
77040         old active_dir_ht and cycle_state.  All uses changed to mention
77041         fts_cycle.ht and fts_cycle.state.
77042         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77043         fts.c, with the following changes:
77044         (setup_dir, free_dir): New functions.
77045         (enter_dir): Now returns bool.  Return true if successful, false
77046         if memory exhausted.  All callers changed.
77047         Do not bother partly cleaning up on
77048         memory allocation failure; that is free_dir's job.
77049         However, free ad if hash_insert fails, to avoid memory leak.
77050         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77051         fts->fts_options to see which union member to use.
77052
77053 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77054
77055         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77056         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77057
77058 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77059
77060         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77061
77062 2005-05-20  Jim Meyering  <jim@meyering.net>
77063
77064         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77065         Now a macro, to pacify GCC.
77066
77067 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77068
77069         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77070         of -1.
77071
77072 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77073
77074         * lib/chown.c (rpl_chown): Return -1 on failure.
77075
77076 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77077
77078         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77079         Don't check for stddef.h.
77080         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77081         don't use its results.
77082         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77083         since we include them unconditionally.  Don't require
77084         AM_STDBOOL_H, since stdbool is a prerequisite.
77085         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77086         since we assume C89 or better.
77087         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77088         as we don't use their results.
77089         Don't check for fchdir, memmove, memset, strrchr, as we use
77090         them unconditionally.
77091         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77092         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77093
77094 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77097         Include <stddef.h> unconditionally, since we assume C89 now.
77098         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77099         * lib/fts.c: Include fts_.h first, to check interface.
77100         Do not include intprops.h; no longer needed.
77101         Include cycle-check.h and hash.h, since fts_.h no longer does.
77102         Remove unnecessary casts of closedir to void.
77103         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77104         decide whether to decrement nlinks.
77105         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77106         (FTS): Use struct hash_table * instead of Hash_table, so that
77107         we no longer need to include hash.h here.
77108
77109 2005-05-18  Jim Meyering  <jim@meyering.net>
77110
77111         * modules/dirfd (License): Change to LGPL.  Most of the code
77112         is already in the public domain.
77113
77114 2005-05-18  Jim Meyering  <jim@meyering.net>
77115
77116         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77117         Reported by Yoann Vandoorselaere.
77118
77119 2005-05-17  Jim Meyering  <jim@meyering.net>
77120
77121         * m4/fts.m4: New file, from coreutils.
77122
77123 2005-05-17  Jim Meyering  <jim@meyering.net>
77124
77125         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77126
77127 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77128
77129         Sync from coreutils.
77130         * m4/unlinkdir.m4: New file.
77131
77132 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77133
77134         Sync from coreutils.
77135         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77136         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77137         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77138         White space changes only.
77139         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77140         special.
77141         * lib/yesno.c: Include getline.h, not ctype.h.
77142         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77143         Use getline to remove arbitrary restriction on response length.
77144
77145 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77146
77147         * config/srclist-update: Spell out "Street" in FSF postal
77148         mail address; this is the style the FSF seems to prefer.
77149
77150         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77151         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77152         this updates FSF postal mail address.
77153
77154         Sync from coreutils.
77155         * modules/unlinkdir: New file.
77156         * modules/yesno (Depends-on): Add getline.
77157         * MODULES.html.sh (File system functions): Add unlinkdir.
77158
77159 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77160
77161         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77162         lib/strsep.h:
77163         Change the initial comment to refer to GPL, not LGPL.
77164         gnulib-tool will change it to LGPL as needed.
77165
77166         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77167         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77168         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77169         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77170         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77171         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77172         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77173         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77174         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77175         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77176         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77177         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77178         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77179         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77180         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77181         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77182         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77183         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77184         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77185         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77186         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77187         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77188         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77189         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77190         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77191         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77192         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77193         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77194         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77195         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77196         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77197         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77198         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77199         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77200         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77201         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77202         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77203         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77204         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77205         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77206         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77207         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77208         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77209         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77210         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77211         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77212         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77213         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77214         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77215         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77216         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77217         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77218         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77219         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77220         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77221         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77222         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77223         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77224         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77225         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77226         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77227         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77228         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77229         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77230         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77231         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77232         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77233         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77234         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77235         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77236         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77237         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77238         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77239         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77240         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77241         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77242         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77243         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77244         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77245         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77246         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77247         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77248         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77249         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77250         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77251         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77252         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77253         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77254         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77255         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77256         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77257         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77258         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77259         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77260         lib/yesno.c, lib/yesno.h:
77261         Update FSF postal mail address.
77262
77263 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77264
77265         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77266         tests/test-memmem.c, tests/test-stpncpy.c:
77267         Update FSF postal mail address.
77268
77269 2005-05-13  Bruno Haible  <bruno@clisp.org>
77270
77271         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77272         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77273         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77274         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77275         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77276         Add support for 64-bit integers in the MSVC compiler.
77277
77278 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77279
77280         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77281
77282 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77283
77284         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77285
77286 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77287
77288         * doc/getdate.texi (General date syntax): Don't say that date
77289         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77290         Problem reported by Nic Ferrier.
77291
77292 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77293
77294         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77295         specified in ai_socktype. Fix invalid ai_protocol
77296         check. ai_protocol is usually set to 0 or depending on
77297         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77298         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77299         ai_socktype / ai_protocol in the returned addrinfo structure.
77300
77301 2005-05-10  Simon Josefsson  <jas@extundo.com>
77302
77303         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77304         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77305
77306 2005-05-10  Karl Berry  <karl@gnu.org>
77307
77308         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77309         (from http://www.gnu.org/licenses).
77310         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77311         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77312         fdl.texi suffices.
77313
77314 2005-05-10  Karl Berry  <karl@gnu.org>
77315
77316         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77317         (COPYING.DOC): remove.
77318
77319         * config/srclist-update: new FSF address.
77320
77321 2005-05-10  Derek Price  <derek@ximbiot.com>
77322
77323         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77324         possible.
77325
77326 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77327             Bruno Haible  <bruno@clisp.org>
77328
77329         * modules/inet_ntop: New file.
77330         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77331         inet_ntop.
77332
77333 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77334             Bruno Haible  <bruno@clisp.org>
77335
77336         * m4/inet_ntop.m4: New file.
77337
77338 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77339             Bruno Haible  <bruno@clisp.org>
77340
77341         * lib/inet_ntop.h: New file.
77342         * lib/inet_ntop.c: New file, from glibc with modifications.
77343
77344 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77345
77346         * modules/time_r (License): Change to LGPL.
77347         * modules/extensions (License): Change to LGPL.  Actually,
77348         the license is more permissive than that, but currently gnulib-tool
77349         doesn't know how to handle more-permissive licenses.
77350
77351         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77352         Problem reported by Dave Love.
77353
77354 2005-05-08  Jim Meyering  <jim@meyering.net>
77355
77356         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77357         blank.
77358
77359 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         * modules/argmatch (Depends-on): Add stdbool.
77362         * modules/backupfile (Depends-on): Likewise.
77363         * modules/chdir-long (Depends-on): Likewise.
77364         * modules/closeout (Depends-on): Likewise.
77365         * modules/cycle-check (Depends-on): Likewise.
77366         * modules/dirname (Depends-on): Likewise.
77367         * modules/fnmatch (Depends-on): Likewise.
77368         * modules/fsusage (Depends-on): Likewise.
77369         * modules/fwriteerror (Depends-on): Likewise.
77370         * modules/getcwd (Depends-on): Likewise.
77371         * modules/getloadavg (Depends-on): Likewise.
77372         * modules/hard-locale (Depends-on): Likewise.
77373         * modules/makepath (Depends-on): Likewise.
77374         * modules/mountlist (Depends-on): Likewise.
77375         * modules/nanosleep (Depends-on): Likewise.
77376         * modules/posixtm (Depends-on): Likewise.
77377         * modules/quotearg (Depends-on): Likewise.
77378         * modules/readtokens (Depends-on): Likewise.
77379         * modules/readtokens0 (Depends-on): Likewise.
77380         * modules/readutmp (Depends-on): Likewise.
77381         * modules/save-cwd (Depends-on): Likewise.
77382         * modules/strftime (Depends-on): Likewise.
77383         * modules/userspec (Depends-on): Likewise.
77384         * modules/utimecmp (Depends-on): Likewise.
77385         * modules/xgetcwd (Depends-on): Likewise.
77386         * modules/xnanosleep (Depends-on): Likewise.
77387         * modules/xstrtod (Depends-on): Likewise.
77388         * modules/yesno (Depends-on): Likewise.
77389
77390 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77391
77392         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77393         needless checks.
77394
77395 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77396
77397         Merge from coreutils.  Among other things,
77398         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77399         * lib/fd-safer.c: New file.
77400         * lib/fcntl-safer.h, open-safer.c: Remove.
77401         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77402         * lib/dup-safer.c: Include unistd-safer.h first.
77403         Don't include errno.h.
77404         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77405         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77406         * lib/file-type.c: Rely on file-type.h change.
77407         * lib/getloadavg.c: Include unistd-safer.h.
77408         (getloadavg): Use safer open.
77409         * lib/getusershell.c: Include "stdio-safer.h".
77410         (getusershell): Use safer fopen.
77411         * lib/long-options.c (long_options): Use NULL rather than 0.
77412         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77413         'free'.
77414         * lib/modechange.c: Likewise.
77415         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77416         (MODE_DONE): New constant.
77417         (struct mode_change): Remove 'next' member.
77418         (make_node_op_equals): New function; like the old one of the
77419         same name, except it allocates an array.
77420         (mode_compile, mode_create_from_ref): Use it.
77421         (mode_compile): Allocate result as an array, not a linked list.
77422         Parse octal string ourself, so that we catch mistakes like "+0".
77423         (mode_adjust): Arg is an array, not a linked list.
77424         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77425         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77426         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77427         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77428         Remove.  This is now stat-macros.h's job.
77429         (talloc): Remove.  All callers replaced by xalloc, so that
77430         our invokers don't have to worry about reporting memory failures.
77431         (make_node_op_equals): Remove.
77432         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77433         New constants.
77434         (struct mode_change): Moved here from modechange.h.
77435         (mode_append_entry): Remove.
77436         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77437         apps to have incorrect behavior.  Use simpler algorithm for head
77438         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77439         Detect more invalid usages rather than having somewhat-random behavior.
77440         Don't insert an "a=" action, as that leads to incorrect behavior.
77441         (mode_compile, mode_create_from_ref): Return NULL on error instead
77442         of an enum, since now there's only one way to have an error.  All
77443         callers changed.
77444         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77445         at the correct time.  Simplify calculation of "+u" and its ilk.
77446         Don't mishandle "+X".
77447         (mode_free): Remove "register" and localize decls.
77448         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77449         (struct mode_change): Move to modechange.c; callers don't
77450         need to see this stuff.
77451         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77452         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77453         (mode_change, mode_adjust): Reflect the new signatures noted above.
77454         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77455         that might redefine system include files.
77456         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77457         (my_usleep): Use NULL rather than (void *) 0.
77458         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77459         Use siginterrupt to specify that system calls should be interrupted.
77460         (rpl_nanosleep): Move initialization of suspended closer to call of
77461         my_usleep.
77462         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77463         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77464         (desirable_utmp_entry): New function.
77465         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77466         using x2nrealloc, to simplify logic.
77467         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77468         size calculation.  Do not assume utmp file is a regular file.
77469         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77470         (READ_UTMP_CHECK_PIDS): New constant.
77471         * lib/save-cwd.c: Include unistd-safer.h.
77472         (save_cwd): Use fd_safer.
77473         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77474         [!_LIBC] Include "stat-macros.h" instead.
77475         * lib/unistd-safer.h (fd_safer): New decl.
77476
77477 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77478
77479         * modules/getloadavg (Depends-on): Add unistd-safer.
77480         * modules/getusershell (Depends-on): Add stdio-safer.
77481         * modules/lstat (Depends-on): Remove xalloc.
77482         * modules/mkstemp (Depends-on): Add stat-macros.
77483         * modules/modechange (Depends-on): Remove xstrtol.
77484         Add stat-macros, xalloc.
77485         * modules/save-cwd (Depends-on): Add unistd-safer.
77486         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77487         * modules/unistd-safer (Files): Add lib/fd-safer.c
77488         (Makefile.am): Remove lib_SOURCES.
77489
77490         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77491         Remove fcntl-safer; unistd-safer supersedes it.
77492
77493 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77494
77495         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77496         AC_HEADER_STAT.
77497         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77498         (gl_PREREQ_CHOWN): Remove.
77499         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77500         it.  Don't require AC_HEADER_STAT.
77501         (gl_PREREQ_LSTAT): Remove.
77502         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77503         Don't require AC_HEADER_STAT.
77504         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77505         (gl_PREREQ_RMDIR): Remove.
77506         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77507         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77508         the stat-macros module a prerequisite.
77509         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77510         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77511         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77512         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77513         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77514         variable names.
77515         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77516         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77517         variable prefixes.
77518         * m4/fcntl-safer.m4: Remove.
77519         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77520         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77521         Invoke gl_PREREQ_FD_SAFER.
77522         (gl_PREREQ_FD_SAFER): New macro.
77523         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77524         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77525         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77526         Remove duplicate call to AC_LIBOBJ(readutmp).
77527         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77528
77529         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77530         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77531
77532 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77533
77534         * MODULES.html.sh (Misc): Add byteswap.
77535
77536 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77537
77538         * modules/getcwd (Depends-on): Add extensions.
77539         * modules/openat (Depends-on): Likewise.
77540
77541 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77542
77543         * modules/byteswap: New file.
77544
77545 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77546
77547         * m4/byteswap.m4: New file.
77548
77549 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77550
77551         * lib/byteswap_.h: New file.
77552
77553 2005-04-25  Karl Berry  <karl@gnu.org>
77554
77555         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77556
77557 2005-04-25  Albert Chin  <china@thewrittenword.com>
77558
77559         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77560         Toolkit C bug.
77561
77562 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77563
77564         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77565         (func_ln_if_changed): Remove forcibly for no error message
77566         in case file does not exist.
77567
77568 2005-04-19  Simon Josefsson  <jas@extundo.com>
77569
77570         * gnulib-tool (Options): Make --symlink mean --symbolic.
77571
77572 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77573
77574         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77575
77576 2005-04-16  Simon Josefsson  <jas@extundo.com>
77577
77578         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77579
77580 2005-04-15  Simon Josefsson  <jas@extundo.com>
77581
77582         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77583
77584 2005-04-15  Simon Josefsson  <jas@extundo.com>
77585
77586         * gnulib-tool: Rename --symlink to --symbolic.
77587
77588 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77589
77590         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77591         symbolic links to files instead of copying/moving.  Add --aux-dir,
77592         specifying directory relative --dir where auxiliary build tools
77593         are placed.
77594
77595 2005-04-14  Bruno Haible  <bruno@clisp.org>
77596
77597         * modules/allocsa (License): Change to LGPL.
77598         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77599
77600 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77601
77602         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77603         that "UTC +1 second" continues to work.  Problem reported
77604         by Dmitry V. Levin.
77605         (relunit_snumber): New rule.
77606         (relunit): Use it.
77607
77608 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77609
77610         * lib/getdate.y (universal_time_zone_table): New constant.
77611         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77612         universal_time_zone_table.
77613         (lookup_zone): Prefer universal_time_zone_table to
77614         local_time_zone_table, so that "GMT" time stamps are allowed in
77615         London during the summer.  Problem reported by Ian Abbott.
77616
77617 2005-04-12  Jim Meyering  <jim@meyering.net>
77618
77619         * lib/human.c (humblock): Set *options even when returning due to
77620         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77621         warning from gcc-4.
77622
77623 2005-04-09  Jim Meyering  <jim@meyering.net>
77624
77625         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77626         -Wuninitialized: initialize tm0.tm_year.
77627
77628 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77629
77630         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77631         count, since there's no maximum.  All uses changed.
77632         Add member dsts_seen.
77633         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77634         not being INT_MAX.
77635         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77636         Use pc_rels_seen to decide whther a date is absolute.
77637
77638         * lib/getdate.y (number): Don't overwrite year.
77639         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77640         check.
77641
77642 2005-04-02  Simon Josefsson  <jas@extundo.com>
77643
77644         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77645         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77646
77647 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77648
77649         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77650         where no absolute path name can be longer than PATH_MAX.
77651
77652 2005-03-27  Jim Meyering  <jim@meyering.net>
77653
77654         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77655
77656 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77657
77658         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77659         "one's complement" -> "ones' complement" in comment, as per Knuth.
77660         "value of type" -> "type or expression" in comment.
77661         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77662
77663 2005-03-26  Jim Meyering  <jim@meyering.net>
77664
77665         Comment nits.
77666         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77667         Correct typos: s/or/of/.
77668
77669 2005-03-26  Jim Meyering  <jim@meyering.net>
77670
77671         * modules/check-include-files: Move to ../ and rename to...
77672         * check-module: ...this.
77673
77674 2005-03-25  Jim Meyering  <jim@meyering.net>
77675
77676         * modules/xvasprintf (Files): Add xalloc.h.
77677
77678 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         * modules/gettext (Files): config/config.rpath ->
77681         build-aux/config.rpath
77682         * modules/iconv (Files): Likewise.
77683         Problem reported by Oskar Liljeblad.
77684
77685 2005-03-23  Jim Meyering  <jim@meyering.net>
77686
77687         * modules/check-include-files: New script to check for
77688         missing dependencies, multiple includes, etc.
77689
77690         * modules/c-strtold (Depends-on): Add xalloc.
77691         * modules/c-strtod (Depends-on): Add xalloc.
77692         * modules/hash (Depends-on): Add xalloc.
77693         (Files): Remove lib/xalloc.h.
77694
77695         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77696         * modules/userspec (Files): Add lib/inttostr.h.
77697
77698 2005-03-23  Jim Meyering  <jim@meyering.net>
77699
77700         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77701
77702 2005-03-22  Jim Meyering  <jim@meyering.net>
77703
77704         * modules/stat-macros: New module.
77705         * modules/canonicalize, modules/euidaccess, modules/file-type,
77706         * modules/filemode, modules/lchown, modules/makepath,
77707         * modules/rmdir, modules/stat: Depend on new stat-macros module
77708         rather than listing lib/stat-macros.h manually.
77709         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77710
77711 2005-03-22  Jim Meyering  <jim@meyering.net>
77712
77713         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77714
77715 2005-03-22  Bruno Haible  <bruno@clisp.org>
77716
77717         * config/srclist.txt: Replace target directory 'config' with
77718         'build-aux'.
77719         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77720         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77721         ../build-aux/.
77722
77723 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77724
77725         * modules/chdir-long (Depends-on): Add mempcpy.
77726
77727         * modules/acl, modules/backupfile, modules/c-strtod,
77728         modules/c-strtold, modules/canon-host, modules/canonicalize,
77729         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77730         modules/exclude, modules/exitfail, modules/file-type,
77731         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77732         modules/getdate, modules/getline, modules/getpagesize,
77733         modules/getpass, modules/getugroups, modules/group-member,
77734         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77735         modules/inttostr, modules/long-options, modules/makepath,
77736         modules/md5, modules/memcasecmp, modules/memcoll,
77737         modules/modechange, modules/mountlist, modules/path-concat,
77738         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77739         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77740         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77741         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77742         modules/strftime, modules/strndup, modules/strverscmp,
77743         modules/timespec, modules/unlocked-io, modules/userspec,
77744         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77745         modules/yesno:
77746         Remove lib_SOURCES line from Makefile.am section, as this is now
77747         done automatically by the corresponding Autoconf macro.
77748
77749 2005-03-21  Jim Meyering  <jim@meyering.net>
77750
77751         Changes imported from coreutils.
77752
77753         * lib/cycle-check.c: Don't include xalloc.h.
77754
77755         * lib/path-concat.c: Don't include assert.h.
77756         (path_concat): Remove assertion that would have triggered
77757         for ABASE starting with more than one slash.
77758         Reported by Andreas Schwab.
77759
77760         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77761         properly when ABASE is an absolute file name.
77762         Correct the description of this function.
77763         Include <assert.h>.
77764         Add an assertion and a test driver.
77765         This fixes a bug introduced on 2004-07-02.
77766         Andreas Schwab reported the resulting failure of cp --parents:
77767         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77768
77769 2005-03-21  Jim Meyering  <jim@meyering.net>
77770
77771         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77772         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77773
77774 2005-03-21  Jim Meyering  <jim@meyering.net>
77775         and  Paul Eggert  <eggert@cs.ucla.edu>
77776
77777         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77778         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77779         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77780         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77781         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77782         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77783         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77784         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77785         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77786         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77787         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77788         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77789         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77790         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77791         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77792         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77793         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77794         for these modules.
77795
77796 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77797
77798         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77799         (which shouldn't happen), generate nothing instead of returning 0
77800         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77801
77802 2005-03-16  Bruno Haible  <bruno@clisp.org>
77803
77804         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77805         HAVE_LONGLONG_64BIT.
77806
77807 2005-03-16  Bruno Haible  <bruno@clisp.org>
77808
77809         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77810         HAVE_LONGLONG_64BIT.
77811
77812 2005-03-16  Bruno Haible  <bruno@clisp.org>
77813
77814         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77815         HAVE_LONGLONG_64BIT.
77816
77817 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77818
77819         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77820         reliably distinguish strftime failure from empty output on POSIX
77821         hosts.
77822
77823 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77824
77825         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77826         (iconv_string): Don't guess a size-zero buffer, as that might cause
77827         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77828         result would be 'too large', where 'too large' is (heuristically)
77829         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77830         overflow concerns.  This will prevent some unwanted malloc failures
77831         when the inputs are very large.
77832
77833 2005-03-15  Karl Berry  <karl@gnu.org>
77834
77835         * config/srclist.txt (config.rpath): from gettext.
77836         * config/config.rpath: update.
77837
77838 2005-03-15  Bruno Haible  <bruno@clisp.org>
77839
77840         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77841         to 'negate'.
77842
77843         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77844         variable.
77845
77846         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77847         results.
77848
77849 2005-03-14  Simon Josefsson  <jas@extundo.com>
77850
77851         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77852         <fx@gnu.org>.
77853
77854 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77855
77856         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77857         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77858         intprops.h.
77859         * lib/strtol.c: Likewise.
77860
77861 2005-03-14  Jim Meyering  <jim@meyering.net>
77862
77863         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77864         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77865         to be nonzero so that we (and caller) can detect the difference
77866         between a valid zero-length expansion and an error return, even
77867         when the underlying strftime fails before writing anything into
77868         that location.
77869
77870 2005-03-14  Bruno Haible  <bruno@clisp.org>
77871
77872         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77873         Update from GNU gettext 0.14.3.
77874
77875 2005-03-10  Jim Meyering  <jim@meyering.net>
77876
77877         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77878
77879 2005-03-10  Jim Meyering  <jim@meyering.net>
77880
77881         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77882         so that this module works on systems without fchdir.
77883
77884 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77885
77886         Factor int-properties macros into a single file, except for
77887         glibc-related files.
77888         * lib/intprops.h: New file.
77889         * lib/getloadavg.c: Include it instead of limits.h.
77890         (INT_STRLEN_BOUND): Remove.
77891         * lib/human.c: Include intprops.h.
77892         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77893         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77894         302/1000.
77895         * lib/inttostr.h: Include intprops.h instead of limits.h.
77896         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77897         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77898         for consistency with intprops.h.
77899         (time_t_is_integer, twos_complement_arithmetic): Use them.
77900         * lib/sig2str.h: Include <signal.h>, intprops.h.
77901         (INT_STRLEN_BOUND): Remove.
77902         * lib/strftime.c (TYPE_SIGNED): Remove.
77903         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77904         * lib/strtol.c: Adjust comments to match intprops.h.
77905         * lib/userspec.c: Include intprops.h.
77906         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77907         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77908         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77909         instead of rolling our own expressions.
77910         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77911
77912         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77913         instead of int.
77914         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77915         the right thing even if adding 1900 would overflow.  Similarly
77916         for tm_mon + 1 and tm_yday + 1.
77917         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77918         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77919         (DO_SIGNED_NUMBER): New macro.
77920         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77921
77922 2005-03-07  Bruno Haible  <bruno@clisp.org>
77923
77924         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77925
77926 2005-03-07  Bruno Haible  <bruno@clisp.org>
77927
77928         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77929
77930 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77931
77932         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77933         (func_import): Only replace files via --import when they have actually
77934         changed.
77935
77936 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77937
77938         * m4/mmap-anon.m4: New file.
77939         * m4/pagealign_alloc.m4: New file.
77940
77941 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77942             Bruno Haible  <bruno@clisp.org>
77943
77944         * modules/pagealign_alloc: New file.
77945         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77946
77947 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77948             Bruno Haible  <bruno@clisp.org>
77949
77950         * lib/pagealign_alloc.h: New file.
77951         * lib/pagealign_alloc.c: New file.
77952
77953 2005-03-03  Bruno Haible  <bruno@clisp.org>
77954
77955         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77956         Use an all-permissive copyright notice, recommended by RMS.
77957
77958 2005-03-02  Bruno Haible  <bruno@clisp.org>
77959
77960         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77961         of AIX, the replacement has to be done only after <string.h> is
77962         included, therefore not in config.h. stpncpy.h does the replacement,
77963         and stpncpy.c uses it.
77964
77965 2005-03-02  Bruno Haible  <bruno@clisp.org>
77966
77967         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77968         stpncpy.c uses it.
77969
77970 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77971
77972         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77973         The workaround isn't strictly needed for POSIX conformance, and
77974         it's too much of a pain to configure and maintain.  We'll ask
77975         people to fix their kernels instead.
77976         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77977         (NANOSLEEP_BUG_WORKAROUND): Remove.
77978         (xnanosleep): Remove the workaround.
77979
77980 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77981
77982         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77983         Reported by Derek Price.
77984         (Include): Add "timespec.h".
77985
77986         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77987
77988 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77991         to detect nanosleep bug.
77992
77993 2005-03-01  Bruno Haible  <bruno@clisp.org>
77994
77995         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77996
77997 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77998
77999         * modules/gethrxtime: New file.
78000         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78001         (Depends-on): Add gethrxtime.
78002         (configure.ac): Add gl_XNANOSLEEP.
78003         (Makefile.am): Remove lib_SOURCES line.
78004
78005 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78006
78007         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78008         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78009
78010 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78011
78012         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78013         * lib/timespec.h (gettime): Return void, since it always
78014         succeeds now.  All uses changed.
78015         * lib/gettime.c (gettime): Likewise.
78016         [HAVE_NANOTIME]: Prefer nanotime.
78017         Assume gettimeofday succeeds, as POSIX requires.
78018         Assime time () succeeds, since other code already does.
78019         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78020         (timespec_subtract): Remove.
78021         (NANOSLEEP_BUG_WORKAROUND): New constant.
78022         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78023         things considerably.  Use it only on GNU/Linux hosts, since the
78024         workaround shouldn't be needed elsewhere.
78025
78026 2005-02-24  Bruno Haible  <bruno@clisp.org>
78027
78028         * modules/gettext (Files): Add m4/glibc2.m4.
78029
78030 2005-02-24  Bruno Haible  <bruno@clisp.org>
78031
78032         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78033         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78034         * m4/progtest.m4:
78035         Update from GNU gettext 0.14.2.
78036         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78037
78038 2005-02-24  Bruno Haible  <bruno@clisp.org>
78039
78040         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78041         * lib/config.charset: Update from GNU gettext 0.14.2.
78042
78043 2005-02-24  Bruno Haible  <bruno@clisp.org>
78044
78045         * lib/gettext.h: Update from GNU gettext 0.14.2.
78046
78047 2005-02-23  Simon Josefsson  <jas@extundo.com>
78048
78049         * m4/iconvme.m4: New file.
78050
78051 2005-02-23  Jim Meyering  <jim@meyering.net>
78052
78053         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78054         change.
78055         Thanks to Bruno Haible for catching it.
78056
78057 2005-02-22  Simon Josefsson  <jas@extundo.com>
78058
78059         * modules/iconvme: New file.
78060
78061         * MODULES.html.sh: Add iconvme.
78062
78063 2005-02-22  Simon Josefsson  <jas@extundo.com>
78064
78065         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78066
78067 2005-02-22  Simon Josefsson  <jas@extundo.com>
78068
78069         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78070
78071 2005-02-22  Jim Meyering  <jim@meyering.net>
78072
78073         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78074         s/ifndef/ifdef/.
78075
78076 2005-02-20  Neil Conway  <neilc@samurai.com>
78077
78078         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78079         returned by OSX/Darwin if the specified buffer is not large
78080         enough for the hostname.
78081
78082 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78083
78084         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78085         pass it to _help, otherwise the latter coredumps trying to
78086         dereference state.root_argp.
78087
78088 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78089
78090         * modules/chdir-long (Depends-on): Add memrchr.
78091         * modules/memrchr (Files): Add lib/memrchr.h.
78092         (Include): "memrchr.h".
78093
78094 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78095
78096         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78097
78098 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78099
78100         * lib/memrchr.h: New file.
78101         * lib/chdir-long.c: Include it.
78102         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78103         Don't bother including stddef.h.
78104
78105 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78106
78107         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78108         inclusion.
78109         Include <sys/types.h>, for dev_t.
78110         (ME_DUMMY, ME_REMOTE): Move from here....
78111         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78112         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78113         Dmitry V. Levin.
78114         Include mountlist.h first, to test the interface.
78115
78116 2005-01-29  Bruno Haible  <bruno@clisp.org>
78117
78118         * lib/progname.c (program_name): Initialize.
78119         Needed when linking statically on MacOS X.
78120
78121 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78122
78123         Sync from coreutils.
78124         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78125         (Depends-on): Add c-strtod.
78126         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78127
78128 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         Sync from coreutils.
78131         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78132
78133         Remove files that are specific to coreutils.
78134         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78135
78136 2005-01-28  Bruno Haible  <bruno@clisp.org>
78137
78138         * modules/javacomp: New file.
78139         * MODULES.html.sh (Java): Add javacomp.
78140
78141 2005-01-28  Bruno Haible  <bruno@clisp.org>
78142
78143         * m4/javacomp.m4: New file, from GNU gettext.
78144
78145 2005-01-28  Bruno Haible  <bruno@clisp.org>
78146
78147         * lib/javacomp.sh.in: New file, from GNU gettext.
78148         * lib/javacomp.h: New file, from GNU gettext.
78149         * lib/javacomp.c: New file, from GNU gettext.
78150
78151 2005-01-26  Simon Josefsson  <jas@extundo.com>
78152
78153         * lib/gai_strerror.c: Use GPL in header.
78154
78155 2005-01-26  Bruno Haible  <bruno@clisp.org>
78156
78157         * modules/javaexec: New file.
78158         * MODULES.html.sh (Java): Add javaexec.
78159
78160 2005-01-26  Bruno Haible  <bruno@clisp.org>
78161
78162         * m4/javaexec.m4: New file, from GNU gettext.
78163
78164 2005-01-26  Bruno Haible  <bruno@clisp.org>
78165
78166         * lib/javaexec.sh.in: New file, from GNU gettext.
78167         * lib/javaexec.h: New file, from GNU gettext.
78168         * lib/javaexec.c: New file, from GNU gettext.
78169
78170 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78171
78172         * modules/lchown (Depends-on): Remove lchown.h
78173
78174 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78175
78176         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78177         must be defined if the header file was not found, in order
78178         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78179
78180 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78181
78182         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78183         initializers for struct pentry_state.
78184         (__argp_error): Check return value of __asprintf
78185         (__argp_failure): Translate error message
78186
78187         * lib/argp-parse.c: Removed braces around the expansion of N_()
78188
78189 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78190
78191         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78192         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78193         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78194         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78195         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78196         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78197         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78198         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78199         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78200         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78201         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78202         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78203         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78204         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78205         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78206         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78207         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78208         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78209         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78210         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78211         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78212         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78213         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78214         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78215         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78216         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78217         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78218         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78219         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78220         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78221         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78222         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78223         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78224         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78225         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78226         Use an all-permissive copyright notice, recommended by RMS.
78227
78228 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * modules/chdir-long (Depends-on): Remove mempcpy.
78231
78232 2005-01-21  Jim Meyering  <jim@meyering.net>
78233
78234         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78235         same value as for Solaris 9.
78236
78237         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78238         component length.  This included changing the parameter to be
78239         of type `char *' rather than `char const *'.
78240         * lib/chdir-long.h (chdir_long): Update prototype.
78241
78242         * lib/openat.c (fdopendir, fstatat): New functions.
78243         * lib/openat.h: Include headers required for use of DIR and struct
78244         stat.
78245         [AT_SYMLINK_NOFOLLOW]: Define.
78246         (fdopendir, fstatat): Add prototypes.
78247
78248 2005-01-21  Bruno Haible  <bruno@clisp.org>
78249
78250         * modules/classpath: New file.
78251         * MODULES.html.sh (Java): Add classpath.
78252
78253 2005-01-21  Bruno Haible  <bruno@clisp.org>
78254
78255         * lib/classpath.h: New file, from GNU gettext.
78256         * lib/classpath.c: New file, from GNU gettext.
78257
78258 2005-01-20  Simon Josefsson  <jas@extundo.com>
78259
78260         * modules/version-etc-fsf: New file.
78261
78262 2005-01-20  Simon Josefsson  <jas@extundo.com>
78263
78264         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78265         * lib/version-etc.c: Remove version_etc_copyright.
78266         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78267         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78268
78269 2005-01-20  Simon Josefsson  <jas@extundo.com>
78270
78271         * lib/base64.h (isbase64): Add.
78272
78273         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78274         using a unsigned prototype, don't inline.
78275         (base64_decode): Use it.
78276
78277 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78278
78279         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78280         it.
78281
78282 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78283
78284         * lib/save-cwd.c (save_cwd): Remove code to support the case
78285         where fchdir is missing or flaky.
78286
78287 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78288
78289         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78290
78291 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78292
78293         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78294         AC_LIBSOURCES now does this.
78295         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78296         with new ullong_max module.
78297
78298 2005-01-19  Bruno Haible  <bruno@clisp.org>
78299
78300         * modules/sh-quote: New file.
78301         * MODULES.html.sh (Executing programs): Add sh-quote.
78302
78303 2005-01-19  Bruno Haible  <bruno@clisp.org>
78304
78305         * lib/sh-quote.h: New file, from GNU gettext.
78306         * lib/sh-quote.c: New file, from GNU gettext.
78307
78308 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78309
78310         Merge from coreutils.
78311         * m4/ullong_max.m4: New file.
78312         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78313         (gl_MACROS): Assume localeconv exists.
78314
78315 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78316
78317         Merge changes from coreutils, as described below in several
78318         changelogs dated today.
78319
78320         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78321         (O_DIRECTORY): Remove; not needed here, since "." must be
78322         a directory.  All uses removed.
78323         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78324         universal on Suns, and we also need to test for IRIX.
78325         Revamp code to use 'if' rather than '#if'.
78326         Avoid unnecessary comparison of cwd->desc to 0.
78327
78328         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78329         for known valid error numbers rather than observed invalid ones.
78330
78331 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78332
78333         * modules/ullong_max: New file.
78334
78335         * modules/chdir-long, modules/openat: New files.
78336         * modules/save-cwd (Depends-on): Depend on chdir-long.
78337         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78338
78339 2005-01-18  Jim Meyering  <jim@meyering.net>
78340
78341         Merge from coreutils.
78342         * m4/chdir-long.m4, m4/openat.m4: New files.
78343         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78344         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78345         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78346         is sane and DOES follow symlinks.  Besides, testing 20 different
78347         systems found no broken chown implementations.
78348         Prompted by a change in rsync's copy of this macro.
78349         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78350
78351         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78352
78353         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78354         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78355         NULL-means-set-to-current-time semantics.
78356         Remove temporary file immediately, rather than waiting
78357         for configure's at-exit trap code to do it.
78358
78359 2005-01-18  Jim Meyering  <jim@meyering.net>
78360
78361         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78362
78363         * lib/utimens.c (futimens): Account for the fact that futimes
78364         can also fail with errno == ENOSYS or errno == ENOENT.
78365         Patch from Dmitry V. Levin.
78366
78367         Change the name of the robust chdir function from chdir to chdir_long.
78368         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78369         (restore_cwd): Use chdir_long, not chdir.
78370         * lib/chdir-long.c: Renamed from chdir.c.
78371         * lib/chdir-long.h: Renamed from chdir.h.
78372         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78373         Hurd.
78374
78375 2005-01-18  Bruno Haible  <bruno@clisp.org>
78376
78377         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78378         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78379         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78380         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78381         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78382         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78383         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78384         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78385         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78386         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78387         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78388         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78389         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78390         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78391         Use an all-permissive copyright notice, recommended by RMS.
78392
78393 2005-01-18  Bob Proulx  <bob@proulx.com>
78394
78395         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78396         simplify offsetof() macro construct to avoid compile failure with
78397         native HP-UX 11.0 ANSI C compiler.
78398
78399 2005-01-17  Bruno Haible  <bruno@clisp.org>
78400
78401         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78402         redundant because stpncpy.m4 takes care of it.
78403
78404 2005-01-17  Bruno Haible  <bruno@clisp.org>
78405
78406         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78407
78408 2005-01-17  Bruno Haible  <bruno@clisp.org>
78409
78410         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78411         used.
78412
78413 2005-01-17  Bruno Haible  <bruno@clisp.org>
78414
78415         * lib/fwriteerror.h (fwriteerror): Change specification to include
78416         fclose.
78417         * lib/fwriteerror.c: Include <stdbool.h>.
78418         (fwriteerror): At the end, close the file stream. Record whether
78419         stdout was already closed.
78420
78421 2005-01-17  Bruno Haible  <bruno@clisp.org>
78422
78423         * lib/execute.c (environ): Declare if needed.
78424         * lib/pipe.c (environ): Likewise.
78425         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78426
78427 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78428
78429         * modules/argp: Depend on vsnprintf
78430
78431 2005-01-10  Jim Meyering  <jim@meyering.net>
78432
78433         * modules/closeout (Depends-on): Add atexit.
78434
78435 2005-01-06  Bruno Haible  <bruno@clisp.org>
78436
78437         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78438
78439 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78442         definitions to be after all include files, to avoid collisions.
78443         Problem reported by Bob Proulx.
78444
78445 2005-01-04  Jim Meyering  <jim@meyering.net>
78446
78447         Changes imported from coreutils.
78448         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78449         as the mkstemp template, use a temporary directory and an
78450         8.3-friendly template to avoid trouble on systems like DJGPP.
78451         Reported by Juan M. Guerrero via Stepan Kasal.
78452         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78453         close. Remove the temporary directory right away, rather than waiting
78454         for configure's at-exit trap code to do it.
78455         Suggestion from Stepan Kasal.
78456
78457 2005-01-01  Simon Josefsson  <jas@extundo.com>
78458
78459         * gnulib-tool: Print #include directives when --import'ing.
78460
78461 2004-12-28  Simon Josefsson  <jas@extundo.com>
78462
78463         * tests/test-base64.c: Include required header files.  Remove
78464         unused variables.
78465
78466 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78467
78468         * modules/error (Depends-on): Remove gettext.
78469
78470 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78473         not needed.  This removes a dependency on the gettext module.
78474         [defined _LIBC]: Do not include <libintl.h>; not needed.
78475
78476 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78477
78478         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78479         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78480
78481 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78482
78483         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78484         HAVE_DECL_STRTOLD.
78485
78486 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78487
78488         * modules/getdate (Depends-on): Remove alloca-opt.
78489
78490 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78491
78492         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78493
78494 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78495
78496         * lib/argp-parse.c: Include <stddef.h>.
78497         (alignof, alignto): New macros.
78498         (parser_init): Don't assume that void * is aligned sufficiently
78499         for struct option.
78500
78501         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78502         need to extend the stack.
78503         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78504         large.
78505
78506 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78507
78508         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78509
78510 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78511
78512         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78513         (2004-10-24) change.  Apparently this was a false alarm.
78514
78515         * modules/getdate: Depend on alloca-opt, not alloca.
78516
78517 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78518
78519         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78520         Remove now-obsolete comment about AIX.
78521         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78522         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78523         (YYMAXDEPTH): New macro.
78524
78525 2004-12-18  Simon Josefsson  <jas@extundo.com>
78526
78527         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78528
78529 2004-12-18  Bruno Haible  <bruno@clisp.org>
78530
78531         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78532
78533 2004-12-18  Bruno Haible  <bruno@clisp.org>
78534
78535         * lib/fatal-signal.c (fatal_signals): Make non-const.
78536         (init_fatal_signals): New function.
78537         (uninstall_handlers, install_handlers): Ignore signals that were set to
78538         SIG_IGN.
78539         (at_fatal_signal): Call init_fatal_signals.
78540         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78541         SIG_IGN.
78542         Reported by Paul Eggert.
78543
78544 2004-12-18  Bruno Haible  <bruno@clisp.org>
78545
78546         * doc/alloca.texi: New file.
78547         * doc/alloca-opt.texi: New file.
78548
78549 2004-12-17  Jim Meyering  <jim@meyering.net>
78550
78551         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78552         Otherwise, install-sh could exit with improper exit status when
78553         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78554
78555 2004-12-16  Simon Josefsson  <jas@extundo.com>
78556
78557         * tests/test-base64.c: Add license.
78558
78559 2004-12-15  Stepan Kasal  <address@hidden>
78560
78561         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78562
78563 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78564
78565         * modules/getcwd (Files): Add m4/d-ino.m4.
78566         Suggested by Mark D. Baushke.
78567
78568 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78569
78570         * lib/getdate.y (textint): New member "negative".
78571         (time_zone_hhmm): New function.
78572         Expect 14 shift-reduce conflicts, not 13.
78573         (o_colon_minutes): New rule.
78574         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78575         (yylex): Set the "negative" member of signed numbers.
78576
78577 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78578
78579         * doc/getdate.texi (Time of day items, Time zone items):
78580         Describe new formats +00:00, UTC+00:00.
78581
78582 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78583
78584         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78585         spurious "-l"s.  Problem reported by Stepan Kasal.
78586
78587 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78588
78589         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78590         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78591
78592 2004-12-04  Simon Josefsson  <jas@extundo.com>
78593
78594         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78595         Vandoorselaere <yoann@prelude-ids.org>.
78596
78597 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78598
78599         Changes imported from coreutils.
78600         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78601         exist.
78602         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78603
78604 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         Changes imported from coreutils.
78607         * lib/hard-locale.c: Assume <locale.h> exists.
78608         Include "strdup.h".
78609         (GLIBC_VERSION): New macro.
78610         (hard_locale): Assume setlocale exists.
78611         Rewrite to avoid #ifdef.
78612         Use strdup rather than malloc + strcpy.
78613         * lib/human.c: Assume <locale.h> exists.
78614         (human_readable): Assume localeconv exists.
78615
78616 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         * modules/hard-locale (Depends-on): Add strdup.
78619
78620 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78621
78622         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78623         convert T2, not T.  (Imported from libc.)
78624
78625 2004-11-30  Simon Josefsson  <jas@extundo.com>
78626
78627         * modules/restrict (License): Change to LGPL.
78628
78629 2004-11-30  Simon Josefsson  <jas@extundo.com>
78630
78631         * m4/restrict.m4: Add copyright and copying conditions.
78632
78633 2004-11-30  Simon Josefsson  <jas@extundo.com>
78634
78635         * m4/base64.m4: New file.
78636
78637 2004-11-30  Simon Josefsson  <jas@extundo.com>
78638
78639         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78640         base64.
78641
78642         * tests/test-base64.c: New file.
78643
78644         * modules/base64: New file.
78645
78646 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78647
78648         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78649         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78650
78651         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78652
78653 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78654
78655         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78656         (__getcwd.c): Don't restore errno; glibc doesn't.
78657         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78658         first, falling back to our code only if its results look suspicious.
78659         Ensure that the resulting buffer is only as large as necessary.
78660
78661         * lib/readutmp.c: Include readutmp.h first.
78662         Include <errno.h>, since readutmp.h no longer does that.
78663         * lib/readutmp.h: Don't include <errno.h>,
78664         <sys/param.h>, <time.h>; not needed to establish interface.
78665         (errno): Remove decl.
78666         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78667         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78668         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78669
78670 2004-11-28  Simon Josefsson  <jas@extundo.com>
78671
78672         * lib/base64.h, base64.c: New file.
78673
78674 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78675
78676         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78677
78678 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78679
78680         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78681         (Depends-on): Remove pathmax, same.  Add mempcpy.
78682         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78683         (Makefile.am): Append getcwd.h to lib_SOURCES.
78684         (Include): Add getcwd.h.
78685         (Maintainer): Change from Jim Meyering to "all, glibc",
78686         since getdate now uses intended-for-glibc code.
78687         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78688         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78689
78690 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78691
78692         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78693         HP's ANSI C compiler.
78694         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78695         Declaring int functions causes warnings on some modern systems and
78696         shouldn't be needed to compile on ancient ones.
78697         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78698         defined.
78699
78700         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78701         with the following changes.
78702         (__set_errno): Parenthesize properly.
78703         Include <stdbool.h>.
78704         (MIN, MAX, MATCHING_INO): New macros.
78705         (__getcwd): Define with prototype, not K&R form.
78706         Use heuristics to allocate default buffer on stack if possible.
78707         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78708         behavior, and to avoid the PATH_MAX limit when computing
78709         ../../../../...
78710         Use MATCHING_INO to compare inode number to file.
78711         Check for arithmetic overflow in size calculations.
78712         Fix bug in reallocation of dot array that caused getcwd to fail
78713         on directories nested deeper than 75.
78714         Be more careful about saving errno on error.
78715         Do not use realloc; use only free+malloc, as this is a bit
78716         more flexible and avoids a needless copy operation.
78717         Do not inspect st_dev and st_ino for symbolic links; POSIX
78718         doesn't specify the latter.
78719         Check for closedir errors.
78720         Avoid needless casts.
78721         Use "#ifdef weak_alias" around weak_alias, to be like other
78722         glibc code.
78723         The following changes to getcwd.c have effect only when used in
78724         gnulib; they have no effect inside glibc proper.
78725         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78726         as alloca isn't used.
78727         (alloca, __alloca): Likewise.
78728         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78729         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78730         unconditionally, as gnulib assumes C89 or better.
78731         Do not include <sys/param.h>.
78732         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78733         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78734         better.
78735         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78736         Include <dirent.h> in a way that is compatible with modern Autoconf.
78737         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78738         New macros, if not already defined.
78739         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78740         Use "_LIBC", not "defined _LIBC", for consistency.
78741         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78742         a mempcpy module.
78743         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78744         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78745         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78746         credit only to Jim Meyering and adjust the copyright dates.
78747         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78748         <stdlib.h>, <unistd.h>, "pathmax.h".
78749         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78750         (INITIAL_BUFFER_SIZE): Remove.
78751         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78752
78753 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78754
78755         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78756         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78757         Use the _ONCE methods, for efficiency.
78758         Check for fcntl.h.  In test program, include <errno.h>
78759         and <fcntl.h> if available.  Remove old K&R cruft from
78760         test program.  Check for common errors in GNU/Linux,
78761         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78762         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78763         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78764         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78765         name accordingly.
78766         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78767         accommodate new getcwd.c.
78768         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78769         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78770         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78771         that's all we need now.
78772
78773 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78774
78775         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78776         argp-parse.c depends on getopt internals, that means we should
78777         always use our getopt, to be on the safe side.
78778         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78779         order not to spoil the result of an eventual previous invocation
78780         of gl_GETOPT_SUBSTITUTE.
78781
78782 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78783
78784         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78785         redefinition warnings. To avoid them, include the defines
78786         in `#if !defined __need_getopt ... #endif'. The only place
78787         where __getopt_argv_const is used is in definitions
78788         of getopt_long and getopt_long_only below, which are as well
78789         protected by `#ifndef __need_getopt'.
78790         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78791         __need_getopt after including <stdio.h> and <unistd.h> These
78792         headers might have defined it.
78793
78794 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78795
78796         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78797
78798 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78799
78800         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78801         (futimens): New function, which uses futimes if available.
78802         (futimens, utimens): Support timespec==NULL, with same semantics
78803         as utime and utimens.
78804         * lib/utimens.h (futimens): New decl.
78805
78806 2004-11-23  Jim Meyering  <jim@meyering.net>
78807
78808         * lib/getopt_.h: Remove trailing blanks.
78809
78810 2004-11-23  Jim Meyering  <jim@meyering.net>
78811
78812         * lib/__fpending.c: Add comment.
78813
78814 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78815
78816         * modules/canonicalize (Depends-on): Add xreadlink.
78817         Problem reported by James Youngman.
78818
78819 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78820
78821         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78822         New macros.
78823         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78824         optopt): Use them instead of invoking ## directly; otherwise, the
78825         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78826
78827 2004-11-19  Bruno Haible  <bruno@clisp.org>
78828
78829         * lib/strtok_r.c: Move comments from here...
78830         * lib/strtok_r.h: ... to here.
78831
78832 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78833
78834         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78835         implementations that mishandle size_t overflow.
78836
78837 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78838
78839         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78840         might fail.  Problem reported by Yoann Vandoorselaere.
78841         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78842         implementations that mishandle size_t overflow.
78843
78844 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78845
78846         * modules/canon-host (Depends-on): Add strdup.
78847
78848 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78849
78850         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78851
78852 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78853
78854         * lib/canon-host.c: Include "strdup.h".
78855         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78856         Use strdup instead of malloc/strcpy to duplicate strings.
78857
78858         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78859         (human_space_before_unit): New constant.
78860         * lib/human.c (human_readable): Support it.
78861
78862         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78863         (xgetcwd): Set errno correctly when failing.
78864         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78865         the failure is actually due to a PATH_MAX problem.
78866
78867         Further getopt changes to make it more likely that glibc will
78868         buy the changes back.
78869         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78870         (getopt): Use it, so to preserve glibc semantic
78871         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78872         when compiling for libc.
78873         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78874         (getopt_long, getopt_long_only): Use it.
78875
78876         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78877         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78878         (getopt): Argv is now char * const *, as per standard.
78879         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78880         not char *__getopt_argv_const *.
78881         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78882         _getopt_long_only_r): Likewise.
78883         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78884         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78885         _getopt_long_r, _getopt_long_only_r): Likewise.
78886         * lib/getopt_.h (__getopt_argv_const): Remove.
78887         (getopt): Argv is now char * const *, as per standard.
78888
78889         * lib/getdate.y (tORDINAL): New token.
78890         (day, relunit): Allow it for relative times.
78891         (relative_time_table): Use tORDINAL for ordinals.
78892
78893 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78894
78895         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78896         Document that "second" isn't allowed as an ordinal number.
78897
78898 2004-11-16  Jim Meyering  <jim@meyering.net>
78899
78900         * modules/closeout (Depends-on): Add fpending.
78901
78902 2004-11-15  Jim Meyering  <jim@meyering.net>
78903
78904         * lib/closeout.c: Include "__fpending.h" once again.
78905         Include <stdbool.h>.
78906         (close_stdout): Don't fail just because stdout was closed initially,
78907         since some programs don't write to stdout in the normal course of
78908         operation (other than --version and --help), and we don't want this
78909         function to make e.g. `touch file >&-' fail.
78910         But do fail if it was closed and someone has tried to write to it.
78911         E.g., `printf foo >&-' must fail.
78912
78913 2004-11-13  Jim Meyering  <jim@meyering.net>
78914
78915         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78916
78917 2004-11-12  Simon Josefsson  <jas@extundo.com>
78918
78919         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78920         small doc fix is still pending.
78921
78922 2004-11-11  Simon Josefsson  <jas@extundo.com>
78923
78924         * modules/strtok_r: New file.
78925
78926         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78927         strtok_r.
78928
78929 2004-11-11  Simon Josefsson  <jas@extundo.com>
78930
78931         * m4/strtok_r.m4: New file.
78932
78933         * m4/getopt.m4: Replace opterr.
78934
78935 2004-11-11  Simon Josefsson  <jas@extundo.com>
78936
78937         * lib/strtok_r.h, strtok_r.c: New file.
78938
78939 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78940
78941         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78942         of replacing opterr, getopt, etc.  This should handle the
78943         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78944
78945 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78946
78947         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78948         we can stop lying to compilers about the constness of argv when we
78949         are compiled outside glibc.
78950         (getopt, getopt_long, getopt_long_only): Use it.
78951         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78952         _getopt_internal, getopt): Likewise.
78953         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78954         _getopt_long_only_r): Likewise.
78955         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78956         _getopt_long_r, _getopt_long_only_r): Likewise.
78957
78958         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78959         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78960         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78961         the other external symbols.
78962         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78963         declaration, since the above renaming now works around collisions.
78964
78965 2004-11-11  Jim Meyering  <jim@meyering.net>
78966
78967         * lib/linebreak.c: Remove trailing blanks.
78968         * lib/alloca_.h: Likewise.
78969         * lib/acosl.c: Likewise.
78970         * lib/euidaccess.c: Likewise.
78971         * lib/allocsa.h: Likewise.
78972
78973 2004-11-10  Simon Josefsson  <jas@extundo.com>
78974
78975         * m4/getaddrinfo.m4: New file.
78976
78977 2004-11-10  Simon Josefsson  <jas@extundo.com>
78978
78979         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78980
78981 2004-11-10  Simon Josefsson  <jas@extundo.com>
78982
78983         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78984         getaddrinfo.
78985
78986         * modules/getaddrinfo: New file.
78987
78988 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78989
78990         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78991
78992 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78993
78994         * lib/mktime.c (SHR): New macro, which is a portable
78995         substitute for >> that should work even on Crays.
78996         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78997         Problem reported by Mark D. Baushke in
78998         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78999         * lib/getdate.y (SHR): Likewise.
79000         (tm_diff): Use it.
79001         * lib/strftime.c (SHR): Likewise.
79002         (tm_diff): Use it.
79003         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79004         quote_these_too, so that right shifts are well defined.  All uses
79005         changed.
79006
79007 2004-11-10  Jim Meyering  <jim@meyering.net>
79008
79009         Ensure that no close failure goes unreported.
79010         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79011         return early when it seems there's nothing to flush.
79012         Don't include __fpending.h.
79013
79014 2004-11-10  Jim Meyering  <jim@meyering.net>
79015
79016         * modules/closeout (Depends-on): Remove fpending.
79017
79018 2004-11-10  Jim Meyering  <jim@meyering.net>
79019
79020         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79021
79022 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79023
79024         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79025         gl_FUNC_STRFTIME.
79026         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79027         and AC_REQUIRE when possible, to avoid duplicate checks.
79028         Check for <wchar.h>.
79029
79030 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79031
79032         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79033
79034 2004-11-09  Bruno Haible  <bruno@clisp.org>
79035
79036         * m4/sockpfaf.m4: New file.
79037
79038 2004-11-05  Bruno Haible  <bruno@clisp.org>
79039
79040         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79041         Reported by Mark D. Baushke <mdb@cvshome.org>.
79042
79043 2004-11-04  Bruno Haible  <bruno@clisp.org>
79044
79045         2004-09-11  Bruno Haible  <bruno@clisp.org>
79046                 * allocsa.valgrind: New file.
79047         2004-02-06  Bruno Haible  <bruno@clisp.org>
79048                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79049                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79050                 Reported by Christopher Seip <chris.seip@hp.com>.
79051
79052 2004-11-04  Bruno Haible  <bruno@clisp.org>
79053
79054         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79055         (Makefile.am): Distribute it.
79056
79057 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79058
79059         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79060         with errno == ERANGE if the buffer is too small.
79061         Problem reported by Mark D. Baushke.
79062
79063 2004-11-03  Albert Chin  <china@thewrittenword.com>
79064             Paul Eggert  <eggert@cs.ucla.edu>
79065
79066         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79067         equivalent, substitute $ac_type for equivalent type rather than
79068         blindly using uint32_t *always* which won't work if uint32_t is not
79069         available.  Define _UINT32_T to work around typedef of uint32_t if
79070         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79071         2.5.1.
79072
79073 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79074
79075         * m4/jm-macros.m4: Sync from coreutils.
79076         (gl_MACROS): Check for mbrlen, for pathchk.
79077         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79078
79079 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79080
79081         * lib/xreadlink.c (MAXSIZE): New macro.
79082         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79083         size does not exceed MAXSIZE.  Avoid cast.
79084         As suggested by Mark D. Baushke in
79085         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79086         if readlink fails with buffer size just under MAXSIZE, try again
79087         with MAXSIZE.
79088
79089 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79090
79091         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79092
79093 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79094         and  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79097         (get_date): Overparenthesize to avoid GCC warning.
79098
79099 2004-11-02  Bruno Haible  <bruno@clisp.org>
79100
79101         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79102         returns void.
79103
79104 2004-11-02  Bruno Haible  <bruno@clisp.org>
79105
79106         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79107         function returns void.
79108
79109 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79110
79111         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79112         fflush_unlocked, flockfile, funlockfile, funlockfile,
79113         fputs_unlocked, putc_unlocked.
79114
79115 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79116
79117         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79118         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79119         already declared.
79120
79121 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79122
79123         * modules/getdate (Files): Add doc/getdate.texi.
79124         (Depends-on): Add setenv, xalloc.
79125
79126 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79127
79128         * lib/getdate.y: Add support for TZ="foo" within a date string.
79129         Fix some bugs near time_t boundaries.  Reject dates with
79130         out-of-range components, e.g., "Sept 31".
79131         Include <stdlib.h>, "setenv.h", "xalloc.h".
79132         (ISDIGIT_LOCALE): Remove; unused.
79133         Note that the TZ and time functions used here are not reentrant.
79134         (mktime_ok, get_tz): New functions.
79135         (TZBUFSIZE): New constant.
79136         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79137         This requires that we sometimes generate our own TZ="XXX..." setting.
79138
79139 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79140
79141         * doc/getdate.texi: New file, from coreutils with modifications for
79142         the new TZ parsing.
79143
79144 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79145
79146         * lib/mktime.c (not_equal_tm): Remove redundant check.
79147
79148 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79149
79150         * modules/regex (lib_SOURCES): Add regex.c.
79151         Reported by James Youngman in
79152         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79153
79154 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79155
79156         * lib/getdate.y: Use Bison 1.875 features, and some minor
79157         code cleanups.  This change does not affect semantics.
79158         Don't include <stdlib.h>; no longer needed.
79159         Don't include unlocked-io.h; only the "#if TEST" code uses
79160         stdio, and performance isn't crucial there.
79161         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79162         Bison 1.875 features as described below.
79163         All uses of "PC." replaced by "pc->".
79164         (YYSTYPE): Add a forward declaration.
79165         (yylex, yyerror): Use full prototypes in forward decls.
79166         Use "%pure-parser" rather than obsolescent "%pure_parser".
79167         Use %parse-param and %lex-param instead of obsolescent
79168         YYPARSE_PARAM and YYLEX_PARAM.
79169         (meridian_table, month_and_day_table, time_units_table,
79170         relative_time_table, time_zone_table, military_table,
79171         lookup_zone, lookup_word, get_date):
79172         Use NULL instead of 0 where appropriate.
79173         (to_hour): Avoid abort (), to avoid a dependency on
79174         stdlib.h.
79175         (yyerror, yylex): Now accepts parser_control * arg.
79176         (main) [TEST]: Use '\0' rather than 0 for char.
79177
79178 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79179
79180         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79181
79182 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79183
79184         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79185         It's now the caller's responsibility to handle the case where
79186         !HAVE_GETPAGESIZE && !defined getpagesize.
79187
79188         * lib/mktime.c (leapyear): Arg is long int, not int.
79189
79190 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79193
79194 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79195
79196         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79197         missing.  Problem reported by James Youngman.
79198
79199 2004-10-16  Simon Josefsson  <jas@extundo.com>
79200
79201         * gnulib-tool: Fix comments.  Fix parse problem.
79202         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79203
79204 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79205
79206         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79207         implementation of getopt_long.  Problem reported by Alexander Taler in:
79208         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79209
79210 2004-10-15  Bruno Haible  <bruno@clisp.org>
79211
79212         * gnulib-tool: Untabify. Initialize supplied_libname.
79213         (func_usage): More homogenous output.
79214         (func_modules_transitive_closure, func_modules_to_filelist,
79215         func_emit_lib_Makefile_am): New functions.
79216         (func_import): New function, extracted from big case statement. Use
79217         func_get_license, func_modules_transitive_closure,
79218         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79219         opt_lgpl. Don't use test -a, as it's not portable.
79220         (func_create_testdir): Use func_modules_transitive_closure,
79221         func_modules_to_filelist, func_emit_lib_Makefile_am.
79222
79223 2004-10-15  Bruno Haible  <bruno@clisp.org>
79224
79225         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79226
79227 2004-10-15  Bruno Haible  <bruno@clisp.org>
79228
79229         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79230         the portions belonging to each module.
79231         Suggested by Derek Robert Price <derek@ximbiot.com>.
79232
79233 2004-10-12  Simon Josefsson  <jas@extundo.com>
79234
79235         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79236         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79237         to real functions.
79238
79239 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79240
79241         * modules/vsnprintf: New file.
79242
79243 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79244
79245         * m4/vsnprintf.m4: New file.
79246
79247 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79248
79249         * lib/vsnprintf.h: New file.
79250         * lib/vsnprintf.c: New file.
79251
79252 2004-10-11  Bruno Haible  <bruno@clisp.org>
79253
79254         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79255         vsnprintf.
79256
79257 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79258
79259         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79260
79261 2004-10-07  Bruno Haible  <bruno@clisp.org>
79262
79263         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79264         fits into the provided buffer.
79265
79266 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79267
79268         * lib/diacrit.c, diacrit.h: Add GPL notice.
79269
79270         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79271         notice.
79272         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79273         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79274         This avoids a potential constant-folding bug.
79275
79276 2004-10-05  Bruno Haible  <bruno@clisp.org>
79277
79278         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79279         for the declaration of strsep.
79280
79281 2004-10-05  Bruno Haible  <bruno@clisp.org>
79282
79283         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79284
79285 2004-10-04  Simon Josefsson  <jas@extundo.com>
79286
79287         * modules/memmem: New file.
79288         * tests/test-memmem.c: New file.
79289         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79290
79291 2004-10-04  Simon Josefsson  <jas@extundo.com>
79292
79293         * m4/memmem.m4: New file.
79294
79295 2004-10-04  Simon Josefsson  <jas@extundo.com>
79296
79297         * lib/memmem.h: New file.
79298         * lib/memmem.c: New file, taken from glibc.
79299
79300 2004-10-04  Simon Josefsson  <jas@extundo.com>
79301
79302         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79303         '#ifdef USE_UNLOCKED_IO'.
79304
79305 2004-10-04  Simon Josefsson  <jas@extundo.com>
79306
79307         * config/srclist.txt: Add memmem from glibc.
79308
79309 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79310
79311         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79312
79313         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79314         modules/exclude, modules/getdate, modules/getline,
79315         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79316         modules/getusershell, modules/linebuffer, modules/md5,
79317         modules/mountlist, modules/posixtm, modules/readtokens,
79318         modules/readutmp, modules/regex, modules/sha1,
79319         modules/version-etc, modules/yesno:
79320         Remove dependency on unlocked-io.
79321
79322 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79323
79324         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79325
79326         * m4/unlocked-io.m4: Add copyright notice.
79327         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79328
79329 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79330
79331         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79332         * lib/xmalloc.c (xmemdup): Likewise.
79333         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79334         XFREE): Remove these long-obsolescent macros.
79335         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79336         * lib/xstrdup.c: Remove.
79337
79338         * lib/regex.c (re_comp): Cast gettext return value to char *,
79339         Problem reported by Martin Neitzel via Mark D. Baushke.
79340
79341 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79342
79343         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79344         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79345         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79346         regex.c, sha1.c, version-etc.c, yesno.c:
79347         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79348         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79349         the includer's responsibility.
79350
79351         Sync from coreutils.
79352
79353         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79354         points to the start of a string, as the C Standard says the
79355         resulting behavior is undefined.
79356
79357         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79358         simple -> simple_backups, numbered_existing ->
79359         numbered_existing_backups, numbered -> numbered_backups
79360         to avoid shadowing problems.  All uses changed.
79361         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79362         * lib/backupfile.c (check_extension, numbered_backup):
79363         Rename locals to avoid shadowing 'basename'.
79364         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79365         once.
79366
79367         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79368         * lib/.cvsignore: Add getopt.h.
79369
79370 2004-10-04  Bruno Haible  <bruno@clisp.org>
79371
79372         * modules/README: New file.
79373         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79374         not a module.
79375
79376 2004-10-02  Jim Meyering  <jim@meyering.net>
79377
79378         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79379
79380 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79381
79382         * modules/strsep: New file.
79383
79384 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79385
79386         * m4/strsep.m4: New file.
79387
79388 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79389
79390         * lib/strsep.h: New file.
79391         * lib/strsep.c: New file.
79392
79393 2004-10-01  Simon Josefsson  <jas@extundo.com>
79394
79395         * lib/snprintf.c (snprintf): Handle size==0.
79396
79397 2004-10-01  Simon Josefsson  <jas@extundo.com>
79398             Bruno Haible  <bruno@clisp.org>
79399
79400         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79401         (snprintf): Declare 'args'.
79402
79403 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79404
79405         * lib/snprintf.c: Remove comments as to why each header is needed.
79406
79407 2004-10-01  Bruno Haible  <bruno@clisp.org>
79408
79409         * MODULES.html.sh: Add strsep.
79410
79411 2004-09-30  Simon Josefsson  <jas@extundo.com>
79412
79413         * modules/snprintf: New file.
79414
79415 2004-09-30  Simon Josefsson  <jas@extundo.com>
79416
79417         * m4/snprintf.m4: New file.
79418
79419 2004-09-30  Simon Josefsson  <jas@extundo.com>
79420
79421         * lib/snprintf.h, lib/snprintf.c: New files.
79422
79423 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79424
79425         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79426         (hol_entry_help): Never translate an empty string.
79427         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79428         * lib/argp.h (OPTION_NO_TRANS): New option.
79429
79430 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79431
79432         * modules/argp (Maintainer): Replace Simon Josefsson
79433         by Sergey Poznyakoff.
79434
79435 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79438         changes merged back into glibc.
79439
79440 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79441
79442         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79443
79444 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79445
79446         * lib/xvasprintf.c: Include xalloc.h.
79447         (xvasprintf): Use xalloc_die, not xmalloc_die.
79448
79449 2004-09-29  Bruno Haible  <bruno@clisp.org>
79450
79451         * modules/alloca-opt: New file, derived from modules/alloca.
79452         * modules/allocsa: Depend on alloca-opt instead of alloca.
79453         * modules/setenv: Likewise.
79454         * modules/vasnprintf: Likewise.
79455         * MODULES.html.sh: Add alloca-opt.
79456
79457 2004-09-28  Simon Josefsson  <jas@extundo.com>
79458
79459         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79460         LGPL, and to replace license template from GPL to LGPL.
79461
79462 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79463
79464         * modules/dummy: Change license to LGPL.
79465
79466 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79467
79468         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79469
79470 2004-09-24  Simon Josefsson  <jas@extundo.com>
79471
79472         * modules/minmax (License): Change from GPL to LGPL.
79473
79474 2004-09-23  Simon Josefsson  <jas@extundo.com>
79475
79476         * gnulib-tool (--import): Typo.
79477
79478 2004-09-23  Simon Josefsson  <jas@extundo.com>
79479
79480         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79481
79482 2004-09-22  Bruno Haible  <bruno@clisp.org>
79483
79484         * modules/*: Add 'License' field.
79485         * gnulib-tool: Accept --extract-license option.
79486         (func_get_license): New function.
79487
79488 2004-09-21  Bruno Haible  <bruno@clisp.org>
79489
79490         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79491         Reported by Simon Josefsson.
79492
79493 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79494
79495         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79496         gl_AC_TYPE_LONG_LONG.
79497
79498 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79499
79500         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79501
79502 2004-09-18  Simon Josefsson  <jas@extundo.com>
79503         and  Paul Eggert  <eggert@cs.ucla.edu>
79504
79505         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79506         calls with autoreconf.  Define GL_LIB.
79507
79508 2004-09-14  Karl Berry  <karl@gnu.org>
79509
79510         * config/srclist.txt: unsync setenv.c, sigh.
79511
79512 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79513
79514         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79515         Problem reported by Bruno Haible in:
79516         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79517
79518 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79519
79520         * config/srclist.txt: Comment out argp-pvh.c.
79521
79522 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79525         in case some system header has #define'd it.  Problem reported by
79526         Soeren D. Schulze in
79527         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79528
79529 2004-09-09  Karl Berry  <karl@gnu.org>
79530
79531         * regex.[ch]: delete from the root.  These were supposed to be
79532                 synced with emacs cvs, but this has not happened for about
79533                 a year, and anyway nothing else uses emacs regex.[ch].
79534                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79535                 lib/regex[.ch] is untouched.
79536
79537 2004-09-09  Bruno Haible  <bruno@clisp.org>
79538
79539         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79540
79541 2004-09-09  Bruno Haible  <bruno@clisp.org>
79542
79543         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79544         modifications.
79545         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79546
79547 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79548
79549         * modules/xvasprintf: New file.
79550         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79551
79552 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79553
79554         * lib/xvasprintf.h: New file.
79555         * lib/xvasprintf.c: New file.
79556         * lib/xasprintf.c: New file.
79557
79558 2004-09-08  Bruno Haible  <bruno@clisp.org>
79559
79560         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79561
79562 2004-09-08  Bruno Haible  <bruno@clisp.org>
79563
79564         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79565         length is > INT_MAX.
79566         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79567         more.
79568
79569 2004-09-08  Bruno Haible  <bruno@clisp.org>
79570
79571         * lib/stdint_.h: New file, taken from GNU clisp.
79572
79573 2004-09-08  Bruno Haible  <bruno@clisp.org>
79574             Oskar Liljeblad  <oskar@osk.mine.nu>
79575
79576         * modules/stdint: New file.
79577         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79578
79579 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79580
79581         Import from coreutils.
79582         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79583         strings on unbounded length.  alloca's performance benefits aren't
79584         that important here.
79585         (V_STRDUP): Remove.
79586         (parse_with_separator): New function, with most of the internals
79587         of the old parse_user_spec.  Allow user to omit both user and group,
79588         for compatibility with FreeBSD.
79589         Clone only the user name, not the entire spec.
79590         Do not set *uid, *gid unless entirely successful.
79591         Avoid memory leak in some failing cases.
79592         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79593         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79594         (parse_user_spec): Rewrite to use parse_with_separator.
79595
79596 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79597
79598         * modules/userspec: Don't depend on alloca.
79599
79600 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79601
79602         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79603
79604 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79605
79606         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79607         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79608         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79609
79610 2004-08-16  Simon Josefsson  <jas@extundo.com>
79611
79612         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79613         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79614         Add --dry-run for --import.
79615         Let user provided command line parameters override configure.ac
79616         settings.
79617
79618 2004-08-12  Simon Josefsson  <jas@extundo.com>
79619
79620         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79621         as discussed with Paul Eggert in threads rooted at
79622         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79623         and
79624         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79625         Before, the test was empty, and relied on ELIDE_CODE in source
79626         code.)
79627         (gl_PREREQ_GETOPT): New macro.
79628         (gl_GETOPT): Use them.
79629
79630 2004-08-12  Simon Josefsson  <jas@extundo.com>
79631
79632         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79633         * lib/getopt_.h: Renamed from getopt.h.
79634
79635 2004-08-12  Simon Josefsson  <jas@extundo.com>
79636
79637         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79638         Change default library name from libfoo to libgnu.
79639         Now, if you have a configure.ac that says:
79640                 gl_SOURCE_BASE(gl)
79641                 gl_M4_BASE(gl/m4)
79642                 gl_MODULES(error getopt etcetera)
79643                 gl_INIT
79644         you can import all you need by running:
79645                 ../gnulib/gnulib-tool --import
79646
79647         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79648         (Makefile.am): Rewrite, use logic from argz.
79649         (Include): Use <getopt.h> instead of "getopt.h".
79650
79651 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79652
79653         * modules/argp (Files): Add m4/unlocked-io.m4.
79654         (Depends-on): Add extensions.
79655
79656 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79657
79658         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79659         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79660         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79661         Check for program_invocation_name, program_invocation_short_name,
79662         flockfile, funlockfile, features.h, _getopt_long_only_r.
79663
79664 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79665
79666         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79667         its complicated substitute.
79668         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79669         and program_invocation_name.
79670         (__argp_basename) [!_LIBC]: Remove; the only use was
79671         replaced by its body.
79672         (__argp_short_program_name): Change condition from
79673         !defined __argp_short_program_name to
79674         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79675         to match argp-namefrob.h.
79676         (__argp_failure): Don't assume strerror_r returns char *.
79677         * lib/argp-parse.c (N_): Define unconditionally.
79678         (argp_default_options): Fill out initializers with 0 to avoid
79679         gcc warnings.
79680
79681 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79682
79683         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79684         getopt1.c.
79685
79686 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79687
79688         Merge from coreutils.
79689
79690         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79691
79692         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79693         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79694
79695 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79696
79697         Merge from coreutils.
79698
79699         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79700         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79701         for Reliant Unix 5.43.
79702
79703         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79704         (union fooround): Use uintmax_t, not long int.
79705         The rest is a merge from libc:
79706         [defined _LIBC]: Include <shlib-compat.h>.
79707         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79708
79709         * lib/settime.c (settime): Recode to avoid warning with
79710         Sun Forte C 6U2.
79711
79712         * lib/strverscmp.c: Convert to UTF-8.
79713
79714 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79715
79716         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79717         m4/uintmax_t.m4.
79718
79719 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79720
79721         * modules/xalloc-die: New file.
79722         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79723
79724         * modules/md5 (Files): Add m4/uint32_t.m4.
79725         * modules/sha1: Renamed from modules/sha.
79726         (Files):
79727         Rename lib/sha.h to lib/sha1.h.
79728         Rename lib/sha.c to lib/sha1.c.
79729         Rename m4/sha.m4 to m4/sha1.m4.
79730         (lib_SOURCES): Likewise.
79731         (configure.ac): Rename gl_SHA to gl_SHA1.
79732         (Include): sha.h -> sha1.h.
79733
79734 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79735
79736         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79737         * m4/sha1.m4: Renamed from sha.m4.
79738         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79739
79740 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79741
79742         * lib/obstack.h (obstack_empty_p):
79743         Don't assume that chunk->contents is suitably aligned.
79744         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79745         Likewise. Problem reported by Benno in
79746         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79747
79748         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79749         readable.  This could be improved further but it'd take some work.
79750
79751 2004-08-08  Simon Josefsson  <jas@extundo.com>
79752
79753         * modules/xgethostname (Depends-on): Remove exit and error (not
79754         used).
79755
79756         * modules/getpass-gnu: Add getpass.h.
79757         (Depends-on): Add stdbool.
79758         * modules/getpass: Add getpass.h.
79759
79760 2004-08-08  Simon Josefsson  <jas@extundo.com>
79761
79762         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79763         Check getpass declaration.
79764
79765 2004-08-08  Simon Josefsson  <jas@extundo.com>
79766
79767         * lib/xgethostname.c: Don't include error.h (not used).
79768
79769         * lib/getpass.h: Add.
79770         * lib/getpass.c: Include getpass.h first.
79771
79772 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79773
79774         * lib/xalloc-die.c: New file.
79775         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79776         All uses removed.
79777         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79778         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79779         xalloc-die.c.
79780         (_, N_, xalloc_die): Move to xalloc-die.c.
79781         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79782         so that we needn't mess with xalloc_msg_memory_exhausted.
79783
79784         * lib/sha1.h: Renamed from sha.h.
79785         (SHA1_H): Renamed from _SHA_H.
79786         (sha1_ctx): Renamed from sha_ctx.
79787         (sha1_init_ctx): Renamed from sha_init_ctx.
79788         (sha1_process_block): Renamed from sha_process_block.
79789         (sha1_process_bytes): Renamed from sha_process_bytes.
79790         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79791         (sha1_read_ctx): Renamed from sha_read_ctx.
79792         (sha1_stream): Renamed from sha_stream.
79793         (sha1_buffer): Renamed from sha_buffer.
79794         * lib/sha1.c: Likewise; renamed from sha.c.
79795         Do not include <sys/types.h>.
79796         Include <stddef.h> rather than <stdlib.h>.
79797
79798 2004-08-08  Bruno Haible  <bruno@clisp.org>
79799
79800         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79801         FILESYSTEM_PREFIX_LEN.
79802         * lib/progreloc.c: Likewise.
79803         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79804
79805 2004-08-06  Simon Josefsson  <jas@extundo.com>
79806
79807         * modules/progname (Depends-on): Don't depend on stdbool.
79808
79809 2004-08-06  Simon Josefsson  <jas@extundo.com>
79810
79811         * modules/getsubopt: New file.
79812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79813         getsubopt.
79814
79815 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79816
79817         More merge from coreutils.
79818
79819         * m4/utimens.m4, m4/utimecmp.m4: New files.
79820         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79821         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79822         prereq.m4, sha.m4: Import changes from coreutils.
79823
79824 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79825
79826         More merge from coreutils.
79827         * modules/raise, modules/readtokens0, modules/utimens:
79828         * modules/utimecmp, module/xnanosleep: New files.
79829         * modules/strftime: Add lib/strftime.h.
79830         Change include from <time.h> to "strftime.h".
79831         * modules/yesno: Add lib/yesno.h.
79832         * modules/backupfile: Remove lib/addext.c.
79833         * modules/euidaccess: Add stat-macros.h.
79834         * modules/canonicalize, modules/euidaccess,
79835         modules/filemode, modules/lchown, modules/makepath,
79836         modules/rmdir, modules/stat: Likewise.
79837
79838 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79839
79840         Merge from tar.
79841         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79842         SIZE_MAX is a valid preprocessor constant.
79843         (__argp_basename): Change from "#ifndef _LIBC"
79844         to "#ifndef __argp_short_program_name", so that
79845         we don't compile these functions for tar.
79846
79847         More merges from coreutils.
79848         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79849         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79850         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79851         * lib/addext.c: Remove; no longer needed.
79852         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79853         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79854         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79855         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79856         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79857         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79858         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79859         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79860         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79861         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79862         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79863         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79864         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79865         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79866         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79867         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79868         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79869         Import changes from coreutils.
79870
79871 2004-08-05  Simon Josefsson  <jas@extundo.com>
79872
79873         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79874
79875 2004-08-05  Simon Josefsson  <jas@extundo.com>
79876
79877         * m4/getsubopt.m4: New file.
79878
79879 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79880
79881         Merge from coreutils.
79882
79883         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79884         * m4/getcwd-path-max.m4: New files.
79885
79886         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79887         FILESYSTEM_PREFIX_LEN ->
79888         FILE_SYSTEM_PREFIX_LEN.
79889         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79890         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79891         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79892         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79893
79894         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79895         prerequisite modules now handle the DOS stuff.
79896         Don't check for unistd.h.
79897
79898 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79899
79900         Merge from coreutils.
79901
79902         * lib/.gdb-history: Remove; this doesn't belong here.
79903
79904         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79905         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79906         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79907         * lib/getcwd.c: New files.
79908
79909         * lib/dirname.h: Include <stdbool.h>.
79910         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79911         for consistency with POSIX terminology.  All uses changed.
79912         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79913         (strip_trailing_slashes): Use bool for booleans.
79914         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79915
79916         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79917         sometimes returns a positive errno value even when it succeeds.
79918         (print_errno_message) [!LIBC]: Fall back on strerror if
79919         __strerror_r fails.
79920
79921         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79922         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79923         (longest_relative_suffix): New function.
79924         (path_concat): Use it.  Assume first argument is not NULL.
79925         Port to DOS.  Omit redundant separators.
79926         Report an error instead of returning NULL.
79927         Use mempcpy instead of memcpy.
79928         (xpath_concat): Remove: not declared or used.
79929
79930         * lib/same.h: Include <stdbool.h>
79931         (same_name): Return bool, not int.
79932         * lib/same.c (same_name): Likewise.
79933         (errno): Don't declare; we assume C89 or better now.
79934
79935         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79936         if not already defined.
79937
79938         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79939         * lib/dup-safer.c (errno): Likewise.
79940
79941 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79942
79943         Merge from coreutils.
79944         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79945         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79946         * modules/path-concat: Don't depend on strdup.
79947
79948 2004-08-03  Simon Josefsson  <jas@extundo.com>
79949
79950         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79951         * lib/progname.h: Don't include stdbool.h.
79952
79953 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79954
79955         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79956         * MODULES.html.sh (func_all_modules): Remove fatal.
79957
79958 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79959
79960         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79961
79962 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79963
79964         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79965         working.
79966
79967 2004-08-02  Simon Josefsson  <jas@extundo.com>
79968
79969         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79970         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79971         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79972
79973 2004-08-01  Simon Josefsson  <jas@extundo.com>
79974
79975         * lib/xgetdomainname.c: Include stdlib.h, for free().
79976
79977 2004-07-19  Bruno Haible  <bruno@clisp.org>
79978
79979         * MODULES.html.sh (func_all_modules): Add dummy.
79980
79981 2004-07-16  Simon Josefsson  <jas@extundo.com>
79982
79983         * modules/dummy: New file.
79984
79985 2004-07-16  Simon Josefsson  <jas@extundo.com>
79986
79987         * lib/dummy.c: New file.
79988
79989 2004-07-16  Bruno Haible  <bruno@clisp.org>
79990
79991         * lib/backupfile.h: Add extern "C" for C++.
79992         * lib/closeout.h: Likewise.
79993         * lib/copy-file.h: Likewise.
79994         * lib/findprog.h: Likewise.
79995         * lib/full-write.h: Likewise.
79996         * lib/pathname.h: Likewise.
79997         * lib/progname.h: Likewise.
79998         * lib/stpcpy.h: Likewise.
79999         * lib/stpncpy.h: Likewise.
80000         * lib/strcase.h: Likewise.
80001         * lib/strstr.h: Likewise.
80002         * lib/xalloc.h: Likewise.
80003
80004         * lib/mbswidth.h: Add extern "C" for C++.
80005         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80006
80007 2004-07-13  Robert Millan  <robertmh@gnu.org>
80008
80009         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80010
80011 2004-07-09  Simon Josefsson  <jas@extundo.com>
80012
80013         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80014         failed without this.)
80015
80016 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80017
80018         * modules/chown (Files): Add lib/fchown-stub.c, since
80019         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80020
80021 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80022
80023         * lib/fchown-stub.c: New file.
80024
80025 2004-06-24  Jim Meyering  <jim@meyering.net>
80026
80027         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80028
80029 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80030
80031         * modules/argz: Omit "#include".
80032
80033         * MODULES.html.sh (func_all_modules): Add calloc, to match
80034         2004-06-01 addition of calloc module.
80035
80036 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80037
80038         * m4/argz.m4: New file, which is autoupdated from libtool.
80039
80040 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80041
80042         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80043         libtool.
80044
80045 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80046
80047         * config/srclist-update: Don't insist on "USA." before the
80048         close-comment, as libtool omits the period and puts the */ on a
80049         separate line.
80050         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80051         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80052
80053 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80054
80055         * modules/argz: New file.
80056         * MODULES.html.sh (func_all_modules): Add argz.
80057
80058 2004-06-12  Jim Meyering  <jim@meyering.net>
80059         and  Paul Eggert  <eggert@cs.ucla.edu>
80060
80061         * modules/hash (Files): Add lib/xalloc.h.
80062         * modules/pipe (Depends-on): Add wait-process.
80063         * modules/stat (Depends-on): Add xalloc.
80064         * modules/userspec (Files): Add lib/userspec.h.
80065         * modules/xstrto
80066
80067         Upgrade from gettext-0.13.
80068         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80069         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80070         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80071
80072 2004-06-10  Jim Meyering  <jim@meyering.net>
80073
80074         * lib/calloc.c: New file.
80075
80076 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80077
80078         * lib/getdate.y (yylex): Allow space between sign and number.
80079         Problem reported by Dan Jacobson.
80080
80081 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80082
80083         Merge from coreutils CVS.
80084
80085         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80086         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80087         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80088         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80089         xstrtol.m4: Fix copyright date and/or serial number.
80090
80091         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80092         See if we need an fchown replacement.
80093         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80094         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80095         and use the replacement function if we detect either defect.
80096
80097         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80098         gl_UTIMECMP.
80099
80100 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80101         and  Jim Meyering  <jim@meyering.net>
80102
80103         Merge from coreutils CVS.
80104
80105         * lib/stat-macros.h: New file, with contents from file-type.h
80106         and coreutils' system.h.
80107         * lib/file-type.c: Include "stat-macros.h".
80108         * lib/file-type.h (file_type): Move all macro definitions to new file,
80109         stat-macros.h.
80110
80111         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80112         Wrap old code with this conditional.
80113         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80114         function that does not dereference symlinks.
80115         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80116
80117         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80118         dependency problems.
80119         (xreadlink): Accept new arg SIZE, for efficiency.
80120         All decls and uses changed.
80121         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80122
80123         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80124         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80125
80126         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80127         sysexits.h.
80128
80129 2004-06-01  Jim Meyering  <jim@meyering.net>
80130
80131         * m4/calloc.m4: New file.
80132
80133 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80134
80135         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80136         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80137         Also, fix a typo in a diagnostic.
80138
80139 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80142         or AC_FUNC_REALLOC.
80143
80144 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80145
80146         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80147         macros to be defined.
80148         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80149         the allocator returns NULL because the requested size is zero.
80150
80151 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80152
80153         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80154         var.  Add comment explaining why libc still defines it.  This
80155         merges the following patch from glibc:
80156         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80157
80158 2004-05-20  Andreas Schwab  <schwab@suse.de>
80159
80160         * m4/free.m4: Replace free if it not known to work, not the other
80161         way round.
80162
80163 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80164
80165         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80166         present in glibc since revision 1.1 of this file.
80167         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80168         obstack_alignment_mask, obstack_alloc, obstack_base,
80169         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80170         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80171         obstack_grow0, obstack_init, obstack_int_grow,
80172         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80173         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80174         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80175         nonexistent functions.
80176
80177 2004-05-18  Karl Berry  <karl@gnu.org>
80178
80179         * config/srclist.txt: break link for vasnprintf.c.
80180
80181 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80182
80183         Port obstack to the AS/400, where pointers are 16 bytes wide and
80184         you cannot cast an integer to a valid pointer.  This patch is
80185         currently waiting to be integrated into glibc; see
80186         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80187
80188         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80189         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80190         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80191         (struct obstack): temp member is now a union of a pointer and
80192         an integer, instead of an integer.  All integer uses changed.
80193         This does not affect the physical layout of struct obstack,
80194         except on hosts (like the AS/400) where the size or alignment of
80195         void * is greater than that of ptrdiff_t.
80196         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80197         __STDC__)]: Store temporary in pointer member of union, not
80198         integer member.
80199         * lib/obstack.c: Include <stddef.h>, for offsetof.
80200         (struct fooalign): Remove; it doesn't need a name.
80201         (union fooround): Change double to long double, and add void *.
80202         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80203         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80204         not a macro.  Hence the values are always int; so remove all
80205         casts-to-int in uses.
80206
80207 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80208
80209         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80210         we can get this patch merged into glibc.
80211
80212 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80213             Paul Eggert  <eggert@cs.ucla.edu>
80214
80215         * m4/argp: Depend on alloca.
80216
80217 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80218             Paul Eggert  <eggert@cs.ucla.edu>
80219
80220         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80221         freecoding.
80222
80223 2004-05-17  Bruno Haible  <bruno@clisp.org>
80224
80225         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80226         precision that consists of a '.' followed by an empty digit string.
80227         Patch by Tor Lillqvist <tml@iki.fi>.
80228
80229 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80230
80231         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80232         for backward compatibility with older code.  We need our own
80233         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80234         it under some other name, and our alloca.h will define it.
80235
80236 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80237             Derek Price  <derek@ximbiot.com>
80238
80239         * lib/alloca.c: Include <alloca.h>, to get our interface.
80240         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80241         include <alloca.h> first.  Use C89 prototype for alloca; this
80242         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80243         Use #elif for simplicity, since we can assume C89 now.
80244         Don't try to source the system alloca.h since it will not be found
80245         and to prevent recursively including its replacement.
80246         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80247         * lib/regex.c: Likewise.
80248
80249 2004-05-16  Derek Price  <derek@ximbiot.com>
80250             Paul Eggert  <eggert@cs.ucla.edu>
80251
80252         getline cleanup.  This changes the getndelim2 API: both order of
80253         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80254         no delimiter).
80255
80256         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80257         interface does that.
80258         (getline): Always use getdelim, so that we don't have two
80259         copies of this code.
80260         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80261         if available.
80262         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80263         (GETNDELIM2_MAXIMUM): New macro.
80264         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80265         instead of the old practice of delim2==0.  All callers changed.
80266         Return -1 on overflow, instead of returning junk.
80267         Do not set *linesize unless allocation succeeds.
80268         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80269         that we include sys/types.h.
80270         * lib/getnline.h: Likewise.
80271         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80272         (getndelim2): Reorder arguments.
80273         * lib/getnline.c (getnline, getndelim):
80274         Don't discard the NMAX argument.
80275         (getnline): Invoke getndelim, to avoid code duplication.
80276         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80277         of (size_t) -1 by callers of the getnline family.
80278
80279 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80280
80281         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80282         Check for gettimeofday.
80283         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80284         Check for settimeofday, stime.
80285
80286 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80287
80288         * lib/nanosleep.c (suspended): Change its type from int to
80289         sig_atomic_t volatile.
80290         (first_call): Make it private to rpl_nanosleep, and have it
80291         be zero initially as that's a bit faster.
80292         (my_usleep): Round up fractional times instead of truncating them,
80293         as this is the usual meaning for 'sleep'.
80294
80295         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80296         doesn't work.
80297         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80298         (ENOSYS): Define if not defined.
80299         (settime): Fall back on stime if it exists and settimeofday fails.
80300         But don't bother with fallbacks if a method fails with errno == EPERM.
80301
80302 2004-05-11  Jim Meyering  <jim@meyering.net>
80303
80304         Prior to this change, the save_cwd caller required read access to the
80305         current directory on most systems (ones with the fchdir function).
80306
80307         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80308         fails, try write-only, and finally, resort to using xgetcwd.
80309
80310 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80311
80312         * lib/obstack.c, obstack.h: Import changes from libc.
80313
80314 2004-04-28  Bruno Haible  <bruno@clisp.org>
80315
80316         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80317         also implicitly appends .exe to executables.
80318         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80319         accepts Windows pathnames.
80320         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80321         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80322         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80323         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80324         Reported by Derek Robert Price <derek@ximbiot.com>.
80325
80326 2004-04-21  Karl Berry  <karl@gnu.org>
80327
80328         * config/srclist.txt (localcharset.c): break sync.
80329
80330 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80331
80332         * m4/host-os.m4: Add a copyright notice.
80333
80334 2004-04-20  Jim Meyering  <jim@meyering.net>
80335
80336         Change UTILS_ to gl_ in AC_DEFINE'd names.
80337         Change utils_- and jm_-prefixed variables, too.
80338         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80339         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80340         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80341
80342         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80343         Don't emit trailing blanks.
80344         Also rename jm_-prefixed variables to have gl_ prefix.
80345
80346         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80347         Also rename jm_-prefixed variables to have gl_ prefix.
80348
80349         * m4/jm-macros.m4: Reflect the renamings.
80350         * m4/prereq.m4: Likewise.
80351
80352 2004-04-20  Jim Meyering  <jim@meyering.net>
80353
80354         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80355         memory.
80356
80357 2004-04-20  Jim Meyering  <jim@meyering.net>
80358             Bruno Haible  <bruno@clisp.org>
80359
80360         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80361         memory when realloc fails.
80362
80363 2004-04-19  Jim Meyering  <jim@meyering.net>
80364
80365         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80366         now that readutmp.c may call `free (0)'.
80367
80368 2004-04-19  Bruno Haible  <bruno@clisp.org>
80369
80370         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80371         * m4/inttypes_h.m4: Likewise.
80372         * m4/stdint_h.m4: Likewise.
80373         * m4/intmax_t.m4: Likewise.
80374         * m4/uintmax_t.m4: Likewise.
80375
80376 2004-04-18  Jim Meyering  <jim@meyering.net>
80377
80378         * m4/prereq.m4: Don't forbid jm_ prefix.
80379
80380         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80381         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80382         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80383         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80384         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80385         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80386         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80387         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80388         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80389         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80390         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80391         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80392         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80393         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80394         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80395         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80396         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80397         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80398         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80399
80400 2004-04-18  Jim Meyering  <jim@meyering.net>
80401
80402         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80403         failure, don't leak memory and do call END_UTMP_ENT.
80404
80405 2004-04-16  Jim Meyering  <jim@meyering.net>
80406
80407         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80408         coreutils' stat program.
80409         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80410
80411 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80412
80413         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80414         C89.
80415         (CHAR_BIT): Remove, since we assume C89.
80416         Include <stdint.h> if available, as per current Autoconf CVS advice.
80417
80418 2004-03-31  Jim Meyering  <jim@meyering.net>
80419
80420         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80421         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80422         * m4/xalloc.m4: Likewise.
80423
80424 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80425
80426         Merge from coreutils.
80427
80428         * m4/inttostr.m4: New file.
80429         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80430         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80431         Require gl_CLOCK_TIME.
80432         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80433
80434 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80435
80436         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80437         not bool, to be more consistent with Unix conventions.
80438         Suggested by Bruno Haible.
80439
80440         Merge from coreutils.
80441
80442         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80443         * lib/umaxtostr.c: New files.
80444
80445         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80446         the usual <time.h> dance.
80447         (get_date): Change signature to support fractional time stamps.
80448         All callers changed.
80449         * lib/getdate.y: Include "getdate.h" first, as we can now
80450         assume C89 and don't need to worry about 'const'.
80451         Similarly, include "unlocked-io.h" near start, not in middle.
80452         Include <limits.h>.
80453         (textint.value): Use long int rather than int.
80454         (textint.digits): Use size_t rather than int.
80455         (BILLION, LOG10_BILLION): New constants.
80456         (parser_control): New member rel_ns.  Members day_ordinal,
80457         time_zone, month, day, hour, minutes, rel_year, rel_month,
80458         rel_day, rel_hour, rel_minutes, rel_seconds
80459         are now long int, not int.  Member seconds is now struct timespec,
80460         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80461         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80462         not int.
80463         (%union.intval): Now long int, not int.
80464         New member timespec.
80465         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80466         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80467         (spec): Now is a timespec or an item list.
80468         (timespec, items): New nonterminals.
80469         (time, rel, relunit, number, get_date):
80470         Add support for fractional seconds.
80471         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80472         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80473         (to_hour): First arg is now long int, not int.
80474         (to_year): Returns long int, not int.
80475         Don't treat year -70 like 70.
80476         (tm_diff): Returns long int, not int.
80477         (lookup_word): Use bool instead of int when appropriate.
80478         (yylex): Use size_t for count, not int.
80479         Detect overflow when parsing large integer constants.
80480         Add support for fractions.
80481         (get_date): Make pointers 'const' if possible.
80482         Use more-portable code to detect integer overflow.
80483         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80484         Don't use ctime; it's not reliable if the year has >4 digits.
80485
80486         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80487         This is for compatibility with BSD.
80488
80489         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80490         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80491         From coreutils' system.h.
80492
80493         * lib/userspec.c: Don't include "posixver.h".
80494         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80495         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80496         compatible extension.  Simplify code by removing a boolean int
80497         that was always nonzero if a string was nonnull.
80498
80499 2004-03-30  Jim Meyering  <jim@meyering.net>
80500
80501         Merge from coreutils.
80502
80503         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80504         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80505         on some systems one must include <grp.h> before it.
80506         Reported by Christian Krackowizer.
80507
80508 2004-03-30  Jim Meyering  <jim@meyering.net>
80509
80510         Merge from coreutils.
80511
80512         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80513
80514         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80515         an empty input stream.
80516
80517         * lib/readtokens.c: Include <stdbool.h>.
80518         (readtoken): Use `size_t' rather than int/long.
80519         All callers adjusted.
80520         Use `bool' rather than `int' where appropriate.
80521         Use memset rather than an explicit loop.
80522         Use x2nrealloc rather than xrealloc.
80523         Allow the use of `\0' as a delimiter.
80524         (readtokens): Likewise.
80525         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80526
80527 2004-03-30  Jim Meyering  <jim@meyering.net>
80528
80529         * m4/realloc.m4: Remove file, since now it does no more than
80530         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80531         the `configure.ac' section of module/realloc.
80532         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80533
80534 2004-03-30  Bruno Haible  <bruno@clisp.org>
80535
80536         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80537         nonnull.
80538
80539 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80540
80541         Merge changes to getloadavg.c from coreutils and Emacs.
80542
80543         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80544         Define to an expression, not to the empty string.
80545         Include cloexec.h and xalloc.h.
80546         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80547         Use set_cloexec_flag rather than rolling our own.
80548         * lib/cloexec.c, lib/cloexec.h: New files.
80549
80550 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80551
80552         * m4/cloexec.m4: New file.
80553
80554 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80555
80556         * lib/getopt.h: Sync with libc CVS.
80557
80558 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80559             Bruno Haible  <bruno@clisp.org>
80560
80561         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80562         mbswidth.
80563
80564 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80565             Bruno Haible  <bruno@clisp.org>
80566
80567         * lib/mbswidth.h: Include <wchar.h> only if
80568         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80569         <wchar.h>.
80570         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80571
80572 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80573
80574         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80575         Sync with libc CVS.
80576         * lib/getopt_int.h: New file, also synced from libc.
80577
80578 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80579
80580         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80581         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80582         Bring back getopt.c, getopt.h, getopt1.c.
80583
80584 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80585
80586         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80587         All uses changed.  Check for sa_sigaction member; this fixes
80588         a bug first reported by Jason Andrade in
80589         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80590
80591 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80592
80593         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80594         '#if' expressions.  Unlike the code it replaces, it does not
80595         depend on (defined _SC_PAGESIZE).  However, it does depend on
80596         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80597         first reported by Jason Andrade in
80598         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80599
80600 2004-02-25  Simon Josefsson  <jas@extundo.com>
80601
80602         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80603
80604 2004-02-25  Simon Josefsson  <jas@extundo.com>
80605
80606         * lib/strdup.h: New file.
80607         * lib/strdup.c: Include it.
80608         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80609         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80610
80611 2004-02-23  Karl Berry  <karl@gnu.org>
80612
80613         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80614         (from fencepost.gnu.org:/gd/gnuorg).
80615
80616 2004-02-23  Karl Berry  <karl@gnu.org>
80617
80618         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80619         * config/srclist.txt: add maintain/standards documents.
80620
80621 2004-02-18  Bruno Haible  <bruno@clisp.org>
80622
80623         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80624         Reported by Derek Robert Price <derek@ximbiot.com>.
80625
80626 2004-02-16  Karl Berry  <karl@gnu.org>
80627
80628         * config/mkinstalldirs, install-sh: update from automake.
80629
80630 2004-02-06  Karl Berry  <karl@gnu.org>
80631
80632         * m4/po.m4: update from gettext 0.14.1.
80633
80634 2004-02-06  Karl Berry  <karl@gnu.org>
80635
80636         * lib/config.charset: update from gettext 0.14.1.
80637
80638 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80639
80640         Add comments and code, prompted by suggestions from Bruno Haible
80641         for sh-quote.
80642         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80643         describing the enum quoting_style values.
80644         * lib/quotearg.c (quotearg_alloc): New function.
80645         (quotearg_buffer_restyled): Treat lone { and } as special.
80646         Treat = as special.  Work around bug with older shells
80647         that "see" a '\' that is really the 2nd byte of a multibyte char.
80648         Quote empty string with shell_quoting_style.
80649
80650 2004-02-03  Bruno Haible  <bruno@clisp.org>
80651
80652         * m4/pipe.m4: New file, from GNU gettext.
80653
80654 2004-02-03  Bruno Haible  <bruno@clisp.org>
80655
80656         * lib/pipe.h: New file, from GNU gettext.
80657         * lib/pipe.c: New file, from GNU gettext.
80658
80659 2004-01-27  Bruno Haible  <bruno@clisp.org>
80660
80661         * m4/execute.m4: New file, from GNU gettext.
80662
80663 2004-01-27  Bruno Haible  <bruno@clisp.org>
80664
80665         * lib/execute.h: New file, from GNU gettext.
80666         * lib/execute.c: New file, from GNU gettext.
80667         * lib/w32spawn.h: New file, from GNU gettext.
80668
80669 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80670
80671         Merge from diffutils.
80672
80673         * lib/file-type.c (file_type): Add typed memory objects.
80674         * lib/file-type.h (S_TYPEISTMO): New macro.
80675
80676         * lib/c-stack.h (c_stack_action): Remove argv argument.
80677         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80678         (die): Don't calculate message unless segv_action returns.
80679         (get_stack_location, min_address_from_argv, max_address_from_argv,
80680         volatile stack_base, volatile_stack_size): Remove.
80681         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80682         that every segmentation violation is a stack overflow.  (Ouch!)
80683         See Debian bug 136249 (still outstanding) for more info about why
80684         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80685
80686 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80687
80688         Exit-status fix from coreutils.
80689
80690         Use exit_failure consistently in place of EXIT_FAILURE,
80691         so that program exit statuses are consistent on failure.
80692
80693         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80694         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80695         * lib/argmatch.h: Comment fix to match the above.
80696         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80697         Now a macro referring to exit_failure, instead of a separate
80698         variable.  Include "exitfail.h" to get it.
80699         * lib/xstrtol.h: Include "exitfail.h".
80700         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80701
80702         * lib/long-options.c (parse_long_options): Use prototype
80703         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80704         for clarity.
80705
80706 2004-01-21  Jim Meyering  <jim@meyering.net>
80707
80708         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80709         so as not to conflict with a different-sized __mktime_internal
80710         function in GNU libc.
80711         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80712         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80713
80714 2004-01-20  Karl Berry  <karl@gnu.org>
80715
80716         * config/config.guess: update from config.
80717
80718         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80719
80720 2004-01-20  Bruno Haible  <bruno@clisp.org>
80721
80722         Safer stack allocation.
80723         * lib/setenv.c: Include allocsa.h.
80724         (alloca): Remove fallback definition.
80725         (freea): Remove macro.
80726         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80727         instead of freea.
80728
80729 2004-01-20  Bruno Haible  <bruno@clisp.org>
80730
80731         * m4/eealloc.m4: New file, from GNU gettext.
80732
80733 2004-01-20  Bruno Haible  <bruno@clisp.org>
80734
80735         * m4/allocsa.m4: New file, from GNU gettext.
80736
80737 2004-01-20  Bruno Haible  <bruno@clisp.org>
80738
80739         * lib/xallocsa.h: New file, from GNU gettext.
80740         * lib/xallocsa.c: New file, from GNU gettext.
80741
80742 2004-01-20  Bruno Haible  <bruno@clisp.org>
80743
80744         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80745
80746 2004-01-20  Bruno Haible  <bruno@clisp.org>
80747
80748         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80749         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80750         specially.
80751
80752 2004-01-20  Bruno Haible  <bruno@clisp.org>
80753
80754         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80755         patch.
80756
80757 2004-01-20  Bruno Haible  <bruno@clisp.org>
80758
80759         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80760
80761 2004-01-20  Bruno Haible  <bruno@clisp.org>
80762
80763         * lib/eealloc.h: New file.
80764
80765 2004-01-20  Bruno Haible  <bruno@clisp.org>
80766
80767         * lib/binary-io.h: Avoid warnings on Cygwin.
80768
80769 2004-01-20  Bruno Haible  <bruno@clisp.org>
80770
80771         * lib/allocsa.h: New file, from GNU gettext.
80772         * lib/allocsa.c: New file, from GNU gettext.
80773
80774 2004-01-18  Karl Berry  <karl@gnu.org>
80775
80776         * doc/gpl.texi, doc/lgpl.texi: new files.
80777
80778 2004-01-18  Karl Berry  <karl@gnu.org>
80779
80780         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80781         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80782
80783 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80784
80785         Merge from coreutils.
80786
80787         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80788         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80789         (gl_DEFAULT_POSIX2_VERSION): Move
80790         the documentation from 'configure' into 'config.hin',
80791         so that 'configure --help' isn't burdened by it and
80792         we don't have to worry about its formatting there.
80793         Reword the documentation so that it's more succinct
80794         and can be run together into a single paragraph.
80795         * m4/same.m4 (gl_SAME): Check for pathconf.
80796
80797 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80798
80799         Merge from coreutils.
80800
80801         * lib/posixver.c: Include posixver.h.
80802
80803         * lib/same.c: Include <stdbool.h>, <limits.h>.
80804         (_POSIX_NAME_MAX): Define if not defined.
80805         (MIN): New macro.
80806         (same_name): If file names are silently truncated, report
80807         that the file names are the same if they are the same after
80808         the silent truncation.
80809
80810         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80811         conversion function.
80812         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80813         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80814         longer needed.
80815
80816 2004-01-15  Jim Meyering  <jim@meyering.net>
80817
80818         Merge from coreutils.
80819
80820         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80821         if no library is required.
80822         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80823         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80824         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80825         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80826         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80827         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80828         value, $ac_cv_search_crypt, if it's "none required".
80829         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80830         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80831         not gl_FUNC_GETLOADAVG.
80832         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80833         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80834
80835 2004-01-15  Jim Meyering  <jim@meyering.net>
80836
80837         Merge from coreutils.
80838
80839         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80840         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80841         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80842
80843         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80844         optional configure-time default.
80845
80846         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80847
80848         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80849
80850 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80851
80852         Merge from coreutils.
80853
80854         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80855         value, $ac_cv_search_nanosleep, if it's "none required".
80856
80857 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80858
80859         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80860         with like-named macro in fnmatch.c.
80861         (EXT): Use an internal constant instead.
80862
80863         Merge fnmatch patches from glibc.
80864         * lib/fnmatch.c (mbsinit): Remove define.
80865         Add libc_hidden_ver (__fnmatch, fnmatch).
80866         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80867         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80868
80869 2004-01-14  Karl Berry  <karl@gnu.org>
80870
80871         * config/install-sh: update from automake.
80872
80873 2004-01-13  Karl Berry  <karl@gnu.org>
80874
80875         * config/install-sh: update from automake.
80876
80877 2004-01-09  Karl Berry  <karl@gnu.org>
80878
80879         * config/install-sh: update from automake.
80880
80881 2004-01-05  Karl Berry  <karl@gnu.org>
80882
80883         * config/config.{sub,guess}: update from config.
80884
80885 2003-12-31  Karl Berry  <karl@gnu.org>
80886
80887         * config/depcomp: update from automake.
80888
80889 2003-12-14  Karl Berry  <karl@gnu.org>
80890
80891         * lib/config.charset: update from gettext-runtime.
80892
80893 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80894
80895         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80896         Bug reported by Alfred M. Szmidt.
80897
80898 2003-12-03  Bruno Haible  <bruno@clisp.org>
80899
80900         * m4/gettext.m4: Upgrade from gettext-0.13.
80901         * m4/po.m4: Upgrade from gettext-0.13.
80902         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80903         * m4/intmax.m4: New file, from gettext-0.13.
80904         * m4/printf-posix.m4: New file, from gettext-0.13.
80905
80906 2003-11-29  Karl Berry  <karl@gnu.org>
80907
80908         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80909
80910 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80911             Bruno Haible  <bruno@clisp.org>
80912
80913         * lib/printf-parse.h: Don't include sys/types.h.
80914         (ARG_NONE): New macro.
80915         (char_directive): Change type of *arg_index fields to size_t.
80916         * lib/printf-parse.c: Don't include sys/types.h.
80917         (SSIZE_MAX): Remove macro.
80918         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80919         Remove unnecessary overflow check.
80920         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80921         fields.
80922
80923 2003-11-25  Bruno Haible  <bruno@clisp.org>
80924
80925         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80926
80927 2003-11-25  Bruno Haible  <bruno@clisp.org>
80928
80929         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80930         gt_TYPE_SSIZE_T.
80931
80932 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80933
80934         * modules/alloca: Remove dependency on xalloc.
80935
80936 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80937
80938         * lib/alloca.c: Remove dependency on xalloc module.
80939         (xalloc_die): Remove.
80940         (memory_full) [!defined emacs]: New macro.
80941         [!defined emacs]: Don't include xalloc.h.
80942         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80943         address arithmetic overflows.  Change datatypes a bit to avoid
80944         unnecessary casts.
80945
80946 2003-11-22  Jim Meyering  <jim@meyering.net>
80947
80948         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80949         s/size/size_t/.
80950
80951 2003-11-21  Karl Berry  <karl@gnu.org>
80952
80953         * config/config.{sub,guess}: update from config.
80954
80955 2003-11-18  Karl Berry  <karl@gnu.org>
80956
80957         * config/config.{sub,guess}: update from config.
80958
80959         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80960
80961 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80962
80963         * README: Mention that S+T cannot overflow if S is the size of
80964         an existing object and T is sufficiently small.
80965
80966 2003-11-17  Jim Meyering  <jim@meyering.net>
80967
80968         On systems without utime and without a utimes function capable of
80969         dealing with a NULL struct utimbuf* argument, this utime replacement
80970         could -- in unusual circumstances -- leak a file descriptor.
80971         * lib/utime.c: Include <unistd.h> and <errno.h>.
80972         (utime_null): Be sure to close `fd' and to preserve errno.
80973         Reported by Geoff Collyer via Arnold Robbins.
80974
80975 2003-11-17  Bruno Haible  <bruno@clisp.org>
80976
80977         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80978         (Depends-on): Add xsize.
80979
80980 2003-11-17  Bruno Haible  <bruno@clisp.org>
80981
80982         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80983
80984 2003-11-17  Bruno Haible  <bruno@clisp.org>
80985
80986         * lib/vasnprintf.c (alloca): Remove fallback definition.
80987         (freea): Remove definition.
80988         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80989         Reported by Paul Eggert.
80990
80991 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80992             Bruno Haible  <bruno@clisp.org>
80993
80994         Protect against address arithmetic overflow.
80995         * lib/printf-args.h: Include stddef.h.
80996         (arguments): Change type of field 'count' to size_t.
80997         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80998         'unsigned int' where appropriate.
80999         * lib/printf-parse.h: Include sys/types.h.
81000         (char_directive): Change type of *arg_index fields to ssize_t.
81001         (char_directives): Change type of fields 'count', max_*_length to
81002         size_t.
81003         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81004         (SSIZE_MAX): Define fallback value.
81005         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81006         instead of 'int' where appropriate. Check a_allocated, d_allocated
81007         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81008         * lib/vasnprintf.c: Include xsize.h.
81009         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81010         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81011         overflow. Avoid wraparound when converting a width or precision from
81012         decimal to binary.
81013
81014 2003-11-16  Bruno Haible  <bruno@clisp.org>
81015
81016         Update from GNU gettext.
81017         * lib/printf-parse.c: Generalize to it can be compiled for wide
81018         strings.
81019         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81020         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81021         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81022         SNPRINTF): New macros.
81023         Don't include <alloca.h> if the file is used inside libintl.
81024         (local_wcslen): New function, for Solaris 2.5.1.
81025         (VASNPRINTF): Use it instead of wcslen.
81026
81027 2003-11-16  Bruno Haible  <bruno@clisp.org>
81028
81029         * lib/xsize.h (xmax): New function.
81030         (xsum, xsum3, xsum4): Declare as "pure" functions.
81031
81032 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81033
81034         * modules/xalloc (Files): Undo latest change, since xalloc.h
81035         no longer needs SIZE_MAX or PTRDIFF_MAX.
81036
81037 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81038
81039         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81040         gl_PTRDIFF_MAX.
81041
81042 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81043
81044         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81045         "return", to pacify some unknown compiler.  Problem reported
81046         by Joerg Schilling.
81047
81048 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81049
81050         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81051         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81052         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81053         heuristic is just as accurate as far as we know, and it removes a
81054         dependency on size_max.m4 and ptrdiff_max.m4.
81055
81056 2003-11-11  Bruno Haible  <bruno@clisp.org>
81057
81058         * modules/xsize (Files): Add m4/size_max.m4.
81059         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81060
81061 2003-11-11  Bruno Haible  <bruno@clisp.org>
81062
81063         * m4/size_max.m4: New file.
81064         * m4/ptrdiff_max.m4: New file.
81065         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81066         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81067         (gl_XALLOC): Invoke it.
81068
81069 2003-11-11  Bruno Haible  <bruno@clisp.org>
81070
81071         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81072         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81073         defined.
81074
81075 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81076
81077         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81078         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81079         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81080         From Bruno Haible.
81081         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81082         not (size_t) -1, since it's defined here.
81083
81084 2003-11-09  Karl Berry  <karl@gnu.org>
81085
81086         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81087
81088 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81089
81090         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81091         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81092         Reject sizes of exactly SIZE_MAX bytes.
81093         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81094         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81095
81096 2003-11-05  Bruno Haible  <bruno@clisp.org>
81097
81098         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81099         SIZE_MAX defined in <limits.h> on Solaris.
81100
81101 2003-11-04  Jim Meyering  <jim@meyering.net>
81102
81103         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81104         variable names, rather than @VAR@.
81105         * modules/poll: Likewise.
81106
81107 2003-11-04  Bruno Haible  <bruno@clisp.org>
81108
81109         * modules/xsize: New file.
81110         * modules/linebreak: Depend on xsize.
81111         * MODULES.html.sh (func_all_modules): Add xsize.
81112
81113 2003-11-04  Bruno Haible  <bruno@clisp.org>
81114
81115         * m4/xsize.m4: New file.
81116
81117 2003-11-04  Bruno Haible  <bruno@clisp.org>
81118
81119         * lib/xsize.h: New file.
81120         * lib/linebreak.c: Include xsize.h.
81121         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81122         argument for overflow.
81123         Suggested by Paul Eggert.
81124
81125 2003-11-03  Karl Berry  <karl@gnu.org>
81126
81127         * config/config.{guess,sub}: update from config.
81128
81129 2003-11-03  Jim Meyering  <jim@meyering.net>
81130
81131         * modules/userspec (lib_SOURCES): Add userspec.h.
81132         (Include): Add "userspec.h".
81133         Improve description.
81134
81135 2003-11-03  Jim Meyering  <jim@meyering.net>
81136
81137         * lib/userspec.c: Include "userspec.h".
81138         * lib/userspec.h: New file.
81139
81140 2003-11-03  Bruno Haible  <bruno@clisp.org>
81141
81142         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81143
81144 2003-11-03  Bruno Haible  <bruno@clisp.org>
81145
81146         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81147         available, to avoid (extremely rare) race condition.
81148         Suggested by Paul Eggert.
81149
81150 2003-11-02  Karl Berry  <karl@gnu.org>
81151
81152         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81153
81154 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81155
81156         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81157         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81158         (read_filesystem_list): Set and use me_type_malloced.
81159         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81160         whatever the type happens to be), for brevity and consistency.
81161         Check for size calculation overflow on Alphas running OSF/1.
81162
81163 2003-10-31  Jim Meyering  <jim@meyering.net>
81164
81165         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81166
81167         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81168
81169 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81170             Bruno Haible  <bruno@clisp.org>
81171
81172         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81173         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81174
81175 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81176
81177         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81178         netbsd*-gnu*.  Suggested by Robert Millan.
81179
81180 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81181
81182         * modules/group-member: Depend on stdbool.
81183
81184 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81185
81186         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81187
81188 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81189
81190         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81191         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81192         after the 'gnu' in these cases.  This fixes some bugs in the
81193         previous change, and is based on suggestions by Robert Millan.
81194
81195 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81196
81197         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81198         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81199         no longer needed.
81200         * lib/quotearg.c (quotearg_n_options): Use it.
81201         * lib/group-member.c: Include <stdbool.h>.
81202         (free_group_info): Arg is now const *; don't free arg.
81203         (get_group_info): Now returns bool and accepts struct group_info *,
81204         rather than returning a malloc'ed struct group_info *.
81205         All uses changed.  Check for overflow in internal size calculation.
81206
81207         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81208         rather than xmalloc/xrealloc.
81209         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81210         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81211         conformance bug: the old code used a pointer after freeing the
81212         storage that it addressed.
81213         * lib/hash.c (hash_initialize): Simplify the code by using
81214         xalloc_oversized rather than doing it by hand.
81215         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81216         the buffer preserved.  Use free and xmalloc instead.
81217         * lib/quotearg.c (quotearg_n_options): Likewise.
81218         Use a simpler test for size overflow.  Don't use xalloc_oversized
81219         because unsigned int might be wider than size_t (!); this suggests
81220         that we should switch from unsigned int to size_t for slot numbers.
81221
81222 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81223
81224         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81225         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81226         NetBSD kernels.  Requested by Richard Stallman.
81227
81228 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81229
81230         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81231         to allocate the returned structure.  Do not allocate a subarray,
81232         as x2nrealloc will do that.
81233         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81234         instead of xnrealloc.
81235         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81236
81237 2003-10-27  Bruno Haible  <bruno@clisp.org>
81238
81239         * lib/stdbool_.h: Better support for BeOS.
81240
81241 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81242
81243         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81244         now uses inline.
81245
81246 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81247
81248         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81249         callers that want to do their own size-overflow checking.  Include
81250         <stdbool.h>, since xalloc_oversized returns bool.
81251         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81252         to use xalloc_oversized.
81253
81254         Add two functions x2realloc, x2nrealloc, for programs that grow
81255         arrays dynamically by doubling their sizes.
81256         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81257         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81258         New functions.
81259
81260         Port to C99 semantics for 'inline' of external functions.
81261         Bug reported by Bruno Haible.
81262         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81263         with the old contents of xnmalloc.
81264         (xnmalloc, xmalloc): Use it.
81265         (xnrealloc_inline): New static inline function,
81266         with the old contents of xnrealloc.
81267         (xnrealloc, xrealloc): Use it.
81268
81269         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81270         that.
81271
81272 2003-10-26  Karl Berry  <karl@gnu.org>
81273
81274         * config/srclist.txt (COPYING.DOC): no longer available from
81275         /gd/gnuorg; don't know where the ultimate source is.
81276
81277 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81278
81279         Fix several address-calculation bugs in the hash modules,
81280         plus some minor code cleanup.
81281
81282         * lib/hash.h: Include <stdbool.h>, for bool.
81283         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81284         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81285         hash_get_n_entries, hash_get_max_bucket_length,
81286         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81287         hash_rehash): Use size_t rather than unsigned.
81288         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81289         hash_get_n_buckets_used, hash_get_n_entries,
81290         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81291         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81292         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81293         Likewise.
81294         (SIZE_MAX): Define if not defined.
81295         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81296         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81297         hash_print):
81298         Use const * when possible.
81299         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81300         (check_tuning): Fix bug: if tuning parameters were very close to
81301         0 or 1, rounding errors could have caused subscript violations.
81302         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81303         (hash_initialize): Add 'fail:' label
81304         to free table and return NULL, and use it to simplify code.
81305         Use calloc rather than clearing the storage ourself.
81306         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81307         buffer size calculations.
81308         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81309         Include <stddef.h>, for size_t.
81310         * lib/hash-pjw.c (hash_pjw): Likewise.
81311         Switch to method described by Bruno Haible.
81312         Include <limits.h>, for CHAR_BIT.
81313         (SIZE_BITS): New macro.
81314
81315 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81316
81317         * m4/getline.m4 (AM_FUNC_GETLINE):
81318         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81319         hosts.  Problem reported by Derek Robert Price in
81320         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81321         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81322         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81323
81324 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81325
81326         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81327         ceiling the allocation at NMAX bytes rather than silently
81328         discarding input bytes before NMAX is reached.  This makes
81329         a difference only if NMAX exceeds SIZE_MAX / 2.
81330
81331         * lib/obstack.c: Merge from glibc.
81332         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81333         Add libc_hidden_def (_obstack_newchunk).
81334         (_obstack_free) [! defined _LIBC]: Remove.
81335         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81336         a clone of the function body.
81337         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81338         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81339
81340         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81341         glibc.
81342         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81343         arg to memcpy.
81344
81345         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81346         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81347         Don't use lvalue casts, as GCC plans to remove support for them
81348         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81349         was also present in the non-GCC version, indicating that this
81350         code had always been buggy and had never been widely used.
81351         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81352         Use the fast variant of each macro, rather than copying the
81353         definiens of the fast variant; that way, we'll be more likely to
81354         catch future bugs in the fast variants.
81355
81356 2003-10-20  Bruno Haible  <bruno@clisp.org>
81357
81358         * modules/wait-process: New file.
81359         * MODULES.html.sh (func_all_modules): Add wait-process.
81360
81361 2003-10-20  Bruno Haible  <bruno@clisp.org>
81362
81363         * m4/wait-process.m4: New file.
81364
81365 2003-10-20  Bruno Haible  <bruno@clisp.org>
81366
81367         * lib/wait-process.h: New file, from GNU gettext.
81368         * lib/wait-process.c: New file, from GNU gettext.
81369
81370 2003-10-19  Jim Meyering  <jim@meyering.net>
81371
81372         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81373         HPUX 10.20.
81374
81375 2003-10-18  Karl Berry  <karl@gnu.org>
81376
81377         * config/config.guess: update from config.
81378
81379 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81380
81381         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81382         (getgroups): First arg is int, not size_t.
81383         Don't let 'free' mangle errno.
81384
81385 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81386
81387         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81388
81389 2003-10-16  Karl Berry  <karl@gnu.org>
81390
81391         * config/config.{guess,sub}: update from config.
81392
81393 2003-10-16  Jim Meyering  <jim@meyering.net>
81394
81395         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81396         memcpy.
81397
81398 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81399
81400         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81401         (SIZE_MAX): Remove.
81402         (new_exclude, add_exclude_file): Initial size no longer needs to
81403         be a power of 2.
81404         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81405         our own address arithmetic overflow checking.
81406
81407         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81408         (fnmatch): Do not alloca more than 2000 wide characters;
81409         instead, use malloc for large buffers.
81410         Check for address arithmetic overflow, and return -1
81411         with errno set to ENOMEM in that case.
81412         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81413         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81414         instead, return -1.  Check for address arithmetic overflow.
81415
81416 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81417
81418         Handle invalid suffixes and overflow independently, so that
81419         callers can treat them independently as needed.  Fix some bugs in
81420         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81421         suffix for a human-readable blocksize.  The major caller-visible
81422         change is the addition of a new
81423         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81424         that both overflow and suffix chars were found.
81425
81426         * lib/human.c (humblock): Don't check separately for invalid suffix
81427         char; that is xstrtoumax's job (now that its bug is fixed).
81428         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81429         INTMAX_MAX]: New macros.
81430         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81431         TYPE_MAXIMUM): New macros.
81432         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81433         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81434         if overflow occurs, as it's what __strtol does and it's more useful
81435         in practice.
81436         (__xstrtol): If __strtol reports some error other than ERANGE,
81437         reflect it to the caller as LONGINT_INVALID.  If it reports
81438         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81439         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81440         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81441         value.
81442         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81443         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81444         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81445         [defined UINTMAX_MAX]: New macros.
81446
81447 2003-10-14  Bruno Haible  <bruno@clisp.org>
81448
81449         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81450
81451 2003-10-14  Bruno Haible  <bruno@clisp.org>
81452
81453         * m4/sig_atomic_t: New file, from GNU gettext.
81454         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81455
81456 2003-10-14  Bruno Haible  <bruno@clisp.org>
81457
81458         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81459         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81460         Also use volatile where needed.
81461
81462 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81463
81464         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81465         Change maintainer from Bruno Haible to 'all'.
81466
81467 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81468
81469         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81470
81471 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81472
81473         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81474         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81475         and define in terms of the other primitives.
81476         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81477         (SIZE_MAX): Define if not already defined.
81478         (array_size_overflow): New function.
81479         (xalloc_die): Abort instead of exiting if 'error' returns.
81480         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81481         (xmalloc, xrealloc): Use them.
81482         (xcalloc): Check for address arithmetic overflow.
81483         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81484         a bit faster than strcpy.
81485
81486 2003-10-10  Simon Josefsson  <jas@extundo.com>
81487
81488         * modules/argp (Depends-on): Add restrict and strcase.
81489
81490 2003-10-10  Simon Josefsson  <jas@extundo.com>
81491
81492         * m4/argp.m4: Add AC_C_INLINE.
81493
81494 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81495
81496         Merge getpass from libc, plus a few fixes.
81497
81498         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81499         Include <stdbool.h>.
81500         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81501         __fsetlocking to empty.
81502         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81503         do include <bits/libc-lock.h>.
81504         Do not include <fcntl.h>; not needed.
81505         [_LIBC]: Include <wchar.h>.
81506         (NOTCANCEL_MODE): New macro.
81507         (flockfile, funlockfile) [_LIBC]: New macros.
81508         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81509         [!_LIBC]: New macros.
81510         (call_fclose): New function.
81511         (getpass): Use it.  Save tty stream separately; this simplifies the
81512         code and makes it more reliable if stdin happens to equal stdout.
81513         Invoke __fsetlocking on tty.
81514         Handle thread cancellation if needed.
81515         Namespace cleanup (use __tcgetattr, __getline).
81516         Use bool for Booleans.
81517         [USE_IN_LIBIO]: Handle wide streams.
81518         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81519         stream might go where.
81520
81521         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81522         doesn't have to include <stdio.h> before us.
81523         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81524         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81525         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81526         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81527         if not declared, so that we can use getpass.c code from libc without
81528         rewriting it.
81529         (flockfile, ftrylockfile, funlockfile): New macros.
81530
81531 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81532
81533         * modules/getpass: Depend on stdbool.
81534
81535 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81536
81537         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81538
81539 2003-10-07  Karl Berry  <karl@gnu.org>
81540
81541         * config/config.{guess,sub}: update from config.
81542
81543 2003-10-06  Jim Meyering  <jim@meyering.net>
81544             Bruno Haible  <bruno@clisp.org>
81545
81546         This lets translators provide better translations for the
81547         "Written by ..." part of --version output.
81548         * lib/version-etc.h: Include stdarg.h.
81549         (version_etc_copyright): Declare as readonly.
81550         (version_etc): Make this function variadic with a NULL-terminated list
81551         of author name strings.
81552         (version_etc_va): New declaration.
81553         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81554         (version_etc_copyright): Declare as readonly.
81555         (version_etc_va): New function. Provide a different translatable string
81556         for each possible number of authors < 10. Abbreviate when there are 10
81557         authors or more.
81558         (version_etc): Make this function variadic. Call version_etc_va.
81559         Suggestion from Gary V. Vaughan.
81560
81561         * lib/long-options.h (parse_long_options): Change prototype: the
81562         authors string is moved to the end and becomes variadic.
81563         * lib/long-options.c: Include stdarg.h.
81564         (parse_long_options): Make this function variadic, too.
81565         Call version_etc_va, not version_etc.
81566
81567 2003-10-06  Bruno Haible  <bruno@clisp.org>
81568
81569         * modules/version-etc-2: Remove file.
81570         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81571
81572 2003-10-06  Bruno Haible  <bruno@clisp.org>
81573
81574         * modules/fatal-signal: New file.
81575         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81576
81577 2003-10-06  Bruno Haible  <bruno@clisp.org>
81578
81579         * m4/fatal-signal.m4: New file.
81580         * m4/signalblocking.m4: New file, from GNU gettext.
81581
81582 2003-10-06  Bruno Haible  <bruno@clisp.org>
81583
81584         * lib/version-etc-2.h: Remove file.
81585         * lib/version-etc-2.c: Remove file.
81586
81587 2003-10-06  Bruno Haible  <bruno@clisp.org>
81588
81589         * lib/fatal-signal.h: New file, from GNU gettext.
81590         * lib/fatal-signal.c: New file, from GNU gettext.
81591
81592 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81593
81594         * README: Rework advice for preventing empty .o files.
81595         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81596         not <sys/types.h>.
81597
81598 2003-10-04  Karl Berry  <karl@gnu.org>
81599
81600         * lib/argp*: update from libc.
81601
81602 2003-10-04  Karl Berry  <karl@gnu.org>
81603
81604         * config/config.{guess,sub}: update from config.
81605
81606 2003-10-02  Bruno Haible  <bruno@clisp.org>
81607
81608         * modules/lchown (Include): Add lchown.h.
81609         * modules/time_r (Include): Use "..." syntax.
81610         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81611
81612 2003-10-01  Simon Josefsson  <jas@extundo.com>
81613
81614         * MODULES.html.sh (func_all_modules): Move gethostname from section
81615         'based on' to section 'lacking' POSIX:2001.
81616
81617 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81618
81619         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81620         to output mode on the same stream.
81621
81622 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81623
81624         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81625         Fix arg typo in previous patch.
81626
81627 2003-09-28  Jim Meyering  <jim@meyering.net>
81628
81629         * lib/error.c: Correct cpp indentation.
81630
81631 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81632
81633         * modules/free: New file.
81634
81635 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81636
81637         * m4/free.m4: New file.
81638
81639 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81640
81641         * lib/minmax.h (MIN, MAX)
81642         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81643         Omit the special code that used __typeof__, since we worry that
81644         it could be more trouble than it's worth.  See:
81645         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81646         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81647
81648         * lib/free.c: New file.
81649
81650 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81651
81652         Trivial fixes to Makefile.am parts of module listings.
81653         * modules/strstr: Append strstr.h to lib_SOURCES.
81654         * modules/strcase: Likewise, for strcase.h.
81655
81656 2003-09-27  Karl Berry  <karl@gnu.org>
81657
81658         * config/mkinstalldirs: update from automake.
81659
81660 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81661
81662         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81663         (error_tail): Do not loop, reallocating temporary buffer, since
81664         the output cannot contain more wide characters than the input
81665         contains bytes, the size must be big enough already.  This avoids
81666         one potential size overflow calculation.  Check for size overflow
81667         when calculating temporary buffer size.  Free temporary buffer
81668         when done, if it was allocated with malloc; this plugs a memory
81669         leak.  Remove casts from void * to pointers, that are no longer
81670         needed now that we're assuming C89 or better.
81671
81672         Merge error changes from glibc.
81673
81674         * lib/error.c, error.h: Update copyright notice header to match glibc.
81675         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81676         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81677         Disable cancellation while printing error.
81678         * lib/error.h: Prepend __ to parameter names.
81679
81680 2003-09-26  Jim Meyering  <jim@meyering.net>
81681
81682         * lib/error.c (error_tail): Move some declarations
81683         into inner scope where the local variables are used.
81684
81685 2003-09-26  Bruno Haible  <bruno@clisp.org>
81686
81687         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81688         stpncpy().
81689         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81690
81691 2003-09-26  Bruno Haible  <bruno@clisp.org>
81692
81693         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81694         (stpncpy): Define as alias for gnu_stpncpy.
81695         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81696
81697 2003-09-25  Simon Josefsson  <jas@extundo.com>
81698
81699         * lib/xgetdomainname.h: New file.
81700         * lib/xgetdomainname.c: New file.
81701
81702 2003-09-25  Simon Josefsson  <jas@extundo.com>
81703             Bruno Haible  <bruno@clisp.org>
81704
81705         * modules/getdomainname: New file.
81706         * modules/xgetdomainname: New file.
81707         * MODULES.html.sh (func_all_modules): Add getdomainname,
81708         xgetdomainname.
81709
81710 2003-09-25  Simon Josefsson  <jas@extundo.com>
81711             Bruno Haible  <bruno@clisp.org>
81712
81713         * m4/getdomainname.m4: New file.
81714
81715 2003-09-25  Simon Josefsson  <jas@extundo.com>
81716             Bruno Haible  <bruno@clisp.org>
81717
81718         * lib/getdomainname.h: New file.
81719         * lib/getdomainname.c: New file.
81720
81721 2003-09-25  Karl Berry  <karl@gnu.org>
81722
81723         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81724
81725 2003-09-25  Karl Berry  <karl@gnu.org>
81726
81727         * config/install-sh: update from automake.
81728
81729 2003-09-25  Bruno Haible  <bruno@clisp.org>
81730
81731         * modules/version-etc-2: New file, from modules/version-etc with
81732         modifications.
81733         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81734
81735 2003-09-25  Bruno Haible  <bruno@clisp.org>
81736
81737         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81738         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81739
81740 2003-09-24  Simon Josefsson  <jas@extundo.com>
81741
81742         * modules/xgethostname: Add xgethostname.h.
81743
81744 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81745
81746         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81747         the buffer associated with the argument.  Bug reported by
81748         Simon Josefsson.
81749
81750 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81751
81752         * README: Document assumptions that 'int' is at least 32 bits
81753         wide, that integer arithmetic is 2's complement without overflow,
81754         that there are no holes in integer values, that adding sizes of
81755         two nonoverlapping objects can't overflow, and that all-bits-zero
81756         yields scalar zero.  Fix spelling and capitalization typos.
81757
81758 2003-09-19  Karl Berry  <karl@gnu.org>
81759
81760         * lib/argp.h: update from libc.
81761
81762 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81763
81764         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81765         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81766         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81767
81768 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81769
81770         * gnulib-tool: Use "test -h", not "test -L", for portability
81771         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81772         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81773         (sed_extract_prog): Issue s commands one-by-one, rather than
81774         using \| in one s command.
81775
81776 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81777
81778         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81779         input error, instead of returning NULL the next time we are called
81780         (and therefore losing track of errno).
81781
81782 2003-09-16  Bruno Haible  <bruno@clisp.org>
81783
81784         * gnulib-tool (func_create_testdir): Warn about duplicated
81785         dependencies.
81786
81787 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81788
81789         * modules/argmatch, modules/fatal, modules/obstack,
81790         modules/xalloc, modules/xgethostname: Sort dependencies by
81791         importance, not alphabetically.
81792
81793 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81794
81795         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81796         fails, so that the caller gets the proper errno.
81797
81798         * lib/readutmp.c (read_utmp): Likewise.
81799         Check for fstat error.  Close stream and free storage
81800         when failing.
81801
81802 2003-09-14  Karl Berry  <karl@gnu.org>
81803
81804         * config/srclist.txt (strdup.c): disable for c89 changes.
81805
81806 2003-09-14  Jim Meyering  <jim@meyering.net>
81807
81808         * lib/getloadavg.c: Correct cpp indentation.
81809         * lib/strdup.c: Likewise.
81810         * lib/vasnprintf.c: Likewise.
81811
81812 2003-09-14  Bruno Haible  <bruno@clisp.org>
81813
81814         * modules/fwriteerror: New file.
81815         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81816
81817 2003-09-14  Bruno Haible  <bruno@clisp.org>
81818
81819         * lib/fwriteerror.h: New file.
81820         * lib/fwriteerror.c: New file.
81821
81822 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81823
81824         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81825         modules/xgethostname, modules/xalloc: Depend on exit.
81826
81827 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81828
81829         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81830
81831         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81832         and AC_MINIX, too, so that their extensions are available.
81833
81834         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81835         This macro has been superseded by gl_BACKUPFILE.
81836
81837         More patches to assume C89 or better.
81838
81839         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81840
81841         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81842         unconditionally.
81843         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81844         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81845         Include <string.h>, <stdlib.h> unconditionally.
81846         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81847         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81848         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81849         headers or for string.h.
81850         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81851         or strtoul.
81852
81853         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81854         headers.
81855         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81856         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81857         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81858         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81859         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81860         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81861         memcpy, memset.
81862         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81863         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81864         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81865         strtol.
81866         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81867         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81868         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81869         strtoul.
81870
81871 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81872
81873         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81874         * lib/obstack.c [!defined _LIBC]: Likewise.
81875         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81876         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81877         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81878
81879         More changes to assume C89 or better.
81880
81881         * lib/error.c (error_tail): Assume vprintf.
81882
81883         * lib/argmatch.c (getenv): Remove decl.
81884         * lib/progreloc.c (get_full_program_name): Define via prototype.
81885         * lib/setenv.c (clearenv): Likewise.
81886         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81887         needed.
81888         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81889         (malloc, memcpy): Remove decls.
81890         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81891         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81892         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81893         (memcpy): Remove macro.
81894         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81895         (__P): Remove.  All uses removed.
81896         (PTR): Remove.  All uses changed to void *.
81897         (CHAR_BIT, NULL): Remove.
81898         (spaces, zeros, memset_space, memset_zero)
81899         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81900         Remove.
81901         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81902         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81903         Define with prototype.
81904         Remove now-unnecessary prototype decl.
81905         (extra_args_spec): Assume ANSI C.  All uses changed.
81906         (extra_args_spec_iso): Remove.
81907         (my_strftime, emacs_strftimeu): Define via prototype.
81908         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81909         unconditionally.
81910         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81911         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81912         (strtoul, strtol): Remove decls.
81913         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81914         LONG_MAX): Remove.
81915         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81916         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81917         (LOCALE_PARAM_PROTO): New macro.
81918         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81919         (INTERNAL (strtol), strtol): Define with a prototype.
81920         (PARAMS): Remove.  All uses removed.
81921         * lib/tempname.c: Include <string.h> unconditionally.
81922         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81923         * lib/xgethostname.c (main): Define with a prototype.
81924         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81925         Include <stdlib.h> unconditionally.
81926         (calloc, malloc, realloc, free): Remove decls.
81927         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81928         Include <stdlib.h> unconditionally.  Sort include file names.
81929         (strtod): Remove.
81930         (xstrtod): Define with a prototype.
81931         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81932         (strtol, strtoul): Remove decls.
81933
81934 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81935
81936         More patches to assume C89 or better.
81937         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81938         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81939         string.h, memchr, STDC_HEADERS.
81940
81941 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81942
81943         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81944         Include <stdlib.h>, <string.h> unconditionally.
81945         Remove now-unnecessary cast to char *.
81946         * lib/strnlen.c: Include <string.h> unconditionally.
81947         * lib/yesno.c (yesno): Define with a prototype.
81948
81949 2003-09-11  Bruno Haible  <bruno@clisp.org>
81950
81951         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81952
81953 2003-09-10  Jim Meyering  <jim@meyering.net>
81954
81955         * lib/error.c: Correct indentation of cpp directives.
81956
81957 2003-09-10  Bruno Haible  <bruno@clisp.org>
81958
81959         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81960         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81961         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81962         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81963         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81964         <stdlib.h> and <string.h> checks.
81965         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81966         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81967
81968 2003-09-10  Bruno Haible  <bruno@clisp.org>
81969
81970         * lib/strcspn.c: Include <string.h> unconditionally.
81971         * lib/strpbrk.c: Include <string.h> unconditionally.
81972         * lib/strstr.c: Include <string.h> unconditionally.
81973         * lib/unicodeio.c: Include <string.h> unconditionally.
81974         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81975         * lib/unsetenv.c: Likewise.
81976         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81977         * lib/yesno.c: Include <stdlib.h> unconditionally.
81978         (rpmatch): Add prototype.
81979
81980 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81981
81982         More patches to assume C89 or better.
81983         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81984         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81985         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81986         or for string.h.
81987         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81988         stdlib.h.
81989         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81990         C headers.
81991         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81992         string.h.
81993         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81994         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81995         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81996         or for string.h.
81997         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81998         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81999         C headers.
82000         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82001         memcpy.
82002         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82003         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82004         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82005         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82006         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82007         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82008         string.h, free.
82009         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82010         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82011         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82012         C headers, or for string.h.
82013         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82014         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82015         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82016         headers, memory.h, stdlib.h, string.h, strings.h.
82017         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82018         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82019         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82020         strchr.
82021         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82022         headers, memory.h, string.h.
82023         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82024         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82025         free.
82026         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82027         headers.
82028         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82029         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82030         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82031         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82032         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82033
82034 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82035
82036         More K&R removal.
82037
82038         * lib/acosl.c (main): Use a prototype.
82039         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82040         tanl.c: Likewise.
82041
82042         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82043
82044         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82045         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82046         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82047         with a prototype.
82048         * lib/getopt.c (const): Remove macro.
82049         Include <string.h> unconditionally.
82050         (my_index): Remove; all uses changed to strchr.
82051         (strlen): Remove decl.
82052         (exchange): Remove forward decl; no longer needed.
82053         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82054         Define with prototype.
82055         * lib/getopt1.c (const): Remove macro.
82056         (getopt_long, getopt_long_only, main): Define with prototype.
82057
82058         * lib/getugroups.c: Include <string.h> unconditionally.
82059
82060         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82061         (getusershell, setusershell, endusershell, readname, main):
82062         Define with prototypes.
82063
82064         * lib/group-member.c: Include group-member.h first.
82065         Include <stdlib.h> unconditionally.
82066
82067         * lib/hard-locale.c: Include hard-locale.h first.
82068         Include <stdlib.h>, <string.h> unconditionally.
82069
82070         * lib/hash.c (free, malloc): Remove decls.
82071         Include <stdlib.h> unconditionally.
82072
82073         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82074         (getenv): Do not declare.
82075
82076         * lib/idcache.c: Include <string.h> unconditionally.
82077
82078         * lib/long-options.c: Include long-options.h first, to test interface.
82079         Include <stdlib.h> unconditionally.
82080
82081         * lib/makepath.c: Include makepath.h first, to test interface.
82082         Include <stdlib.h> and <string.h> unconditionally.
82083
82084         * lib/linebuffer.c: Include <stdlib.h>.
82085         (free): Remove decl.
82086
82087         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82088         stddef.h. rpl_malloc returns void *, not char *.
82089         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82090         prototype.
82091
82092         * lib/md5.h: Include <limits.h> unconditionally.
82093         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82094         (__P): Remove; all uses removed.
82095         * lib/md5.c: Include "md5.h" first.
82096         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82097         md5_buffer, md5_process_bytes, md5_process_block):
82098         Define with prototypes.
82099         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82100         * lib/sha.c: Include "sha.h" first.
82101         Include <stdlib.h>, <string.h> unconditionally.
82102
82103         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82104         * lib/memcmp.c (__ptr_t): Likewise.
82105         * lib/memrchr.c (__ptr_t): Likewise.
82106         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82107         Include <string.h> unconditionally.
82108         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82109         * lib/memchr.c: Include <stdlib.h> unconditionally.
82110         * lib/memchr.c (LONG_MAX): Remove.
82111         * lib/memrchr.c (LONG_MAX): Likewise.
82112         * lib/memchr.c (__memchr): Define via a prototype.
82113         * lib/memrchr.c (__memrchr): Likewise.
82114         * lib/memcmp.c (__P): Remove, and remove all uses.
82115         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82116         Remove forward decls; no longer needed.
82117         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82118         Use types required by C89 in prototype.
82119
82120         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82121         * lib/savedir.c: Likewise.
82122         * lib/mkdir.c (free): Remove decl.
82123         * lib/rmdir.c (rmdir): Define with a prototype.
82124         * lib/savedir.c: Include savedir.h first, to test interface.
82125
82126         * lib/mktime.c (STDC_HEADERS): Remove.
82127         Include <stdlib.h>, <string.h> unconditionally.
82128
82129         * lib/modechange.c: Include <stdlib.h> unconditionally.
82130         (malloc): Remove decl.
82131
82132         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82133         (free): Remove decl.
82134
82135         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82136         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82137         (This type really should be intptr_t, but that's a C99ism.)
82138         (_obstack_memcpy): Remove: all uses changed to memcpy.
82139         Include <string.h> unconditionally.
82140         (struct obstack): Assume __STDC__ for types of members
82141         chunkfun, freefun, extra_arg.
82142         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82143         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82144         obstack_begin, obstack_specify_allocation,
82145         obstack_specify_allocation_with_arg, obstack_chunkfun,
82146         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82147         Remove unprototyped decls and the macros that use them.
82148         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82149         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82150         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82151         (defined __STDC__ && __STDC__)]:
82152         Remove nonprototyped code.
82153         Include <stdlib.h> unconditionally.
82154         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82155         _obstack_allocated_p, _obstack_free, obstack_free,
82156         _obstack_memory_used, print_and_abort):
82157         Define using prototypes.
82158         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82159         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82160         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82161         obstack_next_free, obstack_object_size, obstack_room) [0]:
82162         Remove unused, unprototyped code.
82163
82164         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82165
82166         * lib/physmem.c (physmem_total, physmem_available, main): Define
82167         with prototypes.
82168
82169         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82170         (main): Define with a prototype.
82171
82172         * lib/posixver.c (getenv): Remove decl.
82173
82174         * lib/putenv.c (malloc): Returns void *, not char *.
82175         Include <string.h> unconditionally.
82176         (strchr, memcpy, NULL): Do not define.
82177
82178         * lib/readtokens.c: Include readtokens.h first, to test interface.
82179         Include <stdlib.h>, <string.h> unconditionally.
82180         (init_tokenbuffer): Define with a prototype.
82181
82182         * lib/regex.c (PARAMS): Remove.  All uses removed.
82183         All uses of _RE_ARGS removed, too.
82184         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82185         unconditionally.
82186         (bzero): Assume memset exists.
82187         (memcmp, memcpy, NULL): Remove.
82188         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82189         char, or assignments to local vars of type signed char.
82190         (init_syntax_once, PREFIX(extract_number_and_incr),
82191         PREFIX(print_partial_compiled_pattern),
82192         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82193         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82194         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82195         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82196         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82197         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82198         wcs_compile_range, byte_compile_range, truncate_wchar,
82199         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82200         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82201         count_mbs_length, wcs_re_match_2_internal,
82202         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82203         PREFIX(alt_match_null_string_p),
82204         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82205         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82206         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82207         now-unnecessary declaration, if any.
82208         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82209         regcomp, regexec):
82210         Remove now-unnecessary casts among pointer types.
82211         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82212
82213         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82214         (free): Remove decl.
82215
82216         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82217
82218         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82219         (free): Remove decl.
82220
82221         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82222         * lib/xgetcwd.c: Likewise.
82223
82224         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82225         (free): Remove decl.
82226
82227         * lib/strchrnul.c (strchrnul): Define with a prototype.
82228         Fix bug: c_in was not converted to char before searching.
82229
82230         The following changes are not K&R related:
82231
82232         * lib/group-member.h: Include <sys/types.h>, so that this file is
82233         self-contained.
82234         * lib/makepath.h: Likewise.
82235
82236         * lib/getusershell.c (readname, default_index, line_size, readname):
82237         Use size_t, not int, for sizes.
82238         (readname): If the size overflows, report an error instead of
82239         looping forever.
82240
82241 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82242
82243         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82244         libc.
82245
82246 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82247
82248         * README: New section: portability guidelines.
82249
82250 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82251
82252         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82253         C89 spec.
82254
82255 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82256
82257         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82258
82259 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82260
82261         Assume C89 or better; remove K&R cruft.
82262         A few of these changes were first proposed by Derek Robert Price
82263         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82264
82265         * lib/addext.c: Include <string.h> unconditionally.
82266         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82267         Don't declare getenv or malloc.
82268
82269         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82270         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82271         (NULL): Remove.
82272         (find_stack_direction, alloca): Use prototypes.
82273
82274         * lib/atexit.c (atexit): Define using a prototype.
82275
82276         * lib/basename.c, dirname.c, stripslash.c:
82277         Include <string.h> unconditionally.
82278
82279         * lib/bcopy.c: Include <stddef.h>.
82280         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82281
82282         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82283
82284         * lib/error.h (error, error_at_line, error_print_progname)
82285         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82286         * lib/error.c: Include error.h first, to check interface.
82287         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82288         (VA_START): Remove; all uses changeed to va_start.
82289         (exit, strerror): Remove decls.
82290         (error_print_progname): Prototype uncondionally.
82291         Don't include <errno.h>; no longer needed.
82292         (private_strerror): Remove.
82293         (error_tail): Always define.
82294         (error, error_at_line): Assume C89 or better; always use prototypes.
82295         * lib/fatal.c: Include "fatal.h" first, to test interface.
82296         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82297         (VA_START): Remove; all uses changed to va_start.
82298         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82299         this case.
82300         (exit): Remove decl.
82301         (fatal): Prototype unconditionally.  Assume va_start works.
82302         Abort at end, to pacify gcc.
82303
82304         * lib/euidaccess.c (main): Define with a prototype.
82305
82306         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82307
82308         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82309
82310         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82311         prototypes.
82312         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82313         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82314         (getenv): Remove decl.
82315         (fnmatch): Define using a prototype.
82316         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82317         (FCT): Define using a prototype.
82318
82319         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82320
82321         * lib/gethostname.c: Include <stddef.h>.
82322         (gethostname): Define with prototype.  Length is size_t, not int.
82323
82324 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82325
82326         Assume C89 or better; remove K&R cruft.
82327         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82328         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82329         string.h, getenv, malloc.
82330         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82331         headers.
82332         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82333         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82334         do not check for strerror.
82335         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82336         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82337         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82338         do not check for doprnt or vprintf.
82339         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82340         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82341
82342 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82343
82344         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82345         getversion.c should have been removed then, but was accidentally
82346         preserved.
82347
82348         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82349         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82350
82351 2003-09-08  Karl Berry  <karl@gnu.org>
82352
82353         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82354                 config, forget about prep.
82355
82356         * config/depcomp, missing: update from automake.
82357
82358 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82359
82360         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82361         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82362
82363 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82364
82365         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82366         copy_tm_result.  Bug reported by Simon Josefsson in
82367         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82368
82369 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82370
82371         * m4/time_r.m4: New file.
82372         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82373         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82374         is. Check for timegm declaration.
82375         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82376         Do not check for gmtime_r.
82377         Replace mktime if __mktime_internal does not exist and if mktime
82378         hasn't been replaced already.
82379
82380 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82381
82382         * lib/time_r.c, lib/time_r.h: New files.
82383
82384         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82385         __localtime_r.
82386         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82387         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82388
82389         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82390         __gmtime_r.
82391         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82392         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82393         Include <time_r.h>.
82394
82395         * lib/timegm.c: Switch to glibc implementation, with the following
82396         changes:
82397         [defined HAVE_CONFIG_H]: Include <config.h>.
82398         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82399         (__mktime_internal) [!defined _LIBC]: New decl.
82400         (__gmtime_r) [!defined _LIBC]: New macro and function.
82401         (timegm): Use a prototype, since gnulib assumes C89.
82402         Do not bother declaring tmp to be const, as it's not really usefu.
82403         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82404         (timegm): Declare only if HAVE_DECL_TIMEGM.
82405
82406 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82407
82408         * MODULES.html.sh (func_all_modules): Add time_r.
82409         * modules/time_r: New file.
82410         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82411         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82412
82413 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82414
82415         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82416         Bug reported by Lute Kamstra in
82417         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82418
82419         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82420         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82421         course with correspondingly smaller numbers for tomorrow and
82422         yesterday.  From Tadayoshi Funaba.  Originally installed into
82423         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82424         coreutils merge?).
82425
82426 2003-08-31  Simon Josefsson  <jas@extundo.com>
82427
82428         * modules/timegm: New file.
82429         * MODULES.html.sh (func_all_modules): Add timegm.
82430
82431 2003-08-31  Simon Josefsson  <jas@extundo.com>
82432
82433         * m4/timegm.m4: New file.
82434
82435 2003-08-31  Simon Josefsson  <jas@extundo.com>
82436
82437         * lib/timegm.h: New file.
82438         * lib/timegm.c: New file.  Based on
82439         wget-1.8.2/src/http.c:mktime_from_utc.
82440
82441 2003-08-31  Karl Berry  <karl@gnu.org>
82442
82443         * lib/argp.h: update from libc.
82444
82445 2003-08-28  Bruno Haible  <bruno@clisp.org>
82446
82447         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82448         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82449         followed by '#define fnmatch fnmatch_posix' gives an error.
82450
82451 2003-08-28  Bruno Haible  <bruno@clisp.org>
82452
82453         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82454         warning on QNX, which defines O_BINARY to 000000.
82455
82456 2003-08-27  Jim Meyering  <jim@meyering.net>
82457
82458         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82459         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82460         would fail after 32.  Reported by Danny Levinson.  Details here:
82461         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82462
82463 2003-08-24  Bruno Haible  <bruno@clisp.org>
82464
82465         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82466         MSVC7 <stdio.h> is included later.
82467
82468 2003-08-22  Simon Josefsson  <jas@extundo.com>
82469
82470         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82471
82472 2003-08-20  Karl Berry  <karl@gnu.org>
82473
82474         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82475
82476 2003-08-20  Bruno Haible  <bruno@clisp.org>
82477
82478         * modules/progname: New file.
82479         * MODULES.html.sh (func_all_modules): Add progname.
82480
82481 2003-08-20  Bruno Haible  <bruno@clisp.org>
82482
82483         * lib/progname.h: New file, from GNU gettext.
82484         * lib/progname.c: New file, from GNU gettext.
82485         * lib/progreloc.c: New file, from GNU gettext.
82486
82487 2003-08-19  Jim Meyering  <jim@meyering.net>
82488
82489         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82490         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82491
82492 2003-08-19  Bruno Haible  <bruno@clisp.org>
82493
82494         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82495         more.
82496
82497 2003-08-19  Bruno Haible  <bruno@clisp.org>
82498
82499         * lib/xstrdup.c: Assume <string.h> exists.
82500
82501 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82502
82503         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82504         in makefile rules.
82505
82506 2003-08-18  Jim Meyering  <jim@meyering.net>
82507
82508         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82509         * m4/lib-ld.m4: Likewise.
82510
82511 2003-08-18  Jim Meyering  <jim@meyering.net>
82512
82513         * lib/setenv.h: Indent nested cpp directive.
82514         * lib/vasnprintf.c: Remove trailing blanks.
82515
82516 2003-08-17  Simon Josefsson  <jas@extundo.com>
82517
82518         * modules/xstrndup: New file.
82519         * MODULES.html.sh (func_all_modules): Add xstrndup.
82520
82521 2003-08-17  Simon Josefsson  <jas@extundo.com>
82522
82523         * modules/argp: Fix autoconf macro name. Add more dependencies.
82524
82525 2003-08-17  Simon Josefsson  <jas@extundo.com>
82526
82527         * m4/xstrndup.m4: New file.
82528
82529 2003-08-17  Simon Josefsson  <jas@extundo.com>
82530
82531         * m4/argp.m4: New file.
82532
82533 2003-08-17  Simon Josefsson  <jas@extundo.com>
82534             Bruno Haible  <bruno@clisp.org>
82535
82536         * lib/xstrndup.h: New file.
82537         * lib/xstrndup.c: New file.
82538
82539 2003-08-17  Bruno Haible  <bruno@clisp.org>
82540
82541         * modules/strndup (Files, Include): Add lib/strndup.h.
82542
82543 2003-08-17  Bruno Haible  <bruno@clisp.org>
82544
82545         * modules/euidaccess (Files): Add lib/euidaccess.h.
82546
82547 2003-08-17  Bruno Haible  <bruno@clisp.org>
82548
82549         * lib/strndup.h: New file.
82550
82551 2003-08-17  Bruno Haible  <bruno@clisp.org>
82552
82553         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82554         like AC_GNU_SOURCE.
82555         * modules/extensions (configure.ac): Comment out the invocation of
82556         gl_USE_SYSTEM_EXTENSIONS.
82557
82558 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82559
82560         Merges from coreutils, etc.
82561         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82562         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82563         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82564         fixing a typo.
82565         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82566         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82567
82568 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82569
82570         Document merge from coreutils.
82571         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82572         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82573         * modules/utime: Add m4/utimes-null.m4.
82574
82575 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82576
82577         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82578         space, undoing this 2003-08-12 change:
82579         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82580
82581 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82582
82583         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82584         strtoul.c from libc, undoing this 2003-08-12 change:
82585         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82586
82587 2003-08-16  Jim Meyering  <jim@meyering.net>
82588
82589         Merges from coreutils.
82590         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82591         prefix.  Adjust cache variables similarly.  Create 500 rather than
82592         just 300 files, to exercise bug on Darwin6.5, too.
82593         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82594         $missing_dir.
82595         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82596         AM_SYS_POSIX_TERMIOS.
82597         Reported by mkc@mathdogs.com.
82598         Also change use of $am_cv_sys_posix_termios
82599         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82600         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82601         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82602         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82603         in /proc/mounts until it finds one with matching device number.  This
82604         is unnecessary when the FILE argument *is* a mount point.  No stat call
82605         is necessary in that case.  So, disable the statvfs-testing code on
82606         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82607         as RedHat bug# 84846.
82608         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82609         to 1MB, so as not to render systems with no stack size limit (e.g.,
82610         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82611         Include <unistd.h>.  On some systems,
82612         it is required for the definition of _SC_PAGESIZE.
82613
82614 2003-08-16  Jim Meyering  <jim@meyering.net>
82615
82616         Merge from coreutils.
82617         * lib/xstrtoimax.c: #else #if -> #elif.
82618         * lib/xstrtoumax.c: Likewise.
82619
82620 2003-08-16  Jim Meyering  <jim@meyering.net>
82621
82622         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82623         * m4/utimes.m4: Removed.
82624         * m4/utimes-null.m4: Renamed from utimes.m4.
82625
82626         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82627         to 1MB, so as not to render systems with no stack size limit (e.g.,
82628         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82629         Include <unistd.h>.  On some systems,
82630         it is required for the definition of _SC_PAGESIZE.
82631
82632 2003-08-16  Jim Meyering  <jim@meyering.net>
82633         and Paul Eggert  <eggert@cs.ucla.edu>
82634
82635         Merges from coreutils, etc.
82636
82637         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82638         using the latest version from cvs.  This avoids problems with #line
82639         directives using a vendor (Sun) compiler.
82640         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82641         Don't set GETGROUPS_LIB here; now it's
82642         done via getgroups.m4's wrapper function.
82643         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82644         rather than just in sh-util/configure.in, so that the
82645         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82646         same.
82647         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82648         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82649         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82650         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82651         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82652         Remove code that is now done by the newly-required macros.
82653         Append $(EXEEXT) to DF_PROG.
82654         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82655         Do not invoke or require the following here,
82656         since prereq.m4 or some gnulib .m4 now does this for us:
82657         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82658         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82659         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82660         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82661         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82662         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82663         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82664         AC_FUNC_OBSTACK.
82665         Do not replace the following functions, as this is now the job
82666         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82667         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82668         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82669         atexit getpass, strdup, getpagesize.
82670         Replace 'raise'.
82671         Do not check for the following functions, as this is now the job
82672         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82673         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82674         setregid.
82675         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82676         Check for sys/sysctl.h.
82677         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82678         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82679         of checking for ssize_t ourselves.
82680
82681         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82682         Require every macro that gnulib/modules/* suggests for us.
82683         (jm_PREREQ_ADDEXT): New macro.
82684         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82685         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82686
82687         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82688         (gl_PHYSMEM): Use it.
82689         Also check for `table' function.
82690         Check for new headers and functions.
82691         Add check for sys/sysmp.h.
82692         With suggestions from Kaveh Ghazi.
82693         Ignore headers that are present but cannot be compiled.  This
82694         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82695         C 5.4.
82696
82697 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82698
82699         Document merge from coreutils.
82700         * modules/userspec: Depend on posixver.
82701         * modules/strftime: Depend on tzset.
82702
82703 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82704
82705         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82706         rather than tab, after '#' in shell-script copyright notices.
82707         Suggested by Bruno Haible.
82708
82709 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82710
82711         * config/srclist-update: Use three spaces, rather than tab, after '#'
82712         in shell-script copyright notices.  Suggested by Bruno Haible.
82713         Remove unnecessary parenthesization in regular expression.
82714
82715 2003-08-15  Jim Meyering  <jim@meyering.net>
82716
82717         Merge from coreutils.
82718         * lib/xgethostname.c: Include <stdlib.h>.
82719         (xghostname): Don't exit for anything other than memory-related
82720         failure; just return NULL.
82721         * lib/userspec.c: Include "posixver.h".
82722         (parse_user_spec): Accept `.' as a separator only
82723         in pre-POSIX-200112 mode.
82724         * lib/strtoimax.c: Use #elif rather than #else #if.
82725         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82726         Remove function, now that we can rely on a working tzset function.
82727         [!_LIBC]: Ensure that the required autoconf test has been run.
82728         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82729         Use underlying_strftime for %r.
82730         * lib/sha.c: Merge in some clean-up and optimization changes from
82731         glibc.
82732         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82733         Ensure that it is a multiple of 64.
82734         Rearrange loop exit tests so as to avoid performing an
82735         additional fread after encountering an error or EOF.
82736         * lib/realloc.c: Update copyright date.
82737
82738 2003-08-15  Jim Meyering  <jim@meyering.net>
82739         and Paul Eggert  <eggert@twinsun.com>
82740
82741         Merge from coreutils.
82742         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82743         member but strut utmpx does not.  Needed for AIX 4.3.3.
82744         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82745
82746 2003-08-15  Jim Meyering  <jim@meyering.net>
82747         and Paul Eggert  <eggert@cs.ucla.edu>
82748
82749         Merges from coreutils, etc.
82750         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82751         Require gl_FUNC_TZSET_CLOBBER.
82752         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82753         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82754         members.
82755
82756 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82757
82758         Help the merge from coreutils.
82759         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82760         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82761         * m4/tzset.m4: Use it too.
82762
82763 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82764
82765         * modules/tzset: New file.
82766
82767 2003-08-14  Jim Meyering  <jim@meyering.net>
82768
82769         Merges from coreutils.
82770         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82771         variable names, rather than @FNMATCH_H@.
82772         * modules/alloca: Likewise for $(ALLOCA_H).
82773
82774         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82775         the three copies of the literal target, `fnmatch.h'.
82776         * modules/alloca (alloca.h): Likewise.
82777
82778 2003-08-14  Jim Meyering  <jim@meyering.net>
82779
82780         Merge from coreutils.
82781         * m4/tzset.m4: New file.
82782         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82783         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82784         otherwise, AIX 5.1 systems would end up using the latter.
82785         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82786         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82787         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82788         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82789
82790 2003-08-14  Jim Meyering  <jim@meyering.net>
82791
82792         Merge from coreutils.
82793         * lib/obstack.h: Whitespace changes.
82794         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82795         and xcalloc return values.
82796         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82797         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82798         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82799         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82800         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82801         error from mntctl.
82802         Use mntctl's return value to drive the entry-processing loop, since
82803         we can't rely on the value of the vmt_length member in the last
82804         entry.  On some systems doing so could result in exhausting
82805         virtual memory.  Based in part on a patch from Mike Jetzer.
82806
82807 2003-08-14  Jim Meyering  <jim@meyering.net>
82808         and Paul Eggert  <eggert@twinsun.com>
82809
82810         Merges from coreutils, plus other fixes.
82811         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82812         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82813         for credits and details.  Thanks to Kaveh Ghazi for helping
82814         to keep these files in sync.
82815         (ARRAY_SIZE): Define it.
82816         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82817         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82818         (memcasecmp): Don't assume size_t fits in unsigned int.
82819         Remove casts and duplicate code.
82820         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82821         (memcpy): Remove definition.
82822         Merge in some clean-up and optimization changes from glibc.
82823         [BLOCKSIZE]: Move definition to top of file.
82824         Ensure that it is a multiple of 64.
82825         Rearrange loop exit tests so as to avoid performing an
82826         additional fread after encountering an error or EOF.
82827         * lib/md5.h (md5_uintptr): Define.
82828         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82829         return to the initial working directory.  Preserve errno
82830         for caller.
82831         * lib/idcache.c: Include "xalloc.h".
82832         (xmalloc, xrealloc): Remove decls.
82833         (getuser): Remove casts no longer required in C89.
82834         * lib/human.c: Include stdio.h, for sprintf.
82835         * lib/group-member.c: Include "xalloc.h".
82836         (xmalloc, xrealloc): Remove decls.
82837         (get_group_info): Remove casts no longer required in C89.
82838         * lib/getusershell.c (readname): Remove casts no longer required in
82839         C89.
82840         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82841         * lib/getline.c: Whitespace fix, from coreutils.
82842
82843 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82844
82845         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82846         Check for isascii.
82847
82848         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82849         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82850         Undo previous (whitespace-only) change.
82851
82852 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82853
82854         * lib/exclude.c: Include <ctype.h>
82855         (IN_CTYPE_DOMAIN): New macro.
82856         (is_space): New fn.
82857         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82858         and empty lines.
82859
82860         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82861         Undo previous (whitespace-only) change.
82862
82863 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82864
82865         * config/srclist-update: Change update back to the old behavior,
82866         leaving whitespace alone.  Use one 'sed' command rather than a
82867         pipeline.
82868         (fixlicense): Now a variable, not a function.
82869         (remove_trailing_blanks): Remove.
82870         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82871         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82872         Undo previous (whitespace-only) change.
82873
82874 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82875
82876         Merge from coreutils.
82877         * modules/euidaccess: Add lib_SOURCES, include for new
82878         file euidaccess.h
82879
82880 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82881
82882         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82883         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82884         Normalize leading white space and remove trailing white space.
82885
82886         Merge from coreutils
82887         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82888
82889         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82890         0.12.1.  These files are now being upgraded automatically by
82891         ../config/srclist-update.
82892
82893 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82894
82895         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82896         Normalize leading white space and remove trailing white space.
82897         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82898         notice, as per ../config/srclist-update.
82899
82900         Merge from coreutils.
82901         * lib/euidaccess.h: New file.
82902         * lib/euidaccess.c: Include it.
82903         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82904         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82905         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82906
82907 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82908
82909         * config/srclist-update: Add copyright notice.
82910         (remove_id_lines, remove_trailing_blanks): New constants.
82911         (fixfile): Use them to normalize spacing a bit in copied files.
82912         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82913         Normalize leading white space and remove trailing white space.
82914
82915         * config/texinfo.tex: Sync with texinfo.
82916
82917         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82918         strtoul.c from libc, to merge coreutils whitespace changes.
82919
82920         * config/srclist.txt: Get the following m4 files from gettext:
82921         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82922         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82923         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82924         wint_t.m4.
82925
82926 2003-08-12  Karl Berry  <karl@gnu.org>
82927
82928         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82929         been made.
82930
82931 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82932
82933         * modules/gnu-source, m4/gnu-source.m4:
82934         Remove; we're assuming Autoconf 2.54 or later now.
82935         Suggested by Bruno Haible.
82936         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82937
82938 2003-08-11  Bruno Haible  <bruno@clisp.org>
82939
82940         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82941
82942 2003-08-11  Bruno Haible  <bruno@clisp.org>
82943
82944         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82945         (vasnprintf): Use it instead of wcslen.
82946
82947 2003-08-11  Bruno Haible  <bruno@clisp.org>
82948
82949         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82950         value to ensure that _Bool promotes to int. Use #define for _Bool when
82951         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82952
82953 2003-08-10  Karl Berry  <karl@gnu.org>
82954
82955         * lib/regex.h: update from libc (whitespace fix).
82956
82957 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82958
82959         Merge some files from coreutils.  These changes were
82960         originally made by Jim Meyering.
82961         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82962         many older Unixes require this.
82963         * lib/alloca.c (alloca): Remove cast to argument of free;
82964         no longer needed in C89.
82965         * lib/alloca_.h, regex.h: Fix white space to match
82966         what GNU indent does.
82967
82968 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82969
82970         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82971         apparently Emacs's Unicode mode got confused before my 2003-08-05
82972         checkin.
82973
82974 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82975
82976         * m4/extensions.m4: New file.
82977         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82978         Require gl_USE_SYSTEM_EXTENSIONS.
82979         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82980         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82981
82982 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82983
82984         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82985         * modules/extensions, modules/gnu-source: New files.
82986         * modules/timespec, modules/unlocked-io: Depend on extensions.
82987
82988 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82989
82990         * modules/restrict: New file.
82991         * MODULES.html.sh (func_all_modules): Add restrict.
82992         * modules/regex: Depend on restrict.
82993
82994 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82995
82996         * m4/restrict.m4: New file.
82997         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82998
82999 2003-08-07  Bruno Haible  <bruno@clisp.org>
83000
83001         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83002         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83003
83004 2003-08-07  Bruno Haible  <bruno@clisp.org>
83005
83006         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83007         makes the module 'getndelim2' compatible with the module 'getline'.
83008
83009 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83010
83011         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83012         byte with "\201" to avoid glitches when editing that source file
83013         with multi-gnome-terminal.
83014
83015 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83016
83017         * lib/bumpalloc.h: Remove.
83018
83019 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83020
83021         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83022         * modules/bumpalloc: Remove.
83023
83024 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83025
83026         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83027         GNU coding style.
83028
83029         Merge from coreutils.
83030         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83031         1. From glibc.
83032         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83033         from Karl Berry, implemented by Jim Meyering.
83034         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83035         from Dmitry V. Levin.
83036         Remove anachronistic cast of xrealloc.
83037         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83038         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83039         type. Otherwise, it wouldn't compile with at least /bin/cc on
83040         ymp-cray-unicos9.0.2.X.
83041         Combine two mostly-identical uses of alloca into one.
83042         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83043
83044 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83045
83046         [From Emacs.]
83047
83048         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83049         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83050         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83051         obsolete NLIST_NAME_UNION.
83052         [__GNU__]: Undef BSD and FSCALE.
83053         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83054
83055 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83056
83057         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83058         an enum type, so that it's guaranteed to promote to int.  See:
83059         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83060
83061 2003-08-03  Karl Berry  <karl@gnu.org>
83062
83063         * config/depcomp: update from automake.
83064
83065 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83066
83067         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83068         (strerror): Don't assume that a printable int fits in 14 bytes.
83069
83070 2003-07-31  Bruno Haible  <bruno@clisp.org>
83071
83072         * modules/getpass-gnu: New file.
83073         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83074
83075 2003-07-31  Bruno Haible  <bruno@clisp.org>
83076
83077         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83078
83079 2003-07-24  Karl Berry  <karl@gnu.org>
83080
83081         * config/missing: update from automake.
83082
83083 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83084             Bruno Haible  <bruno@clisp.org>
83085
83086         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83087         * lib/getline.c (getline, getdelim): Likewise.
83088         Remove _GNU_SOURCE define; now it's defined in config.h through
83089         m4/getline.m4.
83090
83091 2003-07-23  Karl Berry  <karl@gnu.org>
83092
83093         * config/config.sub: update from prep.
83094
83095 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83096
83097         * modules/xalloc (Depends-on): Add exitfail.
83098         * modules/xmemcoll: Likewise.
83099
83100 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83101
83102         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83103         over-parenthesization in macros.
83104
83105         Sync with coreutils.
83106
83107         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83108         required by C99.
83109
83110         Use `exit_failure' for xalloc and xmemcoll instead of their own
83111         private exit-failure variables.
83112         * lib/xalloc.h (xalloc_exit_failure): Remove.
83113         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83114         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83115         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83116         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83117         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83118
83119 2003-07-20  Jim Meyering  <jim@meyering.net>
83120
83121         * modules/closeout (Depends-on): Add exitfail.
83122         Suggestion from Bruno Haible.
83123
83124 2003-07-19  Karl Berry  <karl@gnu.org>
83125
83126         * config/config.sub: update from prep.
83127
83128 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83129
83130         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83131         Remove.
83132         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83133         to test that it can stand by itself.  Include "exitfail.h".
83134         Clients should set exit_failure instead.
83135         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83136
83137 2003-07-18  Bruno Haible  <bruno@clisp.org>
83138
83139         * modules/getndelim2: New file.
83140         * modules/getline: Share files with module getndelim2.
83141         * modules/getnline: Depend on getndelim2 instead of sharing files with
83142         it. Add getnline.c to lib_SOURCES.
83143         * MODULES.html.sh (func_all_modules): Add getndelim2.
83144
83145 2003-07-18  Bruno Haible  <bruno@clisp.org>
83146
83147         * m4/getndelim2.m4: New file.
83148         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83149         invoke gl_PREREQ_GETNDELIM2.
83150         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83151         gl_PREREQ_GETNDELIM2.
83152         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83153         gl_GETNDELIM2.
83154
83155 2003-07-18  Bruno Haible  <bruno@clisp.org>
83156
83157         * lib/getndelim2.h: New file.
83158         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83159         getndelim2.h.
83160         (getndelim2): Make non-static. Change return type to ssize_t.
83161         * lib/getline.h: Change argument names.
83162         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83163         * lib/getnline.c: Include getndelim2.h.
83164
83165 2003-07-18  Andreas Schwab  <schwab@suse.de>
83166
83167         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83168
83169 2003-07-17  Karl Berry  <karl@gnu.org>
83170
83171         * config/config.sub: update from prep.
83172
83173 2003-07-17  Bruno Haible  <bruno@clisp.org>
83174
83175         * modules/getnline: New file.
83176         * modules/getline: Add lib/getndelim2.c to source file list.
83177         * MODULES.html.sh (func_all_modules): Add getnline.
83178
83179 2003-07-17  Bruno Haible  <bruno@clisp.org>
83180
83181         * m4/getnline.m4: New file.
83182
83183 2003-07-17  Bruno Haible  <bruno@clisp.org>
83184
83185         * m4/Makefile.am.in: Remove file.
83186         * m4/Makefile.am: Remove file.
83187         * m4/Makefile.in: Remove file.
83188
83189 2003-07-17  Bruno Haible  <bruno@clisp.org>
83190
83191         * lib/getnline.h: New file.
83192         * lib/getnline.c: New file.
83193         * lib/getndelim2.c: New file, extracted from getline.c.
83194         (getndelim2): Renamed from getdelim2, with added nmax argument.
83195         * lib/getline.c: Include getndelim2.c.
83196         (getdelim2): Moved out to getndelim2.c.
83197         (getline, getdelim): Update.
83198
83199 2003-07-17  Bruno Haible  <bruno@clisp.org>
83200
83201         * lib/Makefile.am: Remove file.
83202         * lib/Makefile.in: Remove file.
83203
83204 2003-07-17  Bruno Haible  <bruno@clisp.org>
83205
83206         * configure.in: Remove file.
83207         * Makefile.in: Remove file.
83208
83209 2003-07-17  Bruno Haible  <bruno@clisp.org>
83210
83211         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83212
83213 2003-07-16  Karl Berry  <karl@gnu.org>
83214
83215         * config/srclist-update: was running fixlicense twice, which caused
83216                 texinfo.tex to be nullified for some reason.  Simplify,
83217                 $gplsrc is no longer needed as far as I can see?
83218
83219 2003-07-16  Jim Meyering  <jim@meyering.net>
83220
83221         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83222
83223 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83224
83225         * config/srclist.txt: Get the following files from gettext-runtime/intl
83226         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83227         ref-del.sin.  From Bruno Haible.
83228         * config/srclist-update (fixfile): Change grep pattern again, since the
83229         previous fix didn't work (there was another trailing $).  Use
83230         '[$]' to escape the $s.
83231
83232 2003-07-15  Karl Berry  <karl@gnu.org>
83233
83234         * lib/vasnprintf.c: update from gettext.
83235
83236 2003-07-15  Karl Berry  <karl@gnu.org>
83237
83238         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83239         gets expanded when surrounded by '$'.
83240
83241 2003-07-15  Jim Meyering  <jim@meyering.net>
83242
83243         * modules/save-cwd: Don't depend on error.  From Derek Price.
83244
83245 2003-07-15  Jim Meyering  <jim@meyering.net>
83246
83247         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83248
83249 2003-07-14  Simon Josefsson  <jas@extundo.com>
83250
83251         * modules/mempcpy: New file.
83252         * MODULES.html.sh (func_all_modules): Add mempcpy.
83253
83254 2003-07-14  Simon Josefsson  <jas@extundo.com>
83255
83256         * m4/mempcpy.m4: New file.
83257
83258 2003-07-14  Simon Josefsson  <jas@extundo.com>
83259
83260         * lib/mempcpy.h: New file.
83261         * lib/mempcpy.c: New file.
83262
83263 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83264
83265         * modules/getdate, modules/posixtm: Depend on mktime.
83266
83267 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83268
83269         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83270         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83271         unicodeio.c, unicodeio.h, unlocked-io.h:
83272         Switch from LGPL to GPL.
83273
83274 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83275
83276         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83277         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83278         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83279         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83280         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83281         updated automatically by ../config/srclist-update.  This changes
83282         their license from LPGL to GPL.
83283
83284 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83285
83286         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83287         assumed to refer to the root of the most recent stable gettext version.
83288         * config/srclistvars.sh: Add defaults for eggert.
83289         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83290         Match "This program" as well as "The program".  This is needed
83291         for gettext.
83292
83293 2003-07-14  Jim Meyering  <jim@meyering.net>
83294
83295         Don't emit diagnostics.  Let callers do that.
83296         * lib/save-cwd.c: Don't include "error.h".
83297         (save_cwd): Don't call error.  Ensure that errno is valid
83298         when returning nonzero.
83299
83300         * lib/save-cwd.h (restore_cwd): Update prototype.
83301         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83302         Simplify.  Don't call error upon failure.  Let callers do that.
83303         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83304         when auditing is enabled.  But don't bother updating the #if.
83305
83306 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83307
83308         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83309         it breaks C++ compilation.
83310         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83311
83312 2003-07-10  Simon Josefsson  <jas@extundo.com>
83313
83314         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83315
83316 2003-07-10  Jim Meyering  <jim@meyering.net>
83317
83318         * m4/clock_time.m4: Remove trailing blank.
83319         * m4/intmax_t.m4: Likewise.
83320
83321 2003-07-10  Jim Meyering  <jim@meyering.net>
83322
83323         * lib/vasnprintf.c: Remove trailing blanks.
83324         Make cpp indentation consistent.
83325
83326 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83327
83328         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83329         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83330         Switch from LGPL to GPL.
83331
83332 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83333
83334         * config/srclist.txt: Sort sublists.  Add
83335         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83336         that differ from gnulib for one reason or another; we'd like this list
83337         to be smaller but for now let's document what we have.
83338
83339 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83340
83341         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83342         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83343         and sweeter "eval x=$x".
83344         * config/srclist.txt: Get lib/argp* from glibc.
83345
83346 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83347
83348         * lib/mktime.c: Fix some boundary cases and remove need for floating
83349         point.
83350
83351         Issue a compile-time diagnostic if time_t is floating point, or if
83352         two's complement arithmetic is not in effect, or if arithmetic
83353         right shift does not propagate the sign.  These assumptions were
83354         all in the original code but they weren't checked.
83355
83356         (TIME_T_MIDPOINT, verify): New macros.
83357         (__isleap): Remove; it has integer overflow problems.
83358         (leapyear): New function, without those problems.
83359         (ydhms_tm_diff): Remove; splitting into two parts.
83360         (ydhms_diff): New function, containing the arithmetic part of
83361         the old ydhms_tm_diff function.  Issue a compile-time
83362         diagnostic if we are not using C99 integer division.
83363         Avoid casts when possible.
83364         (guess_time_tm): New function, containing the checking part of
83365         the old ydhms_tm_diff function.  Return the new value, rather than
83366         the difference between it and the old.  Accept a new argument T
83367         so that *T specifies the old value.  Check for overflow in the result.
83368
83369         (__mktime_internal): Use a time_t offset, not a long int offset.
83370         This undoes the 2003-06-04 change, which is no longer needed now
83371         that we have better overflow checking.
83372         (localtime_offset): Likewise.
83373
83374         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83375         and long are 64-bit but int is only 32-bit.
83376         (ydhms_diff): Use long int to store year1 and yday1.
83377         Issue a compile-time diagnostic if long int is not wide enough.
83378
83379         (__mktime_internal): Use long int to store adjusted year and yday.
83380         Use plain C rather than preprocessor commands, if that doesn't
83381         affect efficiency.
83382         Check for overflow (and try to repair) after each probe
83383         rather than checking only at the very end.  This avoids some bugs
83384         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83385         does not equal GMT offset at maximum time).
83386         Use integer to check for overflow rather than floating point; this
83387         is more portable to non-IEEE hosts, and is a tad faster.
83388         When we detect that we are oscillating between two values,
83389         don't check whether tm_isdst has the requested value, since
83390         we already know the answer.  When tm_isdst has the wrong value,
83391         use a different heuristic to find the right one, based on the
83392         extreme values actually observed in practice in tz2003a,
83393         rather than the (overly optimistic) "previous 3 calendar quarters".
83394
83395         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83396         "T const" to accommodate glibc style.
83397         (check_result): Use less-confusing report format.  "long" -> "long int.
83398         (main): Likewise.
83399         Don't loop if the iteration overflows time_t.
83400         Allow a negative step in the iteration.
83401
83402 2003-07-06  Karl Berry  <karl@gnu.org>
83403
83404         * config/depcomp: update from automake.
83405         * config/config.sub: update from prep.
83406
83407 2003-07-03  Karl Berry  <karl@gnu.org>
83408
83409         * config/config.guess: update from prep.
83410
83411 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83412
83413         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83414         xreadlink.c now includes it unconditionally.
83415
83416 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83417
83418         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83419         having it depend on HAVE_SYS_TYPES_H.
83420
83421 2003-07-01  Bruno Haible  <bruno@clisp.org>
83422
83423         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83424         <sys/types.h> should be sufficient.
83425         Reported by Paul Eggert.
83426
83427 2003-06-26  Karl Berry  <karl@gnu.org>
83428
83429         * config/depcomp: update from automake.
83430
83431 2003-06-26  Bruno Haible  <bruno@clisp.org>
83432
83433         * modules/human: Depend on module stdbool.
83434
83435 2003-06-25  Bruno Haible  <bruno@clisp.org>
83436
83437         * modules/readlink: New file.
83438         * modules/xreadlink: Depend on it.
83439         * MODULES.html.sh (func_all_modules): Add readlink.
83440
83441 2003-06-25  Bruno Haible  <bruno@clisp.org>
83442
83443         * m4/readlink.m4: New file.
83444
83445 2003-06-25  Bruno Haible  <bruno@clisp.org>
83446
83447         * lib/readlink.c: New file.
83448
83449 2003-06-22  Karl Berry  <karl@gnu.org>
83450
83451         * config/srclist.txt: update mkinstalldirs from automake.
83452         * config/mkinstalldirs: update.
83453
83454 2003-06-22  Bruno Haible  <bruno@clisp.org>
83455
83456         Portability to mingw32.
83457         * m4/ssize_t.m4: New file, from GNU gettext.
83458         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83459         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83460
83461 2003-06-22  Bruno Haible  <bruno@clisp.org>
83462
83463         * modules/safe-read: Add m4/ssize_t.m4.
83464         * modules/xreadlink: Add m4/ssize_t.m4.
83465
83466 2003-06-20  Bruno Haible  <bruno@clisp.org>
83467
83468         Assume C89, so PARAMS isn't needed.
83469         * lib/unicodeio.h (PARAMS): Remove.
83470         * lib/unicodeio.c: Don't use PARAMS.
83471
83472 2003-06-18  Karl Berry  <karl@gnu.org>
83473
83474         * config/config.{guess,sub}: update from prep.
83475
83476 2003-06-18  Jim Meyering  <jim@meyering.net>
83477
83478         Merge changes from coreutils.
83479         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83480         Remove explicit declarations of xmalloc and realloc.
83481         Include xalloc.h.
83482         (read_utmp): Remove anachronistic cast of xmalloc.
83483
83484 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83485
83486         Assume C89, so PARAMS isn't needed.
83487         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83488         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83489         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83490         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83491         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83492         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83493         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83494         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83495         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83496         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83497         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83498         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83499         no longer needed. Anyway, config.h should always be included before any
83500         other file.
83501
83502 2003-06-11  Simon Josefsson  <jas@extundo.com>
83503
83504         * modules/sysexits: New file.
83505         * MODULES.html.sh (func_all_modules): Add sysexits.
83506
83507 2003-06-11  Simon Josefsson  <jas@extundo.com>
83508
83509         * lib/sysexit_.h: New file.
83510
83511 2003-06-11  Derek Price  <derek@ximbiot.com>
83512
83513         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83514         necessary.
83515
83516 2003-06-11  Bruno Haible  <bruno@clisp.org>
83517
83518         * m4/sysexits.m4: New file.
83519
83520 2003-06-10  Simon Josefsson  <jas@extundo.com>
83521
83522         * lib/argp.h: New file, from glibc.
83523         * lib/argp-ba.c: New file, from glibc.
83524         * lib/argp-eexst.c: New file, from glibc.
83525         * lib/argp-fmtstream.c: New file, from glibc.
83526         * lib/argp-fmtstream.h: New file, from glibc.
83527         * lib/argp-fs-xinl.c: New file, from glibc.
83528         * lib/argp-help.c: New file, from glibc.
83529         * lib/argp-namefrob.h: New file, from glibc.
83530         * lib/argp-parse.c: New file, from glibc.
83531         * lib/argp-pv.c: New file, from glibc.
83532         * lib/argp-pvh.c: New file, from glibc.
83533         * lib/argp-xinl.c: New file, from glibc.
83534
83535 2003-06-10  Simon Josefsson  <jas@extundo.com>
83536
83537         * modules/strchrnul: New file.
83538
83539 2003-06-10  Simon Josefsson  <jas@extundo.com>
83540
83541         * modules/argp: New file.
83542
83543 2003-06-10  Simon Josefsson  <jas@extundo.com>
83544
83545         * m4/strchrnul.m4: New file.
83546
83547 2003-06-10  Simon Josefsson  <jas@extundo.com>
83548
83549         * lib/strchrnul.h: New file.
83550         * lib/strchrnul.c: New file.
83551
83552 2003-06-10  Bruno Haible  <bruno@clisp.org>
83553
83554         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83555
83556 2003-06-07  Karl Berry  <karl@gnu.org>
83557
83558         * config/config.{guess,sub}: update from prep.
83559
83560 2003-06-07  Jim Meyering  <jim@meyering.net>
83561
83562         * modules/strtod: Use $(...) notation, not @...@ for
83563         AC_REPLACE'd variables.
83564         * modules/localcharset: Likewise.
83565
83566 2003-06-07  Jim Meyering  <jim@meyering.net>
83567
83568         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83569         in place of my name in the copyright comment.
83570         Remove definition and uses of __P.
83571
83572         From coreutils.
83573         * lib/stat.c: Don't declare xmalloc explicitly.
83574         Instead, include "xalloc.h".
83575         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83576         xrealloc, and xcalloc return values.
83577         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83578         Improve comment.
83579         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83580
83581 2003-06-07  Bruno Haible  <bruno@clisp.org>
83582
83583         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83584         avoid AC_CONFIG_LINKS.
83585         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83586         fnmatch.h, to avoid AC_CONFIG_LINKS.
83587         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83588
83589 2003-06-07  Bruno Haible  <bruno@clisp.org>
83590
83591         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83592         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83593         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83594         directory.
83595         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83596         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83597         directory.
83598
83599 2003-06-06  Jim Meyering  <jim@meyering.net>
83600
83601         Merge from coreutils.
83602         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83603         Consolidate declarations and initializations of *_base* locals.
83604
83605         Merge from coreutils.
83606         This avoids a core dump on systems without GNU putenv,
83607         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83608         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83609         (unsetenv): New static function, from GNU libc.
83610         (rpl_putenv): Use it.
83611
83612         * lib/modechange.c: Remove trailing blanks.
83613
83614         Merge from coreutils.
83615         * lib/fsusage.c: Remove declaration of statfs.
83616         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83617
83618         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83619
83620 2003-06-06  Jim Meyering  <jim@meyering.net>
83621
83622         * lib/stdbool_.h: Renamed from stdbool.h.in.
83623
83624 2003-06-06  Jim Meyering  <jim@meyering.net>
83625             Bruno Haible  <bruno@clisp.org>
83626
83627         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83628         Adjust Makefile.am snippet not to redirect directly to target.
83629         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83630
83631 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83632
83633         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83634         mismatch, look in future quarters as well as past.  This fixes a
83635         bug when processing fall-backwards gaps immediately after a long
83636         period of daylight-saving time.
83637
83638         * lib/mktime.c: Assume freestanding C89 or better.
83639         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83640         (__P): Remove; not used.
83641         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83642         (mktime, not_equal_tm, print_tm, check_result,
83643         main): Use prototypes.  Use const * where appropriate.
83644         (main): Fix typo in testing code that uncovered by above changes.
83645         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83646
83647 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83648
83649         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83650         locale.h, localeconv.  This merges changes from coreutils.
83651
83652         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83653         It can be removed after the next Autoconf is released.
83654         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83655         needed.
83656
83657 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83658
83659         * lib/mktime.c: Fix Debian bug 177940
83660         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83661         (localtime_offset): Now long int, not time_t, because we want it
83662         to be guaranteed to be signed.  All uses changed.
83663         (__mktime_internal): If overflow would occur when adding offset,
83664         don't add it.
83665
83666         Merge 'human' changes from coreutils.  Rewrite to support
83667         locale-specific notations like thousands separators.
83668         * lib/human.c: Simplify authorship notice.
83669         Include human.h immediately after config.h.
83670         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83671         <limits.h>: Do not include, since human.h does.
83672         (SIZE_MAX, UINTMAX_MAX): New macros.
83673         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83674         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83675         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83676         (power_letter): Renamed from suffixes.
83677         (generate_suffix_backwards): Remove.
83678         (adjust_value): Now takes int style (because of human.h changes)
83679         and long double value (for greater precision on some platforms).
83680         (group_number): New function.
83681         (human_readable): Use it.  Use integer options, not enum.
83682         Put the options before the sizes in the arg list.
83683         Support all the new options.
83684         The old human_readable function has been removed;
83685         use inttostr.h instead.
83686         (human_readable, default_block_size, humblock):
83687         Use uintmax_t, not int, for block sizes.
83688         (human_readable_inexact, block_size_types): Remove.
83689         (block_size_opts): New constant.
83690         (human_options): Renamed from human_block_size, with new signature
83691         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83692         * lib/human.h: Add copyright and authorship notice.
83693         Include <limits.h> and <stdbool.h> unconditionally.
83694         (PARAMS): Remove.  All uses removed.
83695         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83696         (enum human_inexact_style): Remove tag; now a nameless enum.
83697         (human_floor, human_ceiling, human_round_to_even): Now have
83698         values 2, 0, 1 rather than -1, 1, 0.
83699         (human_group_digits, human_suppress_point_zero, human_autoscale,
83700         human_base_1024, human_SI, human_B): New constants.
83701         (human_readable_inexact, human_block_size): Remove.
83702         (human_readable): Size args are now uintmax_t, not int.
83703         (human_options): New decl.
83704
83705         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83706         unnecessary now that we assume C89 or better.  This change
83707         imported from coreutils.
83708
83709         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83710         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83711         in the 2003-05-30 sync from glibc.
83712
83713         .h files should stand alone, but we shouldn't include <sys/types.h>
83714         if we can get away with just <stddef.h>.
83715
83716         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83717         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83718         rather than <sys/types.h>, as we merely need size_t.
83719         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83720         to get size_t.
83721         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83722         Include <stdio.h>, to get FILE.
83723         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83724         memcasecmp.h has included <stddef.h> and all we need is size_t.
83725         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83726         our interface, instead of including <sys/types.h>
83727
83728 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83729
83730         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83731         now, as glibc mktime is buggy on non-glibc systems.
83732
83733 2003-06-03  Karl Berry  <karl@gnu.org>
83734
83735         * config/config.sub: update from prep.
83736
83737 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83738
83739         [from coreutils]
83740         Fix some minor time-related bugs with POSIX time arguments.
83741         Some valid time stamps were being rejected (notably -1, and
83742         time stamps before 1900 on 64-bit hosts).  And some invalid
83743         time stamps were being accepted, e.g. September 31.
83744
83745         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83746         that we can return (time_t) -1 successfully.
83747         * lib/posixtm.c: Likewise.
83748         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83749         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83750         (t): Remove static var.
83751         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83752         of static var.  All uses changed.
83753         (year): Do not reject years before 1900; they can occur with
83754         64-bit time_t.
83755         (posix_time_parse): Do not check for out-of-range components;
83756         that is now the caller's responsibility, since our checks were
83757         only approximations.
83758         (posixtime): Use mktime to check for out-of-range components,
83759         since it knows them exactly.
83760         If mktime returns (time_t) -1, check whether an error actually occurred
83761         by invoking localtime on -1.
83762         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83763         posixtime failures better.
83764         Improve the test data (in comments only).
83765
83766 2003-06-02  Karl Berry  <karl@gnu.org>
83767
83768         * config/mkinstalldirs (version): new variable.
83769         (--version): new option.
83770         (usage): improve message.
83771
83772 2003-05-30  Karl Berry  <karl@gnu.org>
83773
83774         * lib/mktime.c: update from libc.
83775
83776 2003-05-30  Bruno Haible  <bruno@clisp.org>
83777
83778         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83779         * config/config.rpath: Upgrade to gettext-0.12.1.
83780
83781 2003-05-30  Bruno Haible  <bruno@clisp.org>
83782
83783         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83784         * m4/nls.m4: New file, from gettext-0.12.1.
83785         * m4/po.m4: New file, from gettext-0.12.1.
83786         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83787
83788 2003-05-30  Bruno Haible  <bruno@clisp.org>
83789
83790         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83791         * lib/localcharset.h: Likewise.
83792         * lib/localcharset.c: Likewise.
83793
83794 2003-05-29  Karl Berry  <karl@gnu.org>
83795
83796         * config/config.rpath: update from gettext.
83797
83798 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83799
83800         Assume the headers required for C89 freestanding compilers.
83801         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83802         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83803         * m4/human.m4 (gl_HUMAN): Likewise.
83804         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83805         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83806         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83807         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83808         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83809         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83810
83811 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83812
83813         Assume the headers required for C89 freestanding compilers.
83814         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83815         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83816         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83817         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83818         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83819         define, since <limits.h> is guaranteed to do that.
83820         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83821         * lib/exclude.c: Include <stdbool.h> unconditionally.
83822         * lib/tempname.c: Include <stddef.h> unconditionally.
83823         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83824         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83825         <stddef.h> does that.
83826         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83827         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83828         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83829         needed.
83830         * lib/xstrtol.c: Likewise.
83831         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83832         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83833
83834         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83835         warnings on some platforms.
83836
83837         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83838         arbitrarily.
83839
83840 2003-05-26  Jim Meyering  <jim@meyering.net>
83841
83842         Merge in a change from coreutils:
83843         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83844         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83845         that condition, rather than `-1' which is slightly misleading.
83846         Change the name of the cache variable to have the gl_ prefix.
83847         Prompted by a patch from Richard Dawe for DJGPP.
83848
83849 2003-05-24  Karl Berry  <karl@gnu.org>
83850
83851         * config/config.guess: update from prep.
83852
83853 2003-05-22  Karl Berry  <karl@gnu.org>
83854
83855         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83856
83857 2003-05-20  Karl Berry  <karl@gnu.org>
83858
83859         * config/config.guess: update from prep.
83860
83861 2003-05-18  Karl Berry  <karl@gnu.org>
83862
83863         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83864         might actually be set by the user.
83865
83866         * config/depcomp, install-sh, mdate-sh: update from automake.
83867
83868 2003-05-17  Bruno Haible  <bruno@clisp.org>
83869
83870         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83871         invalid expansion for AC_EGREP_CPP.
83872         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83873         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83874         Suggested by Akim Demaille <akim@epita.fr> in
83875         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83876
83877 2003-05-12  Jim Meyering  <jim@meyering.net>
83878
83879         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83880         the space-padded-by-default conversion specifiers, %e, %k, %l.
83881
83882 2003-05-12  Bruno Haible  <bruno@clisp.org>
83883
83884         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83885         the string is longer than 4 KB.
83886
83887 2003-05-11  Karl Berry  <karl@gnu.org>
83888
83889         * config/config.{guess,sub}: update from prep.
83890
83891 2003-05-09  Bruno Haible  <bruno@clisp.org>
83892
83893         * modules/error: Add m4/strerror_r.m4 to file list.
83894
83895 2003-05-03  Bruno Haible  <bruno@clisp.org>
83896
83897         Upgrade to Unicode-4.0.
83898         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83899         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83900         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83901         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83902         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83903         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83904         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83905         Change width of U+E0100..U+E01EF from 1 to 0.
83906
83907 2003-04-25  Jim Meyering  <jim@meyering.net>
83908
83909         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83910         of type size_t, not int.
83911
83912 2003-04-25  Bruno Haible  <bruno@clisp.org>
83913
83914         * lib/copy-file.c: Include <stddef.h>, for size_t.
83915
83916 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83917
83918         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83919         code which expansion is under static control.  Patch imported from
83920         Akim Demaille's patch to Bison; see
83921         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83922
83923 2003-04-14  Bruno Haible  <bruno@clisp.org>
83924
83925         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83926
83927 2003-04-11  Jim Meyering  <jim@meyering.net>
83928
83929         Merge changes from Coreutils.
83930
83931         2003-03-22  Jim Meyering  <jim@meyering.net>
83932
83933         * lib/strftime.c (widen): Cast alloca return value to proper type.
83934
83935         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83936
83937         From GNU libc.
83938         * lib/strftime.c (my_strftime): Handle very large width
83939         specifications for numeric values correctly.  Improve checks for
83940         overflow.
83941
83942         2003-01-19  Jim Meyering  <jim@meyering.net>
83943
83944         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83945         definitions.
83946         (nl_get_alt_digit) [! defined my_strftime]: Define.
83947         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83948         _nl_get_alt_digit and _nl_get_walt_digit.
83949
83950         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83951         libc. These changes have no effect outside of _LIBC.
83952
83953 2003-04-10  Bruno Haible  <bruno@clisp.org>
83954
83955         * modules/findprog: New file.
83956         * MODULES.html.sh (func_all_modules): Add it.
83957
83958 2003-04-10  Bruno Haible  <bruno@clisp.org>
83959
83960         * m4/findprog.m4: New file.
83961         * m4/eaccess.m4: New file.
83962
83963 2003-04-10  Bruno Haible  <bruno@clisp.org>
83964
83965         * lib/findprog.h: New file, from GNU gettext.
83966         * lib/findprog.c: New file, from GNU gettext.
83967
83968 2003-04-05  Jim Meyering  <jim@meyering.net>
83969
83970         Merge changes from Coreutils.
83971
83972         * lib/exclude.h (PARAMS): Remove definition and uses.
83973         * lib/exclude.c: Remove uses of `PARAMS'.
83974
83975         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83976         Add test-cases for DOS filenames. Declare program_name.
83977         (main): Set up program_name.  Patch by Rich Dawe.
83978
83979         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83980         error from mntctl.
83981         Use mntctl's return value to drive the entry-processing loop, since
83982         we can't rely on the value of the vmt_length member in the last
83983         entry.  On some systems doing so could result in exhausting
83984         virtual memory.  Based in part on a patch from Mike Jetzer.
83985
83986 2003-04-04  Bruno Haible  <bruno@clisp.org>
83987
83988         * modules/linebreak: New file.
83989         * MODULES.html.sh (func_all_modules): Add it.
83990
83991 2003-04-04  Bruno Haible  <bruno@clisp.org>
83992
83993         * m4/linebreak.m4: New file.
83994
83995 2003-04-04  Bruno Haible  <bruno@clisp.org>
83996
83997         * lib/linebreak.h: New file, from GNU gettext.
83998         * lib/linebreak.c: New file, from GNU gettext with slight
83999         modifications.
84000         * lib/lbrkprop.h: New file, from GNU gettext.
84001
84002 2003-04-03  Bruno Haible  <bruno@clisp.org>
84003
84004         * modules/utf8-ucs4: New file.
84005         * modules/utf16-ucs4: New file.
84006         * modules/ucs4-utf8: New file.
84007         * modules/ucs4-utf16: New file.
84008         * MODULES.html.sh (func_all_modules): Add them.
84009
84010 2003-04-03  Bruno Haible  <bruno@clisp.org>
84011
84012         * m4/utf-ucs4.m4: New file.
84013         * m4/ucs4-utf.m4: New file.
84014
84015 2003-04-03  Bruno Haible  <bruno@clisp.org>
84016
84017         * lib/utf8-ucs4.h: New file, from GNU gettext.
84018         * lib/utf16-ucs4.h: New file, from GNU gettext.
84019         * lib/ucs4-utf8.h: New file, from GNU gettext.
84020         * lib/ucs4-utf16.h: New file, from GNU gettext.
84021
84022 2003-04-02  Bruno Haible  <bruno@clisp.org>
84023
84024         * modules/binary-io: New file.
84025         * MODULES.html.sh (func_all_modules): Add it.
84026
84027 2003-04-02  Bruno Haible  <bruno@clisp.org>
84028
84029         * lib/binary-io.h: New file, from GNU gettext.
84030
84031 2003-04-01  Bruno Haible  <bruno@clisp.org>
84032
84033         * modules/pathname: New file.
84034         * MODULES.html.sh (func_all_modules): Add it.
84035
84036 2003-04-01  Bruno Haible  <bruno@clisp.org>
84037
84038         * lib/pathname.h: New file, from GNU gettext.
84039         * lib/concatpath.c: New file, from GNU gettext.
84040
84041 2003-03-30  Bruno Haible  <bruno@clisp.org>
84042
84043         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84044
84045 2003-03-30  Bruno Haible  <bruno@clisp.org>
84046
84047         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84048         function chown() doesn't exist.
84049
84050 2003-03-28  Bruno Haible  <bruno@clisp.org>
84051
84052         * modules/copy-file: New file.
84053         * MODULES.html.sh (func_all_modules): Add it.
84054
84055 2003-03-28  Bruno Haible  <bruno@clisp.org>
84056
84057         * m4/copy-file.m4: New file.
84058
84059 2003-03-28  Bruno Haible  <bruno@clisp.org>
84060
84061         * lib/copy-file.h: New file, from GNU gettext.
84062         * lib/copy-file.c: New file, from GNU gettext.
84063
84064 2003-03-18  Jim Meyering  <jim@meyering.net>
84065
84066         * lib/quote.c (quote_n): Fix typo in comment.
84067
84068 2003-03-18  Bruno Haible  <bruno@clisp.org>
84069
84070         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84071         checking.
84072         * m4/onceonly_2_57.m4: Likewise.
84073
84074 2003-03-17  Bruno Haible  <bruno@clisp.org>
84075
84076         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84077         (m4_quote): Remove macro.
84078         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84079
84080 2003-03-14  Jim Meyering  <jim@meyering.net>
84081
84082         Merge changes from Coreutils.
84083         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84084         to be const, in order to avoid warnings.
84085         (obstack_room): Likewise.
84086         (obstack_empty_p): Likewise.
84087
84088 2003-03-14  Bruno Haible  <bruno@clisp.org>
84089
84090         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84091         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84092
84093 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84094
84095         Merge changes from Bison.
84096         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84097         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84098         when compiling Bison 1.875's `bitset bset = obstack_alloc
84099         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84100         * lib/hash.c: Include <stdbool.h> unconditionally.
84101
84102 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84103
84104         * m4/onceonly.m4 (m4_quote): New macro.
84105         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84106         Quote AC_FOREACH variable-expansions properly.
84107
84108 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84109
84110         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84111
84112 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84113
84114         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84115         Reported by Bruce Becker; see:
84116         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84117
84118 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84119             Bruno Haible  <bruno@clisp.org>
84120
84121         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84122         Reported by John Hughes, see
84123         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84124
84125 2003-02-20  Bruno Haible  <bruno@clisp.org>
84126
84127         * MODULES.html.sh (func_all_modules): Add poll.
84128
84129 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84130
84131         * modules/poll: New file.
84132
84133 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84134
84135         * lib/poll_.h: New file.
84136         * lib/poll.c: New file.
84137
84138 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84139
84140         * m4/poll.m4: New file.
84141
84142 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84143
84144         * modules/mathl: New file.
84145
84146 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84147
84148         * lib/mathl.h: New file.
84149         * lib/acosl.c: New file.
84150         * lib/asinl.c: New file.
84151         * lib/atanl.c: New file.
84152         * lib/ceill.c: New file.
84153         * lib/cosl.c: New file.
84154         * lib/expl.c: New file.
84155         * lib/floorl.c: New file.
84156         * lib/frexpl.c: New file.
84157         * lib/ldexpl.c: New file.
84158         * lib/logl.c: New file.
84159         * lib/sincosl.c: New file.
84160         * lib/sinl.c: New file.
84161         * lib/sqrtl.c: New file.
84162         * lib/tanl.c: New file.
84163         * lib/trigl.c: New file.
84164         * lib/trigl.h: New file.
84165
84166 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84167
84168         * m4/mathl.m4: New file.
84169
84170 2003-02-18  Bruno Haible  <bruno@clisp.org>
84171
84172         * MODULES.html.sh (func_all_modules): Add mathl.
84173
84174 2003-02-17  Bruno Haible  <bruno@clisp.org>
84175
84176         * modules/mkdtemp: New module.
84177         * MODULES.html.sh (func_all_modules): Add it.
84178
84179 2003-02-17  Bruno Haible  <bruno@clisp.org>
84180
84181         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84182
84183 2003-02-17  Bruno Haible  <bruno@clisp.org>
84184
84185         * lib/mkdtemp.h: New file, from GNU gettext.
84186         * lib/mkdtemp.c: New file, from GNU gettext.
84187
84188 2003-02-02  Jim Meyering  <jim@meyering.net>
84189
84190         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84191         e.g. glibc-2.2.93.
84192
84193 2003-01-31  Bruno Haible  <bruno@clisp.org>
84194
84195         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84196         'rpl_rename'.
84197         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84198         'rpl_strnlen'.
84199         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84200         'rpl_strtod'.
84201         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84202         'rpl_utime'.
84203
84204 2003-01-31  Bruno Haible  <bruno@clisp.org>
84205
84206         * lib/rename.c: #undef rename before defining rpl_rename.
84207         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84208
84209 2003-01-30  Bruno Haible  <bruno@clisp.org>
84210
84211         * modules/vasnprintf, modules/vasprintf: New modules.
84212         * MODULES.html.sh (func_all_modules): Add them.
84213
84214 2003-01-30  Bruno Haible  <bruno@clisp.org>
84215
84216         * m4/signed.m4: New file, from GNU gettext.
84217         * m4/longdouble.m4: New file, from GNU gettext.
84218         * m4/wchar_t.m4: New file, from GNU gettext.
84219         * m4/wint_t.m4: New file, from GNU gettext.
84220         * m4/vasnprintf.m4: New file.
84221         * m4/vasprintf.m4: New file.
84222
84223 2003-01-30  Bruno Haible  <bruno@clisp.org>
84224
84225         * lib/printf-args.h: New file, from GNU gettext.
84226         * lib/printf-args.c: New file, from GNU gettext.
84227         * lib/printf-parse.h: New file, from GNU gettext.
84228         * lib/printf-parse.c: New file, from GNU gettext.
84229         * lib/vasnprintf.h: New file, from GNU gettext.
84230         * lib/vasnprintf.c: New file, from GNU gettext.
84231         * lib/asnprintf.c: New file, from GNU gettext.
84232         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84233         * lib/vasprintf.c: New file, from GNU gettext.
84234         * lib/asprintf.c: New file, from GNU gettext.
84235
84236 2003-01-29  Bruno Haible  <bruno@clisp.org>
84237
84238         * modules/stpncpy: New module.
84239         * MODULES.html.sh (func_all_modules): Add it.
84240
84241 2003-01-29  Bruno Haible  <bruno@clisp.org>
84242
84243         * m4/stpncpy.m4: New file.
84244
84245 2003-01-29  Bruno Haible  <bruno@clisp.org>
84246
84247         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84248         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84249
84250 2003-01-28  Bruno Haible  <bruno@clisp.org>
84251
84252         * modules/c-ctype: New module.
84253         * MODULES.html.sh (func_all_modules): Add it.
84254
84255 2003-01-28  Bruno Haible  <bruno@clisp.org>
84256
84257         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84258         Paul Eggert.
84259         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84260         Paul Eggert.
84261
84262 2003-01-27  Bruno Haible  <bruno@clisp.org>
84263
84264         * modules/xsetenv: New module.
84265         * MODULES.html.sh (func_all_modules): Add it.
84266
84267 2003-01-27  Bruno Haible  <bruno@clisp.org>
84268
84269         * lib/xsetenv.h: New file, from GNU gettext.
84270         * lib/xsetenv.c: New file, from GNU gettext.
84271
84272 2003-01-23  Jim Meyering  <jim@meyering.net>
84273
84274         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84275         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84276
84277 2003-01-23  Bruno Haible  <bruno@clisp.org>
84278
84279         * modules/minmax: New module.
84280         * MODULES.html.sh (func_all_modules): Add it.
84281
84282 2003-01-23  Bruno Haible  <bruno@clisp.org>
84283
84284         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84285         Eggert.
84286
84287 2003-01-22  Bruno Haible  <bruno@clisp.org>
84288
84289         * modules/exit: New module.
84290         * MODULES.html.sh (func_all_modules): Add it.
84291
84292 2003-01-22  Bruno Haible  <bruno@clisp.org>
84293
84294         * lib/exit.h: New file, from GNU gettext.
84295
84296 2003-01-19  Bruno Haible  <bruno@clisp.org>
84297
84298         * gnulib-tool: Recognize option --extract-maintainer.
84299         (func_get_maintainer): New function.
84300         * modules/*: Add Maintainer entry.
84301
84302 2003-01-16  Jim Meyering  <jim@meyering.net>
84303
84304         * m4/regex.m4: The `regex' struct is both input and output.
84305         Initialize it before each use.  Patch by Tim Waugh.
84306
84307 2003-01-16  Bruno Haible  <bruno@clisp.org>
84308
84309         * MODULES.html.sh: Add a table of contents. Add the module name as
84310         leftmost column. Add hyperlinks.
84311
84312 2003-01-15  Bruno Haible  <bruno@clisp.org>
84313
84314         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84315
84316 2003-01-15  Bruno Haible  <bruno@clisp.org>
84317
84318         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84319         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84320         suffix.
84321
84322 2003-01-15  Bruno Haible  <bruno@clisp.org>
84323
84324         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84325
84326 2003-01-15  Bruno Haible  <bruno@clisp.org>
84327
84328         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84329         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84330
84331 2003-01-14  Jim Meyering  <jim@meyering.net>
84332
84333         * lib/same.c (same_name): Tweak a comment.
84334
84335 2003-01-14  Bruno Haible  <bruno@clisp.org>
84336
84337         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84338         when a string comparison is sufficient.
84339
84340 2003-01-14  Bruno Haible  <bruno@clisp.org>
84341
84342         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84343         'unsigned int'.
84344
84345 2003-01-14  Bruno Haible  <bruno@clisp.org>
84346
84347         * lib/hash-pjw.c: Add comment about low quality of this function.
84348
84349 2003-01-13  Bruno Haible  <bruno@clisp.org>
84350
84351         * modules/stpcpy: Distribute lib/stpcpy.h.
84352         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84353
84354 2003-01-13  Bruno Haible  <bruno@clisp.org>
84355
84356         * modules/*: Add a description.
84357         * modules/strpbrk: Fix Makefile.am snippet.
84358         * modules/strtoimax: Fix dependencies.
84359         * modules/strtoumax: Likewise.
84360
84361 2003-01-13  Bruno Haible  <bruno@clisp.org>
84362
84363         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84364         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84365         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84366
84367 2003-01-13  Bruno Haible  <bruno@clisp.org>
84368
84369         * gnulib-tool (func_create_testdir): Store config/* files in the main
84370         directory.
84371         * config.rpath: Move to ...
84372         * config/config.rpath: ... here.
84373         * modules/gettext: Contains config/config.rpath, not config.rpath.
84374         * modules/iconv: Likewise.
84375
84376 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84377
84378         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84379         to avoid collisions with libcurses and libreadline.
84380
84381         * m4/getstr.m4: Remove.
84382         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84383
84384 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84385
84386         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84387         to avoid collisions with libcurses and libreadline.
84388
84389         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84390         * lib/getstr.h, getstr.c: Remove.
84391         * lib/getline.c: Include "getline.h", to check interface.
84392         Move body of old getstr.c here: this defines MIN_CHUNK and
84393         declares getdelim2, which is renamed from getstr.
84394         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84395
84396         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84397         All uses changed.
84398         * lib/linebuffer.h: Likewise.
84399         (readline): Remove backward-compatibility macro.
84400
84401 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84402
84403         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84404         to avoid collisions with libcurses and libreadline.
84405         * getstr: Remove.
84406         * MODULES.html.sh: Remove getstr.
84407         * modules/getline: Depend on unlocked-io, not getstr.
84408
84409 2003-01-12  Jim Meyering  <jim@meyering.net>
84410
84411         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84412
84413 2003-01-10  Bruno Haible  <bruno@clisp.org>
84414
84415         * modules/alloca: Change Makefile.am requirements. Simplify Include
84416         requirements. Add lib/alloca_.h to file list.
84417
84418 2003-01-10  Bruno Haible  <bruno@clisp.org>
84419
84420         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84421
84422 2003-01-10  Bruno Haible  <bruno@clisp.org>
84423
84424         * lib/alloca_.h: New file.
84425         * lib/getdate.y: Unconditionally include alloca.h.
84426         * lib/makepath.c: Likewise.
84427         * lib/setenv.c: Likewise.
84428         * lib/userspec.c: Likewise.
84429
84430 2003-01-09  Karl Berry  <karl@gnu.org>
84431
84432         * MODULES.html.sh: include `dirname $0` in PATH, to find
84433         gnulib-tool.
84434
84435 2003-01-09  Bruno Haible  <bruno@clisp.org>
84436
84437         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84438         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84439
84440 2003-01-09  Bruno Haible  <bruno@clisp.org>
84441
84442         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84443
84444 2003-01-09  Bruno Haible  <bruno@clisp.org>
84445
84446         * lib/stdbool.h.in: New file.
84447
84448 2003-01-09  Bruno Haible  <bruno@clisp.org>
84449
84450         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84451         * MODULES.html.sh: Likewise.
84452
84453 2003-01-08  Jim Meyering  <jim@meyering.net>
84454
84455         * lib/full-write.c: Undefine and define-away `const' after inclusion
84456         of errno.h, not before.  Suggestion from Bruno Haible.
84457
84458 2003-01-08  Bruno Haible  <bruno@clisp.org>
84459
84460         * modules/full-read: Depend on full-write.
84461
84462 2003-01-08  Bruno Haible  <bruno@clisp.org>
84463
84464         * lib/safe-read.c: Include specification header first, to ensure its
84465         selfcontainedness.
84466         * lib/full-write.c: Likewise.
84467
84468 2003-01-07  Jim Meyering  <jim@meyering.net>
84469
84470         * lib/full-write.c: Rework so that it may serve to define full_read,
84471         too.
84472         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84473
84474 2003-01-07  Bruno Haible  <bruno@clisp.org>
84475
84476         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84477         <inttypes.h>.
84478         * lib/xstrtol.h: Likewise.
84479         * lib/xstrtoimax.c: Likewise.
84480         * lib/xstrtoumax.c: Likewise.
84481         * lib/human.h: Likewise.
84482
84483         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84484         on systems that have <inttypes.h> but not <stdint.h>.
84485
84486 2003-01-07  Bruno Haible  <bruno@clisp.org>
84487
84488         * MODULES.html.sh: Add copyright notice.
84489         (missed_files): Omit CVS directory entries.
84490         (func_module): Make it work with sed-3.02.
84491         * MODULES.txt: Remove file.
84492
84493 2003-01-06  Jim Meyering  <jim@meyering.net>
84494
84495         * lib/version-etc.c: Update year in translatable copyright string.
84496
84497 2003-01-03  Karl Berry  <karl@gnu.org>
84498
84499         * config/config.{guess,sub}: update from prep.
84500
84501 2003-01-02  Karl Berry  <karl@gnu.org>
84502
84503         * doc/COPYING.DOC: belatedly updated to 1.2.
84504
84505 2003-01-01  Karl Berry  <karl@gnu.org>
84506
84507         * gnulib-tool (func_verify_module): report module name $module in
84508         error message, not $1.
84509         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84510         be created, only if it doesn't exist.
84511         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84512
84513 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84514
84515         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84516
84517 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84518
84519         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84520         memcmp if strcoll doesn't work.
84521
84522 2002-12-31  Bruno Haible  <bruno@clisp.org>
84523
84524         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84525         nonempty.
84526
84527 2002-12-31  Bruno Haible  <bruno@clisp.org>
84528
84529         * lib/memcoll.c (STRCOLL): New macro.
84530         (memcoll): Use it.
84531
84532 2002-12-31  Bruno Haible  <bruno@clisp.org>
84533
84534         * lib/localcharset.h: New file.
84535         * lib/localcharset.c: Include it.
84536         * lib/unicodeio.c: Likewise.
84537
84538 2002-12-31  Bruno Haible  <bruno@clisp.org>
84539
84540         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84541         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84542
84543 2002-12-31  Bruno Haible  <bruno@clisp.org>
84544
84545         * lib/getline.h: Include <stddef.h>, for size_t.
84546
84547         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84548         * lib/unicodeio.c: Don't include <stddef.h>.
84549
84550 2002-12-31  Bruno Haible  <bruno@clisp.org>
84551
84552         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84553         HAVE_TM_ZONE.
84554
84555 2002-12-24  Karl Berry  <karl@gnu.org>
84556
84557         * config/config.guess: update from prep.
84558
84559 2002-12-24  Bruno Haible  <bruno@clisp.org>
84560
84561         General infrasructure.
84562         * m4/README: Rewritten.
84563         * m4/onceonly.m4: New file.
84564         * m4/onceonly_2_57.m4: New file.
84565
84566         Module atexit.
84567         * m4/atexit.m4: New file.
84568
84569         Module strtod.
84570         * m4/strtod.m4: New file.
84571
84572         Module strtol.
84573         * m4/strtol.m4: New file.
84574
84575         Module strtoul.
84576         * m4/strtoul.m4: New file.
84577
84578         Module memchr.
84579         * m4/memchr.m4: New file.
84580
84581         Module memcmp.
84582         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84583         (jm_FUNC_MEMCMP): Invoke it.
84584
84585         Module memcpy.
84586         * m4/memcpy.m4: New file.
84587
84588         Module memmove.
84589         * m4/memmove.m4: New file.
84590
84591         Module memset.
84592         * m4/memset.m4: New file.
84593
84594         Module strcspn.
84595         * m4/strcspn.m4: New file.
84596
84597         Module strpbrk.
84598         * m4/strpbrk.m4: New file.
84599
84600         Module strstr.
84601         * m4/strstr.m4: New file.
84602
84603         Module strerror.
84604         * m4/strerror.m4: New file.
84605
84606         Module mktime.
84607         * m4/mktime.m4: Renamed from jm-mktime.m4.
84608         (gl_PREREQ_MKTIME): New macro.
84609         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84610
84611         Module malloc.
84612         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84613         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84614         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84615
84616         Module realloc.
84617         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84618         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84619         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84620
84621         Module strftime.
84622         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84623         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84624         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84625         gl_TM_GMTOFF.
84626         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84627
84628         Module xalloc.
84629         * m4/xalloc.m4: New file.
84630
84631         Module alloca.
84632         * m4/alloca.m4: New file.
84633
84634         Module putenv.
84635         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84636         (jm_FUNC_PUTENV): Invoke it.
84637
84638         Module setenv.
84639         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84640         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84641         when invoked twice.
84642         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84643         gt_FUNC_SETENV.
84644
84645         Module memrchr.
84646         * m4/memrchr.m4: New file.
84647
84648         Module stpcpy.
84649         * m4/stpcpy.m4: New file.
84650
84651         Module strcase.
84652         * m4/strcase.m4: New file.
84653
84654         Module strdup.
84655         * m4/strdup.m4: New file.
84656
84657         Module strnlen.
84658         * m4/strnlen.m4: New file.
84659
84660         Module strndup.
84661         * m4/strndup.m4: New file.
84662
84663         Module xstrtod.
84664         * m4/xstrtod.m4: New file.
84665
84666         Module xstrtol.
84667         * m4/xstrtol.m4: New file.
84668
84669         Module getdate.
84670         * m4/getdate.m4: New file.
84671
84672         Module unlocked-io.
84673         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84674         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84675         * m4/jm-glibc-io.m4n: Remove file.
84676
84677         Module long-options.
84678         * m4/long-options.m4: New file.
84679
84680         Module md5.
84681         * m4/md5.m4: New file.
84682
84683         Module sha.
84684         * m4/sha.m4: New file.
84685
84686         Module getstr.
84687         * m4/getstr.m4: New file.
84688
84689         Module getline.
84690         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84691         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84692         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84693         simply getline. Infoke gl_PREREQ_GETLINE.
84694
84695         Module obstack.
84696         * m4/obstack.m4: New file.
84697
84698         Module hash.
84699         * m4/hash.m4: New file.
84700
84701         Module readtokens.
84702         * m4/readtokens.m4: New file.
84703
84704         Module strverscmp.
84705         * m4/strverscmp.m4: New file.
84706
84707         Module stdbool.
84708         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84709         OSF/1.
84710
84711         Module strtoll.
84712         * m4/strtoll.m4: New file.
84713
84714         Module strtoull.
84715         * m4/strtoull.m4: New file.
84716
84717         Module strtoimax.
84718         * m4/strtoimax.m4: New file.
84719
84720         Module strtoumax.
84721         * m4/strtoumax.m4: New file.
84722
84723         Module xstrtoimax.
84724         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84725         jm_AC_PREREQ_XSTRTOIMAX.
84726         Moved the strtol prerequisites to strtol.m4.
84727         Moved the strtoll prerequisites to strtoll.m4.
84728         Moved the strtoimax prerequisites to strtoimax.m4.
84729
84730         Module xstrtoumax.
84731         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84732         jm_AC_PREREQ_XSTRTOUMAX.
84733         Moved the strtoul prerequisites to strtoul.m4.
84734         Moved the strtoull prerequisites to strtoull.m4.
84735         Moved the strtoumax prerequisites to strtoumax.m4.
84736
84737         Module chown.
84738         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84739         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84740
84741         Module dup2.
84742         * m4/dup2.m4: New file.
84743
84744         Module ftruncate.
84745         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84746         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84747
84748         Module getgroups.
84749         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84750         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84751
84752         Module gettimeofday.
84753         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84754         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84755         gl_PREREQ_GETTIMEOFDAY.
84756
84757         Module mkdir.
84758         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84759         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84760
84761         Module mkstemp.
84762         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84763         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84764         jm_AC_TYPE_UINTMAX_T.
84765         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84766
84767         Module stat.
84768         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84769         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84770
84771         Module lstat.
84772         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84773         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84774
84775         Module timespec.
84776         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84777         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84778         * m4/st_mtim.m4: Indentation.
84779
84780         Module nanosleep.
84781         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84782         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84783         gl_PREREQ_NANOSLEEP.
84784
84785         Module regex.
84786         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84787         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84788         (gl_REGEX): New macro.
84789
84790         Module rename.
84791         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84792         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84793
84794         Module rmdir.
84795         * m4/rmdir.m4: New file.
84796
84797         Module utime.
84798         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84799         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84800         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84801
84802         Module dirname.
84803         * m4/dirname.m4: New file.
84804
84805         Module getopt.
84806         * m4/getopt.m4: New file.
84807
84808         Module unistd-safer.
84809         * m4/unistd-safer.m4: New file.
84810
84811         Module fnmatch.
84812         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84813         declaration.
84814         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84815         (gl_FUNC_FNMATCH_POSIX): New macro.
84816         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84817         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84818         simply fnmatch.
84819
84820         Module exclude.
84821         * m4/exclude.m4: New file.
84822
84823         Module human.
84824         * m4/human.m4: New file.
84825
84826         Module acl.
84827         * m4/acl.m4: Nop.
84828
84829         Module backupfile.
84830         * m4/backupfile.m4: New file.
84831         * m4/d-ino.m4: Indentation.
84832
84833         Module fsusage.
84834         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84835         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84836         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84837
84838         Module dirfd.
84839         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84840         requirements.
84841
84842         Module euidaccess.
84843         * m4/euidaccess.m4: New file.
84844
84845         Module file-type.
84846         * m4/file-type.m4: New file.
84847
84848         Module fileblocks.
84849         * m4/fileblocks.m4: New file.
84850
84851         Module filemode.
84852         * m4/filemode.m4: New file.
84853
84854         Module isdir.
84855         * m4/isdir.m4: New file.
84856
84857         Module lchown.
84858         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84859         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84860
84861         Module makepath.
84862         * m4/makepath.m4: New file.
84863
84864         Module modechange.
84865         * m4/modechange.m4: New file.
84866
84867         Module mountlist.
84868         * m4/mountlist.m4: New file.
84869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84870         Indentation.
84871
84872         Module path-concat.
84873         * m4/path-concat.m4: New file.
84874
84875         Module pathmax.
84876         * m4/pathmax.m4: New file.
84877
84878         Module same.
84879         * m4/same.m4: New file.
84880
84881         Module save-cwd.
84882         * m4/save-cwd.m4: New file.
84883
84884         Module savedir.
84885         * m4/savedir.m4: New file.
84886
84887         Module xgetcwd.
84888         * m4/xgetcwd.m4: New file.
84889         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84890
84891         Module xreadlink.
84892         * m4/xreadlink.m4: New file.
84893
84894         Module safe-read.
84895         * m4/safe-read.m4: New file.
84896
84897         Module safe-write.
84898         * m4/safe-write.m4: New file.
84899
84900         Module closeout.
84901         * m4/closeout.m4: New file.
84902
84903         Module stdio-safer.
84904         * m4/stdio-safer.m4: New file.
84905
84906         Module getpass.
84907         * m4/getpass.m4: New file.
84908
84909         Module getugroups.
84910         * m4/getugroups.m4: New file.
84911
84912         Module group-member.
84913         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84914         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84915
84916         Module idcache.
84917         * m4/idcache.m4: New file.
84918
84919         Module userspec.
84920         * m4/userspec.m4: New file.
84921
84922         Module gettime.
84923         * m4/clock_time.m4: New file.
84924         * m4/gettime.m4: New file.
84925
84926         Module settime.
84927         * m4/settime.m4: New file.
84928
84929         Module posixtm.
84930         * m4/posixtm.m4: New file.
84931
84932         Module gethostname.
84933         * m4/gethostname.m4: New file.
84934
84935         Module canon-host.
84936         * m4/canon-host.m4: New file.
84937
84938         Module gettext.
84939         * m4/codeset.m4: New file, from gettext-0.11.5.
84940         * m4/gettext.m4: New file, from gettext-0.11.5.
84941         * m4/glibc21.m4: New file, from gettext-0.11.5.
84942         * m4/iconv.m4: New file, from gettext-0.11.5.
84943         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84944         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84945         * m4/inttypes.m4: New file, from gettext-0.11.5.
84946         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84947         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84948         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84949         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84950         * m4/lib-link.m4: New file, from gettext-0.11.5.
84951         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84952         * m4/progtest.m4: New file, from gettext-0.11.5.
84953         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84954         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84955         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84956
84957         Module localcharset.
84958         * m4/localcharset.m4: New file.
84959
84960         Module hard-locale.
84961         * m4/hard-locale.m4: New file.
84962
84963         Module mbswidth.
84964         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84965         onceonly macros.
84966         * m4/mbrtowc.m4: Add comment.
84967
84968         Module memcasecmp.
84969         * m4/memcasecmp.m4: New file.
84970
84971         Module memcoll.
84972         * m4/memcoll.m4: New file.
84973
84974         Module unicodeio.
84975         * m4/unicodeio.m4: New file.
84976
84977         Module rpmatch.
84978         * m4/rpmatch.m4: New file.
84979
84980         Module yesno.
84981         * m4/yesno.m4: New file.
84982
84983         Module exitfail.
84984         * m4/exitfail.m4: New file.
84985
84986         Module c-stack.
84987         * m4/c-stack.m4 (gl_C_STACK): New macro.
84988         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84989
84990         Module error.
84991         * m4/error.m4 (gl_ERROR): New macro.
84992         (jm_PREREQ_ERROR): Use onceonly macros.
84993
84994         Module fatal.
84995         * m4/fatal.m4: New file.
84996
84997         Module getloadavg.
84998         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84999         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85000
85001         Module getpagesize.
85002         * m4/getpagesize.m4: New file.
85003
85004         Module getusershell.
85005         * m4/getusershell.m4: New file.
85006
85007         Module physmem.
85008         * m4/physmem.m4: New file.
85009
85010         Module posixver.
85011         * m4/posixver.m4: New file.
85012
85013         Module quotearg.
85014         * m4/quotearg.m4: New file.
85015
85016         Module quote.
85017         * m4/quote.m4: New file.
85018
85019         Module readutmp.
85020         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85021
85022         Module sig2str.
85023         * m4/sig2str.m4: New file.
85024
85025         Other.
85026         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85027         ulonglong.m4.
85028         * m4/intmax_t.m4: New file.
85029         * m4/d-type.m4: Indentation.
85030         * m4/jm-macros.m4: Update.
85031         * m4/prereq.m4 (jm_PREREQ): Update.
85032         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85033         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85034         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85035         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85036         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85037         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85038         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85039         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85040         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85041         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85042         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85043         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85044         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85045         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85046         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85047         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85048         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85049         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85050         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85051
85052 2002-12-24  Bruno Haible  <bruno@clisp.org>
85053
85054         * MODULES.txt: Update according to m4/ changes.
85055
85056         Module gettext.
85057         * config.rpath: New file, from gettext-0.11.5.
85058
85059         * modules/*: New module descriptions.
85060         * gnulib-tool: New file.
85061         * MODULES.html.sh: New file.
85062
85063 2002-12-21  Karl Berry  <karl@gnu.org>
85064
85065         * doc/fdl.texi: update to version 1.2.
85066
85067 2002-12-19  Karl Berry  <karl@gnu.org>
85068
85069         * config/config.guess: update from prep.
85070
85071 2002-12-18  Bruno Haible  <bruno@clisp.org>
85072
85073         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85074         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85075
85076 2002-12-17  Bruno Haible  <bruno@clisp.org>
85077
85078         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85079         stdlib.h, string.h.
85080
85081 2002-12-17  Bruno Haible  <bruno@clisp.org>
85082
85083         * lib/canon-host.c (strdup): Remove unused declaration.
85084
85085         * lib/fsusage.c: Include full_read.h.
85086         (get_fs_usage): Use full_read instead of safe_read.
85087
85088         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85089
85090 2002-12-12  Karl Berry  <karl@gnu.org>
85091
85092         * config/config.guess: update from prep.
85093
85094 2002-12-11  Bruno Haible  <bruno@clisp.org>
85095
85096         * m4/setenv.m4: New file, from gettext-0.11.5.
85097
85098 2002-12-11  Bruno Haible  <bruno@clisp.org>
85099
85100         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85101         not unsetenv().
85102         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85103         modifications:
85104
85105         2002-12-11  Bruno Haible  <bruno@clisp.org>
85106
85107                 * setenv.c (alloca): Fall back to malloc.
85108                 (freea): New macro.
85109                 (setenv): Use freea() to free memory allocated with alloca().
85110
85111         2002-11-13  Bruno Haible  <bruno@clisp.org>
85112
85113                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85114                 function declarations.
85115                 * unsetenv.c (unsetenv): Likewise.
85116
85117         2002-03-04  Bruno Haible  <bruno@clisp.org>
85118
85119                 Portability to AIX 4.3.3.
85120                 * unsetenv.c: New file, extracted from setenv.c.
85121                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85122
85123         2001-12-20  Bruno Haible  <bruno@clisp.org>
85124
85125                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85126                 use malloc instead. For SunOS 4.
85127
85128         2001-12-11  Bruno Haible  <bruno@clisp.org>
85129
85130                 * setenv.c: Declare alloca.
85131                 (compar_fn_t): New typedef.
85132                 (KNOWN_VALUE, STORE_VALUE): Use it.
85133
85134         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85135         setenv.h.
85136
85137 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85138
85139         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85140         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85141         Choose values that are less likely to collide with system fnmatch
85142         options.
85143         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85144         defined (e.g., a pure POSIX system).
85145         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85146         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85147
85148 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85149
85150         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85151         a pain in practice to deal with generated m4 files.  This change
85152         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85153
85154         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85155         and jm-glibc-io.m4, as they are no longer a special case.
85156         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85157         kludge and the auto-generation stuff.  Check only whether the
85158         functions are declared, not whether they exist, since older hosts
85159         that don't declare the functions can't use the optimization anyway.
85160
85161 2002-12-06  Jim Meyering  <jim@meyering.net>
85162
85163         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85164
85165         Merge in changes from libc's misc/error.c, in preparation
85166         for the merge of gnulib's changes back into libc.
85167
85168         * lib/error.c (_): Define only if not already defined.
85169         Move definition to follow all #include directives.
85170         Include unlocked-io.h only if !_LIBC.
85171         [_LIBC]: Include <libio/libioP.h>.
85172         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85173         (fflush): Tweak definition to use INTUSE.
85174         (putc): Define.
85175
85176 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85177
85178         * lib/alloca.c [defined emacs]: Include "lisp.h".
85179         (xalloc_die) [defined emacs]: New macro.
85180         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85181         [! defined emacs]: Include <xalloc.h>.
85182         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85183         (pointer): Typedef to POINTER_TYPE *.
85184         (malloc): Remove decl; we now always use xmalloc.
85185         (alloca): Use old-style definition, since Emacs needs this.
85186         Check for arithmetic overflow when computing combined size.
85187
85188 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85189
85190         Do not generate unlocked-io.h automatically, since it's easier to
85191         maintain it by hand.
85192
85193         * lib/unlocked-io.h: New file, from GNU diffutils,
85194         but with proper copyright notice and attribution.
85195         * lib/gen-uio: Remove.
85196         * lib/Makefile.am: Add copyright notice.
85197         (libfetish_a_SOURCES): Add unlocked-io.h.
85198         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85199         (DISTCLEANFILES, io_functions): Remove macros.
85200         (EXTRA_DIST): Remove gen_uio.
85201         (unlocked-io.h): Remove rule.
85202
85203 2002-12-04  Jim Meyering  <jim@meyering.net>
85204
85205         Reflect the fact that stat.c and lstat.c are no longer generated.
85206         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85207         (DISTCLEANFILES): Likewise.
85208         (EXTRA_DIST): Likewise.
85209         (all_local): Don't depend on stat.c or lstat.c.
85210         (stat.c, lstat.c): Remove rules.
85211         (EXTRA_DIST): Remove xstat.in.
85212
85213         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85214         * lib/stat.c: New file.  Contents mostly from xstat.in.
85215         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85216         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85217
85218         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85219         too.
85220         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85221
85222 2002-12-03  Jim Meyering  <jim@meyering.net>
85223
85224         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85225         but not semantics, to minimize the differences between these two files.
85226         (safe_read): Change comment to mention SAFE_READ_ERROR.
85227
85228         * lib/safe-read.c (IS_EINTR): Define.
85229         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85230
85231 2002-12-02  Jim Meyering  <jim@meyering.net>
85232
85233         * lib/safe-read.c (EINTR): Define.
85234         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85235         (INT_MAX): Provide fallback.
85236         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85237
85238         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85239
85240 2002-12-02  Bruno Haible  <bruno@clisp.org>
85241
85242         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85243         Define, taken from safe-read.c.
85244         (INT_MAX): Provide fallback.
85245         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85246         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85247
85248         * lib/safe-read.c (EINTR): Remove definition.
85249         (safe_read): Don't use EINTR if it is absent.
85250
85251 2002-12-01  Jim Meyering  <jim@meyering.net>
85252
85253         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85254         zero.
85255         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85256
85257 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85258
85259         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85260         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85261         with `if (! (value < limit)) abort ();', for readability.
85262
85263 2002-11-26  Karl Berry  <karl@gnu.org>
85264
85265         * lib/strdup.c: copy from libc again, with jim's ok.
85266         * lib/.cppi-disable: re-add strdup.c
85267
85268 2002-11-25  Karl Berry  <karl@gnu.org>
85269
85270         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85271         instead of "strtol.c".
85272
85273 2002-11-25  Karl Berry  <karl@gnu.org>
85274
85275         * config/install-sh: update from automake for variable quoting, $0 in
85276         error msgs, etc.
85277
85278         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85279         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85280         entry.
85281
85282 2002-11-25  Jim Meyering  <jim@meyering.net>
85283
85284         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85285
85286 2002-11-24  Karl Berry  <karl@gnu.org>
85287
85288         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85289         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85290
85291 2002-11-24  Jim Meyering  <jim@meyering.net>
85292
85293         Update from coreutils:
85294
85295         * lib/mktime.c: Merge in changes from libc.
85296
85297         Avoid a link-time failure on some Linux systems.
85298         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85299         (otherwise).
85300         (__mon_yday): Declare with the STATIC attribute.
85301         (__mktime_internal): Likewise.
85302         Based on a report from Greg Schafer.
85303
85304 2002-11-23  Jim Meyering  <jim@meyering.net>
85305
85306         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85307         Use `unsigned', not `int', as type of index.
85308
85309         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85310
85311         * lib/fsusage.c: Remove unneeded parentheses around operands of
85312         `defined'.
85313
85314 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85315
85316         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85317         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85318         so that we can be included first.
85319         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85320         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85321         No need to include stddef.h or sys/types.h any more.
85322         Surround local include files with "", not "<>".
85323         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85324         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85325         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85326         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85327         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85328         (ISPRINT): Remove; no longer needed now that we assume C89.
85329
85330         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85331         Preserve errno.
85332
85333         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85334         quotearg_char): Use SIZE_MAX rather than
85335         (size_t) -1 when we are talking about "infinity".
85336
85337         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85338
85339 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85340
85341         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85342         hint that one should use `if (! x) abort ();' rather than `assert
85343         (x);', and anyway it's one less thing to worry about configuring.
85344         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85345         hash_rehash, hash_insert): Use abort rather than assert.
85346
85347 2002-11-22  Bruno Haible  <bruno@clisp.org>
85348
85349         * lib/safe-read.h: Assume C89. Add comments.
85350         (safe_read): Change return type to size_t.
85351         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85352         byte counts > SSIZE_MAX correctly.
85353         * lib/safe-write.h: New file.
85354         * lib/safe-write.c: New file.
85355         * lib/full-read.h: New file.
85356         * lib/full-read.c: New file.
85357         * lib/full-write.h: Assume C89. Add comments.
85358         * lib/full-write.c: Include safe-write.h.
85359         (full_write): Rewritten to use safe_write.
85360         Suggested by Jim Meyering and Paul Eggert.
85361
85362 2002-11-21  Jim Meyering  <jim@meyering.net>
85363
85364         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85365
85366         Merge in changes from the coreutils.
85367
85368         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85369         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85370         <stdint.h>.
85371         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85372         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85373         int.  Work more efficiently if X is the same width as uintmax_t.
85374         Do not compare X to -1, to avoid bogus compiler warning.
85375         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85376         Don't assume that f_frsize and f_bsize are the same type.
85377
85378         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85379         warning on FreeBSD.
85380
85381         * lib/makepath.c (make_path): Restore umask *before* creating the final
85382         component.
85383         (make_path): Minor reformatting.
85384
85385         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85386         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85387         HAVE_MALLOC/HAVE_REALLOC.
85388
85389         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85390         dummy ones.  At least on GNU/Linux systems, `auto' means something
85391         else.
85392         From Michael Stone.
85393
85394 2002-11-21  Bruno Haible  <bruno@clisp.org>
85395
85396         Remove case insensitive option matching.
85397         * lib/argmatch.h (argcasematch): Remove declaration.
85398         (ARGCASEMATCH): Remove macro.
85399         (__xargmatch_internal): Remove case_sensitive argument.
85400         (XARGMATCH): Update.
85401         (XARGCASEMATCH): Remove macro.
85402         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85403         case_sensitive argument.
85404         (argcasematch): Remove function.
85405         (__xargmatch_internal): Remove case_sensitive argument.
85406         (main): Use XARGMATCH instead of XARGCASEMATCH.
85407
85408         * lib/xmalloc.c: Change compile-time error message. Add comment about
85409         required autoconf version.
85410
85411 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85412
85413         Merge argmatch cleanups from Bison.  Assume C89.
85414
85415         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85416         Include stdlib.h, for EXIT_FAILURE.
85417         Always include <string.h>, since we assume C89.
85418         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85419         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85420         Include <stddef.h> instead, since it's all we need for size_t.
85421         (PARAMS): Remove.  All uses removed.
85422         (ARRAY_CARDINALITY): Do not bother to #undef.
85423         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85424         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85425         Remove unnecessary parentheses.
85426         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85427         Insert necessary parentheses.
85428         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85429         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85430
85431 2002-11-19  Bruno Haible  <bruno@clisp.org>
85432
85433         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85434         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85435
85436         * lib/mbswidth.h (PARAMS): Remove macro.
85437         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85438         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85439
85440         * lib/gcd.h (PARAMS): Remove macro.
85441         (gcd): Use ANSI C function declarations.
85442         * lib/gcd.c (gcd): Likewise.
85443
85444 2002-11-15  Bruno Haible  <bruno@clisp.org>
85445
85446         * lib/strcspn.c: Include <stddef.h>.
85447         (strcspn): Use ANSI C function declaration. Change return type to
85448         size_t. Use NULL.
85449         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85450         (strpbrk): Use NULL.
85451         * lib/strpbrk.h (PARAMS): Remove macro.
85452         (strpbrk): Use ANSI C function declaration.
85453         * lib/strstr.c: Don't include <sys/types.h>.
85454         * lib/strstr.h (PARAMS): Remove macro.
85455         (strstr): Use ANSI C function declarations.
85456
85457 2002-11-14  Karl Berry  <karl@gnu.org>
85458
85459         * config/mkinstalldirs: `do' on separate line, instead of
85460         `for var; do'.
85461
85462 2002-11-06  Bruno Haible  <bruno@clisp.org>
85463
85464         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85465         * lib/gcd.c (gcd): Likewise.
85466
85467 2002-11-05  Bruno Haible  <bruno@clisp.org>
85468
85469         * lib/gcd.h: New file, from gettext-0.11.5.
85470         * lib/gcd.c: New file, from gettext-0.11.5.
85471
85472 2002-11-05  Bruno Haible  <bruno@clisp.org>
85473
85474         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85475         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85476         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85477         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85478
85479         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85480         <libintl.h>.
85481         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85482         <libintl.h>.
85483
85484         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85485         * lib/human.c: Include gettext.h instead of <libintl.h>.
85486         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85487         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85488         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85489         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85490         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85491         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85492         (textdomain): Remove definition.
85493         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85494
85495         * lib/long-options.c: Remove include of <libintl.h> and definition of
85496         _.
85497         * lib/same.c: Remove include of <libintl.h> and definition of _.
85498
85499 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85500
85501         * lib/config.charset: A few additions for Solaris.
85502
85503 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85504
85505         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85506         * lib/localcharset.c (locale_charset): Declare as extern "C".
85507
85508 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85509
85510         * lib/config.charset: msdos in uk_UA uses CP1125.
85511
85512 2002-11-04  Bruno Haible  <bruno@clisp.org>
85513
85514         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85515         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85516         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85517         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85518         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85519
85520 2002-11-04  Bruno Haible  <bruno@clisp.org>
85521
85522         * lib/localcharset.c (locale_charset): Don't return an empty string.
85523
85524 2002-11-04  Bruno Haible  <bruno@clisp.org>
85525
85526         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85527         aliases.
85528
85529 2002-11-04  Bruno Haible  <bruno@clisp.org>
85530
85531         * lib/config.charset: Update for newest glibc. Add canonical names
85532         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85533
85534 2002-11-04  Bruno Haible  <bruno@clisp.org>
85535
85536         * lib/config.charset: Add support for NetBSD.
85537
85538 2002-11-04  Bruno Haible  <bruno@clisp.org>
85539
85540         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85541
85542 2002-11-01  Bruno Haible  <bruno@clisp.org>
85543
85544         * configure.in: Add AC_CONFIG_AUX_DIR call.
85545         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85546         test/Makefile.
85547         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85548
85549 2002-09-28  Karl Berry  <karl@gnu.org>
85550
85551         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85552         installed automake until the next release, since changes have been
85553         made.
85554
85555 2002-09-25  Karl Berry  <karl@gnu.org>
85556
85557         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85558         * lib/getopt*: copy from libc/posix.
85559         * lib/gettext.h: copy from gettext.
85560         * lib/.cppi-disable: add strdup.c, gettext.h.
85561
85562 2002-09-25  Karl Berry  <karl@gnu.org>
85563
85564         * config/srclist.txt: enable gettext.h check.
85565         * config/config.{guess,sub}: update from prep.
85566         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85567                 from automake 1.6.3.
85568         See srclist*.
85569
85570 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85571
85572         * regex.c (PATFETCH): Remove the translating fetch.
85573         (PATFETCH_RAW): Rename to PATFETCH.
85574         (set_image_of_range): New fun.
85575         (SET_RANGE_TABLE_WORK_AREA): Use it.
85576         (regex_compile): Don't translate the pattern chars so eagerly.
85577         Only do it when inserting an `exactn' bytecode or when handling
85578         a char-range.
85579         (mutually_exclusive_p): Avoid empty statement.
85580
85581 2002-07-06  Jim Meyering  <meyering@lucent.com>
85582
85583         * m4/README: Don't mention Makefile.am.in.
85584         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85585
85586 2002-07-01  Jim Meyering  <meyering@lucent.com>
85587
85588         * lib/c-stack.c: Include sys/time.h.
85589         From Volker Borchert.
85590
85591 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85592
85593         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85594
85595 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85596
85597         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85598         New macro.  Use it uniformly instead of
85599         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85600         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85601         reported by Vin Shelton.
85602
85603 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85604
85605         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85606         Do not assume SA_SIGINFO behavior.
85607         Bug reported by Jim Meyering on NetBSD 1.5.2.
85608
85609 2002-06-22  Jim Meyering  <meyering@lucent.com>
85610
85611         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85612         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85613
85614         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85615         now that configure.ac uses AC_GNU_SOURCE.
85616         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85617         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85618
85619         Update to latest tools.  Suggestions from Paul Eggert.
85620         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85621         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85622         * m4/fnmatch.m4: Likewise.
85623         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85624         to AC_HEADER_STDBOOL
85625
85626 2002-06-22  Jim Meyering  <meyering@lucent.com>
85627
85628         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85629         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85630
85631 2002-06-22  Jim Meyering  <meyering@lucent.com>
85632
85633         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85634
85635         * lib/exitfail.c, exitfail.h: Likewise.
85636         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85637
85638         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85639         of fnmatch.h.
85640         (EXTRA_DIST): Add fnmatch_loop.c.
85641         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85642
85643         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85644         * lib/fnmatch.c: Update from diffutils-2.8.2.
85645         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85646         * lib/fnmatch.h: Remove file.
85647
85648 2002-06-21  Jim Meyering  <meyering@lucent.com>
85649
85650         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85651         * m4/mbrtowc.m4: Likewise.
85652
85653         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85654         * m4/mbswidth.m4: Reflect name change:
85655         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85656         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85657
85658         * m4/lib-link.m4: Update from gettext-0.11.2.
85659         * m4/gettext.m4: Likewise.
85660
85661         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85662         From Alfred M. Szmidt.
85663
85664 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85665
85666         * lib/file-type.h: Report an error if neither S_ISREG nor
85667         S_IFREG is defined, instead of using a test specific to glibc
85668         2.2.  This should be safe, since POSIX requires S_ISREG and
85669         Unix Version 7 had S_IFREG.  We don't need to check for
85670         <sys/types.h> since we don't use any symbols that it defines.
85671
85672 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85673
85674         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85675         $@-t, so that each temporary file name is unique and valid in the first
85676         8 characters, for operation under DOS.
85677
85678 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85679
85680         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85681
85682 2002-06-15  Jim Meyering  <meyering@lucent.com>
85683
85684         Work even with DJGPP 2.03, which lacks support for symlinks.
85685         From Richard Dawe.
85686         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85687         is defined.
85688         * lib/lchown.c (S_ISLNK): Likewise.
85689
85690 2002-06-15  Jim Meyering  <meyering@lucent.com>
85691
85692         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85693         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85694         have been included before this file.
85695
85696 2002-06-14  Jim Meyering  <meyering@lucent.com>
85697
85698         * lib/file-type.h: Use the version from diffutils-2.8.2.
85699         * lib/file-type.c: Likewise.
85700
85701 2002-06-07  Jim Meyering  <meyering@lucent.com>
85702
85703         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85704         They're needed at least for NetBSD 1.5.2.
85705         ($statxfs_includes): Include those same headers.
85706         ($statxfs_includes): Include sys/vfs.h if available.
85707         ($statxfs_includes): Likewise for sys/statvfs.h.
85708         Check for the following members in both structs statfs and statvfs:
85709         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85710
85711 2002-06-01  Jim Meyering  <meyering@lucent.com>
85712
85713         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85714         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85715
85716 2002-05-28  Jim Meyering  <meyering@lucent.com>
85717
85718         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85719         Reported by Volker Borchert.
85720
85721 2002-05-27  Jim Meyering  <meyering@lucent.com>
85722
85723         Fix a problem seen only on nonconforming systems whereby ls.c's
85724         use of localtime, and then of gettimeofday would cause trouble:
85725         the localtime call used to initialize rpl_gettimeofday's save
85726         mechanism would clobber ls's current local time information so
85727         that in any long listing the first file would always be listed
85728         with date 1970-01-01.  Analysis by Volker Borchert.
85729
85730         * lib/gettimeofday.c (localtime): Undefine.
85731         (rpl_localtime): New function.
85732
85733 2002-05-27  Jim Meyering  <meyering@lucent.com>
85734
85735         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85736         localtime.
85737
85738         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85739         use the replacement function; it wouldn't resolve at link time.
85740         Reported by Volker Borchert.
85741
85742 2002-05-22  Jim Meyering  <meyering@lucent.com>
85743
85744         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85745         file-type.h.
85746         * lib/file-type.h: New file.
85747         * lib/file-type.c (file_type): New file/function.  Extracted from
85748         diffutils.
85749
85750 2002-04-30  Jim Meyering  <meyering@lucent.com>
85751
85752         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85753
85754 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85755
85756         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85757
85758 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85759
85760         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85761         Do not check for alloca.h (no longer used) or stdbool.h (was never
85762         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85763
85764 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85765
85766         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85767
85768 2002-04-29  Jim Meyering  <meyering@lucent.com>
85769
85770         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85771         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85772         Use AC_FUNC_STRNLEN here instead.
85773
85774         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85775         With autoconf-2.53a, it's part of AC_PROG_CC.
85776
85777 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85778
85779         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85780         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85781
85782 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85783
85784         * lib/sig2str.h, lib/sig2str.c: New files.
85785         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85786
85787 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85788
85789         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85790         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85791         of 127, since 64 is the largest conceivable number for ancient
85792         nonstandard hosts.
85793         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85794
85795 2002-04-28  Jim Meyering  <meyering@lucent.com>
85796
85797         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85798
85799 2002-04-24  Jim Meyering  <meyering@lucent.com>
85800
85801         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85802         (jm_PREREQ): Use it.
85803
85804         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85805         mach/mach.h fcntl.h.
85806         Check for this function: setlocale.
85807
85808 2002-04-24  Jim Meyering  <meyering@lucent.com>
85809
85810         * lib/gettext.h: New file, from Gettext.
85811         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85812         (libfetish_a_SOURCES): Add gettext.h.
85813
85814 2002-04-16  Jim Meyering  <meyering@lucent.com>
85815
85816         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85817         ut_pid, ut_id, ut_exit.
85818
85819 2002-04-16  Jim Meyering  <meyering@lucent.com>
85820
85821         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85822         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85823         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85824
85825 2002-04-12  Jim Meyering  <meyering@lucent.com>
85826
85827         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85828         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85829         existence of the getmntinfo function.  Needed for Darwin 5.3.
85830
85831         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85832         This is necessary at least on Darwin 5.3.
85833
85834         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85835         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85836         strnlen.o in the library, and that makes some versions of ranlib
85837         object.
85838
85839 2002-04-12  Jim Meyering  <meyering@lucent.com>
85840
85841         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85842
85843 2002-04-09  Jim Meyering  <meyering@lucent.com>
85844
85845         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85846         to be more precise.  Rather than saying we're checking whether the
85847         function `works', say what we're testing.
85848         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85849         Reported by Bruno Haible.
85850
85851 2002-03-10  Jim Meyering  <meyering@lucent.com>
85852
85853         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85854         Suggestion from Santiago Vila.
85855
85856 2002-03-08  Jim Meyering  <meyering@lucent.com>
85857
85858         * lib/rename.c: Mention that this wrapper is needed also on
85859         mips-dec-ultrix4.4 systems.
85860
85861 2002-03-02  Jim Meyering  <meyering@lucent.com>
85862
85863         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85864         not HAVE_CLOCK_SETTIME.
85865
85866 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85867
85868         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85869         Check for clock_settime.
85870
85871 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85872
85873         * lib/nanosleep.h: Rename to....
85874         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85875
85876         * lib/gettime.c: New file.
85877         * lib/settime.c: New file.
85878         * lib/stime.c: Remove.
85879
85880         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85881         timespec.h.  Remove nanosleep.h.
85882
85883 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85884
85885         * m4/acl.m4: New file.
85886         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85887         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85888
85889 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85890
85891         * lib/acl.c, lib/acl.h: New files.
85892         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85893
85894 2002-02-24  Jim Meyering  <meyering@lucent.com>
85895
85896         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85897         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85898         cause trouble.  Reported by Nelson Beebe.
85899
85900 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85901
85902         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85903         compilers that don't know that xalloc_die never returns.
85904
85905 2002-02-20  Jim Meyering  <meyering@lucent.com>
85906
85907         * lib/getdate.c: Regenerate using bison-1.33.
85908
85909 2002-02-17  Jim Meyering  <meyering@lucent.com>
85910
85911         * config/config.guess (main): Don't use `head -1'; it's no longer
85912         portable. Use `sed 1q' instead.
85913
85914 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85915
85916         * m4/codeset.m4: Upgrade to gettext-0.11.
85917         * m4/gettext.m4: Upgrade to gettext-0.11.
85918         * m4/glibc21.m4: Upgrade to gettext-0.11.
85919         * m4/iconv.m4: Upgrade to gettext-0.11.
85920         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85921         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85922         * m4/lib-ld.m4: New file, from gettext-0.11.
85923         * m4/lib-link.m4: New file, from gettext-0.11.
85924         * m4/lib-prefix.m4: New file, from gettext-0.11.
85925         * m4/progtest.m4: Upgrade to gettext-0.11.
85926
85927 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85928
85929         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85930         (jm_PREREQ): Use it.
85931
85932 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85933
85934         * lib/posixver.c, lib/posixver.h: New files.
85935         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85936
85937 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85938             Bruno Haible  <bruno@clisp.org>
85939
85940         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85941         (fwrite_success_callback): New declaration.
85942         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85943         print_unicode_char. Call failure callback instead of error.
85944         (fwrite_success_callback): New function.
85945         (exit_failure_callback): New function.
85946         (fallback_failure_callback): New function.
85947         (print_unicode_char): Call unicode_to_mb.
85948
85949 2002-01-26  Jim Meyering  <meyering@lucent.com>
85950
85951         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85952         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85953
85954 2002-01-26  Jim Meyering  <meyering@lucent.com>
85955
85956         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85957
85958 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85959
85960         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85961
85962 2002-01-22  Jim Meyering  <meyering@lucent.com>
85963
85964         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85965         Otherwise, some versions of automake would omit the rule that makes
85966         Makefile from Makefile.in.
85967
85968 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85969
85970         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85971         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85972         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85973         (memcoll): Set errno to zero if there is no error.
85974
85975         * lib/quotearg.c (quotearg_buffer_restyled):
85976         Fix bug with quoting buffers containing NUL when backslashing escapes.
85977         This bug was exposed by the other changes in this patch.
85978         (quotearg_n_options): New arg ARGSIZE.
85979         All callers changed.
85980         (quoting_options_from_style): New function.
85981         (quotearg_n_style): Use it.
85982         (quotearg_n_style_mem): New function.
85983
85984         * lib/quotearg.h (quotearg_n_style_mem): New function.
85985
85986 2002-01-19  Jim Meyering  <meyering@lucent.com>
85987
85988         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85989         Remove useless quotes: DF_PROG="df".
85990         * m4/strnlen.m4: New file.
85991
85992 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85993
85994         * lib/backupfile.c (ISDIGIT): Comment fix.
85995         * lib/getdate.y (ISDIGIT): Likewise.
85996         * lib/posixtm.c (ISDIGIT, year): Likewise.
85997         * lib/strverscmp.c (ISDIGIT): Likewise.
85998         * lib/userspec.c (ISDIGIT): Likewise.
85999
86000 2002-01-16  Jim Meyering  <meyering@lucent.com>
86001
86002         * lib/getdate.y: Add three semicolons, each just before a closing
86003         brace. Bison (as of version 1.31) no longer papers over that mistake.
86004
86005 2002-01-05  Jim Meyering  <meyering@lucent.com>
86006
86007         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86008
86009 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86010
86011         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86012         not silently exit merely because the output buffer happens to
86013         have nothing pending.
86014
86015 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86016
86017         See the big note in ../ChangeLog.
86018         * lib/human.c (suffixes): Prefer K to k for 1024.
86019         (generate_suffix_backwards): New function.
86020         (human_readable_inexact): Use it.
86021         * lib/xstrtol.c (__xstrtol): If there is no number but there
86022         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86023         Accept 'K' as well as 'k'.
86024
86025 2001-12-15  Jim Meyering  <meyering@lucent.com>
86026
86027         * lib/regex.h (__restrict_arr): Update from libc.
86028
86029         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86030         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86031         (STREQ): Define.
86032
86033 2001-12-14  Jim Meyering  <meyering@lucent.com>
86034
86035         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86036         Suggestion from Bruno Haible.
86037
86038 2001-12-10  Jim Meyering  <meyering@lucent.com>
86039
86040         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86041         xrealloc, Instead, include "xalloc.h".
86042         (initbuffer): Don't cast xmalloc return value to char*.
86043         (readline): Reword comment.
86044         Don't cast xrealloc return value to char*
86045         Return NULL, not 0.
86046
86047 2001-12-09  Jim Meyering  <meyering@lucent.com>
86048
86049         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86050         about `signed and unsigned type in conditional expression'.
86051         * lib/posixtm.c (posix_time_parse): Likewise.
86052
86053         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86054
86055         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86056         to avoid a pedantic warning.
86057
86058         * lib/getstr.c: Don't include assert.h.
86059         (getstr): Remove warning-evoking assertions.
86060         Return -1 if offset parameter is out of bounds.
86061         Change the type of a local from int to size_t.
86062
86063         * lib/strftime.c (my_strftime_localtime_r): Include this function
86064         definition in the `#if ! HAVE_TM_GMTOFF' block.
86065
86066         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86067         Include xalloc.h instead.
86068
86069 2001-12-02  Jim Meyering  <meyering@lucent.com>
86070
86071         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86072         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86073         included.
86074
86075         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86076         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86077
86078 2001-11-30  Akim Demaille  <akim@epita.fr>
86079
86080         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86081         before being defined.
86082
86083 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86084
86085         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86086         First arg is int, not unsigned.
86087         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86088         (SIZE_MAX, UINT_MAX): New macros.
86089         (quotearg_n_options): Abort if N is negative.
86090         Avoid overflow check on hosts where size_t is 64 bits and int
86091         is 32 bits, as overflow is impossible there.
86092         Fix off-by-one typo that caused unnecessary reallocation.
86093
86094 2001-11-27  Jim Meyering  <meyering@lucent.com>
86095
86096         * lib/tempname.c: Merge with version from libc.
86097         * lib/regex.c: Likewise.
86098
86099         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86100         systems for which STDC_HEADERS is 0, it was not included, resulting in
86101         a warning about an integer-to-pointer conversion problem with getenv.
86102         Reported by Volker Borchert.
86103
86104 2001-11-26  Jim Meyering  <meyering@lucent.com>
86105
86106         * lib/gtod.h: Remove file.
86107         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86108         * lib/gettimeofday.c: Don't include gtod.h.
86109         (GTOD_init): Remove function.
86110         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86111         Suggestion from Volker Borchert.
86112
86113 2001-11-23  Jim Meyering  <meyering@lucent.com>
86114
86115         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86116         it.
86117         * lib/hash.c (struct hash_table): Define it here instead.
86118
86119 2001-11-22  Jim Meyering  <meyering@lucent.com>
86120
86121         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86122
86123 2001-11-20  Jim Meyering  <meyering@lucent.com>
86124
86125         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86126         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86127
86128 2001-11-19  Jim Meyering  <meyering@lucent.com>
86129
86130         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86131         directory.  Use "conftestXXXXXX" as the template.
86132         Suggestion from Paul Eggert.
86133
86134         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86135         immediately, so the test doesn't mistakenly hit the max-open-files
86136         limit.
86137
86138 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86139
86140         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86141         (TEMPORARIES): New macro.
86142         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86143         removes an artificial limitation (e.g. HP-UX 10.20, where
86144         TMP_MAX is 17576).
86145
86146 2001-11-18  Jim Meyering  <meyering@lucent.com>
86147
86148         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86149
86150 2001-11-18  Jim Meyering  <meyering@lucent.com>
86151
86152         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86153         on SunOS 4.
86154
86155         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86156         files will be created before anything else.
86157
86158 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86159
86160         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86161         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86162
86163 2001-11-17  Jim Meyering  <meyering@lucent.com>
86164
86165         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86166         Prompted by a report from Bob Proulx.
86167
86168         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86169         Instead, require UTILS_FUNC_MKSTEMP.
86170
86171 2001-11-17  Jim Meyering  <meyering@lucent.com>
86172
86173         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86174         Now, that's done as part of AC_FUNC_STRTOD.
86175
86176 2001-11-17  Jim Meyering  <meyering@lucent.com>
86177
86178         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86179         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86180         rather than group writable.  Patch by Juan F. Codagnone.
86181
86182         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86183         xrealloc, Instead, include "xalloc.h".
86184
86185         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86186         Remove explicit declarations of xmalloc, xrealloc,
86187         and xstrdup.  Instead, include "xalloc.h".
86188
86189         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86190         unlocked-io.h.
86191         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86192         Likewise.
86193         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86194
86195         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86196         Reported by Padraig Brady.
86197
86198         * lib/mkstemp.c: #undef mkstemp.
86199         Include config.h.
86200         (rpl_mkstemp): Rename from mkstemp.
86201         Protoize.
86202
86203 2001-11-16  Jim Meyering  <meyering@lucent.com>
86204
86205         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86206         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86207         determine the amount of total physical memory, use pstat_getstatic.
86208         HPUX-11 doesn't define _SC_PHYS_PAGES.
86209         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86210         If sysconf couldn't be used to determine the amount of available
86211         physical memory, use both pstat_getstatic and pstat_getdynamic.
86212         Based on a patch from Bob Proulx.
86213
86214 2001-11-10  Jim Meyering  <meyering@lucent.com>
86215
86216         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86217         (jm_PREREQ): Use it.
86218
86219 2001-11-09  Jim Meyering  <meyering@lucent.com>
86220
86221         * m4/jm-macros.m4: Require autoconf-2.52f.
86222         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86223         Use these AC_-prefixed names, not the AM_-prefixed ones.
86224
86225         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86226
86227 2001-11-05  Jim Meyering  <meyering@lucent.com>
86228
86229         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86230
86231 2001-11-04  Jim Meyering  <meyering@lucent.com>
86232
86233         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86234         $DEFS.
86235
86236 2001-11-03  Jim Meyering  <meyering@lucent.com>
86237
86238         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86239         of AC_DEFUN.
86240
86241         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86242         know the name of the variable in the macro definition.
86243
86244 2001-11-03  Jim Meyering  <meyering@lucent.com>
86245
86246         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86247         in argmatch_to_argument call.
86248
86249         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86250         argument.
86251
86252         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86253         e.g., a fault due to an attempt to free a NULL pointer.
86254
86255 2001-11-01  Jim Meyering  <meyering@lucent.com>
86256
86257         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86258         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86259
86260 2001-11-01  Jim Meyering  <meyering@lucent.com>
86261
86262         * lib/dirfd.c, lib/dirfd.h: New files.
86263         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86264
86265         * lib/hash.c (hash_print) [TESTING]: Clean up.
86266
86267 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86268
86269         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86270         to avoid a warning if -Wall.
86271
86272 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86273
86274         * README: New file
86275         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86276         (per RMS's instructions, this is now the canonical source)
86277         * lgpl/, gpl/: New directories.
86278
86279 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86280
86281         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86282
86283 2001-10-21  Jim Meyering  <meyering@lucent.com>
86284
86285         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86286         this code would end up calling gettext even in packages built
86287         with --disable-nls.
86288         * lib/getopt.c (_): Likewise.
86289         * lib/regex.c (_): Likewise.
86290
86291 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86292
86293         * m4/error.m4 (jm_PREREQ_ERROR):
86294         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86295         AC_FUNC_STRERROR_R does that.
86296         Check for strerror declaration.
86297
86298         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86299         are supposed to have them these days.
86300         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86301         Merge changes from latest Autoconf CVS.
86302         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86303         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86304         POSIX decided to standardize on the int flavor of strerror_r.
86305
86306 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86307
86308         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86309         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86310         Use strerror_r that is only a macro, even if it is not a function.
86311         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86312         (private_strerror): Use prototypes, not old-style function definition.
86313         (print_errno_message): New function.
86314         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86315         char*-flavored one.
86316         (error_tail, error, error_at_line): Use it.
86317
86318 2001-10-11  Jim Meyering  <meyering@lucent.com>
86319
86320         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86321         and quote_n (1, ... to avoid clobbering a buffer.
86322
86323 2001-10-05  Jim Meyering  <meyering@lucent.com>
86324
86325         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86326         hash-pjw.h.
86327         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86328         * lib/hash-pjw.h: New file.
86329
86330 2001-09-30  Jim Meyering  <meyering@lucent.com>
86331
86332         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86333         `struct fsstat' has the `f_fstypename' member.
86334         Use that to define FS_TYPE, which is now used to make
86335         the getfsstat link test tighter.
86336
86337 2001-09-30  Jim Meyering  <meyering@lucent.com>
86338
86339         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86340         Include <sys/ucred.h>, for Apple Darwin.
86341         Include sys/mount.h and sys/fs_types.h only if available.
86342         (FS_TYPE): Define.
86343         (read_filesystem_list): Use FS_TYPE.
86344
86345 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86346
86347         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86348         a boolean context.
86349
86350 2001-09-29  Jim Meyering  <meyering@lucent.com>
86351
86352         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86353         [one-argument getmntent function]): Include stdio.h before mntent.h.
86354         SunOS 4.1.x needs it for the declaration of `FILE'.
86355         Patch by Volker Borchert.
86356
86357         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86358         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86359         sys/fs_types.h, and make the link-test for getfsstat guard #include
86360         directives with appropriate #if HAVE_*_H tests so that we can
86361         detect getfsstat on Apple Darwin1.3.7 systems.
86362         Reported by Nelson Beebe.
86363         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86364
86365 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86366
86367         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86368         #defines strtoimax.  Also treat the other strto* functions
86369         like strtoimax.
86370
86371         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86372         Check for strtoul and strtoumax,
86373         as those declarations are made even in the signed case.
86374         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86375         Likewise, for strtol and strtoimax.
86376
86377 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86378
86379         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86380         #defines strtoimax.  Also treat the other strto* functions
86381         like strtoimax.
86382
86383         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86384         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86385         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86386
86387 2001-09-26  Jim Meyering  <meyering@lucent.com>
86388
86389         Most macros in unlocked-io.h had the wrong number of arguments.
86390         * lib/gen-uio: New script.
86391         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86392         * lib/unlocked-io.hin: Remove file.
86393         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86394         rather than trying to embed it here.
86395         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86396         Reported by Padraig Brady.
86397
86398 2001-09-25  Volker Borchert  <bt@teknon.de>
86399
86400         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86401         `result'.
86402
86403 2001-09-24  Jim Meyering  <meyering@lucent.com>
86404
86405         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86406
86407 2001-09-23  Jim Meyering  <meyering@lucent.com>
86408
86409         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86410         instead of the mere test for existence of mntent.h.  The latter
86411         would get a false-positive on AIX 3.4 systems.
86412         In the outer getmntent if-block, don't die if neither of the getmntent
86413         tests succeeds.  Instead, just fall through and continue with the
86414         remaining tests.
86415
86416 2001-09-23  Jim Meyering  <meyering@lucent.com>
86417
86418         * lib/mountlist.c: Remove useless parentheses in #if directives.
86419         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86420         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86421
86422 2001-09-22  Jim Meyering  <meyering@lucent.com>
86423
86424         * m4/gettext.m4: New file.  From gettext.
86425         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86426         * m4/progtest.m4: Likewise
86427         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86428         * m4/glibc21.m4: Likewise.
86429
86430         * m4/libintl.m4: Remove.  No longer used.
86431
86432 2001-09-22  Jim Meyering  <meyering@lucent.com>
86433
86434         * lib/localcharset.c: Update from latest gettext.
86435         * lib/config.charset: Likewise.
86436
86437 2001-09-20  Jim Meyering  <meyering@lucent.com>
86438
86439         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86440         strtoimax.
86441         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86442         strtoumax.
86443
86444 2001-09-20  Jim Meyering  <meyering@lucent.com>
86445
86446         * lib/xstrtol.c (strtoimax): Guard declaration with
86447         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86448         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86449         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86450         (strtoumax): Likewise, for completeness (it wasn't necessary).
86451
86452 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86453
86454         * lib/strtoimax.c (HAVE_LONG_LONG):
86455         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86456         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86457         to work around bug in IBM C compiler.
86458
86459 2001-09-17  Jim Meyering  <meyering@lucent.com>
86460
86461         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86462         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86463         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86464         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86465         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86466         whenever the right hand side need not be expanded by the shell.
86467
86468 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86469
86470         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86471         library.  It's not correct, as some older glibcs are buggy.
86472         fnmatch wasn't fixed until glibc 2.2.
86473
86474         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86475         special shell magic here.
86476
86477 2001-09-16  Jim Meyering  <meyering@lucent.com>
86478
86479         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86480         * m4/jm-macros.m4: Require it.
86481
86482 2001-09-16  Jim Meyering  <meyering@lucent.com>
86483
86484         * lib/mkdir.c: New file.
86485
86486 2001-09-15  Jim Meyering  <meyering@lucent.com>
86487
86488         * m4/jm-macros.m4: Check for help2man.
86489
86490 2001-09-11  Jim Meyering  <meyering@lucent.com>
86491
86492         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86493         The body, by Paul Eggert, was moved here from configure.in.
86494         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86495
86496 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86497
86498         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86499         (jm_PREREQ): Use it.
86500
86501 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86502
86503         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86504         Use ssize_t, not int, to store result of readlink.
86505         Check for ssize_t overflow as well as size_t overflow,
86506         as POSIX says the result of readlink is implementation-defined
86507         when ssize_t overflows.
86508         Remove unnecessary cast to char*.
86509         Use free+malloc instead of realloc, as the storage doesn't need
86510         to be preserved and it's clearer and can be more efficient that way.
86511         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86512         * lib/xreadlink.h (xreadlink): Update prototype.
86513
86514 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86515
86516         * lib/xgetcwd.c: Revert some of the previous change; intead,
86517         fix the HAVE_GETCWD_NULL code to behave more like the
86518         !HAVE_GETCWD_NULL code used to.
86519
86520         Include "xalloc.h".
86521         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86522         invoke xalloc_die.
86523
86524 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86525
86526         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86527         sys/param.h, as pathmax.h includes them.
86528
86529 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86530
86531         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86532         (jm_PREREQ_XGETCWD): New macro.
86533
86534         * m4/getcwd.m4: New file.
86535
86536 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86537
86538         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86539         like the HAVE_GETCWD_NULL code.
86540         Include pathmax.h if not HAVE_GETCWD.
86541         Do not include xalloc.h.
86542         (INITIAL_BUFFER_SIZE): New symbol.
86543         Do not use xmalloc / xrealloc, since the caller is responsible for
86544         handling errors.  Preserve errno around `free' during failure.
86545         Do not overrun buffer when using getwd.
86546
86547 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86548
86549         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86550         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86551         getcwd (NULL, 0).
86552
86553 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86554
86555         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86556         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86557         spotted by Jim Meyering.
86558
86559 2001-09-03  Jim Meyering  <meyering@lucent.com>
86560
86561         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86562         failure.
86563
86564 2001-09-02  Jim Meyering  <meyering@lucent.com>
86565
86566         * lib/error.c: Update from GNU libc.
86567
86568 2001-09-01  Jim Meyering  <meyering@lucent.com>
86569
86570         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86571         Used by df.
86572
86573 2001-09-01  Jim Meyering  <meyering@lucent.com>
86574
86575         * lib/xreadlink.c: New file.
86576         * lib/xreadlink.h: New file.
86577         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86578         xreadlink.h.
86579
86580         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86581         doesn't conflict with sparc Solaris 7's definition in
86582         /usr/include/sys/int_types.h.
86583
86584         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86585         files.
86586         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86587         and strncasecmp as r-values.  Unixware didn't have declarations.
86588
86589 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86590
86591         * lib/xstrtol.h: Add copyright notice.
86592         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86593         LONGINT_INVALID_SUFFIX_CHAR.
86594
86595 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86596
86597         * lib/xstrtol.c (strtoimax): New decl.
86598
86599 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86600
86601         * lib/xgetcwd.c: Don't include pathmax.h.
86602         Include stdlib.h and unistd.h if available.
86603         Include xalloc.h.
86604         (xmalloc, xstrdup, free): Remove decls.
86605         (xgetcwd): Don't assume sizes fit in unsigned.
86606         Check for overflow when computing sizes.
86607         Simplify reallocation code.
86608
86609 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86610
86611         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86612         a directory's st_size can have an arbitrary value, so the old
86613         usage could waste an arbitrary amount of memory.  All uses
86614         changed.
86615         * lib/savedir.h: Update prototype.
86616
86617 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86618
86619         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86620
86621         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86622         old strtoimax.c.
86623
86624         Also, make the following further changes to make this file's
86625         configuration more similar to that of strtol.c:
86626         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86627         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86628         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86629         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86630         changed to signed values.
86631
86632         And make the following changes as well:
86633         Fix copyright notice, as 1999 was missing.
86634         (verify): New macro.
86635         (strtoimax): Check sizes at compile-time, not run-time.
86636         Prefer strtol to strtoll if both work.
86637         (main): Remove; it was not that useful and was a pain to maintain.
86638
86639         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86640
86641 2001-08-31  Jim Meyering  <meyering@lucent.com>
86642
86643         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86644         Use an initial, malloc'd, buffer of length 128 rather than
86645         a statically allocated one of length 1024.
86646
86647 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86648
86649         Simplify code, partly by assuming autoconf 2.52 semantics.
86650
86651         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86652
86653         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86654         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86655         All uses removed.
86656         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86657         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86658         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86659         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86660         jm_AC_HEADER_INTTYPES_H.
86661         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86662
86663         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86664
86665         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86666         Quote first arg of AC_DEFUN.
86667         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86668         since they are needed to parse the include file even if we need
86669         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86670         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86671         but with opposite signedness.
86672
86673 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86674
86675         Merge 'exclude' changes from tar 1.13.22.
86676         This fixes one or two unlikely storage allocation overflow bugs,
86677         but doesn't change user-visible behavior otherwise.
86678
86679 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86680
86681         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86682         (jm_PREREQ_EXCLUDE): New macro.
86683
86684 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86685
86686         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86687         tm to be declared.
86688
86689 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86690
86691         * lib/hash.c: Remove '2001' from copyright notice.
86692
86693 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86694
86695         * lib/full-write.h: New file.
86696         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86697         * lib/full-write.c: Correct credits, as cccp.c no longer
86698         exists and anyway it was so heavily changed from the old cccp
86699         code as to be unrecognizable.  Include full-write.h.
86700         (full_write): Return size_t, with short writes meaning failure.
86701         All callers changed.  This fixes a bug with large buffers
86702         on 64-bit hosts.
86703         * lib/utime.c: Include full-write.h.
86704
86705 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86706
86707         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86708         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86709         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86710         Include if available.
86711         (<xalloc.h>): Include
86712         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86713         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86714         collide with FNM macros.
86715         (struct patopts): New struct.
86716         (struct exclude): Use it, as exclude patterns now come with options.
86717         (new_exclude): Support above changes.
86718         (new_exclude, add_exclude_file):
86719         Initial size must now be a power of two to simplify overflow checking.
86720         (free_exclude, fnmatch_no_wildcards): New function.
86721         (excluded_filename): No longer requires options arg, as the options
86722         are determined by add_exclude.  Now returns bool, not int.
86723         (excluded_filename, add_exclude):
86724         Add support for the fancy new exclusion options.
86725         (add_exclude, add_exclude_file): Now takes int options arg.
86726         Check for arithmetic overflow when computing sizes.
86727         (add_exclude_file): xrealloc might modify errno, so don't
86728         realloc until after errno might be used.
86729
86730         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86731         New macros.
86732         (free_exclude): New decl.
86733         (add_exclude, add_exclude_file): Now takes int options arg.
86734         (excluded_filename): No longer requires options arg, as the options
86735         are determined by add_exclude.  Now returns bool, not int.
86736
86737 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86738
86739         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86740
86741 2001-08-27  Jim Meyering  <meyering@lucent.com>
86742
86743         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86744
86745         * lib/version-etc.c (N_): Remove definition.
86746         Revert most of last change.
86747         Instead, simply don't mark the `Copyright...' string for translation.
86748         Based on advice from Paul Eggert.
86749
86750         * lib/strtoxmax.c: Tweak comment.
86751
86752 2001-08-26  Jim Meyering  <meyering@lucent.com>
86753
86754         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86755
86756         * m4/xstrtoimax.m4: New file.
86757         * m4/xstrtoumax.m4: Add comments explaining why we
86758         AC_REPLACE_FUNCS(strtol).
86759
86760 2001-08-26  Jim Meyering  <meyering@lucent.com>
86761
86762         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86763         of copyright with `%s' so translators don't get an untranslated
86764         message in 2002.
86765         (COPYRIGHT_YEAR): Define.
86766         (version_etc): Use fprintf rather than fputs.
86767         Suggestion from Ulrich Drepper.
86768
86769         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86770
86771         * lib/strtoll.c: New file, from GNU libc.
86772         * lib/xstrtoimax.c: New file.
86773
86774         * lib/xstrtol.h: Add xstrtoimax.
86775         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86776         * lib/strtoimax.c: New file.  Likewise, but first define
86777         STRTOUXMAX_SIGNED.
86778
86779         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86780         ...
86781         * lib/strtoxmax.c: ... then renamed to this.
86782
86783 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86784
86785         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86786         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86787         (jm_AC_TYPE_INTMAX_T): New macro.
86788         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86789
86790         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86791
86792         * m4/longlong.m4: Renamed from ulonglong.m4.
86793         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86794         * m4/uintmax_t.m4: Removed.
86795
86796 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86797
86798         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86799         Port to Solaris 8, where 'sed' requires a space after the 'r'
86800         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86801         Redirect output to $tmp just once.
86802
86803 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86804
86805         * lib/addext.c (<errno.h>): Include.
86806         (errno): Declare if not defined.
86807         (addext): Work correctly when pathconf returns -1 and leaves
86808         errno alone because there is no limit.  Also, work even if
86809         pathconf returns a value greater than SIZE_MAX.
86810
86811 2001-08-12  Jim Meyering  <meyering@lucent.com>
86812
86813         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86814         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86815         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86816         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86817         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86818         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86819         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86820         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86821         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86822         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86823         utime.m4, utimes.m4, xstrtoumax.m4:
86824         Quote the first argument in each use of AC_DEFUN.
86825
86826 2001-08-12  Jim Meyering  <meyering@lucent.com>
86827
86828         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86829         Simply `return getcwd (NULL, 0);'.
86830         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86831         Use 1300 as initial value for length, not PATH_MAX.
86832
86833         * lib/pathmax.h: Clean up cpp syntax.
86834
86835 2001-08-12  Jim Meyering  <meyering@lucent.com>
86836
86837         * lib/gettimeofday.c: New file.
86838         * lib/gtod.h: New file.
86839         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86840
86841 2001-08-05  Jim Meyering  <meyering@lucent.com>
86842
86843         * m4/jm-macros.m4: Require autoconf-2.52.
86844
86845 2001-08-04  Jim Meyering  <meyering@lucent.com>
86846
86847         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86848         stmt, to get in sync with glibc.
86849
86850 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86851
86852         The following changes are from gettext 0.10.39 as maintained by
86853         Bruno Haible.
86854
86855         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86856         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86857         with inverted sense.  All uses changed.
86858
86859         * lib/mbswidth.c: Don't include <limits.h>.
86860         Include <stdlib.h> and <string.h> unconditionally.
86861         (iswcntrl, mbsinit, ISCNTRL): New macros.
86862         (mbsnwidth): Use K&R style function declarations.
86863         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86864         can optimize it when MB_CUR_MAX == 1.
86865         The width of control characters is zero, not 1.
86866
86867 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86868
86869         The following changes are from gettext 0.10.39 as maintained by
86870         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86871
86872         * m4/codeset.m4: Upgrade to serial AM1.
86873         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86874         all uses changed.  Quote first arg of AC_DEFUN.
86875         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86876
86877         * m4/iconv.m4: Upgrade to serial AM2.
86878         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86879         Add --with-libconv-prefix.
86880         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86881         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86882         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86883         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86884         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86885
86886         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86887         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86888         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86889         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86890         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86891         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86892         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86893         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86894         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86895
86896         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86897         string.h any more.
86898
86899         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86900         not the default value.
86901
86902         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86903         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86904         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86905         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86906         Also check for iswcntrl, used for wcwidth fallback.
86907         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86908         to Autoconf 2.13.
86909
86910 2001-08-03  Jim Meyering  <meyering@lucent.com>
86911
86912         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86913         as it was in the original.  Reported by Paul Eggert.
86914
86915 2001-07-16  Jim Meyering  <meyering@lucent.com>
86916
86917         * m4/gettimeofday.m4: New file.
86918         Prompted by a report from Bernhard Baehr.
86919
86920 2001-07-15  Jim Meyering  <meyering@lucent.com>
86921
86922         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86923         stuff. Now it's in ../Makefile.cfg.
86924
86925 2001-07-15  Jim Meyering  <meyering@lucent.com>
86926
86927         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86928         (BUILT_SOURCES): Add unlocked-io.h.
86929         (io_functions): Define.
86930         (unlocked-io.h): New rule.
86931         (DISTCLEANFILES): Add unlocked-io.h.
86932         (all-local): Depend on unlocked-io.h, to ensure it is created.
86933
86934         * lib/unlocked-io.hin: New file
86935
86936         * lib/regex.c: Update from glibc.
86937
86938 2001-07-05  Jim Meyering  <meyering@lucent.com>
86939
86940         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86941         recommendation.
86942         (libfetish_a_SOURCES): Put all .h files here instead.
86943         Remove a thus-exposed (better checks in automake) duplicate and
86944         two unnecessary .h files.
86945
86946 2001-07-04  Jim Meyering  <meyering@lucent.com>
86947
86948         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86949         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86950         distcheck failure.
86951
86952 2001-07-02  Jim Meyering  <meyering@lucent.com>
86953
86954         The following changes were prompted by suggestions from Bruno Haible.
86955
86956         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86957         is now generated.
86958         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86959         definition of EXTRA_DIST.
86960         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86961         ensure that the generated file is created/updated whenever the list
86962         of $(unlocked_functions) is changed.
86963         (jm-glibc-io.m4): New rule.
86964         (unlocked-io.h): New rule -- currently unused.
86965
86966 2001-06-24  Jim Meyering  <meyering@lucent.com>
86967
86968         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86969         unmatched right bracket, rather than kludging it with an extra,
86970         falsely-matching quote in a comment.  Patch by Akim Demaille.
86971
86972 2001-06-11  Jim Meyering  <meyering@lucent.com>
86973
86974         * lib/regex.c: Update from GNU libc.
86975
86976 2001-05-27  Jim Meyering  <meyering@lucent.com>
86977
86978         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86979         Check for ut_type in struct utmp.
86980
86981 2001-05-27  Jim Meyering  <meyering@lucent.com>
86982
86983         * lib/readutmp.h (UT_TYPE): Define.
86984
86985 2001-05-24  Jim Meyering  <meyering@lucent.com>
86986
86987         * lib/argmatch.c: Include "quote.h".
86988         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86989         quote function.  Reported by Göran Uddeborg.
86990
86991 2001-05-22  Jim Meyering  <meyering@lucent.com>
86992
86993         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86994         now that we use the package-supplied version unconditionally.
86995         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86996
86997 2001-05-21  Jim Meyering  <meyering@lucent.com>
86998
86999         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87000         shell syntax errors.
87001
87002 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87003
87004         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87005
87006 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87007
87008         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87009         Don't bother to check library strftime, since
87010         we'll be using our own my_strftime function anyway.
87011         Define my_strftime instead of strftime.
87012
87013 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87014
87015         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87016         which is not yet declared.
87017
87018 2001-05-15  Jim Meyering  <meyering@lucent.com>
87019
87020         * m4/regex.m4: Use proper quoting so brackets appear in the test
87021         program.
87022         Reported by, and with help from, Bruno Haible.
87023
87024 2001-05-13  Jim Meyering  <meyering@lucent.com>
87025
87026         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87027         undefined.
87028
87029 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87030
87031         dirname code cleanup.  base_name now behaves more compatibly
87032         with POSIX basename when given file names that have trailing
87033         slashes, and similarly for dir_name.  Add new primitives
87034         base_len and dir_len.  Put the directory-name-related decls
87035         into dirname.h.
87036
87037         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87038         * lib/backupfile.c (base_name): Likewise.
87039         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87040         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87041         * lib/makepath.c (strip_trailing_slashes): Likewise.
87042         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87043         ISSLASH): Likewise.
87044         * lib/rename.c (strip_trailing_slashes): Likewise.
87045         * lib/same.c (base_name): Likewise.
87046         * lib/stripslash.c (ISSLASH): Likewise.
87047
87048         * lib/addext.c: Include <dirname.h> after size_t is defined.
87049         * lib/backupfile.c: Likewise.
87050
87051         * lib/addext.c (addext): Use base_len to trim redundant
87052         trailing slashes instead of doing it ourselves.
87053         But do not trim the last slash if it is not redundant.
87054
87055         * lib/backupfile.c (find_backup_file_name,
87056         max_backup_version): Use base_len instead of rolling it ourselves.
87057         Handle the case of "" and (on DOS) "C:" correctly.
87058
87059         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87060         needed. Include <string.h>, <dirname.h>.
87061         (base_name): Allow file names ending in slashes, other than names
87062         that are all slashes.  In this case, return the basename followed
87063         by the slashes.  This is more general, and can be used in places
87064         where the original base_name purposely had an assertion failure.
87065         (base_len): New function.
87066
87067         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87068         Do not include <assert.h>; no longer needed.
87069         Include xalloc.h.
87070         (memrchr): Remove decl.
87071         (dir_name_r): Remove.
87072         (dir_len): Renamed from dirlen.  All callers changed.
87073         Rewrite in terms of base_name, for simplicity and consistency.
87074         (dir_name): Never return NULL.  All callers changed.
87075         Do not include <stdlib.h> in test program; no longer needed.
87076         return 0; is fine for test program.
87077
87078         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87079         New macros.
87080         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87081
87082         * lib/path-concat.c (path_concat): Use base_len to compute
87083         base length, not strlen; this means we cannot rely on memcpy
87084         to null-terminate.
87085
87086         * lib/same.c (STREQ): Remove.
87087         (same_name): Handle the case where the basename ends in trailing '/'.
87088
87089         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87090         a slash was stripped.  Do not strip the last slash after a
87091         file system prefix.
87092
87093 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87094
87095         * lib/Makefile.am (libfetish_a_SOURCES):
87096         Add strftime.c, since we now compile it on all hosts.
87097
87098         * lib/strftime.c (my_strftime):
87099         Define to nstrftime if emacs, but only if my_strftime is not defined.
87100         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87101         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87102         Add one more extra argument: a nanoseconds value.
87103         All uses changed.
87104         (ns): New macro.
87105         (my_strftime function): Add %N format.
87106         (emacs_strftimeu): Renamed from emacs_strftime,
87107         with extra ut argument.
87108
87109 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87110
87111         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87112
87113 2001-04-21  Jim Meyering  <meyering@lucent.com>
87114
87115         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87116         doesn't interfere.
87117
87118 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87119
87120         * m4/ftruncate.m4: Check for chsize.
87121         Link with ftruncate.o unconditionally if ftruncate is missing.
87122         This was required when cross-compiling to i586-mingw32msvc.
87123
87124 2001-04-08  Jim Meyering  <meyering@lucent.com>
87125
87126         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87127         recomputed; that's necessary when the offset spans a DST transition.
87128         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87129
87130 2001-04-02  Jim Meyering  <meyering@lucent.com>
87131
87132         * lib/regex.h, regex.c: Update from GNU libc.
87133
87134 2001-03-24  Jim Meyering  <meyering@lucent.com>
87135
87136         * m4/jm-macros.m4: Require autoconf-2.49d.
87137
87138 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87139
87140         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87141
87142 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87143
87144         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87145
87146 2001-03-17  Jim Meyering  <meyering@lucent.com>
87147
87148         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87149         now that the version in autoconf is equivalent.
87150         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87151
87152         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87153         Suggestion from Akim Demaille.
87154
87155         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87156         (jm_PREREQ_TEMPNAME): New function.
87157
87158 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87159
87160         * lib/tempname.c (uint64_t): Define to uintmax_t if
87161         not defined, and if UINT64_MAX is not defined.
87162         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87163         Reported by John David Anglin.
87164
87165 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87166
87167         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87168         resolve alias if codeset is empty.
87169         * lib/config.charset (BeOS): Use wildcard syntax.
87170
87171 2001-03-13  Jim Meyering  <meyering@lucent.com>
87172
87173         * lib/path-concat.c (path_concat)
87174         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87175         concatenating e.g., `C:' and `foo'.
87176         From Bruno Haible.
87177
87178 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87179
87180         * lib/localcharset.c (locale_charset): Don't use
87181         setlocale(LC_CTYPE,NULL). Don't return NULL.
87182         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87183
87184 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87185
87186         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87187         support for DOS/DJGPP.
87188
87189 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87190
87191         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87192         lacks mkstemp.  Compile our own tempname.c if we compile our own
87193         mkstemp.c, as mkstemp relies on tempname.
87194
87195 2001-03-01  Jim Meyering  <meyering@lucent.com>
87196
87197         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87198         AH_VERBATIM really does output its argument verbatim.
87199
87200 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87201
87202         * lib/Makefile.am (libfetish_a_SOURCES):
87203         Add dup-safer.c, fopen-safer.c.
87204         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87205
87206         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87207         * lib/unistd-safer.h: New files.
87208
87209 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87210
87211         The mkstemp replacement is taken from glibc 2.2.2, with some
87212         portability fixes for use outside glibc, as follows:
87213
87214         * lib/tempname.c (struct_stat64): New macro.
87215         (direxists, __gen_tempname): Use it.
87216         This avoids a portability problem with Solaris 8.
87217
87218         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87219         (<stddef.h>, <stdint.h>, <string.h>):
87220         Include only if STDC_HEADERS || _LIBC.
87221         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87222         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87223         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87224         (__set_errno): Define this macro if <errno.h> doesn't.
87225         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87226         Define these macros if <stdio.h> doesn't.
87227         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87228         Define these macros if <sys/stat.h>
87229         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87230         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87231         __xstat64): Define if not _LIBC.
87232         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87233         (__gen_tempname): Invoke gettimeofday only if
87234         HAVE_GETTIMEOFDAY || _LIBC;
87235         otherwise, fall back on plain "time".
87236         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87237
87238         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87239
87240         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87241
87242 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87243
87244         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87245
87246 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87247
87248         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87249         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87250         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87251         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87252
87253 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87254
87255         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87256         Remove workaround macros for hosts that have mbrtowc but not
87257         mbstate_t, as we now insist on proper declarations for both
87258         before using mbrtowc.
87259
87260 2001-02-17  Jim Meyering  <meyering@lucent.com>
87261
87262         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87263         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87264         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87265         UnixWare 7.1.1.
87266
87267         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87268         rather than AC_CACHE_VAL.
87269
87270 2001-02-17  Jim Meyering  <meyering@lucent.com>
87271
87272         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87273         around included file name.
87274
87275         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87276
87277         * lib/strftime.c: Update from GNU libc (the only changes were to
87278         comments).
87279
87280 2001-02-17  Jim Meyering  <meyering@lucent.com>
87281
87282         * lib/regex.c: Update from libc.
87283
87284 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87285
87286         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87287         clash.
87288
87289 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87290
87291         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87292         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87293         Reported by Mark Hounschell via Paul Eggert.
87294
87295 2001-02-07  Jim Meyering  <meyering@lucent.com>
87296
87297         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87298
87299 2001-02-05  Jim Meyering  <meyering@lucent.com>
87300
87301         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87302         it includes the patch required for `large file' support with at least
87303         HP-UX's 10.20 /bin/cc.
87304
87305 2001-02-03  Jim Meyering  <meyering@lucent.com>
87306
87307         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87308         AS_IF, now that it works once again (mysteriously).
87309         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87310
87311 2001-01-30  Jim Meyering  <meyering@lucent.com>
87312
87313         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87314         * m4/chown.m4: Rename conftestchown to conftest.chown.
87315         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87316         s/conftestdir2/conftest.d2/.
87317         * m4/utimes.m4: s/conftestdata/conftest.data/
87318         Inspired by Pavel Roskin's change in autoconf.
87319
87320 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87321
87322         * lib/config.charset: Update for FreeBSD 4.2.
87323
87324 2001-01-27  Jim Meyering  <meyering@lucent.com>
87325
87326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87327         a use of AS_IF.
87328         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87329
87330 2001-01-26  Jim Meyering  <meyering@lucent.com>
87331
87332         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87333         quotearg.c includes it.
87334
87335 2001-01-26  Jim Meyering  <meyering@lucent.com>
87336
87337         * lib/quotearg.c: Include stddef.h.
87338         * lib/quote.c: Include stddef.h.
87339         Reported by Axel Kittenberger.
87340
87341         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87342         line in double quotes so that it evokes a better diagnostic.
87343         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87344         Reported by Axel Kittenberger.
87345
87346 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87347
87348         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87349         as if it was a `charset'.
87350
87351 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87352
87353         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87354         has const.
87355
87356 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87357
87358         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87359         to avoid a warning.  Add back 'const' to inptr.
87360
87361 2001-01-20  Jim Meyering  <meyering@lucent.com>
87362
87363         Be sure that headers are checked before used in code compiled
87364         for the type checks.
87365         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87366         In place of that, invoke jm_CHECK_ALL_TYPES.
87367         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87368         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87369         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87370         The check for ssize_t was mistakenly run before the test for unistd.h.
87371
87372         The configure-time check for stdbool.h was missing.
87373         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87374         (jm_PREREQ_HASH): New function.
87375
87376 2001-01-17  Jim Meyering  <meyering@lucent.com>
87377
87378         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87379         for autoconf-2.49c.
87380         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87381
87382 2001-01-16  Jim Meyering  <meyering@lucent.com>
87383
87384         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87385         From Bruno Haible.
87386
87387 2001-01-14  Jim Meyering  <meyering@lucent.com>
87388
87389         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87390         foo and bar.  Create conftestdir/ in the script, not in the C code.
87391         Remove directories in the script, not in the C code.
87392         Remove conftestdir{,2} before trying to create the directory.
87393         Make the entire configure script fail if the mkdir fails.
87394
87395 2001-01-14  Jim Meyering  <meyering@lucent.com>
87396
87397         * lib/rename.c: New file.  From Volker Borchert.
87398         Include stdlib.h, string.h or strings.h, and xalloc.h.
87399         Use strip_trailing_slashes rather than open-coding it.
87400
87401 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87402
87403         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87404
87405 2001-01-03  Jim Meyering  <meyering@lucent.com>
87406
87407         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87408         of local `inptr' to avoid warning with some system declarations of
87409         iconv.
87410
87411 2001-01-02  Volker Borchert  <bt@teknon.de>
87412
87413         * m4/rename.m4: New file.
87414         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87415
87416 2001-01-01  Jim Meyering  <meyering@lucent.com>
87417
87418         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87419         even on systems with utmpx.h.  It's necessary for the declaration of
87420         utmp's ut_user member.  Reported by Andreas Jaeger.
87421
87422         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87423         available. They are required for the declarations of getgrgid and
87424         getpwuid resp.
87425         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87426         Reported by Andreas Jaeger.
87427
87428 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87429
87430         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87431         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87432         so `make install' also works in VPATH builds.
87433
87434 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87435
87436         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87437         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87438         can be used in subdirectories.
87439
87440 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87441
87442         * lib/modechange.c: Do not assume that mode_t uses the
87443         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87444         the other-execute bit of FOO even if S_IXOTH != 1.
87445
87446         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87447         WOTH, XOTH, ALLM): New macros.
87448         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87449          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87450         Use them.
87451         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87452         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87453         (mode_compile):
87454         No need to use uintmax_t; unsigned long is long enough.
87455         Don't bother to get suffix since we don't use it.
87456
87457 2000-12-26  Jim Meyering  <meyering@lucent.com>
87458
87459         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87460         better with autoheader.
87461
87462 2000-12-24  Jim Meyering  <meyering@lucent.com>
87463
87464         * lib/hash.c (is_prime): Return explicit boolean values.
87465         (hash_get_first): Return NULL to appease Irix5.6's 89.
87466         Reported by Nelson Beebe.
87467
87468 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87469
87470         * lib/localcharset.c (locale_charset): Add support for Win32.
87471
87472 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87473
87474         * lib/physmem.h, lib/physmem.c: New files.
87475
87476         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87477         (noinst_HEADERS): Add physmem.h.
87478
87479         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87480         't' for compatibility with Solaris 8 sort.
87481
87482 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87483
87484         * lib/config.charset: Add support for BeOS.
87485
87486 2000-12-17  Jim Meyering  <meyering@lucent.com>
87487
87488         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87489         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87490
87491 2000-12-16  Jim Meyering  <meyering@lucent.com>
87492
87493         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87494         N and M) would have treated it like `chown N:N FILE'.
87495
87496         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87497
87498 2000-12-16  Jim Meyering  <meyering@lucent.com>
87499
87500         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87501         SHELLS_FILE to a file name that's useful on djgpp systems.
87502         Include stdlib.h.
87503         (ADDITIONAL_DEFAULT_SHELLS): Define.
87504         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87505         Based mostly on a patch from Prashant TR.
87506
87507 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87508
87509         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87510         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87511         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87512
87513 2000-12-08  Andreas Schwab  <schwab@suse.de>
87514
87515         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87516         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87517
87518 2000-12-07  Jim Meyering  <meyering@lucent.com>
87519
87520         * lib/stripslash.c (ISSLASH): Define.
87521         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87522         `/'.
87523         From Prashant TR.
87524
87525         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87526         (dir_name_r): Declare this function as static.
87527         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87528         manifest itself on a name containing a mix of slashes and
87529         backslashes.
87530         Make this function work with names starting with a DOS-style
87531         drive letter and colon prefix.
87532         (dir_name): Append `.' if necessary.
87533         Based mostly on patches from Prashant TR and Eli Zaretskii.
87534
87535         * lib/dirname.h (dir_name_r): Remove prototype.
87536
87537 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87538
87539         * m4/off_t-format.m4: Remove this file.
87540         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87541
87542 2000-12-06  Jim Meyering  <meyering@lucent.com>
87543
87544         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87545         replacement strtoull, we may well need the replacement strtoul, too.
87546         Check for declarations of strtoul and strtoull.
87547         Check for strtol.  Mainly as a cue to cause automake to include
87548         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87549         Check for limits.h -- strtol.c needs it.
87550
87551 2000-12-05  Jim Meyering  <meyering@lucent.com>
87552
87553         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87554
87555 2000-12-04  Jim Meyering  <meyering@lucent.com>
87556
87557         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87558         Also include memory.h, stdlib.h, unistd.h if appropriate.
87559         Reported by Andreas Jaeger (conflicting declaration of malloc).
87560
87561 2000-12-02  Jim Meyering  <meyering@lucent.com>
87562
87563         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87564         * m4/jm-macros.m4 (jm_MACROS): require it.
87565
87566 2000-12-02  Jim Meyering  <meyering@lucent.com>
87567
87568         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87569
87570 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87571
87572         * lib/memrchr.c: Include <config.h> before any system include file.
87573
87574 2000-11-30  Jim Meyering  <meyering@lucent.com>
87575
87576         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87577
87578 2000-11-30  Jim Meyering  <meyering@lucent.com>
87579
87580         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87581
87582 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87583
87584         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87585
87586 2000-11-26  Jim Meyering  <meyering@lucent.com>
87587
87588         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87589
87590 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87591
87592         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87593         size of (size_t) -1; it's not portable.
87594
87595 2000-11-17  Jim Meyering  <meyering@lucent.com>
87596
87597         * lib/strstr.c: Update from GNU libc.
87598
87599 2000-11-17  Akim Demaille  <akim@epita.fr>
87600
87601         * lib/obstack.h: Formatting changes.
87602         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87603         prevent type checking.
87604         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87605         cast the value to (void *): assigning a `foo *' to a `void *'
87606         variable is valid.
87607         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87608
87609 2000-11-16  Jim Meyering  <meyering@lucent.com>
87610
87611         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87612
87613 2000-11-11  Jim Meyering  <meyering@lucent.com>
87614
87615         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87616
87617 2000-11-10  Jim Meyering  <meyering@lucent.com>
87618
87619         * lib/obstack.h: Update from GNU libc.
87620         * lib/obstack.c: Likewise.
87621
87622 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87623
87624         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87625
87626 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87627
87628         * lib/getusershell.c (setusershell): Use rewind rather than
87629         fseek/fseeko, to avoid configuration hassles with fseeko.
87630         Don't bother opening SHELLS_FILE if shellstream is NULL;
87631         it's not necessary.
87632
87633 2000-11-05  Jim Meyering  <meyering@lucent.com>
87634
87635         * lib/makepath.h (make_dir): Declare.
87636         * lib/makepath.c (make_dir): Remove `static' attribute.
87637         Tweak a comment.
87638
87639 2000-11-04  Jim Meyering  <meyering@lucent.com>
87640
87641         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87642
87643 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87644
87645         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87646         last one in a bucket, advance to the next bucket.
87647
87648 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87649
87650         * lib/fnmatch.c: Do not comment out all the code if we are using
87651         the GNU C library, because in some cases we are replacing buggy
87652         code in the GNU C library itself.
87653
87654 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87655
87656         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87657         (regex_compile): Catch bogus \(\1\).
87658
87659 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87660
87661         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87662         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87663         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87664
87665 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87666
87667         * lib/error.h, getline.h, modechange.h:
87668         Remove "2000" from Copyright line, as the file hasn't been
87669         changed this year other than in the copyright notice.
87670
87671         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87672         was changed this year.
87673
87674 2000-10-29  Jim Meyering  <meyering@lucent.com>
87675
87676         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87677         renaming.
87678         * m4/ls-mntd-fs.m4: Likewise
87679
87680 2000-10-29  Jim Meyering  <meyering@lucent.com>
87681
87682         * lib/xstat.in: Fix grammar in comment.
87683
87684 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87685
87686         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87687         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87688         doesn't define __restrict_arr.
87689
87690 2000-10-28  Jim Meyering  <meyering@lucent.com>
87691
87692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87693         (jm_PREREQ_MEMCHR): New function.
87694
87695 2000-10-28  Jim Meyering  <meyering@lucent.com>
87696
87697         * lib/memchr.c: Update from libc.
87698         Adjust for portability:
87699         [HAVE_STDLIB_H]: Include stdlib.h.
87700         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87701         Undef __memchr, too.
87702         [!weak_alias]: Define __memchr to memchr.
87703
87704         * lib/regex.c: Update from libc.
87705         * lib/regex.h: Likewise.
87706         * lib/getopt1.c: Likewise.
87707         * lib/memcmp.c: Likewise.
87708
87709         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87710         Avoid using fseek, when possible -- it's broken by design.
87711         Patch by Ulrich Drepper.
87712
87713 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87714
87715         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87716         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87717         Giving in to popular pressure to shut up the compiler with casts.
87718
87719 2000-10-26  Jim Meyering  <meyering@lucent.com>
87720
87721         * lib/strftime.c: Update from libc.
87722
87723 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87724
87725         * regex.c: More `unsigned char' -> `re_char' changes.
87726         Also change several `int' into `re_wchar_t'.
87727         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87728         (PUSH_FAILURE_POINTER): Don't cast any more.
87729         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87730         We want GCC to complain, since this piece of code makes
87731         re_match non-reentrant, which *should* be fixed.
87732         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87733         (EXTEND_BUFFER): Use RETALLOC.
87734         (SET_LIST_BIT): Don't cast.
87735         (re_wchar_t): New type.
87736         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87737         that those two functions will always properly return.
87738         (IMMEDIATE_QUIT_CHECK): Cast to void.
87739         (analyse_first): Use recursion rather than an explicit stack.
87740         (re_compile_fastmap): Can't fail anymore.
87741         (re_search_2): Don't check re_compile_fastmap for failure.
87742         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87743         Now also sets the new value (passed in a new argument).
87744         (re_match_2_internal): Use it.
87745         Also, use a new var `reg' of type size_t when looping through regs
87746         rather than reuse the inappropriate `mcnt'.
87747
87748 2000-10-25  Jim Meyering  <meyering@lucent.com>
87749
87750         * lib/obstack.c: Update from libc.
87751
87752 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87753
87754         * regex.c (regex_compile): Change the way of handling a range from
87755         a char less than 256 to a char not less than 256.
87756
87757 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87758
87759         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87760         NT-Emacs only.
87761         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87762         so that re_search functions only quit when callers expect them to.
87763
87764 2000-10-23  Jim Meyering  <meyering@lucent.com>
87765
87766         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87767         wrong.  That set_locale call must not have any side effects.
87768         From Paul Eggert.
87769
87770 2000-10-22  Jim Meyering  <meyering@lucent.com>
87771
87772         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87773         [CYCLIC]: Remove now-unused definition.
87774
87775         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87776         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87777         Suggestion from Ulrich Drepper.
87778
87779 2000-10-21  Jim Meyering  <meyering@lucent.com>
87780
87781         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87782         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87783         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87784
87785 2000-10-21  Jim Meyering  <meyering@lucent.com>
87786
87787         * lib/dirname.c (memrchr): Declare if necessary.
87788         (dir_name): Remove the restriction that there be no
87789         trailing slashes.  Now, this code skips past them, effectively
87790         ignoring them.
87791         [TEST_DIRNAME] (main): New unit tests.
87792
87793         * lib/memrchr.c: New file from GNU libc.
87794         Undef __memrchr, too.
87795         [!weak_alias]: Define __memrchr to memrchr.
87796         Guard weak_alias use with `#ifdef weak_alias'.
87797
87798 2000-10-21  Jim Meyering  <meyering@lucent.com>
87799
87800         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87801         (dir_name): Use dir_name_r.
87802         * lib/dirname.h (dir_name_r): Declare it.
87803
87804 2000-10-17  Jim Meyering  <meyering@lucent.com>
87805
87806         * lib/quote.h (PARAMS): Define and use.
87807         Reported by Akim Demaille.
87808
87809         * lib/getopt.c: Update from libc.
87810
87811 2000-10-16  Jim Meyering  <meyering@lucent.com>
87812
87813         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87814         setlocale.
87815         From Jan Fedak.
87816
87817 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87818
87819         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87820
87821 2000-09-25  Jim Meyering  <meyering@lucent.com>
87822
87823         * lib/md5.h (rol): Define (from GnuPG).
87824
87825         * lib/sha.c: Give credit (GnuPG) where due.
87826         (M): Use rol rather than open-coding it.
87827         Add a FIXME comment.
87828
87829 2000-09-21  Jim Meyering  <meyering@lucent.com>
87830
87831         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87832         Reported by Michael Stone.
87833
87834 2000-09-20  Jim Meyering  <meyering@lucent.com>
87835
87836         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87837         (noinst_HEADERS): Add sha.h.
87838         Based on code from Scott G. Miller and from GnuPG.
87839
87840 2000-09-18  Jim Meyering  <meyering@lucent.com>
87841
87842         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87843         LIBS. Otherwise, everyone ends up linking with -lelf for some
87844         configurations.
87845         Reported by Mike Stone.
87846
87847 2000-09-15  Jim Meyering  <meyering@lucent.com>
87848
87849         * lib/regex.c: Update from libc.
87850
87851 2000-09-10  Jim Meyering  <meyering@lucent.com>
87852
87853         * lib/getopt.c (_getopt_internal): Update from glibc.
87854
87855 2000-09-09  Jim Meyering  <meyering@lucent.com>
87856
87857         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87858         think it should be used as a general replacement for isascii.
87859         * lib/fnmatch.c: Likewise.
87860         * lib/mbswidth.c: Likewise
87861         * lib/regex.c: Likewise.
87862
87863         Don't use atoi.
87864         * lib/userspec.c: Include sys/param.h and limits.h.
87865         Include xstrtol.h.
87866         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87867         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87868         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87869         UID, GID.  Check range.
87870
87871 2000-09-06  Jim Meyering  <meyering@lucent.com>
87872
87873         * lib/getopt.c (_getopt_internal): Update from glibc.
87874
87875 2000-08-30  Jim Meyering  <meyering@lucent.com>
87876
87877         * lib/strftime.c: Merge in changes from GNU libc.
87878
87879 2000-08-26  Jim Meyering  <meyering@lucent.com>
87880
87881         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87882         * m4/fpending.m4: New file.
87883
87884 2000-08-26  Jim Meyering  <meyering@lucent.com>
87885
87886         * lib/closeout.c: Include "__fpending.h".
87887         (close_stdout_status): Return right away if there's nothing to flush.
87888
87889         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87890         * lib/__fpending.c: New file.
87891         * lib/__fpending.h: New file.
87892
87893 2000-08-20  Jim Meyering  <meyering@lucent.com>
87894
87895         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87896         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87897         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87898
87899 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87900
87901         Improve fileutils installation on systems where running
87902         programs (like install) can't be unlinked.
87903         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87904         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87905
87906 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87907
87908         Standardize on "memory exhausted" instead of "Memory exhausted"
87909         or "virtual memory exhausted".
87910         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87911         "virtual memory exhausted".
87912         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87913         our own message.
87914         * lib/userspec.c (parse_user_spec): Likewise.
87915         * lib/bumpalloc.h: comment fix
87916         * lib/same.c, userspec.c: Include xalloc.h.
87917
87918         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87919         not char *const and pointing to a constant array.
87920         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87921         (xrealloc): Comment fix.
87922
87923         * lib/userspec.c (parse_user_spec):
87924         Don't translate a message until just before returning,
87925         to avoid unnecessary translation.
87926
87927 2000-08-07  Jim Meyering  <meyering@lucent.com>
87928
87929         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87930         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87931         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87932         getgroups.c, gethostname.c, getopt.h, group-member.c,
87933         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87934         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87935         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87936         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87937         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87938         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87939         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87940         yesno.c: Back out Copyright date changes for each file with no change
87941         this year.  This eases coordination with other programs using the same
87942         source code modules.  From Paul Eggert.
87943
87944 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87945
87946         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87947         not char, for compatibility with glibc 2.1.3 strftime.c.
87948
87949 2000-08-03  Greg McGary  <greg@mcgary.org>
87950
87951         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87952         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87953         (EXTEND_BUFFER): Use them.
87954
87955 2000-08-01  Jim Meyering  <meyering@lucent.com>
87956
87957         * lib/dirname.c (ISSLASH): Define.
87958         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87959         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87960         both `\' and `/' may be use as path separators.
87961         Based on a patch from Prashant TR.
87962
87963 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87964
87965         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87966         slot vector a constant, since it might get modified.
87967
87968 2000-07-31  Jim Meyering  <meyering@lucent.com>
87969
87970         * lib/xmalloc.c: Use `virtual memory exhausted', not
87971         `Memory exhausted'.
87972         * lib/obstack.c (print_and_abort): Likewise.
87973
87974 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87975
87976         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87977         buffer, so that the caller can always quote one small
87978         component of a "memory exhausted" message in slot 0.
87979         From a suggestion by Jim Meyering.
87980
87981 2000-07-30  Jim Meyering  <meyering@lucent.com>
87982
87983         * lib/makepath.c (make_path): Quote the other instance, too.
87984
87985         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87986         (STATIC_BUF_SIZE): Define.
87987         (quotearg_n_options): Use only statically allocated storage when
87988         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87989         than STATIC_BUF_SIZE.
87990
87991 2000-07-29  Jim Meyering  <meyering@lucent.com>
87992
87993         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87994         * lib/dirname.c (dir_name): Likewise.
87995
87996         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87997         `/'.
87998
87999         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88000         (dir_name): Assert that there are no trailing slashes.
88001
88002 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88003
88004         * lib/mbswidth.h (mbswidth): Add a flags argument.
88005         (mbswidth): New declaration.
88006         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88007         * lib/mbswidth.c (mbswidth): Add a flags argument.
88008         (mbsnwidth): New function.
88009
88010 2000-07-24  Jim Meyering  <meyering@lucent.com>
88011
88012         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88013
88014 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88015
88016         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88017
88018 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88019
88020         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88021         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88022         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88023         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88024         invoke multibyte primitives.
88025
88026 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88027
88028         * lib/quotearg.c:
88029         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88030         so that mbstate_t is always defined.
88031
88032         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88033         be 1 in at least one GCC installation, and this configuration
88034         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88035         performance on hosts that have mbrtowc but have only unibyte
88036         locales, but I assume these hosts are rare.
88037
88038 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88039
88040         * lib/mbswidth.c (_XOPEN_SOURCE):
88041         Don't define; this causes problems on Solaris 7.
88042         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88043
88044 2000-07-23  Jim Meyering  <meyering@lucent.com>
88045
88046         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88047         too: getgrgid, getpwuid, getuid.
88048
88049 2000-07-23  Jim Meyering  <meyering@lucent.com>
88050
88051         * lib/basename.c (base_name): Add an assertion.
88052
88053 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88054
88055         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88056         shadow its mbsinit function.
88057
88058 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88059
88060         * lib/mbswidth.h: New file.
88061         * lib/mbswidth.c: New file.
88062         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88063         (noinst_HEADERS): Add mbswidth.h.
88064
88065 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88066
88067         * lib/config.charset: Add support for FreeBSD. Improve support for
88068         HP-UX and IRIX 6.
88069
88070 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88071
88072         * m4/mbswidth.m4: New file.
88073         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88074
88075 2000-07-15  Jim Meyering  <meyering@lucent.com>
88076
88077         * lib/makepath.c: Include quote.h.
88078         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88079         corresponding argument in a `quote (...)' call.
88080         Give better diagnostics.
88081
88082         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88083         (noinst_HEADERS): Add quote.h.
88084
88085         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88086         from tar's src/misc.c.
88087         * lib/quote.h: New file.  Prototypes for same.
88088
88089 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88090
88091         From a suggestion by Bruno Haible.
88092         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88093         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88094         to decide whether to define the BeOS workaround macro;
88095         this adjusts to the change to AC_MBSTATE_T.
88096
88097 2000-07-14  Jim Meyering  <meyering@lucent.com>
88098
88099         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88100         jm_AC_TYPE_UINTMAX_T.
88101
88102 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88103
88104         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88105
88106         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88107         quotearg_buffer_restyled): Add support for
88108         clocale_quoting_style.  Undo previous change to
88109         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88110         and "{RIGHT QUOTATION MARK}" msgids.
88111
88112 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88113
88114         From a suggestion by Bruno Haible.
88115         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88116         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88117         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88118         and mbstate_t, to a single-part test that simply defines mbstate_t.
88119         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88120         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88121
88122 2000-07-10  Jim Meyering  <meyering@lucent.com>
88123
88124         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88125
88126         * m4/gnu-source.m4: Output to confdefs.h directly.
88127         Suggestion from Akim Demaille.
88128
88129 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88130
88131         The old behavior of quoting `like this' doesn't look good with
88132         newer, ISO-style fonts.  See:
88133         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88134
88135         Instead, quote "like this" by default.  Let the translator
88136         tailor the locale-specific quoting behavior by providing
88137         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88138
88139         * lib/quotearg.c (N_): New macro.
88140         (gettext_default): New function.
88141         (quotearg_buffer_restyled): Use
88142         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88143         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88144
88145 2000-07-09  Jim Meyering  <meyering@lucent.com>
88146
88147         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88148         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88149
88150         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88152
88153 2000-07-09  Jim Meyering  <meyering@lucent.com>
88154
88155         * lib/Most files: Update copyright dates to include 2000.
88156
88157 2000-07-08  Jim Meyering  <meyering@lucent.com>
88158
88159         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88160         if not defined.
88161         (xgethostname): Remove now-unnecessary #ifdef.
88162         Move declaration of `err' into loop where it's used.
88163
88164 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88165         and Bruno Haible  <haible@clisp.cons.org>
88166
88167         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88168         only if the test for an object-type mbstate_t fails.  This
88169         prevents us from mistakenly reporting that mbstate_t is a
88170         system object type after we "#define mbstate_t int" to work
88171         around its lack.
88172
88173 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88174         and Bruno Haible  <haible@clisp.cons.org>
88175
88176         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88177
88178 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88179
88180         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88181         to strerror_r.
88182         Include <ctype.h> for use of isalpha.
88183
88184 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88185
88186         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88187         by allocating a larger buffer. Test the gethostname return value for
88188         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88189         returns an error and ENAMETOOLONG isn't defined.
88190
88191 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88192
88193         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88194         dimension.
88195
88196 2000-07-04  Jim Meyering  <meyering@lucent.com>
88197
88198         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88199         of the deprecated AC_CHECKING.
88200
88201 2000-07-04  Jim Meyering  <meyering@lucent.com>
88202
88203         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88204         Reported by Bruno Haible.
88205
88206 2000-07-04  Jim Meyering  <meyering@lucent.com>
88207
88208         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88209         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88210         lacks mbrtowc.
88211
88212 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88213
88214         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88215         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88216
88217 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88218         and Bruno Haible  <haible@clisp.cons.org>
88219
88220         * lib/quotearg.c (mbrtowc):
88221         Assign to *pwc, and return 1 only if result is nonzero.
88222         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88223
88224 2000-07-03  Jim Meyering  <meyering@lucent.com>
88225
88226         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88227
88228 2000-07-03  Jim Meyering  <meyering@lucent.com>
88229
88230         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88231         This is necessary to get a definition of e.g., UTMP_FILE on
88232         HP-UX 10.20.
88233         From Bob Proulx.
88234
88235 2000-07-02  Jim Meyering  <meyering@lucent.com>
88236
88237         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88238
88239         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88240         AC_LIBOBJ(function_name).
88241         * m4/chown.m4: Likewise.
88242         * m4/fnmatch.m4: Likewise.
88243         * m4/ftruncate.m4: Likewise.
88244         * m4/getgroups.m4: Likewise.
88245         * m4/getline.m4: Likewise.
88246         * m4/group-member.m4: Likewise.
88247         * m4/jm-macros.m4: Likewise.
88248         * m4/lstat.m4: Likewise.
88249         * m4/malloc.m4: Likewise.
88250         * m4/memcmp.m4: Likewise.
88251         * m4/nanosleep.m4: Likewise.
88252         * m4/putenv.m4: Likewise.
88253         * m4/realloc.m4: Likewise.
88254         * m4/regex.m4: Likewise.
88255         * m4/stat.m4: Likewise.
88256         * m4/strftime.m4: Likewise.
88257
88258 2000-07-02  Jim Meyering  <meyering@lucent.com>
88259
88260         * lib/quotearg.c (mbstate_t): Don't define here.
88261
88262 2000-07-02  Jim Meyering  <meyering@lucent.com>
88263
88264         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88265
88266 2000-07-01  Jim Meyering  <meyering@lucent.com>
88267
88268         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88269
88270 2000-07-01  Jim Meyering  <meyering@lucent.com>
88271
88272         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88273         problem.
88274
88275 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88276
88277         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88278         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88279
88280 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88281
88282         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88283         per change in ../m4/ls-mntd-fs.m4.
88284         (read_filesystem_list): Ignore symbolic links.
88285
88286 2000-06-29  Jim Meyering  <meyering@lucent.com>
88287
88288         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88289         for declaration of strcmp.
88290
88291         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88292
88293         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88294         Avoid warning by casting result to `char *' to remove `const'.
88295
88296 2000-06-28  Jim Meyering  <meyering@lucent.com>
88297
88298         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88299         included by quotearg.c, for which we perform this test.  From
88300         Bruno Haible.
88301
88302 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88303
88304         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88305         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88306         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88307
88308 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88309
88310         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88311
88312 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88313
88314         savedir now sets errno on failure and invokes xmalloc to get memory.
88315         Fix a couple of other minor bugs while we're at it.
88316
88317         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88318         (NAMLEN): Remove macro.
88319         (malloc, realloc): Remove decls.
88320         (stpcpy): Likewise.
88321         ("xalloc.h"): Include.
88322         (NAME_SIZE_DEFAULT): New macro.
88323         (savedir): Use xmalloc / xrealloc to allocate memory.
88324         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88325         Skip "" directory entries.
88326         Use strlen to calculate directory entry length, since the old method
88327         is rarely used these days and isn't worth supporting.
88328         Don't use a pointer after freeing it.
88329         Check for integer overflow when calculating allocation size.
88330         Use memcpy to copy entries, instead of stpcpy.
88331         Set errno properly when returning NULL.
88332         Check for readdir error.
88333
88334 2000-06-26  Jim Meyering  <meyering@lucent.com>
88335
88336         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88337
88338 2000-06-25  Jim Meyering  <meyering@lucent.com>
88339
88340         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88341         Linux header bug when _XOPEN_SOURCE is defined to 500.
88342
88343 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88344
88345         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88346         deficiency.
88347
88348 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88349
88350         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88351         Include xalloc.h.
88352         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88353
88354 2000-06-24  Jim Meyering  <meyering@lucent.com>
88355
88356         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88357         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88358         for which strerror does return char*, but which lacks a conveniently
88359         accessible declaration of the function.  If the compile-test says
88360         strerror_r doesn't work, then resort to a `run'-test that works on
88361         BeOS and segfaults on DEC Unix.
88362
88363 2000-06-24  Jim Meyering  <meyering@lucent.com>
88364
88365         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88366
88367 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88368
88369         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88370         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88371
88372 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88373
88374         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88375         (mbrtowc, mbstate_t): Define substitutes if
88376         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88377         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88378         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88379
88380 2000-06-23  Jim Meyering  <meyering@lucent.com>
88381
88382         * m4/afs.m4: Add missing AC_MSG_RESULT.
88383         Reported by Bruno Haible.
88384
88385         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88386         Suggestion from Bruno Haible.
88387
88388 2000-06-23  Jim Meyering  <meyering@lucent.com>
88389
88390         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88391
88392 2000-06-21  Jim Meyering  <meyering@lucent.com>
88393
88394         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88395
88396 2000-06-21  Jim Meyering  <meyering@lucent.com>
88397
88398         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88399         (noinst_HEADERS): Add getstr.h.
88400
88401         * lib/getline.c (getstr): Move into a separate file.
88402         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88403         the following changes: new parameter, delim2; both delim[12]
88404         parameters have type `int', not `char'.  The latter would lose
88405         with 8-bit delimiters.
88406         * lib/getstr.h: New file.
88407
88408 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88409
88410         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88411         than 1024, return a memory chunk of least possible size, instead
88412         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88413         Use free/xmalloc instead of xrealloc to avoid copying for very long
88414         paths.
88415
88416 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88417
88418         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88419         the empty string.
88420
88421 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88422
88423         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88424         address, not strdup.  Include <stdlib.h> and don't declare free().
88425
88426 2000-06-19  Jim Meyering  <meyering@lucent.com>
88427
88428         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88429
88430 2000-06-18  Jim Meyering  <meyering@lucent.com>
88431
88432         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88433
88434         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88435         `checking whether...' message to be consistent with that of the
88436         lstat test.
88437
88438 2000-06-18  Jim Meyering  <meyering@lucent.com>
88439
88440         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88441         Besides, these days every porting target provides a mkdir function.
88442
88443         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88444         needed. (this snippet comes from src/system.h).
88445
88446 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88447
88448         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88449
88450 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88451
88452         * lib/human.c (adjust_value): New function.
88453         (human_readable_inexact): Apply rounding style even when
88454         printing approximate values.
88455
88456 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88457
88458         * lib/human.c (human_readable_inexact): Allow an input block
88459         size that is not a multiple of the output block size, and vice versa.
88460         Reported by Piergiorgio Sartor.
88461
88462 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88463
88464         * lib/getdate.y (get_date): Apply relative times after time
88465         zone indicator, not before.  Reported by Todd A. Jacobs.
88466
88467 2000-06-13  Jim Meyering  <meyering@lucent.com>
88468
88469         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88470
88471         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88472
88473 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88474
88475         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88476
88477 2000-06-12  Jim Meyering  <meyering@lucent.com>
88478
88479         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88480         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88481         optional argument.
88482         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88483         the optional argument, `lib'.
88484
88485 2000-06-08  Jim Meyering  <meyering@lucent.com>
88486
88487         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88488
88489 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88490
88491         Rewrite largefile configuration so that we don't need to run
88492         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88493         AC_CANONICAL_HOST in configure.in -- jmm]
88494
88495         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88496         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88497         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88498         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88499         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88500         All uses changed.
88501         Instead of inspecting the output of getconf, try to compile the
88502         test program without and with the macro definition.
88503         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88504         for getconf.  Instead, check for the needed flags by compiling
88505         test programs.
88506
88507 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88508
88509         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88510
88511 2000-06-04  Jim Meyering  <meyering@lucent.com>
88512
88513         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88514         SunOS 4.1.4 for which gid_t is an unsigned type.
88515
88516 2000-06-03  Jim Meyering  <meyering@lucent.com>
88517
88518         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88519         now that autoconf requires that.
88520
88521         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88522         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88523         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88524
88525 2000-06-03  Jim Meyering  <meyering@lucent.com>
88526
88527         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88528
88529 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88530
88531         * m4/glibc21.m4: New file.
88532         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88533
88534 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88535
88536         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88537         newer, don't install charset.alias.
88538         * lib/config.charset: Change the Linux/glibc rules so they become empty
88539         on glibc-2.1 or newer.
88540
88541 2000-06-02  Jim Meyering  <meyering@lucent.com>
88542
88543         * lib/mountlist.c: Back out last change.  Instead, do this...
88544         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88545         me_dummy member using the same `ignore'-testing code.
88546         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88547         fs_type strings.
88548         From Mark D. Roth.
88549
88550 2000-05-29  Jim Meyering  <meyering@lucent.com>
88551
88552         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88553         mounts with the `ignore' attribute.  Based on a patch from
88554         Mark D. Roth.
88555
88556 2000-05-28  Jim Meyering  <meyering@lucent.com>
88557
88558         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88559         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88560         * m4/stat.m4: Likewise.
88561         * m4/lstat.m4: Likewise.
88562         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88563
88564         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88565         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88566
88567 2000-05-26  Jim Meyering  <meyering@lucent.com>
88568
88569         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88570
88571 2000-05-24  Jim Meyering  <meyering@lucent.com>
88572
88573         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88574         autoconf requires that.
88575         * m4/lib-check.m4: Likewise.
88576         * m4/jm-macros.m4: Likewise.
88577         * m4/strftime.m4: Likewise.
88578
88579         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88580         AC_CHECK_DECLS, now that autoconf requires that.
88581
88582 2000-05-22  Jim Meyering  <meyering@lucent.com>
88583
88584         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88585         * m4/lstat.m4: Likewise.
88586
88587 2000-05-22  Jim Meyering  <meyering@lucent.com>
88588
88589         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88590
88591 2000-05-20  Jim Meyering  <meyering@lucent.com>
88592
88593         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88594         (jm_PREREQ): Use it.
88595
88596 2000-05-18  Jim Meyering  <meyering@lucent.com>
88597
88598         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88599         back, too, since it may have been modified by allocate_entry.
88600         (hash_delete): Rewrite to use neither the assignment operator
88601         nor the comma operator in an if-expression.
88602
88603 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88604
88605         * lib/closeout.c:
88606         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88607         Remove; no longer needed.
88608         "quotearg.h": Add include.
88609         (file_name): Do not bother to explicitly initialize to NULL; it's less
88610         efficient on some hosts.
88611         (close_stdout_status): Remove test as to whether stdout was already
88612         closed; it breaks for the case "echo x | sort >&-".
88613         Quote file name colons.
88614         Do not assume that _("write error") lacks format strings.
88615
88616 2000-05-15  Jim Meyering  <meyering@lucent.com>
88617
88618         * lib/version-etc.c (version_etc_copyright): Update the copyright
88619         string used in all --version output.
88620
88621 2000-05-14  Jim Meyering  <meyering@lucent.com>
88622
88623         * lib/closeout.c (close_stdout_set_file_name): New function.
88624         (close_stdout_status): Use new file-scoped global.
88625         Return right away if fstat says the stdout file descriptor is invalid.
88626         * lib/closeout.h (close_stdout_set_file_name): Declare.
88627
88628 2000-05-10  Jim Meyering  <meyering@lucent.com>
88629
88630         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88631         (close_stdout_set_status): New function.
88632         * lib/closeout.h (close_stdout_set_status): Declare.
88633
88634 2000-05-09  Jim Meyering  <meyering@lucent.com>
88635
88636         * m4/gettext.m4: Rename this...
88637         * m4/libintl.m4: ...to this.
88638
88639 2000-05-08  Jim Meyering  <meyering@lucent.com>
88640
88641         * lib/long-options.c: Don't include closeout.h.
88642         (parse_long_options): Don't call close_stdout for --version.
88643
88644 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88645
88646         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88647         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88648         2.1.3 bug.  This avoids a clash when files like regex.c define
88649         _GNU_SOURCE.
88650
88651 2000-05-06  Jim Meyering  <meyering@lucent.com>
88652
88653         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88654         (AC_REPLACE_FUNCS): Add strnlen.
88655
88656         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88657         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88658
88659         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88660         AC_SEARCH_LIBS call for nanosleep.
88661         (LIB_NANOSLEEP): Set and AC_SUBST.
88662
88663 2000-05-06  Jim Meyering  <meyering@lucent.com>
88664
88665         * lib/strnlen.c: Undefine __strnlen and strnlen.
88666         [!weak_alias]: Define __strnlen to strnlen.
88667
88668         * lib/atexit.c: New file, from libiberty.
88669
88670 2000-05-06  Jim Meyering  <meyering@lucent.com>
88671
88672         * lib/closeout.c (close_stdout_status): Also check for errors on the
88673         stderr stream.
88674
88675 2000-05-05  Jim Meyering  <meyering@lucent.com>
88676
88677         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88678         AC_SEARCH_LIBS call for clock_gettime.
88679         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88680
88681         * m4/search-libs.m4: Update from autoconf.
88682
88683         su doesn't work on Solaris 2.6.
88684         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88685         <shadow.h>.  Reported by Dragos Harabor.
88686
88687 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88688
88689         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88690         memcpy instead of xmalloc, xrealloc, path_concat.
88691         (locale_charset): Treat empty environment variables as absent.
88692         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88693
88694 2000-05-04  Jim Meyering  <meyering@lucent.com>
88695
88696         * lib/getopt.c: Update from glibc.
88697         * lib/obstack.c: Likewise.
88698         * lib/obstack.h: Likewise.
88699         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88700         file
88701
88702         * lib/regex.h: Likewise.
88703         * lib/strndup.c: Likewise.
88704         * lib/strnlen.c: New file, from glibc.
88705
88706 2000-05-03  Jim Meyering  <meyering@lucent.com>
88707
88708         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88709
88710 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88711
88712         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88713         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88714         compile-time test, rather than inspecting host and OS, to
88715         decide whether to define _LARGEFILE_SOURCE.
88716
88717 2000-05-01  Jim Meyering  <meyering@lucent.com>
88718
88719         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88720
88721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88722         Based on a patch from Bruno Haible.
88723
88724 2000-05-01  Jim Meyering  <meyering@lucent.com>
88725
88726         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88727
88728 2000-04-29  Jim Meyering  <meyering@lucent.com>
88729
88730         * lib/path-concat.c: Declare strdup only if it's not defined.
88731         * lib/canon-host.c: Likewise.
88732
88733 2000-04-28  Jim Meyering  <meyering@lucent.com>
88734
88735         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88736         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88737         is included first, then limits.h is included by locale.h by libintl.h.
88738         From John David Anglin.
88739
88740 2000-04-25  Jim Meyering  <meyering@lucent.com>
88741
88742         * lib/makepath.c (S_IRWXUGO): Define.
88743         (make_path): Always perform explicit chmod if MODE specifies any
88744         of the `special' permission bits.  Prompted by a bug report against
88745         install from Mate Wierdl and Joost van Baal.
88746
88747 2000-04-18  Jim Meyering  <meyering@lucent.com>
88748
88749         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88750         (jm_PREREQ): Use it.
88751
88752 2000-04-18  Jim Meyering  <meyering@lucent.com>
88753
88754         * lib/README: New file.
88755
88756         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88757         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88758
88759 2000-04-17  Jim Meyering  <meyering@lucent.com>
88760
88761         Get it right :-)
88762         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88763         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88764         Suggestion from Akim Demaille.
88765
88766 2000-04-17  Jim Meyering  <meyering@lucent.com>
88767
88768         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88769         the definition of it to rpl_strftime also defined-away the system's
88770         declaration.
88771
88772 2000-04-15  Jim Meyering  <meyering@lucent.com>
88773
88774         Use `C' to denote so-called `contiguous' files, the same way
88775         that tar does.
88776         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88777         (ftypelet): Use S_ISCTG.
88778         From Michael Deutschmann.
88779
88780 2000-04-14  Jim Meyering  <meyering@lucent.com>
88781
88782         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88783         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88784         clobbered.
88785
88786 2000-04-14  Jim Meyering  <meyering@lucent.com>
88787
88788         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88789
88790 2000-04-13  Jim Meyering  <meyering@lucent.com>
88791
88792         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88793         AH_VERBATIM to insert required #ifndef into config.h.in.
88794         Suggestion from Akim Demaille.
88795
88796 2000-04-12  Jim Meyering  <meyering@lucent.com>
88797
88798         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88799         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88800         Christian Krackowizer.
88801
88802         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88803         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88804         (AC_SYS_LARGEFILE): Require.
88805         (AM_C_PROTOTYPES): Require.
88806
88807 2000-04-08  Jim Meyering  <meyering@lucent.com>
88808
88809         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88810         names don't conflict.  Reported by Eli Zaretskii.
88811
88812 2000-04-07  Jim Meyering  <meyering@lucent.com>
88813
88814         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88815         sys/types.h, to work around system header problems on AIX 3.2.5.
88816         From Bruno Haible.
88817
88818 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88819
88820         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88821         bug.  Deal with the different error behavior of Irix iconv.
88822
88823 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88824
88825         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88826         IRIX if the installer said otherwise.
88827
88828 2000-04-05  Jim Meyering  <meyering@lucent.com>
88829
88830         Portability tweaks required for ultrix4.3.
88831         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88832         (jm_CHECK_DECLS): Add getutent to the list of functions.
88833         (_jm_DECL_HEADERS): Add utmpx.h.
88834         From John David Anglin.
88835
88836         * m4/strftime.m4: Back out the 2000-04-02 change.
88837         Instead of that change, simply undefine putenv in the test program.
88838
88839 2000-04-05  Jim Meyering  <meyering@lucent.com>
88840
88841         Portability tweaks required for ultrix4.3.
88842         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88843         getutent.
88844         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88845         * lib/canon-host.c: Declare strdup.
88846         * lib/path-concat.c: Likewise.
88847         From John David Anglin.
88848
88849 2000-04-04  Jim Meyering  <meyering@lucent.com>
88850
88851         Be more DOS 8.3-friendly.
88852         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88853         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88854         * lib/Makefile.am: Reflect renaming.
88855         Reported by Eli Zaretskii.
88856
88857         Use a temporary file name that won't clash with `charset.alias'
88858         in the DOS 8.3 name space.
88859         * lib/Makefile.am (charset_tmp): Define.
88860         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88861         (uninstall-local): Likewise.
88862         Reported by Eli Zaretskii.
88863
88864 2000-04-03  Jim Meyering  <meyering@lucent.com>
88865
88866         * m4/gettext.m4: Fix typo in comment.
88867
88868         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88869         textutils/configure.in).  Suggestion from Paul Eggert.
88870         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88871
88872 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88873
88874         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88875         variable in the shell rather than using putenv, which isn't
88876         portable.  This avoids the configure-time inter-test dependency
88877         on the potentially-renamed putenv function.
88878
88879 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88880
88881         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88882         before checking struct stat.st_blksize, so that
88883         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88884
88885 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88886
88887         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88888         since strftime.c uses HAVE_STRFTIME to decide whether to use
88889         the underlying strftime.
88890
88891 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88892
88893         * lib/time/strftime.c (my_strftime): Make sure we call the system
88894         strftime, not ourselves, when invoking the underlying strftime.
88895
88896 2000-03-24  Jim Meyering  <meyering@lucent.com>
88897
88898         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88899         (charset_alias): Define.
88900         (install-exec-local): Factor out common code.
88901         (uninstall-local): Split lines longer than 80.
88902         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88903         (SUFFIXES): Define.
88904         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88905         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88906
88907 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88908
88909         * lib/config.charset: Output a line containing "Packages using this
88910         file".
88911         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88912         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88913         ref-del.sed): New rules.
88914
88915 2000-03-17  Jim Meyering  <meyering@lucent.com>
88916
88917         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88918         Otherwise, include <strings.h>
88919
88920 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88921
88922         * lib/unicodeio.c (utf8_wctomb): New function.
88923         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88924         format instead of in UCS-4 with platform dependent endianness.
88925
88926 2000-03-10  Jim Meyering  <meyering@lucent.com>
88927
88928         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88929         From Marco Franzen.
88930
88931 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88932
88933         * lib/savedir.c (savedir): Work even if directory size is
88934         negative; this can happen with some screwy NFS configurations.
88935
88936 2000-03-06  Jim Meyering  <meyering@lucent.com>
88937
88938         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88939         if it's NULL (because we ran out of memory).  From Bruno Haible.
88940
88941 2000-03-05  Jim Meyering  <meyering@lucent.com>
88942
88943         * lib/localcharset.c ("path-concat.h"): Include.
88944         (get_charset_aliases): Use path_concat instead of ANSI string
88945         concatenation.
88946
88947         * lib/unicodeio.h (PARAMS): Define.
88948         Use it to guard prototype.
88949
88950 2000-03-04  Jim Meyering  <meyering@lucent.com>
88951
88952         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88953         for lib/localcharset.c.
88954
88955 2000-03-04  Jim Meyering  <meyering@lucent.com>
88956
88957         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88958         installing into it.
88959         (uninstall-local): Uncomment this rule so `make distcheck' works
88960         once again.
88961
88962         * lib/unicodeio.c (<errno.h>): Include it.
88963         (errno): Declare if not defined.
88964
88965         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88966
88967         * lib/config.charset: New version, incorporating remarks from a linux
88968         i18n mailing list.  From Bruno Haible.
88969
88970 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88971
88972         * m4/codeset.m4: New file.
88973         * m4/iconv.m4: New file.
88974         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88975
88976 2000-03-03  Jim Meyering  <meyering@lucent.com>
88977
88978         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88979
88980 2000-03-02  Jim Meyering  <meyering@lucent.com>
88981
88982         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88983         the messages come out on separate lines.
88984
88985         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88986         rather than jm_CHECK_DECLARATIONS.
88987         * m4/decl.m4: Remove now-unused file.
88988
88989         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88990         geteuid.
88991
88992 2000-03-02  Jim Meyering  <meyering@lucent.com>
88993
88994         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88995
88996 2000-03-01  Jim Meyering  <meyering@lucent.com>
88997
88998         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88999         * lib/unicodeio.c: Likewise.
89000
89001 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89002
89003         * lib/config.charset: New file.
89004         * lib/localcharset.c: New file.
89005         * lib/unicodeio.h, lib/unicodeio.c: New files.
89006         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89007         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89008         (noinst_HEADERS): Add unicodeio.h.
89009         (all-local, install-exec-local, charset.alias): New targets.
89010
89011 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89012
89013         * lib/quotearg.c (ALERT_CHAR): New macro.
89014         (quotearg_buffer_restyled): Use it.
89015
89016 2000-02-27  Jim Meyering  <meyering@lucent.com>
89017
89018         * m4/check-decl.m4: Add getenv to the list.
89019
89020 2000-02-27  Jim Meyering  <meyering@lucent.com>
89021
89022         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89023         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89024
89025         * lib/backupfile.c: Guard inclusion of stdlib.h with
89026         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89027         Declare malloc if needed.
89028
89029         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89030         `#ifndef HAVE_DECL..'
89031         now that autoconf always defines the HAVE_DECL_ symbols.
89032         * lib/human.c: Likewise.
89033         * lib/same.c: Likewise.
89034         * lib/strtoumax.c: Likewise.
89035
89036         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89037         declaration check was not run.
89038         * lib/hash.c: Likewise.
89039         * lib/human.c: Likewise.
89040         * lib/same.c: Likewise.
89041         * lib/strtoumax.c: Likewise.
89042
89043         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89044         `.', then first look up the entire `.'-containing string as a login
89045         name.
89046
89047 2000-02-23  Jim Meyering  <meyering@lucent.com>
89048
89049         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89050         in place of my hack.
89051
89052 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89053
89054         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89055         (textint): New typedef.
89056         (parser_control): Member year changed from int to textint.
89057         All uses changed.
89058         (YYSTYPE): Removed; replaced by %union with int and textint members.
89059         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89060         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89061         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89062         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89063         (date, number, to_year): Use width of number in digits, not its value,
89064         to determine whether it's a 2-digit year, or a 2-digit time.
89065         (yylex): Store number of digits of numeric tokens.
89066         Reported by John Kendall.
89067
89068         (parser_control): Changed from struct parser_control to typedef (for
89069         consistency).  All uses changed.
89070
89071         (tID): Removed; not used.
89072         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89073
89074 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89075
89076         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89077         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89078
89079 2000-02-12  Jim Meyering  <meyering@lucent.com>
89080
89081         * lib/userspec.c (ISDIGIT): Define it.
89082         (isdigit): Remove definition.
89083         (is_number): Use ISDIGIT, not isdigit.
89084         <libintl.h>: Include.
89085         (_ and N_): Define.
89086         (parse_user_spec): Mark translatable strings.
89087
89088 2000-02-10  Jim Meyering  <meyering@lucent.com>
89089
89090         With these changes, nanosleep.[ch] are finally enough like the other
89091         lib/* replacement files to compile on a few more losing systems.
89092
89093         * lib/nanosleep.h: Don't include config.h.
89094         Remove prototype from declaration of nanosleep.
89095         (PARAMS): Remove now-unneeded definition.
89096         * lib/nanosleep.c: #undef nanosleep.
89097         (rpl_nanosleep): Rename from nanosleep.
89098
89099 2000-02-10  Jim Meyering  <meyering@lucent.com>
89100
89101         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89102         gnu_nanosleep to rpl_nanosleep.
89103
89104 2000-02-09  Jim Meyering  <meyering@lucent.com>
89105
89106         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89107         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89108
89109 2000-02-08  Akim Demaille  <akim@epita.fr>
89110
89111         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89112         `[' and `]' and remove uses of `changequote'.
89113         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89114         (AC_SYS_LARGEFILE): Likewise.
89115         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89116         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89117         of changequote.
89118         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89119         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89120         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89121         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89122
89123 2000-02-05  Jim Meyering  <meyering@lucent.com>
89124
89125         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89126         Remove explicit use of AC_HEADER_TIME.  It is required by
89127         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89128         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89129         in autoconf whereby the expansion of the latter ended up preceding
89130         the expansion of its prerequisite, AC_HEADER_TIME.
89131         Reported by Volker Borchert.
89132
89133 2000-02-03  Jim Meyering  <meyering@lucent.com>
89134
89135         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89136
89137 2000-02-03  Jim Meyering  <meyering@lucent.com>
89138
89139         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89140         rather than with `#if HAVE_UTMPNAME'.
89141
89142 2000-02-02  Jim Meyering  <meyering@lucent.com>
89143
89144         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89145         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89146         Reported by Eli Zaretskii.
89147
89148 2000-02-01  Jim Meyering  <meyering@lucent.com>
89149
89150         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89151
89152 2000-01-31  Jim Meyering  <meyering@lucent.com>
89153
89154         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89155         functions.  Add the time.h and sys/time.h headers along with the
89156         AC_REQUIRE'ment of AC_HEADER_TIME.
89157
89158 2000-01-31  Jim Meyering  <meyering@lucent.com>
89159
89160         * lib/nanosleep.h (nanosleep): Guard declaration with
89161         `#if ! HAVE_DECL_NANOSLEEP'.
89162         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89163         the declaration in that vendor's sys/timers.h.
89164         Reported by Christian Krackowizer.
89165
89166         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89167         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89168         (ISPRINT): Likewise.
89169         Reported by Tom Tromey.
89170
89171 2000-01-30  Jim Meyering  <meyering@lucent.com>
89172
89173         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89174
89175         * m4/prereq.m4 (utmp_includes): Define.
89176         Check for ut_user and ut_name members in both struct utmpx
89177         and struct utmp.
89178
89179 2000-01-30  Jim Meyering  <meyering@lucent.com>
89180
89181         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89182         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89183         header files where only utmpx.ut_user is declared.
89184
89185         * lib/readutmp.h (UT_USER): Define.
89186
89187 2000-01-29  Jim Meyering  <meyering@lucent.com>
89188
89189         * m4/lib-check.m4: New file containing library-related checks from
89190         fileutils and sh-utils (textutils had none).
89191
89192 2000-01-28  Jim Meyering  <meyering@lucent.com>
89193
89194         * m4/perl.m4: Change format of warning message to look more like that
89195         from the missing script.  Suggestion from François Pinard.
89196
89197 2000-01-25  Jim Meyering  <meyering@lucent.com>
89198
89199         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89200         well as time.h in the compile check.
89201         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89202         Fix typo in cross-compiling case: s/yes/no/.
89203
89204 2000-01-23  Jim Meyering  <meyering@lucent.com>
89205
89206         * m4/jm-macros.m4: Move df-related tests here from
89207         fileutils/configure.in
89208
89209         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89210         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89211
89212         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89213         s/space/ac_fsusage_space/.
89214         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89215
89216         * m4/ftruncate.m4: New file (derived from part of
89217         fileutils/configure.in).
89218         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89219         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89220
89221         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89222         AC_SUBST these here, rather than just in sh-util/configure.in, so
89223         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89224         all the same.
89225         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89226         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89227         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89228         (AC_SUBST(POW_LIBM)): Likewise.
89229         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89230
89231 2000-01-23  Jim Meyering  <meyering@lucent.com>
89232
89233         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89234         obstack.c.
89235
89236 2000-01-22  Jim Meyering  <meyering@lucent.com>
89237
89238         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89239
89240         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89241
89242         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89243         configure.in
89244         (AC_CHECK_HEADERS): Likewise for sh-utils.
89245         (AC_CHECK_HEADERS): Likewise for textutils.
89246         Merge the three lists of headers.
89247
89248         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89249         from fileutils' configure.in.
89250
89251         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89252         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89253         check-decl.m4.
89254
89255         * m4/check-decl.m4: Use #if rather than #ifdef.
89256         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89257         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89258         (_jm_DECL_HEADERS): Define new function.
89259         (jm_CHECK_DECLARATIONS): Require it.
89260
89261 2000-01-22  Jim Meyering  <meyering@lucent.com>
89262
89263         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89264         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89265         Required for some AIX systems.  Reported by Christian Krackowizer.
89266         [TESTING] (main): New function.
89267
89268         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89269         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89270         letters.
89271
89272         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89273         iswprint.
89274
89275         * lib/strverscmp.c (ISDIGIT): Define.
89276         (strverscmp): Use ISDIGIT, not isdigit.
89277
89278 2000-01-19  Jim Meyering  <meyering@lucent.com>
89279
89280         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89281         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89282         defines `struct timespec' in <sys/time.h>
89283
89284         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89285         Thanks to Akim for explaining.
89286
89287 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89288
89289         * lib/nanosleep.c (nanosleep):
89290         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89291         POSIX.1 doesn't require SA_INTERRUPT and some systems
89292         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89293         it's been part of POSIX.1 since day 1 (in 1988).
89294
89295 2000-01-17  Jim Meyering  <meyering@lucent.com>
89296
89297         * lib/interlock: Remove unused file.  Reported by François Pinard.
89298
89299 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89300
89301         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89302         alert, backslash, formfeed, and vertical tab unnecessarily in
89303         shell quoting style.
89304
89305 2000-01-16  Jim Meyering  <meyering@lucent.com>
89306
89307         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89308         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89309         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89310         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89311
89312 2000-01-16  Jim Meyering  <meyering@lucent.com>
89313
89314         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89315         because the latter didn't work.
89316
89317 2000-01-15  Jim Meyering  <meyering@lucent.com>
89318
89319         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89320         (AC_REPLACE_FUNCS): Add memcpy and memset.
89321         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89322         Add strpbrk.
89323         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89324
89325 2000-01-12  Jim Meyering  <meyering@lucent.com>
89326
89327         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89328         (jm_PREREQ): Use it.
89329         (jm_PREREQ_READUTMP): New macro.
89330         (jm_PREREQ): Use it.
89331
89332 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89333
89334         Quote multibyte characters correctly.
89335         * m4/c-bs-a.m4: New file.
89336         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89337         (jm_PREREQ): Use it.
89338
89339 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89340
89341         * m4/uintmax_t.m4: Port to autoconf 2.13.
89342
89343 2000-01-08  Jim Meyering  <meyering@ascend.com>
89344
89345         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89346         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89347
89348 2000-01-04  Jim Meyering  <meyering@ascend.com>
89349
89350         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89351         jm_STRUCT_DIRENT_D_TYPE.
89352         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89353         jm_STRUCT_DIRENT_D_INO.
89354         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89355         jm_STRUCT_UTIMBUF.
89356         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89357         renamings.
89358         * m4/utime.m4: Likewise.
89359
89360         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89361         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89362
89363 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89364
89365         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89366         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89367
89368 2000-01-02  Jim Meyering  <meyering@ascend.com>
89369
89370         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89371         remember if this is necessary.
89372
89373 1999-12-26  Jim Meyering  <meyering@ascend.com>
89374
89375         * m4/jm-macros.m4: Use it here.
89376         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89377
89378 1999-12-23  Jim Meyering  <meyering@ascend.com>
89379
89380         * m4/jm-macros.m4: Check for clock_gettime (moved from
89381         fileutils/configure.in)
89382         Check for gettimeofday.
89383
89384 1999-12-20  Jim Meyering  <meyering@ascend.com>
89385
89386         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89387         autoconf-2.14a-1999-12-20.
89388
89389 1999-12-19  Jim Meyering  <meyering@ascend.com>
89390
89391         * m4/lstat-slash.m4: New file.
89392         * m4/jm-macros.m4: Use the new macro:
89393         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89394
89395 1999-12-07  Jim Meyering  <meyering@ascend.com>
89396
89397         * m4/perl.m4: Require that File::Compare be available, too.
89398         Too many systems seem to lack it.
89399
89400         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89401         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89402
89403 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89404
89405         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89406         problem with the QNX 4.25 shell, which doesn't propagate exit
89407         status of failed commands inside shell assignments.
89408
89409 1999-11-17  Jim Meyering  <meyering@ascend.com>
89410
89411         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89412
89413 1999-11-07  Jim Meyering  <meyering@ascend.com>
89414
89415         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89416
89417 1999-11-06  Jim Meyering  <meyering@ascend.com>
89418
89419         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89420         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89421
89422 1999-11-05  Jim Meyering  <meyering@ascend.com>
89423
89424         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89425         configure.in of textutils, fileutils, and sh-utils into this one
89426         (shared between those packages) file.
89427         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89428         AC_STRUCT_ST_BLKSIZE.
89429
89430 1999-11-03  Jim Meyering  <meyering@ascend.com>
89431
89432         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89433         of AC_CHECK_TYPE checks includes unistd.h.
89434         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89435         Suggestion from Akim Demaille.
89436
89437 1999-10-30  Jim Meyering  <meyering@ascend.com>
89438
89439         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89440         m4-quoted string.
89441         * m4/ls-mntd-fs.m4: Likewise.
89442         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89443         * m4/jm-winsz1.m4: Likewise.
89444
89445         * m4/const.m4: Remove file, since the fix made it into the experimental
89446         version of autoconf.
89447         * m4/mktime.m4: Likewise.
89448
89449         * m4/check-type.m4: Remove file, now that the latest version of
89450         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89451
89452         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89453         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89454         AC_CHECK_TYPE.
89455
89456 1999-10-04  Jim Meyering  <meyering@ascend.com>
89457
89458         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89459
89460 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89461
89462         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89463         2.95.1 bug with HP-UX 10.20.
89464
89465 1999-09-17  Jim Meyering  <meyering@ascend.com>
89466
89467         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89468         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89469         due to missing strdup (against sh-utils-2.0).
89470
89471 1999-08-29  Jim Meyering  <meyering@ascend.com>
89472
89473         * m4/jm-macros.m4: Require jm_BISON.
89474         * m4/bison.m4: New file.
89475
89476 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89477
89478         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89479         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89480
89481 1999-08-05  Jim Meyering  <meyering@ascend.com>
89482
89483         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89484         to avoid conflicts with `conftest' on 8+3 filesystems.
89485         Suggestion from Eli Zaretskii.
89486
89487 1999-08-04  Jim Meyering  <meyering@ascend.com>
89488
89489         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89490         fileutils and sh-utils (textutils's getline test was inadequate).
89491         (AM_FUNC_GETLINE): Run this test.
89492         (AC_CHECK_FUNCS): Check for getdelim.
89493         Reported by Bob Proulx.
89494
89495 1999-08-02  Jim Meyering  <meyering@ascend.com>
89496
89497         * m4/jm-macros.m4: Add a comment.
89498
89499 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89500
89501         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89502         <inttypes.h> defines strtoumax as a macro (and not as a
89503         function).
89504
89505 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89506
89507         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89508         that we can shift, multiply and divide unsigned long long
89509         values; Ultrix cc can't do it.
89510
89511 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89512
89513         * m4/mktime.m4: New file, which is a preview of what should appear
89514         in the next public autoconf release.
89515
89516 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89517
89518         * m4/lfs.m4: Remove this file.
89519         * m4/largefile.m4: New file.  It contains the old contents of
89520         lfs.m4, except that all names with prefix AC_LFS have been
89521         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89522         compatible with future autoconf versions.  Also, some minor m4
89523         quoting problems have been fixed.
89524
89525 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89526
89527         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89528         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89529         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89530         and simplify the shell code.
89531
89532 1999-08-01  Jim Meyering  <meyering@ascend.com>
89533
89534         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89535         m4.
89536
89537 1999-07-20  Jim Meyering  <meyering@ascend.com>
89538
89539         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89540
89541 1999-07-15  Jim Meyering  <meyering@ascend.com>
89542
89543         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89544
89545 1999-05-22  Jim Meyering  <meyering@ascend.com>
89546
89547         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89548
89549 1999-05-20  Jim Meyering  <meyering@ascend.com>
89550
89551         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89552         Add a colon after each `then' in case $4 is empty.
89553
89554 1999-05-16  Jim Meyering  <meyering@ascend.com>
89555
89556         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89557
89558 1999-05-10  Jim Meyering  <meyering@ascend.com>
89559
89560         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89561
89562         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89563         AC_FUNC_MKTIME.
89564
89565 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89566
89567         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89568
89569 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89570
89571         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89572         not CPPFLAGS, so that linking works correctly in IRIX.
89573
89574 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89575
89576         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89577
89578 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89579
89580         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89581         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89582         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89583         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89584         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89585
89586         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89587
89588 1999-04-20  Jim Meyering  <meyering@ascend.com>
89589
89590         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89591         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89592         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89593
89594 1999-04-18  Jim Meyering  <meyering@ascend.com>
89595
89596         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89597         * m4/jm-macros.m4: Use it.
89598
89599 1999-04-06  Jim Meyering  <meyering@ascend.com>
89600
89601         * m4/strftime.m4: Remove test for %f.
89602
89603 1999-03-29  Jim Meyering  <meyering@ascend.com>
89604
89605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89606         superset of the AC_TYPE_* checks in the textutils, fileutils,
89607         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89608         AC_TYPE_PID_T.
89609
89610 1999-03-28  Jim Meyering  <meyering@ascend.com>
89611
89612         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89613         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89614         replaced e.g., in the *.sh files of the sh-utils.
89615
89616 1999-03-20  Jim Meyering  <meyering@ascend.com>
89617
89618         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89619         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89620         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89621
89622 1999-03-19  Jim Meyering  <meyering@ascend.com>
89623
89624         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89625
89626 1999-03-12  Jim Meyering  <meyering@ascend.com>
89627
89628         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89629
89630 1999-03-07  Jim Meyering  <meyering@ascend.com>
89631
89632         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89633         declared.
89634
89635 1999-02-17  Jim Meyering  <meyering@ascend.com>
89636
89637         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89638         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89639
89640 1999-02-07  Jim Meyering  <meyering@ascend.com>
89641
89642         * m4/group-member.m4: New file -- extracted from sh-utils'
89643         configure.in.
89644
89645         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89646         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89647
89648 1999-02-06  Jim Meyering  <meyering@ascend.com>
89649
89650         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89651         * m4/fnmatch.m4: Likewise.
89652         * m4/getgroups.m4: Likewise.
89653         * m4/lstat.m4: Likewise.
89654         * m4/malloc.m4: Likewise.
89655         * m4/putenv.m4: Likewise.
89656         * m4/realloc.m4: Likewise.
89657         * m4/regex.m4: Likewise.
89658         * m4/stat.m4: Likewise.
89659         * m4/strftime.m4: Likewise.
89660         Suggestion from Alain Magloire.
89661
89662         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89663         * m4/fnmatch.m4: Likewise.
89664         * m4/getgroups.m4: Likewise.
89665         * m4/getline.m4: Likewise.
89666         * m4/lstat.m4: Likewise.
89667         * m4/malloc.m4: Likewise.
89668         * m4/memcmp.m4: Likewise.
89669         * m4/putenv.m4: Likewise.
89670         * m4/realloc.m4: Likewise.
89671         * m4/regex.m4: Likewise.
89672         * m4/stat.m4: Likewise.
89673         * m4/strftime.m4: Likewise.
89674         Suggestion from Alain Magloire.
89675
89676         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89677         an argument.
89678
89679         * m4/regex.m4: Add a run-time Test for proper operation of
89680         re_compile_pattern.
89681
89682 1999-01-31  Jim Meyering  <meyering@ascend.com>
89683
89684         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89685
89686 1999-01-30  Jim Meyering  <meyering@ascend.com>
89687
89688         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89689
89690         * m4/jm-mktime.m4: Make this a wrapper around the official
89691         AM_FUNC_MKTIME rather than my private copy, now that the official one
89692         is up to date.
89693         * m4/mktime.m4: Remove file.
89694
89695         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89696         * m4/uptime.m4: Likewise.
89697         * m4/uintmax_t.m4: Likewise.
89698
89699 1999-01-28  Jim Meyering  <meyering@ascend.com>
89700
89701         * m4/jm-macros.m4: Use jm_AFS.
89702         * m4/afs.m4: New file (from fileutils' configure.in).
89703
89704         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89705         * m4/chown.m4: Likewise.
89706         * m4/d-ino.m4: Likewise.
89707         * m4/d-type.m4: Likewise.
89708         * m4/fnmatch.m4: Likewise.
89709         * m4/getgroups.m4: Likewise.
89710         * m4/gettext.m4: Likewise.
89711         * m4/jm-mktime.m4: Likewise.
89712         * m4/jm-winsz2.m4: Likewise.
89713         * m4/lcmessage.m4: Likewise.
89714         * m4/ls-mntd-fs.m4: Likewise.
89715         * m4/malloc.m4: Likewise.
89716         * m4/memcmp.m4: Likewise.
89717         * m4/putenv.m4: Likewise.
89718         * m4/realloc.m4: Likewise.
89719         * m4/st_mtim.m4: Likewise.
89720         * m4/strftime.m4: Likewise.
89721
89722 1999-01-16  Jim Meyering  <meyering@ascend.com>
89723
89724         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89725         (ARGMATCH_DIE_DECL): Define.
89726
89727 1999-01-12  Jim Meyering  <meyering@ascend.com>
89728
89729         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89730         Reported by Lars Hecking.
89731
89732 1999-01-10  Jim Meyering  <meyering@ascend.com>
89733
89734         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89735         gross kludge.
89736         * m4/inttypes_h.m4: Likewise.
89737         * m4/lstat.m4: Likewise.
89738         * m4/malloc.m4: Likewise.
89739         * m4/readdir.m4: Likewise.
89740         * m4/realloc.m4: Likewise.
89741         * m4/st_dm_mode.m4: Likewise.
89742         * m4/stat.m4: Likewise.
89743         * m4/utimbuf.m4: Likewise.
89744         * m4/utimes.m4: Likewise.
89745
89746         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89747         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89748         comments in config.h.in are meaningful.
89749
89750         * m4/jm-macros.m4: Require autoconf-2.13 here.
89751
89752         * m4/regex.m4: By default, don't use the included regex.c on systems
89753         with glibc 2.  Suggestion from Uli Drepper.
89754
89755 1999-01-02  Jim Meyering  <meyering@ascend.com>
89756
89757         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89758
89759 1998-12-18  Jim Meyering  <meyering@ascend.com>
89760
89761         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89762         Based on a suggestion from Lars Hecking.
89763
89764 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89765
89766         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89767
89768 1998-11-16  Jim Meyering  <meyering@ascend.com>
89769
89770         * m4/lfs.m4: Double-quote the `uname...` expression.
89771
89772 1998-11-14  Jim Meyering  <meyering@ascend.com>
89773
89774         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89775         * m4/stat.m4: Likewise.
89776
89777 1998-11-03  Jim Meyering  <meyering@ascend.com>
89778
89779         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89780         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89781
89782 1998-10-18  Jim Meyering  <meyering@ascend.com>
89783
89784         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89785
89786 1998-10-17  Jim Meyering  <meyering@ascend.com>
89787
89788         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89789         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89790         calls for those previously hard-coded headers.  Instead, take a new
89791         parameter.
89792         (jm_CHECK_DECLARATIONS): Reflect interface change.
89793         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89794         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89795
89796         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89797
89798 1998-10-14  Jim Meyering  <meyering@ascend.com>
89799
89800         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89801         instead of "TZ=America/Vancouver".  From Paul Eggert.
89802
89803 1998-10-11  Jim Meyering  <meyering@ascend.com>
89804
89805         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89806         This adds a test for a recently added compatibility fix for mktime.c.
89807         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89808
89809 1998-09-27  Jim Meyering  <meyering@ascend.com>
89810
89811         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89812
89813         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89814         ../configure.in, including a change from Gordon Matzigkeit to allow
89815         cross-compiling for the Hurd.
89816
89817         * m4/glibc.m4: New file/macro to test for the GNU C Library
89818         versions 1 and 2.  From Gordon Matzigkeit.
89819         Indent.
89820
89821 1998-09-21  Jim Meyering  <meyering@ascend.com>
89822
89823         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89824
89825 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89826
89827         Port nanosecond-resolution times to UnixWare 2.1.2 and
89828         pedantic Solaris 2.6.
89829
89830         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89831         AC_STRUCT_ST_MTIM.
89832         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89833         Generate name of ns member, instead of just 1 or undef.
89834         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89835
89836 1998-08-15  Jim Meyering  <meyering@ascend.com>
89837
89838         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89839         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89840         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89841         instead of jm_TYPE_SSIZE_T.
89842
89843 1998-08-12  Jim Meyering  <meyering@ascend.com>
89844
89845         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89846
89847 1998-08-02  Jim Meyering  <meyering@ascend.com>
89848
89849         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89850         in acconfig.h manually.
89851
89852 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89853
89854         * m4/st_mtim.m4: New file.
89855
89856 1998-07-28  Jim Meyering  <meyering@ascend.com>
89857
89858         * m4/utimes.m4: Undef stat.
89859
89860 1998-07-25  Jim Meyering  <meyering@ascend.com>
89861
89862         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89863         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89864
89865 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89866
89867         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89868         uid and gid actually remain unchanged.
89869
89870 1998-07-07  Jim Meyering  <meyering@ascend.com>
89871
89872         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89873
89874 1998-07-04  Jim Meyering  <meyering@ascend.com>
89875
89876         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89877         to prove that this macro can be used in packages without regex.c.
89878
89879 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89880
89881         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89882         is to be used.
89883
89884 1998-07-03  Jim Meyering  <meyering@ascend.com>
89885
89886         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89887
89888         * m4/gettext.m4: New file -- from gettext-0.10.35.
89889         * m4/lcmessage.m4: Likewise.
89890         * m4/progtest.m4: Likewise.
89891
89892         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89893         * m4/jm-macros.m4: Require the new macro.
89894
89895 1998-06-29  Jim Meyering  <meyering@ascend.com>
89896
89897         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89898         for the definition of NGROUPS (used in a system header included
89899         by sys/mount.h).
89900
89901 1998-06-28  Jim Meyering  <meyering@ascend.com>
89902
89903         * m4/ls-mntd-fs.m4: New file.
89904         * m4/fstypename.m4: New file.
89905
89906         * m4/jm-macros.m4: Require the new macro.
89907         * m4/jm-glibc-io.m4: New file.
89908
89909 1998-05-19  Jim Meyering  <meyering@ascend.com>
89910
89911         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89912         * m4/lchown.m4: New file.
89913
89914         * m4/Makefile.am.in: New file.
89915         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89916
89917 1998-05-14  Jim Meyering  <meyering@ascend.com>
89918
89919         * m4/Makefile.am (EXTRA_DIST): Add them.
89920         * m4/jm-macros.m4: New file.
89921         * m4/utimbuf.m4: New file.
89922
89923 1998-05-12  Jim Meyering  <meyering@ascend.com>
89924
89925         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89926
89927 1998-05-11  Jim Meyering  <meyering@ascend.com>
89928
89929         * m4/isc-posix.m4: New file.
89930
89931 1998-05-10  Jim Meyering  <meyering@ascend.com>
89932
89933         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89934
89935 1998-05-09  Jim Meyering  <meyering@ascend.com>
89936
89937         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89938         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89939         with automake.
89940
89941         * m4/ssize_t.m4: New file.
89942         * m4/mktime.m4: Remove file -- the new automake has this now.
89943
89944 1998-04-26  Jim Meyering  <meyering@ascend.com>
89945
89946         * m4/assert.m4: New file.
89947         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89948
89949 1998-04-05  Jim Meyering  <meyering@ascend.com>
89950
89951         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89952         (jm_PREREQ): Use it here.
89953
89954 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89955
89956         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89957         in acconfig.h.
89958
89959 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89960
89961         * m4/prereq.m4: New file.
89962         * m4/error.m4: New file.
89963         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89964
89965 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89966
89967         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89968         cache-check for the same variable -- that defeated the purpose of
89969         the test; the test program was never run.  This was a problem only
89970         on systems with losing getline functions -- HP-UX 10.20 is one.
89971         Reported by Bjorn Helgaas.
89972
89973 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89974
89975         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89976
89977 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89978
89979         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89980
89981         * m4/const.m4: New file.  Use an initializer in this declaration
89982         typedef int charset[2]; const charset x;
89983         Reported by Bob Glickstein.
89984
89985 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89986
89987         * m4/chown.m4: Fix reversed types on -1 args to chown.
89988         From Kaveh Ghazi.
89989
89990 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89991
89992         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89993         Add lseek and memchr.
89994
89995         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89996         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89997         have a 20-character limit on names.
89998
89999 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90000
90001         * m4/inttypes_h.m4: New file.
90002         * m4/uintmax_t.m4: New file.
90003         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90004
90005
90006         -----
90007
90008         Local Variables:
90009         coding: utf-8
90010         End:
90011
90012         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90013
90014         Copying and distribution of this file, with or without
90015         modification, are permitted provided the copyright notice
90016         and this notice are preserved.